/* ============================================================
   GameChanger Charity — homepage (fresh rebuild) · 2026-06-14
   Product look. Implements design/DESIGN_GUIDE.md v1.0 + tokens.css.
   Every color pairing here is an AA-verified pair from guide §11.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
a { color: var(--color-link); }

/* ---------- shared layout ---------- */
.wrap { width: min(100% - 2 * var(--s-3), var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--wrap-prose); }
/* section rhythm tightened to cut dead space between bands (review 2026-06-26) */
.band { padding-block: var(--s-5); }
@media (min-width: 900px) { .band { padding-block: var(--s-6); } }
.band--tight { padding-block: var(--s-6); }
.band--paper2 { background: var(--color-bg-band); }
.band--dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }

/* ---------- type primitives ---------- */
.kicker {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: var(--text-kicker);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 var(--s-2);
}
.band--dark .kicker { color: var(--green-bright); }
.kicker--corp { color: var(--terra-text); }
/* #113: "Get involved" is now the section header (its H2 was removed) — keep it green, size it up */
#audiences .prose > .kicker { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .06em; line-height: 1.2; }
/* #124: "Honest numbers." H2 + lede removed → the "By the numbers" kicker is now the impact header;
   match the audiences treatment (green-bright on the dark band gives good contrast). */
#impact .prose > .kicker { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .06em; line-height: 1.2; }
/* #112: trim the desktop gap above the Get-involved section */
@media (min-width: 900px) { #audiences { padding-top: var(--s-4); } }

.display-1 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-display-1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-variation-settings: "opsz" 88;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-display-2);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-h3);
  line-height: var(--leading-heading);
  font-variation-settings: "opsz" 40;
}
.h4 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-h4);
  line-height: var(--leading-ui);
}
.lede { font-size: var(--text-body-lg); line-height: 1.6; color: var(--slate); text-wrap: pretty; }
/* #work intro: let the heading use the full width (the 70ch .prose cap forced cramped, arbitrary line breaks) */
#work .prose { max-width: none; }
#work .lede { max-width: 60ch; }
.band--dark .lede { color: var(--color-text-on-dark); opacity: .92; }
.small { font-size: var(--text-small); line-height: var(--leading-ui); }
.muted { color: var(--slate); }
.band--dark .muted { color: var(--color-text-on-dark); opacity: .8; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: var(--weight-bold);
  font-size: 1.0625rem; line-height: 1;
  padding: .95em 1.6em; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background var(--duration-hover) var(--ease-brand),
    transform var(--duration-hover) var(--ease-brand), border-color var(--duration-hover) var(--ease-brand);
}
.btn--donate { background: var(--color-cta-bg); color: var(--color-cta-text); }
.btn--donate:hover { background: var(--color-cta-bg-hover); }
.btn--donate:active { background: var(--color-cta-bg-active); transform: translateY(1px); }
.btn--corp { background: transparent; color: var(--terra-text); border-color: var(--terra); }
.btn--corp:hover { background: var(--terra-deep); color: #fff; border-color: var(--terra-deep); }
.btn--quiet { background: transparent; color: var(--ink); padding: .6em 0; border-radius: 0; }
.btn--quiet:hover { text-decoration: underline; }
.band--dark .btn--quiet { color: var(--color-text-on-dark); }
.btn--block { width: 100%; }
.btn .amt { font-family: var(--font-mono); font-weight: var(--weight-bold); }

/* ---------- focus (guide §11) ---------- */
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.band--dark :focus-visible, .on-dark :focus-visible { outline-color: var(--color-focus-on-dark); }

/* ---------- skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); }
.skip:focus { left: var(--s-2); top: var(--s-2); }

/* ============================================================
   CONCEPT BANNER (truth rule §5.5 — concept surfaces are labeled)
   ============================================================ */
.concept-bar {
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .02em;
  text-align: center; padding: .55rem var(--s-3);
}
.concept-bar strong { color: var(--gold); font-weight: var(--weight-bold); }

/* ============================================================
   NAV (guide §9: sticky, blurred paper, hairline, ≤5 + 1 Donate)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: var(--s-4);
  min-height: 68px; }
.nav__logo { flex: 0 1 auto; min-width: 0; line-height: 0; }
.nav__logo img { height: auto; width: auto; max-height: 36px; max-width: 100%; }
.nav__links { display: none; margin-left: auto; align-items: center; gap: var(--s-4); }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: var(--weight-medium);
  font-size: 1rem; padding: .4em 0; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__cta { margin-left: auto; }
@media (min-width: 980px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}
.nav__toggle { margin-left: auto; display: inline-flex; background: none; border: 0;
  padding: .5em; cursor: pointer; color: var(--ink); }
@media (min-width: 980px) { .nav__toggle { display: none; } }
.nav__cta .btn { padding: .7em 1.3em; font-size: 1rem; }
/* Phones: tighten the nav so the logo, Donate button, and menu always fit on one screen */
@media (max-width: 560px) {
  .nav__inner { gap: var(--s-2); }
  .nav__cta .btn { padding: .5em .95em; font-size: .92rem; }
}
/* mobile drawer */
.nav__drawer { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.nav__drawer.open { display: block; }
.nav__drawer a { display: block; padding: var(--s-2) 0; color: var(--ink);
  text-decoration: none; font-weight: var(--weight-medium); border-bottom: 1px solid var(--line); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: var(--s-6) var(--s-4); }
.hero__grid { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 980px) {
  /* minmax(0,…) lets the carousel column shrink instead of forcing page overflow */
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-6); }
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6em; }
.hero h1 { margin: var(--s-1) 0 var(--s-3); }
/* mobile line economy — keep the hero headline to a few lines on phones (review #5) */
@media (max-width: 640px) {
  .hero h1.display-1 { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.12; }
  /* carousel headlines are <p class="display-1 hc__head">, not the sr-only h1 — size them
     down on phones so each slide stays ≤2 lines (review #17, 2026-06-16) */
  .hc__head.display-1 { font-size: clamp(1.7rem, 7vw, 2.1rem); line-height: 1.1; }
}
/* the carousel is a full-width single column until 980px (the donate-docked grid starts
   there). The ≤640 rule above doesn't reach the 641–979 band, so the 44px display-1
   wrapped to 3 lines on the longer slides here. Size it to stay ≤2 lines across the whole
   single-column range — verified at the narrow edge (~650px) the longest slides hold at
   2 lines at 40px (review #17, 2026-06-16). */
@media (min-width: 641px) and (max-width: 979px) {
  .hc__head.display-1 { font-size: clamp(2rem, 4.4vw, 2.5rem); line-height: 1.1; }
}
.hero__sub { font-size: var(--text-body-lg); color: var(--slate); max-width: 34ch; }
.hero__photo { position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-elevated); aspect-ratio: 4 / 3; margin: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
/* carousel headline overlaid ON the photo to consolidate vertical space (review 2026-06-26);
   navy scrim dense enough for white Fraunces to clear AA on the lightest frame. */
.hero__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: var(--s-5) var(--s-4) var(--s-4); color: #fff;
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: clamp(1.3rem, 3.6vw, 1.7rem); line-height: 1.12; letter-spacing: -0.01em;
  background: linear-gradient(to top, rgba(14,27,42,.92), rgba(14,27,42,.5) 50%, rgba(14,27,42,0) 88%); }

/* donate widget (guide §9 gift array) */
.donate {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: var(--s-4); }
.donate__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2);
  margin-bottom: var(--s-3); }
.donate__head h2 { font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 1.5rem; font-variation-settings: "opsz" 40; }
.toggle { display: inline-flex; background: var(--paper-2); border-radius: var(--r-pill); padding: 3px;
  border: 1px solid var(--line); }
.toggle button { font-family: var(--font-body); font-size: .875rem; font-weight: var(--weight-semibold);
  border: 0; background: transparent; color: var(--slate); padding: .45em .9em; border-radius: var(--r-pill); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.gift {
  display: flex; flex-direction: column; gap: .15em; align-items: flex-start;
  text-align: left; background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: .7em .8em; cursor: pointer;
  font-family: var(--font-body); color: var(--ink);
  transition: border-color var(--duration-hover) var(--ease-brand), background var(--duration-hover) var(--ease-brand); }
.gift .gift__amt { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: 1.15rem; }
.gift .gift__note { font-size: .72rem; line-height: 1.25; color: var(--slate); }
/* amounts are the only content → center them; one-time gets extra presence, monthly shows a small /mo (review #76) */
.gift[data-amt] { justify-content: center; align-items: center; }
.gift-grid.is-onetime .gift[data-amt] .gift__amt { font-size: 1.35rem; }
.gift__per { font-size: .6em; font-weight: var(--weight-medium); color: var(--slate); margin-left: .06em; }
.gift:hover { border-color: var(--green-deep); }
.gift[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); }
.gift[aria-pressed="true"] .gift__note { color: var(--green-deep); }
/* custom amount is a nestled 6th cell — one centered field, no extra glyph or sub-label (declutter).
   trim side padding so the word gets breathing room without shrinking the type. */
.gift--custom { justify-content: center; align-items: center; padding-left: .3rem; padding-right: .3rem; }
.gift--custom:focus-within { border-color: var(--green); background: var(--green-soft); }
.gift--custom input { width: 100%; min-width: 0; text-align: center; font-family: var(--font-mono);
  font-weight: var(--weight-bold); font-size: 1.05rem; border: 0; background: transparent; color: var(--ink); padding: 0; }
/* placeholder is the field's only label → must clear AA (review 2026-06-16): slate = 11.25:1 on paper */
.gift--custom input::placeholder { color: var(--slate); opacity: 1; font-weight: var(--weight-bold); }
.gift--custom input:focus { outline: none; }
/* mobile: stack the donate header (heading above toggle) + 2-col gift array to give captions room (review 2026-06-26) */
@media (max-width: 600px) {
  .donate__head { flex-direction: column; align-items: flex-start; }
  .gift-grid { grid-template-columns: repeat(2, 1fr); }
}
.donate__cta { margin-top: var(--s-3); }
.donate__err { margin-top: var(--s-2); font-size: .85rem; color: #cc2b2b; text-align: center; }
.donate__wallets { text-align: center; font-size: .8rem; color: var(--slate); margin-top: var(--s-2); }
.donate__note { font-size: .72rem; color: var(--slate); margin-top: var(--s-2); line-height: 1.4; }

/* trust strip (guide §9 — lives AT the ask; real seals only) */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: .5em var(--s-3);
  margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.trust__item { display: inline-flex; align-items: center; gap: .45em; font-size: .8rem; color: var(--slate); }
.trust__item svg { flex: none; }
/* Charity Navigator rating: gold stars showing 3-of-4 (the faint 4th defines the scale so it
   never reads as "3 of 5"), paired with the 82% score. Truthful — GCC is a Three-Star, 82% org. */
.cn-stars { color: #e6a700; letter-spacing: .06em; white-space: nowrap; }
.cn-stars i { color: #e6a700; opacity: .32; font-style: normal; }
/* credential chips — gold per Taylor "more gold" (review #53); ink on gold = 10.45:1 */
.seal { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: .7rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  background: var(--gold); border-radius: var(--r-pill); padding: .3em .7em; }
/* the two donate-widget award chips, side by side (review #53) */
.trust__seals { display: flex; align-items: stretch; gap: var(--s-1); flex-basis: 100%; width: 100%; }
.trust--top .trust__seals .seal { flex: 1; display: grid; place-items: center; text-align: center; border-radius: var(--r-md); padding: .4em; line-height: 1.25; }
/* compact appeal-to-authority cluster ABOVE the amounts (review #6) */
.trust--top { margin-top: 0; padding-top: 0; border-top: 0;
  margin-bottom: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
  gap: .35em var(--s-2); }
.trust--top .trust__item { font-size: .72rem; }
.trust--top .seal { font-size: .56rem; padding: .25em .5em; letter-spacing: .02em; min-height: 3em; }

/* ============================================================
   PROOF STRIP (under hero)
   ============================================================ */
.proof { border-block: 1px solid var(--line); background: var(--paper-2); }
.proof__row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center;
  justify-content: center; padding-block: var(--s-3); text-align: center; }
.proof__item { font-size: .9rem; color: var(--slate); display: inline-flex; align-items: center; gap: .5em; }
.proof__item strong { color: var(--ink); font-weight: var(--weight-bold); }
.proof__item a { color: var(--ink); }

/* ============================================================
   STORY
   ============================================================ */
.story__grid { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
/* Story photos: desktop = the 3-up side column (.story__media); mobile = interleaved between paragraphs */
.story__photo-m { display: none; }
@media (max-width: 899px) {
  .story__photo-m { display: block; margin: var(--s-3) 0; }
  .story__photo-m img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
}
.story__media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.story__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-card); width: 100%;
  height: 100%; object-fit: cover; }
.story__media figure { margin: 0; }
.story__media figure:first-child { grid-row: span 2; }
/* hide the desktop photo column on mobile — placed AFTER the base rule so it wins the cascade */
@media (max-width: 899px) { .story__media { display: none; } }
.story p + p, .story figure + p { margin-top: var(--s-3); }
.pullquote { font-family: var(--font-display); font-weight: var(--weight-medium);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; font-variation-settings: "opsz" 40;
  border-left: 3px solid var(--green); padding-left: var(--s-3); margin: var(--s-4) 0 0; color: var(--ink); }
.byline { font-size: .9rem; color: var(--slate); margin-top: var(--s-3); padding-left: var(--s-6); }
.byline__name { font-size: 1.1rem; font-weight: var(--weight-bold); color: var(--ink); }
/* story heading fits one line in the ~570px column at desktop (review #77) */
@media (min-width: 900px) { .story .display-2 { font-size: clamp(1.85rem, 2.9vw, 2.05rem); } }

/* ============================================================
   PROGRAMS
   ============================================================ */
.cards { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
/* 4 program cards read as a balanced 2×2 (was a 3+1 orphan after dropping the
   gaming-networks card, review #21) */
@media (min-width: 980px) { .cards--quad { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
/* bulletproof 16:10 frame: container height is driven purely by aspect-ratio, and the image is
   absolutely positioned so a non-16:10 file can never stretch the box to its own ratio (cover-crops). */
.card__img { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.card__img:not(.card__img--mark) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--s-3) var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
/* reserve uniform space for title (≤2 lines) + text (≤4 lines) so all four cards share identical
   geometry — image, title, and text-start align across cards at every width (review: uniform modules) */
.card .card__title { margin-top: .15em; min-height: 2.5em; }
.card .card__text { color: var(--slate); font-size: 1rem; line-height: 1.55; min-height: 6.2em; }
.card .card__cite { font-size: .75rem; color: var(--slate); margin-top: auto; padding-top: var(--s-2); opacity: .85; }

/* ============================================================
   IMPACT (dark band, stat blocks)
   ============================================================ */
.stats { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat__num { font-family: var(--font-mono); font-weight: var(--weight-bold);
  font-size: var(--text-stat); line-height: 1; color: var(--green-bright); font-variant-numeric: tabular-nums; }
.stat__label { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.5; margin-top: var(--s-2);
  min-height: 3em; text-wrap: balance; max-width: 30ch; }
.stat__cite { font-size: .8rem; opacity: .75; margin-top: var(--s-1); }

/* ============================================================
   PARTNER WALL (evidence, not decoration; full color)
   ============================================================ */
.wall__tabs { display: inline-flex; flex-wrap: wrap; gap: var(--s-1); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; margin-top: var(--s-3); }
.wall__tab { font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: .9rem;
  border: 0; background: transparent; color: var(--slate); padding: .5em 1.1em; border-radius: var(--r-pill); cursor: pointer; }
.wall__tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
/* Fixed grid-auto-rows (NOT aspect-ratio on items — that mis-computes the
   grid's reserved height and overflows the last rows into the next section). */
.wall__grid { display: grid; gap: var(--s-2); margin-top: var(--s-4);
  grid-template-columns: repeat(2, 1fr); grid-auto-rows: 92px; }
@media (min-width: 560px) { .wall__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .wall__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; } }
@media (min-width: 1080px) { .wall__grid { grid-template-columns: repeat(6, 1fr); } }
.wall__cell { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  display: grid; place-items: center; padding: var(--s-2); min-width: 0; }
.wall__cell img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.wall__panel[hidden] { display: none; }

/* ============================================================
   CORPORATE LANE (subordinate B2B; terracotta accent lane)
   ============================================================ */
.corp { background: var(--navy); color: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.corp__grid { display: grid; gap: var(--s-5); padding: var(--s-5); }
@media (min-width: 900px) { .corp__grid { grid-template-columns: 1.2fr .8fr; align-items: center; padding: var(--s-6); } }
.corp .h3 { color: #fff; }
.corp__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.corp__stat .n { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: 2rem; color: var(--amber); }
.corp__stat .l { font-size: .85rem; opacity: .85; line-height: 1.4; margin-top: .25em; }
.corp__cite { font-size: .75rem; opacity: .65; margin-top: var(--s-3); }

/* ============================================================
   ROUTER (families + volunteers — subordinate "I'm a…")
   ============================================================ */
.router { display: grid; gap: var(--s-3); }
@media (min-width: 760px) { .router { grid-template-columns: 1fr 1fr; } }
.route { border-radius: var(--r-lg); padding: var(--s-5) var(--s-4); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--s-2); text-decoration: none; color: inherit;
  transition: transform var(--duration-ui) var(--ease-brand), box-shadow var(--duration-ui) var(--ease-brand); }
.route:hover { transform: translateY(-4px); }
.route__icon { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; }
.route__icon svg { width: 24px; height: 24px; }
.route__title { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: clamp(1.2rem, 1.55vw, 1.4rem);
  line-height: 1.15; font-variation-settings: "opsz" 40; margin-top: var(--s-1); }
.route p { font-size: 1rem; line-height: 1.55; }
/* lead-capture forms in the audience cards (replaced the old mailto buttons) */
.route__form { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-2); }
/* progressive disclosure (#121): collapse the fields to just the CTA; the first tap reveals
   email + message. The collapse only applies once JS adds .is-collapsible, so a no-JS visitor
   still sees an open, usable form. grid-rows 0fr->1fr animates height without a fixed max. */
.route__fields { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--duration-ui) var(--ease-brand); }
.route__form.is-collapsible .route__fields { grid-template-rows: 0fr; }
.route__form.is-collapsible.is-open .route__fields { grid-template-rows: 1fr; }
.route__fields-inner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: var(--s-2); padding-bottom: var(--s-2); }
.route__form.is-collapsible:not(.is-open) .route__fields-inner { padding-bottom: 0; }
.route__form input, .route__form textarea { width: 100%; padding: .8em 1em; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color var(--duration-ui) var(--ease-brand), box-shadow var(--duration-ui) var(--ease-brand); }
.route__form textarea { resize: vertical; min-height: 4.6em; line-height: 1.45; }
.route__form input::placeholder, .route__form textarea::placeholder { color: var(--slate); }
.route__form input:focus, .route__form textarea:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 3px rgba(0,176,115,.18); }
.route__form .btn { width: 100%; }
/* fields tinted to each card so they read as designed-in (mirrors the footer newsletter field),
   with a focus ring in each lane's accent. */
.route--family .route__form input, .route--family .route__form textarea { border-color: #cfe9dd; }
.route--partner .route__form input, .route--partner .route__form textarea,
.route--volunteer .route__form input, .route--volunteer .route__form textarea {
  background: var(--navy-2); border-color: rgba(255,255,255,.22); color: #fff; }
.route--partner .route__form input::placeholder, .route--partner .route__form textarea::placeholder,
.route--volunteer .route__form input::placeholder, .route--volunteer .route__form textarea::placeholder { color: rgba(255,255,255,.6); }
.route--partner .route__form input:focus, .route--partner .route__form textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,169,59,.28); }
.route--volunteer .route__form input:focus, .route--volunteer .route__form textarea:focus { border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(31,215,144,.30); }
/* keep the dark-card tinted look through browser autofill (otherwise forced white block) */
.route--partner .route__form input:-webkit-autofill, .route--volunteer .route__form input:-webkit-autofill {
  -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px var(--navy-2) inset; transition: background-color 9999s; }
.form-success { margin-top: auto; font-weight: var(--weight-bold); line-height: 1.4; color: var(--green-deep); }
.route--partner .form-success, .route--volunteer .form-success, .footer .form-success { color: var(--paper); }
.form-error { margin-top: var(--s-1); font-size: .85rem; color: #cc2b2b; }
.route--partner .form-error, .route--volunteer .form-error, .footer .form-error { color: #ff9b9b; }
.route__cta { display: inline-flex; align-items: center; gap: .55em; font-weight: var(--weight-bold);
  text-decoration: none; margin-top: var(--s-2); }
.route__cta .arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid currentColor; transition: transform var(--duration-hover) var(--ease-brand); }
.route__cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.route__cta:hover .arrow { transform: translateX(3px); }

/* light "families" card */
.route--family { background: linear-gradient(165deg, #e9f8f1, var(--white) 72%);
  border: 1px solid #cfe9dd; box-shadow: var(--shadow-card); }
.route--family .route__icon { background: var(--white); color: var(--green-deep); border: 1px solid #cfe9dd; }
.route--family .kicker { color: var(--green-deep); margin-bottom: 0; }
.route--family .route__title { color: var(--ink); }
.route--family p { color: var(--slate); }
.route--family .route__cta { color: var(--green-deep); }

/* dark "volunteers" card — compelling at small size, on-brand navy + green-bright */
.route--volunteer { background: linear-gradient(165deg, var(--navy-2), var(--navy));
  border: 1px solid var(--navy-3); box-shadow: var(--shadow-elevated); color: var(--paper); }
.route--volunteer .route__icon { background: rgba(255,255,255,.08); color: var(--green-bright);
  border: 1px solid rgba(255,255,255,.16); }
.route--volunteer .kicker { color: var(--green-bright); margin-bottom: 0; }
.route--volunteer .route__title { color: #fff; }
.route--volunteer p { color: var(--paper); opacity: .85; }
.route--volunteer .route__cta { color: var(--green-bright); }
.route--volunteer :focus-visible { outline-color: var(--green-bright); }

/* ============================================================
   CLOSING CTA (dark)
   ============================================================ */
.close__inner { text-align: center; max-width: 64ch; margin-inline: auto; }
.close .display-2 { color: #fff; }
.close .btn--donate { margin-top: var(--s-4); padding: 1.05em 2.2em; font-size: 1.2rem; }
.close .trust { justify-content: center; border-top-color: rgba(255,255,255,.18); }
.close .trust__item { color: var(--paper); opacity: .85; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: var(--paper); padding-block: var(--s-6); }
.footer__top { display: grid; gap: var(--s-2); }
.footer__top > * { min-width: 0; }
.footer { overflow-wrap: anywhere; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); } }
.footer__logo img { height: 34px; }
.footer p { opacity: .82; font-size: .92rem; line-height: 1.6; margin-top: var(--s-2); }
.footer h4 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-bright); margin-bottom: var(--s-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.footer a { color: var(--paper); text-decoration: none; opacity: .9; }
.footer a:hover { text-decoration: underline; opacity: 1; }
.footer__social { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.footer__social a { display: inline-flex; line-height: 0; color: var(--paper); opacity: .8; }
.footer__social a:hover { opacity: 1; color: var(--green-bright); text-decoration: none; }
.footer__news { display: flex; gap: var(--s-1); margin-top: var(--s-2); max-width: min(320px, 100%); }
.footer__news input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); background: var(--navy-2);
  color: #fff; border-radius: var(--r-md); padding: .7em .9em; font-size: 16px; font-family: var(--font-body); }
.footer__news input::placeholder { color: rgba(255,255,255,.6); }
/* newsletter Join = neutral paper button on navy (was donate-green; green now reserved for the ask — review 2026-06-16) */
.btn--news { background: var(--green-bright); color: var(--ink); border-color: var(--green-bright); font-weight: 700; padding: .7em 1.5em; letter-spacing: .01em; }
.btn--news:hover { background: var(--white); border-color: var(--white); }
/* Prominent newsletter signup band at the TOP of the footer (was buried small in the Transparency column).
   Growing the email list is a goal, so it gets a real heading + a larger field/button. */
.footer__signup { display: grid; gap: var(--s-3); padding-bottom: var(--s-5); margin-bottom: var(--s-5);
  border-bottom: 1px solid rgba(255,255,255,.14); }
@media (min-width: 760px) { .footer__signup { grid-template-columns: 1.25fr 1fr; align-items: center; gap: var(--s-6); } }
.footer__signup-kicker { font-family: var(--font-mono); font-weight: 700; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green-bright); margin: 0; }
.footer__signup-head { font-family: var(--font-display); font-weight: 600; font-variation-settings: "opsz" 60;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.1; color: var(--paper); margin: .25em 0 0; }
.footer__signup-sub { opacity: .82; margin-top: .5em; font-size: .95rem; line-height: 1.55; }
.footer__signup .footer__news { max-width: 460px; margin-top: 0; gap: var(--s-2); }
.footer__signup .footer__news input { padding: .9em 1.1em; font-size: 16px; border-radius: var(--r-md); }
.footer__signup .btn--news { padding: .9em 1.9em; font-size: 1rem; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.16); margin-top: var(--s-5); padding-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; justify-content: space-between;
  font-size: .82rem; opacity: .8; }
.footer__seals { display: inline-flex; gap: var(--s-2); flex-wrap: wrap; }

/* ============================================================
   REVEAL (one orchestrated load; reduced-motion = static)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); }
.js .reveal { transition: opacity var(--duration-reveal) var(--ease-brand), transform var(--duration-reveal) var(--ease-brand); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* no-JS: never leave content hidden */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   HERO CAROUSEL (review #13) — mission-forward rotating statements
   ============================================================ */
.hero-carousel { min-width: 0; }
.hc__viewport { overflow: hidden; min-width: 0; }
/* JS auto-sizes the viewport to the ACTIVE slide so short slides (e.g. the mission lead)
   don't inherit the tallest slide's height and leave a void below the photo (review 2026-06-16) */
.js .hc__viewport { transition: height var(--duration-reveal) var(--ease-brand); }
.hc__track { position: relative; margin: 0; padding: 0; list-style: none; } /* reset <ul> defaults: the 40px list padding made slides drift/bleed */
.hc__slide { min-width: 0; }
.hc__slide[hidden] { display: none; }            /* no-JS: only the first slide shows */
/* CROSSFADE carousel (review #20): the old translateX slide ran its transform over 450ms
   while the height animated over 250ms — they desynced into a vertical "warp" — and on
   wrap-around (slide 4→1) the track flew backward through every slide. Stack the slides and
   crossfade instead; matches the page's heading rotator and removes all directional jank.
   The viewport height (JS-sized to the active slide) morphs over the same 450ms so the fade
   and resize move together. All slides stay absolutely positioned — swapping position in the
   same frame as the opacity transition corrupted the fade — so the JS-set viewport height is
   the single source of the carousel's height; inactive slides are click-inert (a11y via
   aria-hidden, set in JS). */
.hc--ready .hc__slide { position: absolute; top: 0; left: 0; right: 0; opacity: 0; pointer-events: none;
  transition: opacity var(--duration-reveal) var(--ease-brand); }
.hc--ready .hc__slide.is-active { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .js .hc__viewport, .hc--ready .hc__slide { transition: none; }
}
.hc__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--terra-text); display: block; margin-bottom: var(--s-2); }
.hc__head { margin: 0 0 var(--s-3); }
.hc__cite { display: block; font-size: .8rem; color: var(--slate); margin-top: .35em; }
.hc__controls { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.hc__arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--white); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; flex: none; }
.hc__arrow:hover { border-color: var(--green-deep); color: var(--green-deep); }
.hc__dots { display: flex; gap: 4px; align-items: center; }
.hc__dot { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.hc__dot::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong);
  transition: width var(--duration-hover) var(--ease-brand), background var(--duration-hover) var(--ease-brand); }
/* active pager pill = ink (neutral wayfinding; keeps green semantics for the ask only — review 2026-06-16) */
.hc__dot[aria-selected="true"]::before { background: var(--ink); width: 20px; border-radius: 5px; }

/* ============================================================
   AUDIENCE TILES — 3-up, equal size (review #14)
   ============================================================ */
.router--3 { grid-template-columns: 1fr; }
/* align-items:start so expanding ONE tile's form doesn't stretch its siblings into dead space */
@media (min-width: 900px) { .router--3 { grid-template-columns: repeat(3, 1fr); align-items: start; } }
/* reserve equal subhead height across the 3 modules so they read as the same # of lines + the CTAs share spacing (review #55) */
@media (min-width: 900px) { .route p { min-height: 6.2em; } }
.route__cite { font-size: .75rem; color: var(--slate); opacity: .85; margin-top: calc(-1 * var(--s-1)); }
/* push the CTA to the bottom so all three module buttons align on one baseline (review #55) */
.route .btn { margin-top: auto; align-self: flex-start; }

/* partner tile — navy + amber/terra accent (corporate aesthetic, on-dark safe) */
.route--partner { background: linear-gradient(165deg, var(--navy-2), var(--navy));
  border: 1px solid var(--navy-3); box-shadow: var(--shadow-elevated); color: var(--paper); }
.route--partner .route__icon { background: rgba(240,169,59,.16); color: var(--amber);
  border: 1px solid rgba(240,169,59,.32); }
.route--partner .kicker { color: var(--amber); margin-bottom: 0; }
.route--partner .route__title { color: #fff; }
.route--partner p { color: var(--paper); opacity: .85; }
.route--partner .route__cite { color: var(--paper); opacity: .6; }
.route--partner :focus-visible { outline-color: var(--amber); }

/* tile CTA buttons — green (deep OR bright) is no longer used on any non-donate CTA so the
   ask owns the green semantic outright (review 2026-06-16). Each button still reads as a
   secondary keyed to its card: ink outline on the light family card, paper outline on the
   dark volunteer card, terracotta fill on the corporate partner card. */
/* partner CTA = amber outline (matches the tile's amber accent) so no single audience's button outweighs the others (review 2026-06-26) */
.btn--partner { background: transparent; color: var(--amber); border-color: var(--amber); }
.btn--partner:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn--family { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--family:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--vol { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.55); }
.btn--vol:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ============================================================
   GCC3 brand-kit edition — mark-led imagery (no WP photos)
   ============================================================ */
/* hero slide 4: Hope monkey shown as a mark, not a cover photo */
.hero__photo--mark { background: var(--green-soft); box-shadow: var(--shadow-card);
  display: grid; place-items: center; padding: var(--s-5); }
.hero__photo--mark img { width: auto; height: 86%; max-width: 70%; object-fit: contain; }
/* program cards without a brand photo: heart-power icon on a NEUTRAL warm wash.
   The glyph art is saturated #00B073; desaturate it so the reserved donate-green isn't
   spent on a program card (review 2026-06-16). */
.card__img--mark { background: var(--paper-2); display: grid; place-items: center; }
.card__img--mark img { width: auto; height: 44%; max-height: 92px; object-fit: contain;
  filter: grayscale(1) brightness(.5); opacity: .8; }
/* "Meet Hope" brand band (replaces the partner wall) */
.brandmoment { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 820px) { .brandmoment { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: var(--s-7); } }
.brandmoment__mark { margin: 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card); aspect-ratio: 1 / 1; }
.brandmoment__mark img { width: 100%; height: 100%; object-fit: cover; }
.brandmoment__seals { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.brandmoment__body .small { margin-top: var(--s-2); }

/* ============================================================
   HERO STACKED — carousel above the donate panel (review #16)
   ============================================================ */
.hero__stack { display: block; }
.hero__stack .donate { max-width: 600px; margin: var(--s-4) auto 0; }
.hc__copy { min-width: 0; }
/* anchored hero: persistent mission/tagline/proof header above the examples carousel (review 2026-06-26) */
.hero-main { min-width: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.hero__header { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-3); }
.hero__header > * { margin: 0; }
/* mission block is the thesis — bigger kicker + H1 (review #75) */
.hero__header .kicker { font-size: .95rem; letter-spacing: .14em; }
/* full-width header → the mission H1 fits one line on desktop (review #54) */
.hero__header .display-1 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); }
.hero__header .hero__sub { max-width: none; } /* tagline one line at full width (was capped at 34ch from the old rail layout) */
.hero__proof { font-size: var(--text-small); line-height: 1.5; color: var(--slate); }
.hero__proof .hc__cite { display: block; margin-top: .25em; }
/* at width, each slide reads as copy-beside-photo (full-width carousel) */
@media (min-width: 760px) {
  /* slide = full-bleed photo with the headline overlaid; no copy-beside-photo split anymore */
  .hc__slide { display: block; }
}
/* DESKTOP: dock the donate ask in a right rail so the gift array clears the fold at first
   paint, and the wrap reads balanced (not left-pinned) at wide widths (review 2026-06-16). */
@media (min-width: 980px) {
  .hero__stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: var(--s-6); align-items: start; }
  .hero__stack .donate { max-width: none; margin: 0; }
}
/* in the docked layout the carousel shares the row with the donate rail, so each slide
   stacks copy-above-photo (a 2-col copy|photo split would cram the headline into ~340px) */
@media (min-width: 980px) {
  .hero__stack .hc__slide { grid-template-columns: 1fr; gap: var(--s-3); align-items: start; }
  .hero__stack .hc__slide .hero__photo { margin-top: 0; aspect-ratio: 4 / 3; } /* taller so the carousel column meets the donate widget height (less left-side blank) */
  /* overlaid example headline, sized to the docked rail (longest line fits 2 rows) */
  .hero__stack .hero__photo figcaption { font-size: clamp(1.6rem, 2.15vw, 2.05rem); }
  /* the persistent header h1 is THE headline — a touch larger than the example slide heads, still sized to the rail */
  .hero__stack .hero__header .display-1 { font-size: clamp(2.7rem, 3.6vw, 3.7rem); }
  /* let the subhead fill the rail like the headline + photo (was capped at 34ch, which read
     as a narrow box that didn't match the rest of the slide — review 2026-06-16) */
  .hero__stack .hero__sub { max-width: none; }
}

/* ============================================================
   HEADING ROTATOR — "What we do" rotating taglines (crossfade)
   ============================================================ */
.head-rotator { position: relative; }
.hr__line { display: block; margin: 0; opacity: 0;
  transition: opacity var(--duration-reveal) var(--ease-brand); }
.hr__line:not(:first-child) { position: absolute; top: 0; left: 0; right: 0; }
.hr__line.is-active { opacity: 1; }
html:not(.js) .hr__line:first-child { opacity: 1; }  /* no-JS: show the lead line */

/* ============================================================
   DONATE — INLINE EXPANDING MODULE (Stripe Embedded Checkout) · added 2026-06-26 · reworked 2026-06-27
   Two interactive steps, expanded INLINE in the card: Choose -> Pay -> (branded) Thank-you.
   No <dialog>/sheet, no modal — desktop AND mobile both render in place. We do not collect name/email
   (Stripe Embedded Checkout does). Additive only; existing .donate / .gift / .toggle / .trust / .seal
   rules above are untouched. All gated to .js where collapse would otherwise hide content with no JS.
   ============================================================ */
.donate { position: relative; }
.donate__panes { min-width: 0; }

/* step machine: each pane animates open via grid-template-rows 0fr -> 1fr (450ms). Inactive panes
   are hidden + inert in JS (removed from tab order AND the AX tree). No-JS shows pane 1 only
   (panes 2-4 carry the `hidden` attribute in the markup). */
.js .donate__pane { display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-reveal) var(--ease-brand); }
.js .donate__pane.is-active { grid-template-rows: 1fr; }
.donate__pane[hidden] { display: none; }
.donate__pane-inner { overflow: hidden; min-width: 0; min-height: 0; }

/* inner content fade/translate, staggered ~80ms (gated to .js so no-JS content stays visible) */
.js .donate__pane-inner > * { opacity: 0; transform: translateY(8px); }
.js .donate__pane.is-active .donate__pane-inner > * { opacity: 1; transform: none;
  transition: opacity var(--duration-ui) var(--ease-brand), transform var(--duration-ui) var(--ease-brand); }
.js .donate__pane.is-active .donate__pane-inner > *:nth-child(2) { transition-delay: 80ms; }
.js .donate__pane.is-active .donate__pane-inner > *:nth-child(3) { transition-delay: 160ms; }
.js .donate__pane.is-active .donate__pane-inner > *:nth-child(4) { transition-delay: 240ms; }
.js .donate__pane.is-active .donate__pane-inner > *:nth-child(n+5) { transition-delay: 320ms; }

/* step indicator + announcements + action-blocking error (role="alert") */
.donate__step { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); margin: 0 0 var(--s-2); }
.donate__alert { margin: 0 0 var(--s-2); padding: .6em .8em; border-radius: var(--r-md);
  background: #fdeceb; color: var(--terra-text); border: 1px solid var(--terra);
  font-size: .85rem; font-weight: var(--weight-bold); line-height: 1.4; }
.donate__alert[hidden] { display: none; }

/* pane headings (Details / Pay / Thank-you) + scroll-margin so the sticky nav never covers them */
.donate__pane-head { font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-variation-settings: "opsz" 40; font-size: 1.35rem; line-height: 1.15; margin: 0 0 var(--s-2); color: var(--ink); }
[data-pane-heading] { scroll-margin-top: 84px; outline: none; }
/* "Donate" nav/footer links target the donation module itself (id=give) — offset clears the sticky nav
   so the full module lands in view, not the hero headline above it. */
.donate { scroll-margin-top: 84px; }

/* "Give anonymously" checkbox (lives in the Choose pane) */
.donate .check { display: flex; align-items: flex-start; gap: 10px; margin: var(--s-3) 0 0;
  font-size: .85rem; color: var(--slate); cursor: pointer; user-select: none; line-height: 1.45; }
.donate .check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--green); }
.donate .check input:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }

/* Turnstile slot reserves height so the card doesn't jolt when the widget paints */
/* interaction-only Turnstile is invisible for normal visitors, so no reserved height / no clip.
   If a real challenge shows, it can use the full card width and centers. */
.donate__turnstile { max-width: 100%; }
.donate__turnstile:not(:empty) { margin: var(--s-3) 0 0; display: flex; justify-content: center; }
.donate__turnstile iframe { max-width: 100%; }
/* pay step: Back at the TOP next to the heading (no scrolling past the card form to go back) */
.donate__payhead { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
.donate__payhead .donate__pane-head { margin: 0; }
/* Back control must read as an obvious tappable button, not plain text next to the heading. */
.donate__back { display: inline-flex; align-items: center; gap: .35em; padding: .55em 1em; font-size: .9rem;
  font-weight: var(--weight-bold); color: var(--green-deep); background: var(--paper-2);
  border: 1.5px solid var(--green-deep); border-radius: var(--r-pill); line-height: 1; }
.donate__back .donate__back-arrow { font-size: 1.15em; line-height: 1; }
.donate__back:hover { background: var(--green-deep); color: #fff; text-decoration: none; }

/* Back / Continue row */
.donate__row { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); }
.donate__row .btn--donate { flex: 1; }
.donate__row .btn--quiet { flex: 0 0 auto; padding-left: 0; padding-right: 0; }

/* Pay: #gcc-pay mount reserves 320px so the card holds steady before Stripe paints */
.donate__paystatus { margin: var(--s-3) 0; font-size: .9rem; color: var(--slate); text-align: center; }
.donate__paystatus[hidden] { display: none; }
/* spinner whenever the status line shows (loading the form, and "finishing" after the donor pays) */
.donate__paystatus:not([hidden])::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em;
  border: 2px solid var(--line-strong); border-top-color: var(--green); border-radius: 50%;
  animation: gcc-spin .8s linear infinite;
}
.donate__paystatus.is-processing { color: var(--ink); font-weight: var(--weight-medium); }
@keyframes gcc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .donate__paystatus:not([hidden])::before { animation-duration: 1.5s; } }
/* Express Checkout Element (Apple Pay / Google Pay) — big full-width buttons at the top of the pay pane.
   JS keeps it [hidden] until the wallet's `ready` event confirms a button will actually render. */
.donate__express { margin-top: var(--s-1); }
.donate__express[hidden] { display: none; }
/* While Stripe loads the wallet buttons (~1-1.5s, mostly Stripe's wallet-availability round-trip), show two
   button-shaped placeholder bars with a sweeping shine so the buttons fade in instead of popping in and
   shoving the page. Two absolutely-positioned bars mirror the two stacked wallet buttons. */
.donate__express.is-loading { position: relative; min-height: 112px; }
.donate__express.is-loading::before,
.donate__express.is-loading::after {
  content: ""; position: absolute; left: 0; right: 0; height: 50px; border-radius: 12px;
  /* Skeleton anchored to the warm brand neutrals (NOT a cool gray): resting bar = --line warm beige,
     sweep = --paper warm-white. Keeps the loading state in the brand's warm palette. */
  background-color: var(--line);                 /* #e7ddcd warm-beige placeholder, visible on the white card */
  background-image: linear-gradient(100deg, rgba(251,248,243,0) 34%, rgba(251,248,243,.92) 50%, rgba(251,248,243,0) 66%); /* --paper warm-white shine */
  background-size: 220% 100%; background-repeat: no-repeat;
  animation: gcc-shimmer 1.15s ease-in-out infinite;
}
.donate__express.is-loading::before { top: 2px; }
.donate__express.is-loading::after { top: 60px; }
@keyframes gcc-shimmer { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .donate__express.is-loading::before, .donate__express.is-loading::after { animation: none; } }
/* "or pay with card" divider — only shown (un-hidden by JS) when the express wallets are present. */
.donate__or { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0 0;
  font-family: var(--font-mono); font-weight: var(--weight-semibold); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.donate__or[hidden] { display: none; }
.donate__or::before, .donate__or::after { content: ""; flex: 1; height: 1.5px; border-radius: 1px; background: #cdbfa6; }
.donate__contact { margin-top: var(--s-2); }
.donate__contact:empty { display: none; }
.donate__mount { min-height: 280px; margin-top: var(--s-2); }
.donate__payerr { margin: var(--s-2) 0 0; font-size: .85rem; color: #cc2b2b; line-height: 1.4; }
.donate__payerr[hidden] { display: none; }
.donate__cta { margin-top: var(--s-3); }
/* standing reassurance under the Stripe form so donors don't refresh during the processing window */
.donate__payhint { margin: var(--s-2) 0 0; font-size: .78rem; color: var(--slate); text-align: center; line-height: 1.4; }
/* Step-2 amount recap (confirm what you're giving before paying) + tax-deductible trust line. */
.donate__payrecap { margin: 0 0 var(--s-3); text-align: center; font-family: var(--font-display);
  font-weight: var(--weight-semibold); font-variation-settings: "opsz" 32; font-size: 1.05rem; color: var(--ink); }
.donate__payrecap:empty { display: none; }
.donate__paytrust { margin: var(--s-2) 0 0; font-size: .75rem; color: var(--green-deep); text-align: center;
  letter-spacing: .01em; line-height: 1.4; }

/* inline thank-you — branded navy card (mirrors the standalone worker thank-you.html look:
   Fraunces heading w/ green-bright accent, warm radial glow, green CTA w/ ink text) */
/* Step-3 thank-you: LIGHT + celebratory to match steps 1+2 (was dark navy — broke the in-flow continuity).
   Soft green-tinted success panel, ink text, green-deep accents (green text on light), green CTA. */
.donate__thanks { position: relative; overflow: hidden; text-align: center;
  background: #eef9f4; color: var(--ink); border: 1px solid #d4ede1; border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-4); }
.donate__thanks::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 240px at 80% -15%, rgba(0,176,115,.12), transparent 62%),
              radial-gradient(320px 220px at -10% 120%, rgba(31,215,144,.10), transparent 62%); }
.donate__thanks > * { position: relative; }
.donate__thanks-kicker { display: block; font-family: var(--font-mono); font-weight: var(--weight-bold);
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--green-deep); margin: 0; }
.donate__thanks-head { font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-variation-settings: "opsz" 60; font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.12;
  letter-spacing: -.01em; color: var(--ink); margin: .35em 0 0; text-wrap: balance; }
.donate__thanks-head em { font-style: italic; color: var(--green-deep); }
.donate__thanks-body { margin: var(--s-2) auto 0; max-width: 40ch; font-size: 1.05rem;
  color: var(--slate); line-height: 1.6; }
.donate__again { margin-top: var(--s-4); }
/* Newsletter opt-in on the Choose pane — pre-checked (opt-out by default). */
.donate__news { display: flex; align-items: flex-start; gap: var(--s-1); margin-top: var(--s-3);
  font-size: .9rem; color: var(--slate); line-height: 1.4; cursor: pointer; }
.donate__news input { margin: .12em 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green); cursor: pointer; }
.donate__news-fine { opacity: .68; }
/* Lead-form honeypot: off-screen + non-interactive; only bots fill it (server no-ops those submissions). */
.lead-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* trust cluster sits ON TOP, under the Give Hope heading + above the amounts: hairline BELOW it */
.donate__trust .trust--top { margin: var(--s-2) 0 var(--s-3); padding: 0 0 var(--s-3);
  border-bottom: 1px solid var(--line); border-top: 0; }

/* reduced motion for the NEW donate animations (the existing rule only covers .reveal) */
@media (prefers-reduced-motion: reduce) {
  .donate__panes, .donate__pane { transition: none !important; animation: none !important; }
  .js .donate__pane { grid-template-rows: 1fr; }
  .js .donate__pane[hidden] { display: none; }
  .js .donate__pane-inner > * { opacity: 1; transform: none; transition: none !important; }
}
