/* ERA Canada · Electronics We Accept — independent interior page (Sonnet 5.5).
   Rooted in [data-section-design="accepted-items"]. The homepage @scope stops at that attribute, so this
   file carries its own resets and tokens; the approved header and footer are not touched.
   Geometry as on the pickup, depots and data-security pages: every seam, plane and photo edge leans "/" (rises to
   the right), edged by a green and a blue stripe taken from the warehouse walls. Light page, dark Inter type.
   Order: photograph, equipment index with search, donation copy, a three-column briefing under a panorama, FAQ.
   The index is typography: the eight lists keep their source markup and sit under ruled lines; its one
   photograph is a grid cell of its own, beside the two data-centre categories. Search is progressive:
   accepted.js reveals the field, and every category, paragraph and answer stays on the page without it. */

@keyframes ai-settle{from{transform:scale(1.05)}to{transform:scale(1)}}
@keyframes ai-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

[data-section-design="accepted-items"]{
  --ink:#0d1a22;--text:#32424d;--muted:#566772;--line:#d5dee5;--paper:#f2f6f9;
  --blue:#0d5a92;--blue-deep:#0a3f69;--blue-bright:#1b8bd0;
  --green-bright:#7cc242;--green-hover:#69ad2f;
  --ai-gutter:clamp(20px,4.2vw,64px);
  --ai-edge:max(var(--ai-gutter),calc((100vw - 1240px) / 2));
  --ai-edge-wide:max(var(--ai-gutter),calc((100vw - 1520px) / 2));   /* lines the hero and the briefing up with the header logo */
  --ai-rise:5vw;                          /* height every plane seam gains across the full width: slope .05 */
  --ai-slash:clamp(40px,5.6vw,92px);      /* sideways run of a slanted photo edge */
  --ai-s:clamp(6px,.8vw,12px);            /* stripe thickness */
  --ai-g:clamp(3px,.42vw,6px);            /* white gap between the two stripes */
  --ai-pad:clamp(44px,5.4vw,88px);
  --ai-col:clamp(28px,4.4vw,72px);
  --ai-hr:clamp(30px,4vw,76px);           /* rise of the seam that closes the hero */
  --ai-hs:calc(var(--ai-hr) + var(--ai-s) * 2 + var(--ai-g));
  --ai-k:.44;                             /* share of the hero width left clear for the copy */
  --ai-hslash:var(--ai-slash);
  --ai-cut:0px;                           /* drop of the index plane's top edge at the left; only phones need it */
  position:relative;display:block;overflow-x:clip;background:#fff;color:var(--text);
  font:400 17px/1.7 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;

  /* ---------- Reset + type ---------- */
  & *,& *::before,& *::after{box-sizing:border-box}
  & h1,& h2,& h3,& p,& ul,& figure{margin:0}
  & ul{padding:0;list-style:none}
  & img{display:block;max-width:100%}
  & a{color:inherit}
  & mark{background:none;color:inherit}
  & [hidden]{display:none!important}
  & :focus-visible{outline:3px solid var(--blue);outline-offset:3px}
  & h1,& h2,& h3{color:var(--ink);font-weight:800;letter-spacing:-.04em;line-height:1.04;text-wrap:balance}
  & .ai-block{position:relative;isolation:isolate}
  /* Section label: two-tone right triangle + small caps, as on the homepage. */
  & .ai-kicker{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:var(--blue)}
  & .ai-kicker::before{content:"";flex:none;width:20px;height:15px;background:linear-gradient(to top left,var(--green-bright) 0 34%,var(--blue-bright) 34%);clip-path:polygon(0 100%,100% 0,100% 100%)}
  & .ai-label{font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
  /* Links inside running text: blue, with the green underline used across the concepts. */
  & .ai-give-copy p a,& .ai-next a{color:var(--blue);font-weight:650;text-decoration:underline;text-decoration-color:var(--green-bright);text-decoration-thickness:2px;text-underline-offset:4px}
  & .ai-give-copy p a:hover,& .ai-next a:hover{color:var(--blue-deep);text-decoration-color:var(--blue-bright)}

  /* ---------- Hero: copy on the white page, the photograph cut on "/" lines at its left edge and its foot ----------
     The photograph's foot follows the line of the green stripe exactly (same slope, same offsets), so the stripes
     read as its edge and the pale index plane begins where the blue stripe ends. */
  & .ai-hero{z-index:1;display:flex;align-items:center;min-height:clamp(500px,40vw,700px);padding:clamp(36px,3.6vw,56px) var(--ai-edge-wide) calc(var(--ai-hs) + 8px);background:#fff}
  & .ai-hero-visual{position:absolute;inset:0;z-index:0;isolation:isolate;pointer-events:none}
  & .ai-hero-photo{position:absolute;top:0;right:0;bottom:0;width:calc((1 - var(--ai-k)) * 100%);overflow:hidden;clip-path:polygon(var(--ai-hslash) 0,100% 0,100% calc(100% - var(--ai-hr) - var(--ai-s) * 2 - var(--ai-g)),0 calc(100% - var(--ai-hr) * var(--ai-k) - var(--ai-s) * 2 - var(--ai-g)))}
  /* The two technicians stand in the left third of the photograph; the crop keeps them clear of the slanted edge. */
  & .ai-hero-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:18% 40%;transform-origin:40% 50%;animation:ai-settle 1.8s cubic-bezier(.2,.7,.2,1) both}
  /* The pale wedge under the blue stripe is the first stretch of the index plane. */
  & .ai-hero-visual::after{content:"";position:absolute;z-index:2;left:0;right:0;bottom:0;height:var(--ai-hs);background:var(--paper);clip-path:polygon(0 100%,100% calc(var(--ai-s) * 2 + var(--ai-g)),100% 100%)}
  & .ai-seam{position:absolute;z-index:3;left:0;right:0;bottom:0;height:var(--ai-hs);pointer-events:none}
  & .ai-seam::before,& .ai-seam::after{content:"";position:absolute;inset:0}
  & .ai-seam::before{background:var(--green-bright);clip-path:polygon(0 var(--ai-hr),100% 0,100% var(--ai-s),0 calc(var(--ai-hr) + var(--ai-s)))}
  & .ai-seam::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--ai-hr) + var(--ai-s) + var(--ai-g)),100% calc(var(--ai-s) + var(--ai-g)),100% calc(var(--ai-s) * 2 + var(--ai-g)),0 calc(var(--ai-hr) + var(--ai-s) * 2 + var(--ai-g)))}
  & .ai-hero-copy{position:relative;z-index:1;width:calc(var(--ai-k) * 100vw - var(--ai-edge-wide) - 28px)}
  & .ai-hero h1{margin:clamp(14px,1.5vw,22px) 0 0;font-size:clamp(36px,4.5vw,76px);line-height:.98;letter-spacing:-.048em}
  & .ai-hero h1 mark{padding:0 .04em;background:linear-gradient(transparent 80%,var(--green-bright) 80% 94%,transparent 94%)}
  & .ai-hero-actions{display:grid;justify-items:start;gap:clamp(22px,2.4vw,32px);margin-top:clamp(24px,2.6vw,38px)}
  & .ai-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:26px;min-height:56px;padding:0 22px 0 26px;border:2px solid var(--green-bright);border-radius:2px;background:var(--green-bright);color:var(--ink);font-size:16px;line-height:1.2;font-weight:760;letter-spacing:-.01em;text-decoration:none;transition:background-color .18s,border-color .18s}
  & .ai-btn::after{content:"↓";content:"↓" / "";flex:none;font-size:20px;font-weight:600;line-height:1;transition:transform .2s}
  & .ai-btn:hover{background:var(--green-hover);border-color:var(--green-hover)}
  & .ai-btn:hover::after{transform:translateY(3px)}
  /* Browse items: the eight category names as plain links to the existing anchors. */
  & .ai-browse .ai-label{margin-bottom:4px}
  & .ai-browse ul{display:flex;flex-wrap:wrap;gap:0 22px}
  & .ai-browse a{display:inline-flex;align-items:center;min-height:40px;background:linear-gradient(transparent 82%,var(--green-bright) 82% 94%,transparent 94%) 0 0 / 0 100% no-repeat;font-size:16px;line-height:1.3;font-weight:680;letter-spacing:-.01em;color:var(--ink);text-decoration:none;transition:background-size .28s ease,color .15s}
  & .ai-browse a:hover,& .ai-browse a:focus-visible{background-size:100% 100%;color:var(--blue-deep)}

  /* ---------- Slanted photographs: "/" edge + green and blue stripes hugging it ---------- */
  & .ai-photo{position:relative;isolation:isolate}
  & .ai-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 50%);clip-path:polygon(var(--ai-slash) 0,100% 0,100% 100%,0 100%)}
  & .ai-photo::before,& .ai-photo::after{content:"";position:absolute;top:0;bottom:0;z-index:-1;pointer-events:none}
  & .ai-photo::before{left:calc(var(--ai-s) * -1);width:calc(var(--ai-slash) + var(--ai-s) + 1px);background:var(--green-bright);clip-path:polygon(var(--ai-slash) 0,calc(var(--ai-slash) + var(--ai-s) + 1px) 0,calc(var(--ai-s) + 1px) 100%,0 100%)}
  & .ai-photo::after{left:calc((var(--ai-s) * 2 + var(--ai-g)) * -1);width:calc(var(--ai-slash) + var(--ai-s));background:var(--blue-bright);clip-path:polygon(var(--ai-slash) 0,calc(var(--ai-slash) + var(--ai-s)) 0,var(--ai-s) 100%,0 100%)}
  /* Photos on the left bleed off the page edge; the slanted edge is on the right and the stripes follow it. */
  & .ai-photo.is-left img{clip-path:polygon(0 0,100% 0,calc(100% - var(--ai-slash)) 100%,0 100%)}
  & .ai-photo.is-left::before{left:calc(100% - var(--ai-slash) - 1px)}
  & .ai-photo.is-left::after{left:calc(100% - var(--ai-slash) + var(--ai-s) + var(--ai-g))}
  & .ai-photo--racks{--pos:30% 50%}
  & .ai-photo--event{--pos:48% 50%}
  & .ai-photo--bench{--pos:50% 45%}

  /* ---------- Planes and ribbons: pale areas cut on the same "/" diagonal, with the two-tone ribbon above the edge ---------- */
  & .ai-plane::before{content:"";position:absolute;inset:-2px 0 0;z-index:-1;background:var(--plane-bg,var(--paper));clip-path:polygon(0 var(--ai-cut),100% 0,100% calc(100% - var(--ai-rise)),0 100%)}
  & .ai-ribbon{position:absolute;z-index:-1;left:0;right:0;top:calc((var(--ai-s) * 2 + var(--ai-g)) * -1);height:calc(var(--ai-rise) + var(--ai-s) * 2 + var(--ai-g));pointer-events:none}
  & .ai-ribbon::before,& .ai-ribbon::after{content:"";position:absolute;inset:0}
  & .ai-ribbon::before{background:var(--green-bright);clip-path:polygon(0 var(--ai-rise),100% 0,100% var(--ai-s),0 calc(var(--ai-rise) + var(--ai-s)))}
  & .ai-ribbon::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--ai-rise) + var(--ai-s) + var(--ai-g)),100% calc(var(--ai-s) + var(--ai-g)),100% calc(var(--ai-s) * 2 + var(--ai-g)),0 calc(var(--ai-rise) + var(--ai-s) * 2 + var(--ai-g)))}

  /* ---------- Equipment index: the heading and the search side by side, then the eight lists as ruled typography ---------- */
  & .ai-index{padding:clamp(26px,2.6vw,40px) 0 calc(var(--ai-rise) + clamp(36px,4vw,64px))}
  /* The hero's seam is this plane's ribbon on desktop; phones need their own. */
  & .ai-index .ai-ribbon{display:none}
  & .ai-index-head{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--ai-col);align-items:end;margin:0 var(--ai-edge) clamp(26px,2.8vw,40px)}
  & .ai-index-head h2{font-size:clamp(30px,3.9vw,58px);line-height:1.02;letter-spacing:-.048em}

  /* Search: only present once accepted.js has run. */
  & .ai-find-top{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:8px}
  & .ai-found{font-size:14px;line-height:1.3;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;text-align:right}
  & .ai-field{position:relative}
  & .ai-field input{display:block;width:100%;min-height:56px;padding:0 150px 0 18px;border:1px solid #b9c8d3;border-radius:2px;background:#fff;font:inherit;font-size:17px;line-height:1.3;font-weight:600;color:var(--ink);appearance:none;-webkit-appearance:none;transition:border-color .15s}
  & .ai-field input::placeholder{color:#5d6f7b;font-weight:500}
  & .ai-field input::-webkit-search-cancel-button,& .ai-field input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
  & .ai-field input:hover,& .ai-field input:focus{border-color:var(--blue)}
  & .ai-clear{position:absolute;top:50%;right:4px;transform:translateY(-50%);min-height:44px;padding:0 14px;background:none;border:0;font:inherit;font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);text-decoration:underline;text-decoration-color:var(--green-bright);text-decoration-thickness:2px;text-underline-offset:5px;cursor:pointer}
  & .ai-clear:hover{color:var(--blue-deep);text-decoration-color:var(--blue-bright)}

  /* Results note: only shown for a search that has related questions or no category. Blue bar = a note, not an error. */
  & .ai-results{margin:0 var(--ai-edge) clamp(26px,2.8vw,40px);padding:4px 0 4px clamp(16px,1.8vw,24px);border-left:5px solid var(--green-bright)}
  & .ai-results.is-none{border-left-color:var(--blue-bright)}
  & .ai-note{font-size:clamp(19px,1.6vw,23px);line-height:1.3;font-weight:780;letter-spacing:-.02em;color:var(--ink);overflow-wrap:anywhere}
  & .ai-related{margin-top:14px}
  & .ai-note:not([hidden])+.ai-related{margin-top:18px}
  & .ai-related .ai-label{margin-bottom:2px}
  & .ai-related a{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:clamp(16.5px,1.3vw,19px);line-height:1.35;font-weight:700;letter-spacing:-.01em;color:var(--blue);text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color .2s}
  & .ai-related a::after{content:"↓";content:"↓" / "";flex:none;font-weight:500;transition:transform .2s}
  & .ai-related a:hover{color:var(--blue-deep);text-decoration-color:var(--green-bright)}
  & .ai-related a:hover::after{transform:translateY(2px)}
  & .ai-next{max-width:44em;margin-top:12px;font-size:16px;line-height:1.6;color:var(--text)}

  /* The index: four ruled columns. Each category is a heavy rule, the heading and its lines, which keep the
     source markup (a single paragraph with line breaks, or one paragraph per line) and only gain a green edge. */
  & .equipment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:clamp(24px,3vw,48px);margin:0 var(--ai-edge)}
  & .equipment-card{min-width:0;padding:clamp(18px,1.8vw,26px) 0 clamp(30px,3.2vw,46px);border-top:2px solid var(--ink);transition:border-color .25s}
  /* After a Browse link, the category it landed on shows a green rule. */
  & .equipment-card:has(h3:target){border-top-color:var(--green-bright)}
  & .equipment-card h3{margin-bottom:clamp(10px,1.1vw,16px);font-size:clamp(24px,2.2vw,32px);line-height:1.04;letter-spacing:-.045em;scroll-margin-top:12px}
  /* Headings in the first row reserve two lines so the four lists start on one line. */
  & .equipment-card:nth-child(-n+4) h3{min-height:2.08em}
  & .equipment-card p{padding-left:16px;border-left:3px solid var(--green-bright);font-size:clamp(17px,1.25vw,18.5px);line-height:1.8;font-weight:520;color:#1c2a33}
  /* The photograph takes the lower right of the grid, bleeding to the page edge, beside Racks & Misc and Servers. */
  & .ai-index-photo{grid-column:3 / span 2;grid-row:2 / span 2;min-height:clamp(260px,26vw,420px);margin:0 calc(var(--ai-edge) * -1) clamp(30px,3.2vw,46px) 0}
  /* While a search is active the photograph steps aside and the matches reflow in the first columns. */
  & .equipment-grid.is-filtering .ai-index-photo{display:none}
  & .equipment-grid.is-filtering .equipment-card h3{min-height:0}

  /* ---------- Donation copy: the heading across the top, a photograph left of the three paragraphs, the four actions as a row beneath ---------- */
  & .ai-give{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);grid-template-areas:"head head" "photo copy" "acts acts";column-gap:var(--ai-col);row-gap:clamp(24px,3vw,44px);align-items:center;padding:clamp(28px,3.4vw,56px) 0 var(--ai-pad)}
  & .ai-give h2{grid-area:head;max-width:22em;margin:0 var(--ai-edge);font-size:clamp(28px,3.4vw,50px);line-height:1.04;letter-spacing:-.045em}
  & .ai-give .ai-photo{grid-area:photo;align-self:stretch;min-height:clamp(320px,36vw,580px)}
  & .ai-give-copy{grid-area:copy;min-width:0;padding-right:var(--ai-edge)}
  & .ai-give-copy p{max-width:36em;font-size:clamp(16px,1.2vw,18px);line-height:1.75}
  & .ai-give-copy p+p{margin-top:1.05em}
  /* The first of the three paragraphs leads. */
  & .ai-give-copy p:first-of-type{font-size:clamp(17px,1.4vw,20px);line-height:1.7;color:var(--ink)}
  /* The four actions: two solid (green = act, blue = find), two outlined. */
  & .ai-actions{grid-area:acts;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 var(--ai-edge)}
  & .ai-actions a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:0 20px 0 24px;border:2px solid var(--ink);border-radius:2px;background:#fff;color:var(--ink);font-size:17px;line-height:1.2;font-weight:760;letter-spacing:-.01em;text-decoration:none;transition:background-color .18s,border-color .18s,color .18s}
  & .ai-actions a::after{content:"↗";content:"↗" / "";flex:none;font-size:1.15em;font-weight:500;line-height:1;transition:transform .18s}
  & .ai-actions a:hover{background:var(--ink);color:#fff}
  & .ai-actions a:hover::after{transform:translate(2px,-2px)}
  & .ai-actions a:first-child{border-color:var(--green-bright);background:var(--green-bright)}
  & .ai-actions a:first-child:hover{border-color:var(--green-hover);background:var(--green-hover);color:var(--ink)}
  & .ai-actions a:nth-child(2){border-color:var(--blue-deep);background:var(--blue-deep);color:#fff}
  & .ai-actions a:nth-child(2):hover{border-color:var(--blue);background:var(--blue)}

  /* ---------- Briefing: warehouse panorama on a slanted edge; the three information sections sit side by side on a tray lifted over its base ---------- */
  & .ai-brief{padding-bottom:clamp(12px,2.4vw,40px)}
  & .ai-panorama img{width:100%;height:auto;max-height:640px;aspect-ratio:21/8;object-fit:cover;object-position:50% 62%;clip-path:polygon(0 var(--ai-rise),100% 0,100% 100%,0 100%)}
  & .ai-tray{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(44px,5.6vw,88px);margin:calc(clamp(44px,5.4vw,84px) * -1) var(--ai-edge-wide) 0;padding:clamp(34px,3.8vw,60px) clamp(24px,3.6vw,56px) clamp(34px,3.8vw,56px);background:#fff;box-shadow:0 30px 60px -34px rgba(13,26,34,.4)}
  & .ai-tray::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:linear-gradient(90deg,var(--green-bright) 0 30%,var(--blue-bright) 30% 52%,var(--line) 52%)}
  & .ai-tray>section{position:relative;min-width:0}
  /* A hairline in the middle of each gap, so the three text columns stay the same width. */
  & .ai-tray>section+section::before{content:"";position:absolute;top:0;bottom:0;left:calc(clamp(44px,5.6vw,88px) / -2);width:1px;background:var(--line)}
  & .ai-tray h2{margin-bottom:clamp(16px,1.6vw,24px);font-size:clamp(24px,2.35vw,35px);line-height:1.08;letter-spacing:-.042em}
  & .ai-tray p{max-width:38em;font-size:clamp(16px,1.12vw,17px);line-height:1.78}

  /* ---------- FAQ: heading and a photograph left (sticky), the native disclosure list right ---------- */
  & #accepted-faq{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(28px,6vw,96px);align-items:start;padding:var(--ai-pad) var(--ai-edge)}
  & .ai-faq-side{grid-column:1;grid-row:1 / span 10;position:sticky;top:calc(var(--header-h,72px) + 32px);display:grid;gap:clamp(22px,2.4vw,34px)}
  & .ai-faq-side h2{font-size:clamp(32px,3.9vw,60px);line-height:1;letter-spacing:-.048em}
  & .ai-faq-photo{--ai-slash:clamp(24px,2.6vw,36px);--ai-s:clamp(4px,.5vw,7px);--ai-g:3px;aspect-ratio:4/3;width:min(100%,420px)}
  & #accepted-faq>details{grid-column:2;border-bottom:1px solid var(--line);scroll-margin-top:12px}
  & #accepted-faq>details:first-of-type{border-top:2px solid var(--ink)}
  & .accepted-faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;cursor:pointer;list-style:none}
  & .accepted-faq-item summary::-webkit-details-marker{display:none}
  & .accepted-faq-item summary h3{min-width:0;font-size:clamp(17px,1.5vw,20px);line-height:1.32;font-weight:680;letter-spacing:-.02em;text-wrap:pretty;transition:color .15s}
  & .accepted-faq-item summary::after{content:"";flex:none;width:34px;height:34px;border:1px solid var(--line);border-radius:2px;color:var(--blue);background:linear-gradient(currentColor,currentColor) 50% 50% / 14px 2px no-repeat,linear-gradient(currentColor,currentColor) 50% 50% / 2px 14px no-repeat;transition:background-color .2s,border-color .2s}
  & .accepted-faq-item[open] summary::after{border-color:var(--blue);background:linear-gradient(#fff,#fff) 50% 50% / 14px 2px no-repeat var(--blue)}
  & .accepted-faq-item summary:hover h3,& .accepted-faq-item[open] summary h3{color:var(--blue)}
  & .accepted-faq-item>div{padding:0 54px 26px 0}
  & .accepted-faq-item[open]>div{animation:ai-open .28s ease-out both}
  & .accepted-faq-item>div p{max-width:44em;font-size:16px;line-height:1.75}

  /* ---------- Close: the page ends on the same "/" seam, handing over to the pale footer ---------- */
  & .ai-close{position:relative;display:block;height:calc(var(--ai-rise) + var(--ai-s) * 2 + var(--ai-g));pointer-events:none}
  & .ai-close::before,& .ai-close::after{content:"";position:absolute;inset:0}
  & .ai-close::before{background:var(--green-bright);clip-path:polygon(0 var(--ai-rise),100% 0,100% var(--ai-s),0 calc(var(--ai-rise) + var(--ai-s)))}
  & .ai-close::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--ai-rise) + var(--ai-s) + var(--ai-g)),100% calc(var(--ai-s) + var(--ai-g)),100% calc(var(--ai-s) * 2 + var(--ai-g)),0 calc(var(--ai-rise) + var(--ai-s) * 2 + var(--ai-g)))}
  & .ai-close i{position:absolute;inset:0;background:var(--paper);clip-path:polygon(0 100%,100% calc(var(--ai-s) * 2 + var(--ai-g)),100% 100%)}
}

/* Matched words while searching (CSS Custom Highlight API; browsers without it simply show no highlight). */
[data-section-design="accepted-items"] ::highlight(ai-hit){background-color:#d8efc0;color:#0d1a22}

/* ---------- Narrow desktop and tablet: the briefing reads in rows once three columns would drop below about 38 characters ---------- */
@media (max-width:1279px){
  [data-section-design="accepted-items"]{
    & .ai-tray{grid-template-columns:minmax(0,1fr)}
    & .ai-tray>section{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(24px,4vw,56px);align-items:start;padding:clamp(24px,3vw,36px) 0}
    & .ai-tray>section+section{border-top:1px solid var(--line)}
    & .ai-tray>section+section::before{display:none}
    & .ai-tray>section:first-child{padding-top:0}
    & .ai-tray>section:last-child{padding-bottom:0}
  }
}
/* ---------- Tablet landscape: two columns in the index, the actions two across, the photograph a band ---------- */
@media (max-width:1099px){
  [data-section-design="accepted-items"]{
    & .equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    & .equipment-card h3{font-size:clamp(26px,3.4vw,36px)}
    & .equipment-card:nth-child(-n+4) h3{min-height:0}
    & .equipment-card p{font-size:17.5px}
    & .ai-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
    /* The photograph becomes a full-width band after the eight lists, cut on a shallow "/" at its foot. */
    & .ai-index-photo{order:1;grid-column:1 / -1;grid-row:auto;align-self:start;min-height:0;aspect-ratio:21/9;margin:clamp(6px,2vw,22px) calc(var(--ai-edge) * -1) clamp(8px,2vw,20px)}
    & .ai-index-photo img{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--ai-slash)),0 100%)}
    & .ai-index-photo::before,& .ai-index-photo::after{display:none}
  }
}

/* ---------- Tablet and phone: the photograph leads, one column, photographs cut on a shallow "/" at the foot ---------- */
@media (max-width:960px){
  [data-section-design="accepted-items"]{
    --ai-rise:7vw;--ai-slash:clamp(22px,6.5vw,44px);--ai-hr:clamp(22px,6vw,44px);--ai-k:0;--ai-hslash:0px;--ai-cut:var(--ai-rise);

    /* Hero: the photograph takes the full width and keeps the striped foot; the copy follows on white. */
    & .ai-hero{z-index:auto;display:block;min-height:0;padding:0}
    & .ai-hero-visual{position:relative;inset:auto;aspect-ratio:16/10}
    & .ai-hero-visual::after{display:none}
    & .ai-hero-photo img{object-position:30% 40%}
    & .ai-hero-copy{width:auto;padding:clamp(24px,5vw,38px) var(--ai-gutter) clamp(36px,6vw,56px)}
    & .ai-hero h1{font-size:clamp(34px,9.4vw,60px)}

    /* Index: no hero seam to borrow, so the plane gets its own ribbon. */
    & .ai-index{padding-top:calc(var(--ai-rise) + clamp(22px,4vw,34px));padding-bottom:calc(var(--ai-rise) + clamp(28px,5vw,44px))}
    & .ai-index .ai-ribbon{display:block}
    & .ai-index-head{grid-template-columns:minmax(0,1fr);row-gap:24px;align-items:start}
    & .ai-index-head h2{font-size:clamp(30px,5.4vw,46px)}
    & .ai-give h2{font-size:clamp(28px,5vw,42px)}
    & .ai-faq-side h2{font-size:clamp(32px,6vw,46px)}

    & .ai-photo img,& .ai-photo.is-left img{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--ai-slash)),0 100%)}
    & .ai-photo::before,& .ai-photo::after{display:none}
    & .ai-give{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "photo" "copy" "acts";row-gap:28px}
    & .ai-give .ai-photo{min-height:0;aspect-ratio:4/3;align-self:start}
    & .ai-give-copy{padding:0 var(--ai-gutter)}

    & .ai-panorama img{aspect-ratio:4/3;object-position:30% 50%}
    & .ai-tray{margin-inline:var(--ai-gutter)}

    & #accepted-faq{grid-template-columns:minmax(0,1fr);padding-inline:var(--ai-gutter)}
    & .ai-faq-side{grid-column:1;grid-row:auto;position:static;margin-bottom:clamp(22px,4vw,30px)}
    & #accepted-faq>details{grid-column:1}
    & .accepted-faq-item>div{padding-right:0}
  }
}
@media (max-width:720px){
  [data-section-design="accepted-items"]{
    & .ai-tray>section{grid-template-columns:minmax(0,1fr);row-gap:14px}
    & .ai-tray h2{margin-bottom:0;font-size:clamp(24px,4.6vw,32px)}
  }
}
@media (max-width:640px){
  [data-section-design="accepted-items"]{
    & .ai-index-photo{aspect-ratio:16/9}
    & .ai-btn{width:100%}
    & .ai-browse ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
    & .ai-field input{padding-right:132px}
    & .equipment-grid{grid-template-columns:minmax(0,1fr)}
    & .ai-actions{grid-template-columns:minmax(0,1fr)}
    & .ai-tray{padding-inline:clamp(20px,5vw,32px)}
    & .accepted-faq-item summary{gap:14px;padding:18px 0}
  }
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-section-design="accepted-items"] *,[data-section-design="accepted-items"] *::before,[data-section-design="accepted-items"] *::after{transition:none!important;animation:none!important}
}

/* Review toolbar: keep all review controls visible on phones. */
@media(max-width:640px){.review-bar .review-id>a{display:none}.review-bar .review-id{font-size:10px}.review-bar{gap:10px}}
