/* ERA Canada · Apply for Donations — independent interior page (Sonnet 5.5).
   Rooted in [data-section-design="apply-donations"]. The homepage @scope stops at that attribute, so this
   file carries its own resets and tokens; the approved header and footer are not touched.
   Same geometry as the other Sonnet interiors: every seam, plane and photo edge leans "/" (rises to the right),
   edged by a green and a blue stripe. Light page, dark Inter type. Composed for a recipient with one job: find
   out who may apply, see what the equipment is and costs, and apply.
   Order is the source order. A headline with its way in, then one wide photograph; who may apply beside a photo
   that bleeds off the left edge; the three tables on a tray lifted over a classroom panorama (all visible, no
   tabs); the existing application iframe on a pale plane beside a sticky rail; the ten FAQs beside a photo that
   bleeds off the right edge. Everything is native HTML (links, tables, details) and nothing here needs script;
   application.js alone sizes the frame. */

@keyframes ad-settle{from{transform:scale(1.05)}to{transform:scale(1)}}
@keyframes ad-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

[data-section-design="apply-donations"]{
  --ink:#0d1a22;--text:#32424d;--muted:#566772;--line:#d5dee5;--paper:#f2f6f9;
  --blue:#0d5a92;--blue-deep:#0a3f69;--blue-bright:#1b8bd0;--blue-tint:#e4f0f8;
  --green:#2c7a1c;--green-bright:#7cc242;--green-hover:#69ad2f;
  --ad-gutter:clamp(20px,4.2vw,64px);
  --ad-edge:max(var(--ad-gutter),calc((100vw - 1240px) / 2));
  --ad-edge-wide:max(var(--ad-gutter),calc((100vw - 1520px) / 2));   /* lines the hero and the tray up with the header logo */
  --ad-rise:5vw;                          /* height every plane seam gains across the full width: slope .05 */
  --ad-slash:clamp(40px,5.6vw,92px);      /* sideways run of a slanted photo edge */
  --ad-s:clamp(6px,.8vw,12px);            /* stripe thickness */
  --ad-g:clamp(3px,.42vw,6px);            /* white gap between the two stripes */
  --ad-pad:clamp(44px,5.4vw,88px);
  --ad-col:clamp(28px,4.4vw,72px);
  --ad-hr:clamp(30px,4vw,76px);           /* rise of the seam that closes the hero */
  --ad-hs:calc(var(--ad-hr) + var(--ad-s) * 2 + var(--ad-g));
  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}
  & [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}
  & .ad-block{position:relative;isolation:isolate}
  /* Section label: two-tone right triangle + small caps, as on the homepage. */
  & .ad-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)}
  & .ad-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%)}
  & .ad-label{font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}

  /* ---------- Hero: the headline and the way in on white; one wide photograph under it, its foot cut on "/" ---------- */
  & .ad-hero-head{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"kick side" "title side";column-gap:var(--ad-col);align-items:end;padding:clamp(34px,3.6vw,56px) var(--ad-edge-wide) clamp(30px,3.4vw,52px)}
  & .ad-hero-head>.ad-kicker{grid-area:kick}
  & .ad-hero h1{grid-area:title;margin-top:clamp(14px,1.5vw,22px);font-size:clamp(44px,6.8vw,108px);line-height:.94;letter-spacing:-.034em}
  & .ad-hero-side{grid-area:side;display:grid;justify-items:start;gap:clamp(18px,2vw,28px);padding-bottom:.5em}
  /* The subtitle paragraph, set as a lead line with the green underline used across the concepts. */
  & .ad-hero-side>p{padding:0 .06em;background:linear-gradient(transparent 80%,var(--green-bright) 80% 94%,transparent 94%);font-size:clamp(22px,2.3vw,34px);line-height:1.2;font-weight:780;letter-spacing:-.03em;color:var(--ink)}
  & .ad-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}
  & .ad-btn::after{content:"↓";content:"↓" / "";flex:none;font-size:20px;font-weight:600;line-height:1;transition:transform .2s}
  & .ad-btn:hover{background:var(--green-hover);border-color:var(--green-hover)}
  & .ad-btn:hover::after{transform:translateY(3px)}
  /* On this page: three plain links to the existing sections. */
  & .ad-jump .ad-label{display:block;margin-bottom:2px}
  & .ad-jump ul{display:flex;flex-wrap:wrap;gap:0 22px}
  & .ad-jump 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}
  & .ad-jump a:hover,& .ad-jump a:focus-visible{background-size:100% 100%;color:var(--blue-deep)}

  /* The photograph spans the page. Its foot follows the line of the green stripe exactly (same slope, same offsets),
     so the stripes read as its edge. The clip sits on the figure and the image settles inside it, so the foot never moves. */
  & .ad-hero-visual{position:relative;isolation:isolate;height:clamp(420px,45vw,760px)}
  & .ad-hero-photo{position:absolute;inset:0;overflow:hidden;clip-path:polygon(0 0,100% 0,100% calc(100% - var(--ad-hs)),0 calc(100% - var(--ad-hs) + var(--ad-hr)))}
  /* The children sit centre-right in the frame; the crop keeps their faces and the tops of the laptops. */
  & .ad-hero-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 30%;transform-origin:60% 40%;animation:ad-settle 1.8s cubic-bezier(.2,.7,.2,1) both}
  & .ad-seam{position:absolute;z-index:3;left:0;right:0;bottom:0;height:var(--ad-hs);pointer-events:none}
  & .ad-seam::before,& .ad-seam::after{content:"";position:absolute;inset:0}
  & .ad-seam::before{background:var(--green-bright);clip-path:polygon(0 var(--ad-hr),100% 0,100% var(--ad-s),0 calc(var(--ad-hr) + var(--ad-s)))}
  & .ad-seam::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--ad-hr) + var(--ad-s) + var(--ad-g)),100% calc(var(--ad-s) + var(--ad-g)),100% calc(var(--ad-s) * 2 + var(--ad-g)),0 calc(var(--ad-hr) + var(--ad-s) * 2 + var(--ad-g)))}

  /* ---------- Slanted photographs: "/" edge + green and blue stripes hugging it ---------- */
  & .ad-photo{position:relative;isolation:isolate}
  & .ad-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 50%);clip-path:polygon(var(--ad-slash) 0,100% 0,100% 100%,0 100%)}
  & .ad-photo::before,& .ad-photo::after{content:"";position:absolute;top:0;bottom:0;z-index:-1;pointer-events:none}
  & .ad-photo::before{left:calc(var(--ad-s) * -1);width:calc(var(--ad-slash) + var(--ad-s) + 1px);background:var(--green-bright);clip-path:polygon(var(--ad-slash) 0,calc(var(--ad-slash) + var(--ad-s) + 1px) 0,calc(var(--ad-s) + 1px) 100%,0 100%)}
  & .ad-photo::after{left:calc((var(--ad-s) * 2 + var(--ad-g)) * -1);width:calc(var(--ad-slash) + var(--ad-s));background:var(--blue-bright);clip-path:polygon(var(--ad-slash) 0,calc(var(--ad-slash) + var(--ad-s)) 0,var(--ad-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. */
  & .ad-photo.is-left img{clip-path:polygon(0 0,100% 0,calc(100% - var(--ad-slash)) 100%,0 100%)}
  & .ad-photo.is-left::before{left:calc(100% - var(--ad-slash) - 1px)}
  & .ad-photo.is-left::after{left:calc(100% - var(--ad-slash) + var(--ad-s) + var(--ad-g))}
  /* Four people stand left of centre with laptops on the table: the crop keeps all four clear of the slanted edge. */
  & .ad-photo--handover{--pos:44% 40%}
  & .ad-photo--delivery{--pos:50% 50%}
  & .ad-photo--care{--pos:50% 24%}

  /* ---------- Planes and ribbons: pale areas cut on the same "/" diagonal, with the two-tone ribbon above the edge ---------- */
  & .ad-plane::before{content:"";position:absolute;inset:-2px 0 0;z-index:-1;background:var(--plane-bg,var(--paper));clip-path:polygon(0 var(--ad-rise),100% 0,100% calc(100% - var(--ad-rise)),0 100%)}
  & .ad-ribbon{position:absolute;z-index:-1;left:0;right:0;top:calc((var(--ad-s) * 2 + var(--ad-g)) * -1);height:calc(var(--ad-rise) + var(--ad-s) * 2 + var(--ad-g));pointer-events:none}
  & .ad-ribbon::before,& .ad-ribbon::after{content:"";position:absolute;inset:0}
  & .ad-ribbon::before{background:var(--green-bright);clip-path:polygon(0 var(--ad-rise),100% 0,100% var(--ad-s),0 calc(var(--ad-rise) + var(--ad-s)))}
  & .ad-ribbon::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--ad-rise) + var(--ad-s) + var(--ad-g)),100% calc(var(--ad-s) + var(--ad-g)),100% calc(var(--ad-s) * 2 + var(--ad-g)),0 calc(var(--ad-rise) + var(--ad-s) * 2 + var(--ad-g)))}

  /* ---------- Who may apply: the photograph bleeds off the left edge; the paragraph, the four organisations and the note read in order ---------- */
  & .ad-elig{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);column-gap:var(--ad-col);align-items:center;padding:var(--ad-pad) 0}
  & .ad-elig .ad-photo{align-self:stretch;min-height:clamp(420px,44vw,700px)}
  & .ad-copy{min-width:0;padding-right:var(--ad-edge)}
  & .ad-copy>.ad-kicker{margin-bottom:clamp(14px,1.5vw,22px)}
  /* The paragraph leads. */
  & .ad-copy>p:first-of-type{max-width:34em;font-size:clamp(17px,1.4vw,20px);line-height:1.7;color:var(--ink)}
  /* The four organisations: one heavy rule, then the source list as bold type on hairlines, each with a green edge. */
  & .ad-copy ul{margin:clamp(22px,2.4vw,34px) 0 clamp(22px,2.4vw,32px);border-top:2px solid var(--ink)}
  & .ad-copy li{padding:clamp(14px,1.4vw,19px) 0 clamp(14px,1.4vw,19px) clamp(16px,1.6vw,22px);border-bottom:1px solid var(--line);box-shadow:inset 4px 0 0 var(--green-bright);font-size:clamp(19px,1.75vw,25px);line-height:1.22;font-weight:760;letter-spacing:-.028em;color:var(--ink)}
  /* The note: the one tinted block in this section. The source italic starts mid-word ("N" + "ot sure"), so it is set upright. */
  & .ad-copy>p:last-of-type{max-width:34em;padding:16px 20px 16px 22px;border-left:5px solid var(--blue-bright);background:var(--blue-tint);font-size:clamp(16px,1.2vw,18px);line-height:1.6;color:var(--ink)}
  & .ad-copy>p:last-of-type em{font-style:normal}
  & .ad-copy>p:last-of-type strong{font-weight:760}
  & .ad-copy>p:last-of-type a{color:var(--blue);font-weight:700;text-decoration:underline;text-decoration-color:var(--green-bright);text-decoration-thickness:2px;text-underline-offset:4px}
  & .ad-copy>p:last-of-type a:hover{color:var(--blue-deep);text-decoration-color:var(--blue-bright)}

  /* ---------- Equipment options: a classroom panorama on a slanted edge; the three tables sit side by side on a tray lifted over its base ---------- */
  & .ad-equip{padding-bottom:calc(var(--ad-pad) * .8)}
  & .ad-panorama img{width:100%;height:auto;max-height:640px;aspect-ratio:21/8;object-fit:cover;object-position:50% 55%;clip-path:polygon(0 var(--ad-rise),100% 0,100% 100%,0 100%)}
  & .ad-tray{position:relative;z-index:1;margin:calc(clamp(44px,5.4vw,84px) * -1) var(--ad-edge-wide) 0;padding:clamp(34px,3.8vw,56px) clamp(24px,3.6vw,56px) clamp(36px,4vw,60px);background:#fff;box-shadow:0 30px 60px -34px rgba(13,26,34,.4)}
  & .ad-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%)}
  & .ad-equip-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr);column-gap:clamp(32px,4.4vw,72px);margin-top:clamp(20px,2.2vw,32px)}
  & .spec-panel{min-width:0}
  & .spec-panel h2{margin-bottom:clamp(14px,1.5vw,22px);font-size:clamp(24px,2.35vw,34px);line-height:1.08;letter-spacing:-.042em}
  /* The tables: real tables, set as typography. Heavy rule under the header, hairlines between rows. */
  & .spec-panel table{width:100%;border-collapse:collapse;font-size:clamp(15.5px,1.15vw,17px);line-height:1.4;color:#1c2a33;font-variant-numeric:tabular-nums}
  & .spec-panel th,& .spec-panel td{padding:13px 12px 13px 0;text-align:left;vertical-align:top;overflow-wrap:anywhere}
  & .spec-panel th:last-child,& .spec-panel td:last-child{padding-right:0}
  & .spec-panel thead th{position:relative;padding-top:14px;padding-bottom:10px;border-bottom:2px solid var(--ink);vertical-align:bottom;font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
  & .spec-panel tbody td{border-bottom:1px solid var(--line)}
  & .spec-panel tbody td:first-child{font-weight:700;color:var(--ink)}
  /* Spec tables: the Standard column carries a green tick and the High-end column a blue one, as the price colours below. */
  & #tablepress-3 thead th:nth-child(n+2)::before,& #tablepress-4 thead th:nth-child(n+2)::before{content:"";position:absolute;left:0;top:0;width:26px;height:4px;background:var(--green-bright)}
  & #tablepress-3 thead th:nth-child(3)::before,& #tablepress-4 thead th:nth-child(3)::before{background:var(--blue-bright)}
  & #tablepress-3 thead th:nth-child(n+2),& #tablepress-4 thead th:nth-child(n+2){padding-top:18px}
  /* Fees: the price leads. "No Charge" rows are green, the $150.00 rows blue. */
  & #tablepress-5 tbody td:nth-child(2){font-size:1.28em;line-height:1.2;font-weight:800;letter-spacing:-.02em}
  & #tablepress-5 tbody tr:nth-child(odd) td:nth-child(2){color:var(--green)}
  & #tablepress-5 tbody tr:nth-child(even) td:nth-child(2){color:var(--blue)}
  & #tablepress-5 tbody td:nth-child(3){font-weight:560}

  /* ---------- Application: the existing form, unchanged, in a white sheet on a pale plane; the heading and the direct link wait in a sticky rail ---------- */
  & .ad-apply{padding:calc(var(--ad-rise) + clamp(28px,3.4vw,52px)) 0 calc(var(--ad-rise) + clamp(36px,4.4vw,68px))}
  & .ad-apply-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:var(--ad-col);align-items:start;margin:0 var(--ad-edge)}
  & .ad-apply-rail{position:sticky;top:calc(var(--header-h,72px) + 28px);min-width:0}
  & .ad-apply-rail h2{font-size:clamp(34px,3.9vw,58px);line-height:1;letter-spacing:-.048em}
  & .application-direct{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;margin-top:clamp(18px,2vw,28px);padding:0 20px 0 22px;border:2px solid var(--ink);border-radius:2px;background:#fff;color:var(--ink);font-size:16px;line-height:1.25;font-weight:760;letter-spacing:-.01em;text-decoration:none;transition:background-color .18s,color .18s}
  & .application-direct span{flex:none;font-size:1.2em;font-weight:500;line-height:1;transition:transform .18s}
  & .application-direct:hover{background:var(--ink);color:#fff}
  & .application-direct:hover span{transform:translate(2px,-2px)}
  & .ad-apply-rail .ad-photo{--ad-slash:clamp(24px,2.6vw,36px);--ad-s:clamp(4px,.5vw,7px);--ad-g:3px;aspect-ratio:4/3;margin-top:clamp(22px,2.4vw,34px)}
  /* The sheet takes whatever height the form reports (application.js); the fallback is the iframe's own height attribute. */
  & .ad-apply-frame{position:relative;min-width:0;background:#fff;box-shadow:0 36px 70px -40px rgba(13,26,34,.5)}
  & .ad-apply-frame::before{content:"";display:block;height:6px;background:linear-gradient(90deg,var(--green-bright) 0 30%,var(--blue-bright) 30% 52%,var(--line) 52%)}
  & iframe#application{display:block;width:100%;max-width:100%;border:0;background:#fff}

  /* ---------- FAQ: the heading and the native disclosure list left, a portrait that bleeds off the right edge (sticky) beside it ---------- */
  & .ad-faq{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--ad-col);align-items:start;padding:var(--ad-pad) var(--ad-edge)}
  & .ad-faq h2{grid-column:1;margin-bottom:clamp(22px,2.6vw,38px);font-size:clamp(32px,3.9vw,60px);line-height:1;letter-spacing:-.048em}
  & .ad-faq-photo{grid-column:2;grid-row:1 / span 11;position:sticky;top:calc(var(--header-h,72px) + 32px);align-self:start;height:clamp(420px,66vh,700px);margin-right:calc(var(--ad-edge) * -1)}
  & .ad-faq-photo{--ad-slash:clamp(24px,2.6vw,36px);--ad-s:clamp(4px,.5vw,7px);--ad-g:3px}
  & .ad-faq>details{grid-column:1;border-bottom:1px solid var(--line)}
  & .ad-faq>details:first-of-type{border-top:2px solid var(--ink)}
  & .donation-faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;cursor:pointer;list-style:none}
  & .donation-faq-item summary::-webkit-details-marker{display:none}
  & .donation-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}
  & .donation-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}
  & .donation-faq-item[open] summary::after{border-color:var(--blue);background:linear-gradient(#fff,#fff) 50% 50% / 14px 2px no-repeat var(--blue)}
  & .donation-faq-item summary:hover h3,& .donation-faq-item[open] summary h3{color:var(--blue)}
  & .donation-faq-item>div{padding:0 54px 26px 0}
  & .donation-faq-item[open]>div{animation:ad-open .28s ease-out both}
  & .donation-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 ---------- */
  & .ad-close{position:relative;display:block;height:calc(var(--ad-rise) + var(--ad-s) * 2 + var(--ad-g));pointer-events:none}
  & .ad-close::before,& .ad-close::after{content:"";position:absolute;inset:0}
  & .ad-close::before{background:var(--green-bright);clip-path:polygon(0 var(--ad-rise),100% 0,100% var(--ad-s),0 calc(var(--ad-rise) + var(--ad-s)))}
  & .ad-close::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--ad-rise) + var(--ad-s) + var(--ad-g)),100% calc(var(--ad-s) + var(--ad-g)),100% calc(var(--ad-s) * 2 + var(--ad-g)),0 calc(var(--ad-rise) + var(--ad-s) * 2 + var(--ad-g)))}
  & .ad-close i{position:absolute;inset:0;background:var(--paper);clip-path:polygon(0 100%,100% calc(var(--ad-s) * 2 + var(--ad-g)),100% 100%)}
}

/* ---------- Narrow desktop and tablet: the Fees table takes a row of its own under the two spec tables ---------- */
@media (max-width:1279px){
  [data-section-design="apply-donations"]{
    & .ad-equip-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:clamp(30px,4vw,48px)}
    & .ad-equip-grid>.spec-panel:last-child{grid-column:1 / -1}
  }
}
/* ---------- Below 1200px the application rail becomes a header row so the form gets the full width ---------- */
@media (max-width:1199px){
  [data-section-design="apply-donations"]{
    & .ad-apply-grid{grid-template-columns:minmax(0,1fr);row-gap:clamp(18px,3vw,28px)}
    & .ad-apply-rail{position:static;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 28px}
    & .ad-apply-rail h2{font-size:clamp(32px,5.4vw,46px)}
    & .application-direct{width:auto;margin-top:0}
    & .ad-apply-rail .ad-photo{display:none}
  }
}

/* ---------- Tablet and phone: one column, the copy leads, photographs cut on a shallow "/" at the foot ---------- */
@media (max-width:960px){
  [data-section-design="apply-donations"]{
    --ad-rise:7vw;--ad-slash:clamp(22px,6.5vw,44px);--ad-hr:clamp(22px,6vw,44px);

    /* Hero: the headline and the way in stack, then the photograph keeps its striped foot. */
    & .ad-hero-head{grid-template-columns:minmax(0,1fr);grid-template-areas:"kick" "title" "side";padding:clamp(26px,5vw,40px) var(--ad-gutter) clamp(26px,5vw,38px)}
    & .ad-hero h1{font-size:clamp(40px,11.4vw,84px)}
    & .ad-hero-side{margin-top:clamp(20px,4vw,30px);padding-bottom:0}
    & .ad-hero-side>p{font-size:clamp(22px,4.6vw,30px)}
    & .ad-hero-visual{height:auto;aspect-ratio:16/11}
    & .ad-hero-photo img{object-position:50% 35%}

    & .ad-photo img,& .ad-photo.is-left img{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--ad-slash)),0 100%)}
    & .ad-photo::before,& .ad-photo::after{display:none}

    /* Who may apply: the copy first, the photograph after it. */
    & .ad-elig{grid-template-columns:minmax(0,1fr);row-gap:clamp(26px,4.4vw,38px);padding-top:clamp(30px,5vw,44px)}
    & .ad-elig .ad-photo{order:2;min-height:0;aspect-ratio:4/3;align-self:start}
    & .ad-copy{padding:0 var(--ad-gutter)}

    & .ad-panorama img{aspect-ratio:16/10;object-position:50% 50%}
    & .ad-tray{margin-inline:var(--ad-gutter)}

    & .ad-faq{grid-template-columns:minmax(0,1fr);padding-inline:var(--ad-gutter)}
    & .ad-faq h2{font-size:clamp(32px,6vw,46px)}
    & .ad-faq-photo{grid-column:1;grid-row:auto;position:relative;top:auto;height:auto;aspect-ratio:4/3;margin:0 0 clamp(22px,4vw,30px)}
    & .ad-faq>details{grid-column:1}
    & .donation-faq-item>div{padding-right:0}
  }
}
@media (max-width:640px){
  [data-section-design="apply-donations"]{
    & .ad-btn{width:100%}
    & .ad-hero-visual{aspect-ratio:4/3}
    & .ad-elig .ad-photo{aspect-ratio:16/10}
    & .ad-panorama img{aspect-ratio:16/9}
    & .ad-tray{padding-inline:clamp(20px,5vw,32px)}
    & .ad-equip-grid{grid-template-columns:minmax(0,1fr)}
    & .ad-equip-grid>.spec-panel:last-child{grid-column:auto}
    /* An open form takes the full screen width; its fields and its own scrolling need the room. */
    & .ad-apply-grid{margin-inline:0}
    & .ad-apply-rail{padding-inline:var(--ad-gutter)}
    & .application-direct{width:100%}
    & .donation-faq-item summary{gap:14px;padding:18px 0}
  }
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-section-design="apply-donations"] *,[data-section-design="apply-donations"] *::before,[data-section-design="apply-donations"] *::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}}

/* Browser QA: preserve amounts as a single unit in the compact three-table tray. */
[data-section-design="apply-donations"] #tablepress-5 tbody td:nth-child(2){font-size:clamp(16px,1.2vw,19px)}
[data-section-design="apply-donations"] #tablepress-5 tbody tr:nth-child(even) td:nth-child(2){white-space:nowrap;overflow-wrap:normal}
[data-section-design="apply-donations"] #tablepress-5 thead th{overflow-wrap:normal;letter-spacing:.07em}
.application-mobile-hint{display:none}
@media(max-width:640px){.application-mobile-hint{display:block;padding:18px 20px 0;color:#566772;font-size:12px;line-height:1.6}}

@media(max-width:640px){
 [data-section-design="apply-donations"] #tablepress-5{table-layout:fixed;font-size:14px}
 [data-section-design="apply-donations"] #tablepress-5 thead th{font-size:10px;letter-spacing:.04em}
 [data-section-design="apply-donations"] #tablepress-5 th:nth-child(1){width:34%}
 [data-section-design="apply-donations"] #tablepress-5 th:nth-child(2){width:27%}
 [data-section-design="apply-donations"] #tablepress-5 th:nth-child(3){width:39%}
 [data-section-design="apply-donations"] #tablepress-5 td{padding-right:8px}
 [data-section-design="apply-donations"] #tablepress-5 td:last-child{padding-right:0}
}

/* ---------- The three equipment tables are the live TablePress tables again (2026-11-23) ----------
   The layout holds [table id=3 /], [table id=4 /] and [table id=5 /] instead of fixed copies, so a staff edit
   shows on the page. TablePress's own header colour, striping, hover and borders are switched off here. */
[data-section-design="apply-donations"] .spec-panel .tablepress{--head-bg-color:transparent;--head-text-color:inherit;--text-color:inherit;--odd-text-color:inherit;--even-text-color:inherit;--hover-text-color:inherit;--odd-bg-color:transparent;--even-bg-color:transparent;--hover-bg-color:transparent;--border-color:transparent;margin:0}
/* A live heading such as "Computers/Laptops" has no break point of its own (the fixed copy had one typed in):
   let it wrap inside its column instead of running into the next heading on a phone. */
[data-section-design="apply-donations"] .spec-panel .tablepress thead th{white-space:normal;word-break:break-word;overflow-wrap:anywhere}

/* ---------- Mid-page photographs meet the seam (2026-11-24; Tibor: "mid page seam fix, do it") ----------
   Same change as on How It Works: the handover photograph beside "Before you apply" used to end in flat edges
   with a strip of empty page between it and the seam above (the foot of the hero picture) and the seam below
   (the top of the equipment picture). It now runs into both. Nothing else moves: paddings, text and page
   height are as they were; the photograph is drawn through the section's paddings and the section is cut
   along the two lines, 2px under each stripe so no hairline of page shows. The hero is raised so that its
   stripes are painted over the photograph's top edge.
   Only from 1920px up: drawn taller, the picture is cropped at the sides, and on a narrower window that would
   cut the people at either end of the group out of it (measured: all four are in view from 1920px, the
   officer on the left is cut at 1440px). Below 1920px the section is as it was. From 1920px the picture's
   focus moves a little to the left, where the group starts. */
@media (min-width:1920px){
  [data-section-design="apply-donations"]{
    & .ad-elig .ad-photo--handover{--pos:40% 40%}
    & .ad-hero-visual{z-index:1}
    & .ad-elig{clip-path:polygon(0 -2px,100% calc(var(--ad-hr) * -1 - 2px),100% calc(100% - var(--ad-s) * 2 - var(--ad-g) + 2px),0 calc(100% + var(--ad-rise) - var(--ad-s) * 2 - var(--ad-g) + 2px))}
    & .ad-elig .ad-photo img{top:calc((var(--ad-pad) + var(--ad-hr)) * -1);height:calc(100% + var(--ad-pad) * 2 + var(--ad-hr) + var(--ad-rise))}
    & .ad-elig .ad-photo::before,& .ad-elig .ad-photo::after{top:calc((var(--ad-pad) + var(--ad-hr)) * -1);bottom:calc((var(--ad-pad) + var(--ad-rise)) * -1)}
  }
}
