/* KIAC shared stylesheet — section grammar per README "Section grammar",
   plus site nav + footer chrome (design/Site Nav.dc.html, Site Footer.dc.html).
   Tokens live in tokens.css. Page-specific styles live in per-page sheets. */

body { -webkit-font-smoothing: antialiased; }

a { color: var(--teal); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--deep-teal); }

/* Keyboard focus: one visible ring everywhere; dark surfaces switch the
   ring to light teal by setting --focus-ring on the container. */
:focus-visible { outline: 2px solid var(--focus-ring, var(--deep-teal)); outline-offset: 3px; }
.nav__topbar, .lightbox { --focus-ring: var(--light-teal); }

.site { background: var(--white); overflow-x: hidden; }

/* ---------- Animated underline (nav + footer links) ----------
   Line draws in from the first letter on hover; on unhover it exits toward
   the last letter (position swaps instantly, only background-size animates).
   Tune per component with --uline-h (thickness) and --uline-c (color);
   offset comes from the element's padding-bottom. Dropdown-panel links and
   .text-link are deliberately excluded. */
.nav__topbar-links a,
.nav__actions a:not(.nav__donate),
.nav__group-label,
.nav__acc-label,
.footer__list a,
.footer__legal-links a {
  background-image: linear-gradient(var(--uline-c, currentColor), var(--uline-c, currentColor));
  background-repeat: no-repeat;
  background-size: 0 var(--uline-h, 1px);
  background-position: 100% 100%;
  transition: background-size 280ms var(--ease-swift), color var(--t-fast) var(--ease);
}
.nav__topbar-links a:hover,
.nav__actions a:not(.nav__donate):hover,
.nav__group:hover .nav__group-label,
.nav__group.is-open .nav__group-label,
.nav__group.is-current .nav__group-label,
.nav__acc.is-open .nav__acc-label,
.footer__list a:hover,
.footer__legal-links a:hover {
  background-size: 100% var(--uline-h, 1px);
  background-position: 0 100%;
}
/* RTL runs (Dari links): first letter is on the right — mirror the draw */
.nav__topbar-links a[dir="rtl"], .footer__list a[dir="rtl"] { background-position: 0 100%; }
.nav__topbar-links a[dir="rtl"]:hover, .footer__list a[dir="rtl"]:hover { background-position: 100% 100%; }

/* ---------- Eyebrow: short colored rule + 11px uppercase label ---------- */

.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.eyebrow .rule { display: block; width: 28px; height: 2px; background: var(--teal); }
.eyebrow .label { font: 600 11px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.eyebrow--clay .rule { background: var(--clay); }
.eyebrow--clay .label { color: var(--clay); }
.eyebrow--deep .rule { background: var(--deep-teal); }
.eyebrow--deep .label { color: var(--deep-teal); }
/* on dark surfaces: teal rule, light-teal label */
.eyebrow--dark .rule { background: var(--teal); }
.eyebrow--dark .label { color: var(--light-teal); }
/* label-only variant (no rule) used above some section headlines */
.eyebrow-plain { font: 600 11px var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(41, 42, 60, .7); margin-bottom: 16px; }

/* ---------- Section header: headline left, summary right, baseline-aligned ---------- */

.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-header h2 { margin: 0; font-family: var(--font-serif); font-weight: 300; color: var(--ink); }
.section-header .summary { margin: 0; font: 400 17px/1.6 var(--font-serif); color: var(--ink); text-align: right; }

/* ---------- Text link: uppercase label on a teal underline, arrow suffix ---------- */

.text-link { display: inline-block; padding-bottom: 4px; font: 600 12px var(--font-sans); letter-spacing: .13em; text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--teal); text-decoration: none; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
/* arrow suffix is part of the component — never typed in markup (flips on RTL) */
.text-link::after { content: "→"; display: inline-block; margin-inline-start: .45em; transition: transform var(--t-med) var(--ease-swift); }
[dir="rtl"] .text-link::after { content: "←"; }
a.text-link:hover, a.text-link:focus-visible { color: var(--deep-teal); border-color: var(--deep-teal); }
a.text-link:hover::after, a.text-link:focus-visible::after { transform: translateX(2px); }
[dir="rtl"] a.text-link:hover::after, [dir="rtl"] a.text-link:focus-visible::after { transform: translateX(-2px); }
.text-link--lg { font-size: 12.5px; padding-bottom: 5px; }
.text-link--bold { font-weight: 700; }

/* ---------- Buttons ---------- */

/* Hover = subtle darken (or lighten on ink), active = one step further with a
   near-instant transition so the press feels immediate. Anchors only — static
   mockups (spans/divs) stay inert until they're wired. No transforms. */
.btn { display: inline-block; padding: 15px 30px; background: var(--deep-teal); color: #fff; font-family: var(--font-condensed); font-weight: 700; font-size: 15px; text-transform: uppercase; text-decoration: none; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
a.btn:hover { color: #fff; background-color: color-mix(in srgb, var(--deep-teal) 86%, black); }
a.btn:active { background-color: color-mix(in srgb, var(--deep-teal) 78%, black); transition-duration: 40ms; }
.btn--ink { background: var(--ink); padding: 14px 28px; }
a.btn--ink:hover { background-color: color-mix(in srgb, var(--ink) 88%, white); }
a.btn--ink:active { background-color: color-mix(in srgb, var(--ink) 80%, white); transition-duration: 40ms; }
.btn--ghost { display: inline-flex; align-items: center; gap: 11px; padding: 15px 26px; background: transparent; border: 1px solid rgba(255, 255, 255, .42); color: #fff; }
a.btn--ghost:hover { color: #fff; background-color: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .75); }
a.btn--ghost:active { background-color: rgba(255, 255, 255, .2); transition-duration: 40ms; }

/* Play triangle used inside buttons / video chips */
.play { display: block; width: 0; height: 0; border-left: 9px solid #fff; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.play--sm { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }

/* ---------- Photo block: B&W treatment + bottom gradient caption bar ---------- */

.photo { position: relative; background: var(--photo-ink); overflow: hidden; }
.photo__img { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: center; filter: var(--photo-filter); transition: filter var(--t-slow) var(--ease); }
/* documentary B&W at rest, color on hover — hero photos are excluded (own class) */
.photo:hover .photo__img { filter: grayscale(0) contrast(1.02); }
.photo__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(to top, rgba(20, 21, 30, .9), rgba(20, 21, 30, 0)); font: 500 11px var(--font-sans); letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }

/* ---------- Card: 3px top rule on paper wash ---------- */

.card { border-top: 3px solid var(--ink); background: var(--paper-alpha); }
.card--teal { border-top-color: var(--deep-teal); }
.card--clay { border-top-color: var(--clay); }
/* Hover tint (rule-colored, barely perceptible) is reserved for stat cards
   in the "Four promises" style — see .promise in home.css for the recipe.
   Content cards (pillars, paths, footer cells) get no hover. */

/* ---------- Form primitives (lifted from sponsor.css 2026-08-06 — used by
   Sponsor, Church, Veteran; Donate / Get Help next). Controls live inside a
   .ffield wrapper; chips are real toggle buttons. ---------- */

.ffield { display: grid; gap: 7px; }
.ffield--full { grid-column: 1 / -1; }
.fgroup { display: grid; gap: 10px; }
.flabel { font: 600 11px var(--font-sans); letter-spacing: .13em; text-transform: uppercase; color: rgba(41, 42, 60, .7); }
.fhelp { font: 400 14px/1.5 var(--font-serif); color: rgba(41, 42, 60, .68); }

.ffield input, .ffield select, .ffield textarea { padding: 12px 13px; border: 1px solid rgba(41, 42, 60, .3); border-radius: 0; background: #fff; font-family: var(--font-sans); font-size: 15px; color: var(--ink); transition: border-color var(--t-fast) var(--ease); }
.ffield textarea { resize: vertical; }
/* Focused inputs: border-color only, no extra ring (README) */
.ffield input:focus, .ffield select:focus, .ffield textarea:focus { outline: none; border-color: var(--deep-teal); }
.ffield ::placeholder { color: rgba(41, 42, 60, .45); opacity: 1; }

/* Chips — real toggle buttons; selected state per prototype */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid rgba(41, 42, 60, .28); border-radius: 0; background: #fff; font: 600 13px var(--font-sans); color: var(--ink); cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.chip:hover { border-color: rgba(41, 42, 60, .5); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--check { gap: 9px; padding: 10px 16px; }
/* ✓ is white-on-white until the box fills teal (prototype trick) */
.chip__box { width: 14px; height: 14px; border: 1px solid rgba(41, 42, 60, .4); display: flex; align-items: center; justify-content: center; font-size: 10px; background: #fff; color: #fff; transition: background-color var(--t-fast) var(--ease); }
.chip--check[aria-pressed="true"] { background: rgba(47, 157, 143, .14); border-color: rgba(41, 42, 60, .28); color: var(--ink); }
.chip--check[aria-pressed="true"] .chip__box { background: var(--deep-teal); }

/* Commitment check rows */
.fchecks { display: grid; gap: 12px; padding-top: 6px; border-top: 1px solid rgba(41, 42, 60, .16); }
.fcheck { display: flex; align-items: flex-start; gap: 11px; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; cursor: pointer; }
.fcheck__box { flex: none; margin-top: 2px; width: 16px; height: 16px; border: 1px solid rgba(41, 42, 60, .45); display: flex; align-items: center; justify-content: center; font-size: 11px; background: #fff; color: #fff; transition: background-color var(--t-fast) var(--ease); }
.fcheck[aria-pressed="true"] .fcheck__box { background: var(--deep-teal); }
.fcheck__text { font: 400 15px/1.45 var(--font-serif); color: var(--ink); }

/* ---------- Video lightbox: styled thumbnails open YouTube in an overlay ---------- */

/* trigger = any element with a non-empty data-video-id */
[data-video-id]:not([data-video-id=""]) { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 56px; background: rgba(20, 21, 30, .92); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 150ms var(--ease), visibility 0s linear 150ms; }
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--t-med) var(--ease), visibility 0s; }
.lightbox__frame { width: min(1080px, 100%); aspect-ratio: 16/9; background: #000; transform: scale(.97); transition: transform var(--t-med) var(--ease-swift); }
.lightbox.is-open .lightbox__frame { transform: scale(1); }
.lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; top: 22px; right: 28px; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px; cursor: pointer; font: 600 11px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); transition: color var(--t-fast) var(--ease); }
.lightbox__close:hover { color: var(--light-teal); }

/* ==================== Site nav ==================== */

.nav { position: relative; z-index: 20; background: #fff; }

.nav__topbar { background: var(--ink); padding: 7px var(--gutter); display: flex; align-items: center; justify-content: space-between; font: 600 10.5px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.nav__topbar-links { display: flex; gap: 9px; align-items: center; }
.nav__topbar-links a { color: rgba(255, 255, 255, .72); padding-bottom: 2px; margin-bottom: -2px; }
.nav__topbar-links a:hover { color: rgba(255, 255, 255, .95); }
.nav__dari, .nav__pashto { letter-spacing: 0; font-size: 13px; }

.nav__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px var(--gutter); background: #fff; }
.nav__groups { display: flex; align-items: center; gap: 26px; }
.nav__group { display: flex; align-items: center; gap: 7px; padding: 8px 0; cursor: default; }
.nav__group-label { font-family: var(--font-condensed); font-weight: 600; font-size: 15px; color: var(--ink); --uline-c: var(--deep-teal); --uline-h: 2px; padding-bottom: 3px; margin-bottom: -3px; }
.nav__group:hover .nav__group-label { color: var(--deep-teal); }
.nav__group.is-current .nav__group-label,
.nav__group.is-open .nav__group-label { color: var(--deep-teal); }
.nav__caret { transition: transform var(--t-med) var(--ease-swift); }
.nav__group.is-open .nav__caret { transform: rotate(180deg); }

.nav__logo { display: block; margin: 0 44px; }
.nav__logo img { height: 40px; width: auto; display: block; }

.nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.nav__actions a { font-family: var(--font-condensed); font-weight: 600; font-size: 15px; color: var(--ink); }
.nav__actions a:not(.nav__donate) { --uline-c: var(--deep-teal); --uline-h: 2px; padding-bottom: 3px; margin-bottom: -3px; }
.nav__actions a:hover { color: var(--deep-teal); }
.nav__actions a.nav__donate { padding: 9px 18px; background: var(--deep-teal); color: #fff; font-weight: 700; text-transform: uppercase; transition: background-color var(--t-fast) var(--ease); }
.nav__actions a.nav__donate:hover { background-color: color-mix(in srgb, var(--deep-teal) 86%, black); color: #fff; }
.nav__actions a.nav__donate:active { background-color: color-mix(in srgb, var(--deep-teal) 78%, black); transition-duration: 40ms; }

.nav__panel { position: absolute; top: 100%; left: 0; right: 0; background: #FAF9F7; border-top: 1px solid rgba(41, 42, 60, .16); box-shadow: 0 18px 30px -18px rgba(41, 42, 60, .28); padding: 26px var(--gutter) 28px; display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 36px; opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; transition: opacity 120ms var(--ease), transform 120ms var(--ease), visibility 0s linear 120ms; }
.nav__panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; transition: opacity var(--t-med) var(--ease-swift), transform var(--t-med) var(--ease-swift), visibility 0s; }
.nav__panel-item { display: block; }
.nav__panel-item .title { font-family: var(--font-condensed); font-weight: 700; font-size: 17px; color: var(--ink); transition: color var(--t-fast) var(--ease); }
.nav__panel-item:hover .title, .nav__panel-item:focus-visible .title { color: var(--deep-teal); }
.nav__panel-item .desc { margin-top: 5px; font: 400 14px/1.5 var(--font-serif); color: rgba(41, 42, 60, .72); }
.nav__panel-aside { border-left: 1px solid rgba(41, 42, 60, .16); padding-left: 30px; }
.nav__panel-aside .kicker { font: 600 10.5px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--deep-teal); }
.nav__panel-aside .note { margin-top: 8px; font: 400 15px/1.5 var(--font-serif); color: var(--ink); }
.nav__panel-link { margin-top: 12px; letter-spacing: .12em; }

/* ==================== Site footer ==================== */

.footer { background: #FAF9F7; }
.footer__mast { padding: 68px var(--gutter) 0; display: flex; align-items: center; }
.footer__mast .line { flex: 1; height: 1px; background: rgba(41, 42, 60, .2); }
.footer__mast img { height: 34px; width: auto; display: block; margin: 0 22px; }
.footer__inner { padding: 52px var(--gutter) 26px; }

.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; padding-bottom: 38px; border-bottom: 1px solid rgba(41, 42, 60, .16); }
.footer__brand { max-width: 430px; }
.footer__wordmark { font-family: var(--font-condensed); font-weight: 700; font-size: 38px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.footer__brand p { margin: 14px 0 0; font: 400 16px/1.55 var(--font-serif); color: var(--ink); }

.footer__subscribe { display: grid; gap: 9px; min-width: 300px; max-width: 400px; }
.footer__subscribe-row { display: flex; align-items: stretch; }
.footer__subscribe-field { flex: 1; border: 1px solid #292A3C6F; padding: 11px 12px; font: 500 14px var(--font-sans); color: rgba(41, 42, 60, .55); margin-right: 10px; }
.footer__subscribe-btn { background: var(--ink); color: #fff; padding: 12px 16px; font-family: var(--font-condensed); font-weight: 700; font-size: 15px; text-transform: uppercase; display: flex; align-items: center; transition: background-color var(--t-fast) var(--ease); }
.footer__subscribe-btn:hover { color: #fff; background-color: color-mix(in srgb, var(--ink) 88%, white); }
.footer__subscribe-btn:active { background-color: color-mix(in srgb, var(--ink) 80%, white); transition-duration: 40ms; }
.footer__fineprint { font: 500 11.5px/1.5 var(--font-sans); color: rgba(41, 42, 60, .62); }
.footer__fineprint a { color: var(--deep-teal); border-bottom: 1px solid rgba(31, 110, 102, .45); transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.footer__fineprint a:hover { color: var(--ink); border-color: rgba(41, 42, 60, .45); }

.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: 34px; padding: 34px 0 30px; }
.footer__col-title { font-family: var(--font-condensed); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 14px; }
.footer__list { display: grid; gap: 9px; font: 400 14px var(--font-serif); color: rgba(41, 42, 60, .82); }
.footer__list a { color: rgba(41, 42, 60, .82); justify-self: start; padding-bottom: 2px; margin-bottom: -2px; }
.footer__list a:hover { color: var(--ink); }

.footer__ledger-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgba(41, 42, 60, .18); font: 500 13px var(--font-sans); color: var(--ink); }
.footer__ledger-row:last-child { border-bottom: 1px solid rgba(41, 42, 60, .18); }
.footer__ledger-row .val { color: var(--deep-teal); font-weight: 600; }
.footer__990 { margin-top: 14px; letter-spacing: .11em; }

.footer__legal { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid rgba(41, 42, 60, .16); font: 500 12px var(--font-sans); color: rgba(41, 42, 60, .7); }
.footer__legal-link-wrapper { display: flex; gap: 22px; }
.footer__legal-links { display: flex; gap: 22px; }
.footer__legal-links a { color: rgba(41, 42, 60, .7); padding-bottom: 2px; margin-bottom: -2px; }
.footer__legal-links a:hover { color: var(--ink); }

/* Social icons: SVGs applied as currentColor masks on a ::before, so they
   take the same resting color and hover transition as the text links beside
   them (mask on the pseudo keeps the focus ring visible on the anchor).
   Padding + negative margin widen the tap target without shifting layout. */
.footer__socials { display: flex; align-items: center; gap: 18px; }
.footer__social { display: block; box-sizing: content-box; width: 18px; height: 18px; padding: 6px; margin: -6px; color: rgba(41, 42, 60, .7); }
.footer__social:hover { color: var(--ink); }
.footer__social::before { content: ""; display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.footer__social--ig { --icon: url('/assets/icons/IG_icon.svg'); }
.footer__social--fb { --icon: url('/assets/icons/FB_icon.svg'); }
.footer__social--yt { --icon: url('/assets/icons/YT_icon.svg'); width: 22px; } /* wide mark (48×34 viewBox) — extra width keeps its optical size */

/*Temporarily hiding 990 column until the first one is submitted (Mid to Late 2028)
Once submitted, delete the two lines below */
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; padding: 34px 0 30px; } /* Delete this line when 990 is */
.footer__cols>div:last-child { display: none; }


/* ==================== Responsive collapse (shared chrome) ====================
   Two breakpoints site-wide (docs/DECISIONS.md 2026-08-04): tablet ≤1032px,
   mobile ≤767px. Display type scales with clamp() inside the tablet query;
   coefficients are chosen so every clamp reaches its max below 1032px — the
   locked desktop reference (≥1100px) renders from the base rules unchanged. */

/* hamburger + mobile menu: hidden at desktop so the 3-column bar grid is untouched */
.nav__toggle { display: none; }
.nav__menu { display: none; }

@media (max-width: 1032px) {
  /* Nav → logo + hamburger; tapping it opens the white menu sheet below the
     bar (Colin's mockups, docs/DECISIONS.md 2026-08-05). */
  .nav__groups, .nav__actions, .nav__panel { display: none; }
  .nav__bar { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; }
  .nav__logo { margin: 0; }
  .nav__toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; margin-inline-end: -11px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink); }

  /* hamburger → X morph (same drawer curve as the menu) */
  .nav__toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; transition: transform var(--t-med) var(--ease-swift), opacity var(--t-fast) var(--ease); }
  .nav__toggle-bar + .nav__toggle-bar { margin-top: 5px; }
  .nav.is-menu-open .nav__toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav.is-menu-open .nav__toggle-bar:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

  /* ---- Mobile menu: white sheet under the bar ----
     While open the header pins to the viewport (body scroll is locked, so
     nothing jumps) and the sheet fills the rest; the inner column scrolls.
     Motion: fade + 8px settle, exit faster (mirrors .nav__panel's grammar);
     rows stagger in 40ms apart — delays live ONLY in the open state so
     closing exits everything together. */
  .nav.is-menu-open { position: fixed; top: 0; left: 0; right: 0; z-index: 40; }
  .nav__menu { display: block; position: fixed; left: 0; right: 0; top: var(--nav-h, 93px); bottom: 0; z-index: 30; background: #fff; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity 140ms var(--ease), transform 140ms var(--ease), visibility 0s linear 140ms; }
  .nav.is-menu-open .nav__menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 220ms var(--ease-swift), transform 220ms var(--ease-swift), visibility 0s; }
  .nav__menu-inner { height: 100%; overflow-y: auto; display: flex; flex-direction: column; padding: 22px var(--gutter) 0; }
  .nav__menu-inner > * { opacity: 0; transform: translateY(-8px); transition: opacity 140ms var(--ease), transform 140ms var(--ease); }
  .nav.is-menu-open .nav__menu-inner > * { opacity: 1; transform: none; transition: opacity 200ms var(--ease-swift), transform 200ms var(--ease-swift); }
  .nav.is-menu-open .nav__menu-inner > :nth-child(1) { transition-delay: 30ms; }
  .nav.is-menu-open .nav__menu-inner > :nth-child(2) { transition-delay: 70ms; }
  .nav.is-menu-open .nav__menu-inner > :nth-child(3) { transition-delay: 110ms; }
  .nav.is-menu-open .nav__menu-inner > :nth-child(4) { transition-delay: 150ms; }
  .nav.is-menu-open .nav__menu-inner > :nth-child(5) { transition-delay: 190ms; }
  .nav.is-menu-open .nav__menu-inner > :nth-child(6) { transition-delay: 230ms; }

  .nav__menu-donate { display: block; text-align: center; }

  /* Get Help language row: segmented chips per the Get Help prototype's
     switcher; active chip is ink (Donate keeps the screen's teal) */
  .nav__menu-langs { display: flex; align-items: stretch; border: 1px solid rgba(41, 42, 60, .22); margin-top: 14px; }
  .nav__menu-lang { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 6px; color: var(--ink); font: 500 14px var(--font-sans); text-align: center; white-space: nowrap; }
  .nav__menu-lang + .nav__menu-lang { border-inline-start: 1px solid rgba(41, 42, 60, .22); }
  a.nav__menu-lang:hover { color: var(--deep-teal); }
  .nav__menu-lang.is-active { background: var(--ink); color: #fff; font: 600 12px var(--font-sans); letter-spacing: .13em; text-transform: uppercase; }
  a.nav__menu-lang.is-active:hover { color: #fff; }

  /* Accordion groups — same navGroups data as the desktop panels */
  .nav__menu-langs + .nav__acc { margin-top: 26px; border-top: 1px solid var(--hairline); }
  .nav__acc { border-bottom: 1px solid var(--hairline); }
  .nav__acc:has(+ .nav__menu-foot) { border-bottom: 0; }
  .nav__acc-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 16px 0; background: none; border: 0; cursor: pointer; text-align: left; font: 700 17px var(--font-condensed); color: var(--ink); transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
  .nav__acc-btn:active { opacity: .7; transition-duration: 40ms; }
  .nav__acc.is-open .nav__acc-btn { color: var(--deep-teal); }
  .nav__acc-label { --uline-c: var(--deep-teal); --uline-h: 2px; padding-bottom: 3px; }
  /* + → − : the icon quarter-turns while one bar collapses lengthwise, so the
     surviving bar lands horizontal (a minus) */
  .nav__acc-icon { position: relative; width: 14px; height: 14px; flex: none; transition: transform var(--t-med) var(--ease-swift); }
  .nav__acc-icon::before, .nav__acc-icon::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; }
  .nav__acc-icon::before { width: 10px; height: 2px; transition: transform var(--t-med) var(--ease-swift); }
  .nav__acc-icon::after { width: 2px; height: 10px; }
  .nav__acc.is-open .nav__acc-icon { transform: rotate(90deg); }
  .nav__acc.is-open .nav__acc-icon::before { transform: scaleX(0); }
  /* smooth height: 0fr → 1fr grid track + asymmetric opacity (open fades in
     after the space starts opening; close fades immediately) */
  .nav__acc-panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 240ms var(--ease-swift), opacity 180ms var(--ease); }
  .nav__acc.is-open .nav__acc-panel { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 240ms var(--ease-swift), opacity 220ms var(--ease) 60ms; }
  .nav__acc-panel-inner { overflow: hidden; min-height: 0; }
  .nav__acc-item { display: block; padding: 8px 0 10px; }
  .nav__acc-item .title { font: 700 16px var(--font-condensed); color: var(--ink); transition: color var(--t-fast) var(--ease); }
  .nav__acc-item:active .title { color: var(--deep-teal); }
  .nav__acc-item .desc { margin-top: 4px; font: 400 15px/1.5 var(--font-serif); color: rgba(41, 42, 60, .72); }
  .nav__acc-aside { border-top: 1px solid var(--hairline); margin-top: 8px; padding: 16px 0 20px; }
  .nav__acc-aside .kicker { font: 600 10.5px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--deep-teal); }
  .nav__acc-aside .note { margin: 6px 0 0; font: 400 15px/1.5 var(--font-serif); color: var(--ink); }
  .nav__acc-aside .text-link { margin-top: 12px; }

  /* paper band pinned to the sheet's bottom; reuses the footer subscribe mock */
  .nav__menu-foot { margin-top: auto; margin-inline: calc(-1 * var(--gutter)); padding: 22px var(--gutter) 30px; background: #FAF9F7; border-top: 1px solid rgba(41, 42, 60, .16); }
  .nav__menu-foot .footer__subscribe { max-width: none; min-width: 0; }

  /* Section headers stack, headline first; the right-aligned summary is a
     two-column rule only (docs/DECISIONS.md) */
  .section-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-header .summary { text-align: left; max-width: none; }

  /* Footer: brand/subscribe stack, link columns 2-up, ledger full width */
  .footer__mast { padding-top: 48px; }
  .footer__top { flex-direction: row; gap: 30px; }
  .footer__subscribe { min-width: 0; }
  .footer__subscribe-btn { min-height: 44px; }
  .footer__wordmark { font-size: clamp(30px, 5vw, 38px); }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 30px 34px; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
   .nav__topbar-name { width: 100%; display: flex; justify-content: space-between; }
   .nav__topbar-name>span:nth-child(2) { display: none; }
   .nav__topbar-links { display: none; }

   .footer__top { flex-direction: column; }
   .footer__mast { padding-top: 40px; }
   .footer__inner { padding-block: 40px 22px; }
   .footer__legal { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
   .footer__legal-info { text-align: center; width: 100%; line-height: 1.6em;}
   .footer__legal-link-wrapper { flex-direction: column;  gap: 15px; align-items: center; width: 100%;}
   .footer__legal-links { gap: 22px; }

   .lightbox { padding: 16px; }
   .lightbox__close { top: 8px; right: 10px; }

   .btn { text-align: center; display: inline-block; padding: 12px 16px; font-size: 15px; }
   .btn--ink { padding: 12px 16px; }
   .btn--ghost { display: flex; justify-content: center; gap: 11px; padding: 12px 16px; }

   /* ≥44px hit targets; 16px inputs stop iOS focus zoom */
   .chip { min-height: 44px; }
   .fcheck { min-height: 44px; }
   .ffield input, .ffield select, .ffield textarea { font-size: 16px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .nav__panel, .lightbox__frame, .nav__menu, .nav__menu-inner > * { transform: none; }
}
