/* =============================================================================
   Bridge Pantry Chicago — site styles
   Built on Bootstrap 5.3 (css/vendor/bootstrap.min.css). Load order: Bootstrap, then this file.

   Palette from the brief ........ Navy #0B3C5D · Emerald #2E8B57 · Gold #D4A017 · White · Light gray
   Text-safe companions .......... --green-ink (white text on emerald fails AA at 4.25:1, so buttons
                                   and small text use the deeper emerald) · --gold-ink for gold on light
   Type ........................ Big Shoulders Display (headlines, big numerals; designed for the City of
                                   Chicago) + Public Sans (text and UI). Both self-hosted in /fonts.
   Signature shape ............. The arch (the bridge): logo, hero scene, image frames, "How it works".

   Sections: 1 Tokens · 2 Base · 3 Buttons · 4 Forms · 5 Header/Footer · 6 Shared components
   ============================================================================= */

/* ---------- 1. Tokens & fonts ---------- */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* brand */
  --navy: #0B3C5D;
  --navy-900: #062B43;
  --navy-800: #082F49;
  --navy-600: #235F85;
  --navy-300: #9DB8CA;
  --navy-100: #E3EDF4;
  --navy-50: #F1F6FA;
  --green: #2E8B57;          /* fills, marks, chart bars (graphics need 3:1) */
  --green-ink: #1D6B43;      /* text and buttons with white text (6.5:1) */
  --green-100: #E4F2EA;
  --green-200: #BFE0CE;
  --gold: #D4A017;           /* fills on navy; button fill with navy text */
  --gold-300: #E3B23C;
  --gold-ink: #7A5800;       /* gold-toned text on light backgrounds */
  --gold-100: #FBF1D2;
  /* neutrals */
  --ink: #14232E;
  --ink-soft: #44545F;
  --line: #D5DEE5;
  --line-strong: #73838F;    /* input borders: 3.9:1 on white */
  --mist: #F3F5F7;
  /* type */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* shape */
  --r-ctl: 8px;
  --r-panel: 14px;
  --r-lg: 24px;
  --focus: var(--navy);      /* overridden to gold on dark sections */
  --header-h: 76px;

  /* Bootstrap bridge */
  --bs-body-font-family: var(--font-text);
  --bs-body-color: var(--ink);
  --bs-body-bg: #fff;
  --bs-link-color: var(--navy);
  --bs-link-hover-color: var(--green-ink);
  --bs-link-color-rgb: 11, 60, 93;          /* Bootstrap reads the -rgb variables for link colour */
  --bs-link-hover-color-rgb: 29, 107, 67;
  --bs-code-color: var(--navy);
  --bs-border-color: var(--line);
  --bs-form-invalid-color: #B02A37;
  --bs-form-invalid-border-color: #B02A37;
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 5.4rem); line-height: 0.94; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.65rem, 2.4vw, 2.05rem); font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }
p { max-width: 68ch; text-wrap: pretty; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); font-weight: 400; color: var(--ink-soft); line-height: 1.55; }
small, .small { font-size: 0.875rem; }
.text-soft { color: var(--ink-soft); }

a { text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
code { color: var(--navy); background: var(--navy-50); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.88em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.on-dark { --focus: var(--gold); }
.on-dark :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 3000;
  background: var(--navy); color: #fff; padding: 0.75rem 1.1rem; border-radius: var(--r-ctl); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

main:focus { outline: none; }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

@media (min-width: 1400px) { .container { max-width: 1240px; } }
/* Bootstrap's wide g-5 gutter pokes past the container padding on phones; keep the row inside the viewport */
@media (max-width: 767.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }

/* sections */
.section { padding-block: clamp(3.5rem, 7vw, 6.25rem); }
.section-mist { background: var(--mist); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 48rem; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- 3. Buttons ---------- */
.btn {
  --bs-btn-font-weight: 700;
  --bs-btn-border-radius: var(--r-ctl);
  --bs-btn-padding-x: 1.3rem;
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-border-width: 2px;
  font-family: var(--font-text);
  line-height: 1.25;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-lg { --bs-btn-padding-x: 1.7rem; --bs-btn-padding-y: 0.9rem; --bs-btn-font-size: 1.05rem; }
.btn-sm { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: 0.45rem; --bs-btn-font-size: 0.95rem; }
.btn:focus-visible { box-shadow: none; outline: 3px solid var(--focus); outline-offset: 3px; }

.btn-bp-navy  { --bs-btn-color:#fff; --bs-btn-bg:var(--navy); --bs-btn-border-color:var(--navy);
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:var(--navy-900); --bs-btn-hover-border-color:var(--navy-900);
  --bs-btn-active-color:#fff; --bs-btn-active-bg:var(--navy-900); --bs-btn-active-border-color:var(--navy-900); }
.btn-bp-gold  { --bs-btn-color:var(--navy); --bs-btn-bg:var(--gold); --bs-btn-border-color:var(--gold);
  --bs-btn-hover-color:var(--navy-900); --bs-btn-hover-bg:#E2B22F; --bs-btn-hover-border-color:#E2B22F;
  --bs-btn-active-color:var(--navy-900); --bs-btn-active-bg:#C99410; --bs-btn-active-border-color:#C99410; }
.btn-bp-green { --bs-btn-color:#fff; --bs-btn-bg:var(--green-ink); --bs-btn-border-color:var(--green-ink);
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#175A37; --bs-btn-hover-border-color:#175A37;
  --bs-btn-active-color:#fff; --bs-btn-active-bg:#175A37; --bs-btn-active-border-color:#175A37; }
.btn-bp-line  { --bs-btn-color:var(--navy); --bs-btn-bg:transparent; --bs-btn-border-color:var(--navy);
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:var(--navy); --bs-btn-hover-border-color:var(--navy);
  --bs-btn-active-color:#fff; --bs-btn-active-bg:var(--navy-900); --bs-btn-active-border-color:var(--navy-900); }
.btn-bp-white { --bs-btn-color:var(--navy); --bs-btn-bg:#fff; --bs-btn-border-color:#fff;
  --bs-btn-hover-color:var(--navy-900); --bs-btn-hover-bg:var(--navy-100); --bs-btn-hover-border-color:var(--navy-100);
  --bs-btn-active-color:var(--navy-900); --bs-btn-active-bg:var(--navy-100); --bs-btn-active-border-color:var(--navy-100); }
.btn-bp-line-white { --bs-btn-color:#fff; --bs-btn-bg:transparent; --bs-btn-border-color:rgba(255,255,255,.85);
  --bs-btn-hover-color:var(--navy); --bs-btn-hover-bg:#fff; --bs-btn-hover-border-color:#fff;
  --bs-btn-active-color:var(--navy); --bs-btn-active-bg:#fff; --bs-btn-active-border-color:#fff; }
/* inactive (donation placeholders): clearly unavailable, still readable */
.btn-bp-inactive { --bs-btn-color:var(--ink-soft); --bs-btn-bg:var(--mist); --bs-btn-border-color:#9AA9B4;
  --bs-btn-disabled-color:var(--ink-soft); --bs-btn-disabled-bg:var(--mist); --bs-btn-disabled-border-color:#9AA9B4;
  --bs-btn-disabled-opacity:1; border-style: dashed; }
.btn.disabled, .btn:disabled { cursor: not-allowed; }

/* ---------- 4. Forms ---------- */
.form-label, legend.form-label { font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; font-size: 1rem; }
.form-text { color: var(--ink-soft); font-size: 0.875rem; }
.req { color: #B02A37; font-weight: 700; }
.form-control, .form-select {
  min-height: 3rem; padding: 0.7rem 0.9rem; color: var(--ink); background-color: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); font-size: 1rem;
}
textarea.form-control { min-height: 9rem; }
.form-control:focus, .form-select:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.28); outline: none;
}
.form-control::placeholder { color: #5B6B76; opacity: 1; }
.form-check-input { width: 1.25em; height: 1.25em; margin-top: 0.2em; border: 1.5px solid var(--line-strong); }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.28); }
.form-check-label { cursor: pointer; }
/* keep validation quiet: only show problems, never green "valid" decoration */
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: var(--line-strong); background-image: none; padding-right: 0.9rem; }
.was-validated .form-control:valid:focus, .was-validated .form-select:valid:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.28); }
.was-validated .form-check-input:valid { border-color: var(--line-strong); }
.was-validated .form-check-input:valid:checked { background-color: var(--navy); border-color: var(--navy); }
.was-validated .form-check-input:valid ~ .form-check-label { color: inherit; }
.invalid-feedback { font-size: 0.9rem; font-weight: 600; }
.fieldset-error { display: none; color: #B02A37; font-size: 0.9rem; font-weight: 600; margin-top: 0.4rem; }
.has-error .fieldset-error { display: block; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--green-ink); }
.form-status.is-error { color: #B02A37; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 0.875rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- 5. Header & footer ---------- */
.topbar { background: var(--navy-900); color: #DCE8F0; font-size: 0.875rem; }
.topbar .container { padding-block: 0.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; align-items: center; }
.topbar p { margin: 0; max-width: none; }
.topbar a { color: #fff; text-decoration-color: var(--gold); font-weight: 600; display: inline-block; padding-block: 0.5rem; margin-block: -0.5rem; }
.topbar a:hover { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line); transition: box-shadow 0.2s ease;
}
/* set by js/script.js once the page scrolls, so the sticky bar separates from the content under it */
.site-header.is-scrolled { box-shadow: 0 8px 20px -14px rgba(6, 43, 67, 0.5); }
.navbar { padding-block: 0.55rem; min-height: var(--header-h); --bs-navbar-toggler-focus-width: 0; }
.navbar-brand { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0; margin-right: 1.25rem; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; color: var(--navy); letter-spacing: 0.01em; }
.brand-place { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-top: 0.2rem; letter-spacing: 0.02em; }
.navbar .nav-link { font-weight: 600; color: var(--ink); padding: 0.6rem 0.85rem; position: relative; }
.navbar .nav-link:hover { color: var(--green-ink); }
.navbar .nav-link.active { color: var(--navy); }
@media (min-width: 992px) {
  .navbar .nav-link.active::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem; height: 3px; border-radius: 2px; background: var(--gold); }
}
.navbar-toggler { border: 2px solid var(--navy); border-radius: var(--r-ctl); padding: 0.4rem 0.55rem; }
.navbar-toggler:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.navbar { --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230B3C5D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.nav-actions { display: flex; gap: 0.6rem; }
@media (max-width: 991.98px) {
  /* the open menu scrolls on its own if it is taller than the screen (short phones, landscape) */
  .navbar-collapse { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .navbar-nav { padding-top: 0.5rem; }
  .navbar .nav-link { padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
  .navbar .nav-item:last-child .nav-link { border-bottom: 0; }
  .navbar .nav-link.active { box-shadow: inset 4px 0 0 var(--gold); padding-left: 1rem; }
  .nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0.75rem 0 1.25rem; }
  .nav-actions .btn { min-height: 48px; font-size: 1rem; }
}
@media (max-width: 575.98px) {
  :root { --header-h: 64px; }
  .navbar { padding-block: 0.4rem; }
  .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
  .brand-name { font-size: 1.5rem; }
  .brand-place { font-size: 0.78rem; }
}

.site-footer { background: var(--navy-900); color: #C9D6DF; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-place { color: #C9D6DF; }
.footer-blurb { max-width: 30rem; font-size: 0.97rem; }
.footer-title { font-family: var(--font-text); font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.9rem; letter-spacing: 0.01em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-links a { text-decoration: none; display: inline-block; padding-block: 0.3rem; }
@media (max-width: 575.98px) {
  .footer-links { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .footer-links a { display: block; padding-block: 0.6rem; }
}
.footer-links a:hover { text-decoration: underline; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; font-size: 0.97rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact li > span, .footer-contact li > a { min-width: 0; overflow-wrap: anywhere; }
.footer-contact .icon { margin-top: 0.3em; color: var(--gold); }
.social { display: flex; gap: 0.6rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45); color: #fff; font-size: 1.15rem; text-decoration: none;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.social a.is-inactive { opacity: 0.7; cursor: not-allowed; }
.social a.is-inactive:hover { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.footer-legal { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(255, 255, 255, 0.16); padding-block: 1.5rem 2rem; font-size: 0.9rem; }
.footer-legal p { margin: 0 0 0.5rem; max-width: 62rem; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal .footer-legal-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; max-width: none; }
.footer-legal-top a { display: inline-block; padding-block: 0.5rem; margin-block: -0.5rem; font-weight: 600; }

/* ---------- 6. Shared components ---------- */
.arch-tile {
  width: 56px; height: 64px; display: grid; place-items: center; font-size: 1.75rem; flex: none;
  border-radius: 999px 999px 10px 10px; background: var(--navy-100); color: var(--navy);
}
.arch-tile.is-green { background: var(--green-100); color: var(--green-ink); }
.arch-tile.is-gold  { background: var(--gold-100); color: var(--gold-ink); }
.arch-tile.is-navy  { background: var(--navy); color: var(--gold); }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 0.95rem; font-weight: 600;
}
.chip .icon { color: var(--green-ink); }

.status {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.7rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 700; border: 1px solid; line-height: 1.4; white-space: nowrap;
}
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status-active  { color: var(--green-ink); background: var(--green-100); border-color: var(--green-200); }
.status-growing { color: var(--navy); background: var(--navy-100); border-color: #BFD3E1; }
.status-dev     { color: var(--gold-ink); background: var(--gold-100); border-color: #EBD58B; }

/* Draft / placeholder notes. Set showDraftNotes:false in js/script.js to hide them all. */
.draft-note {
  display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.25rem 0 0; padding: 0.65rem 0.9rem;
  border: 1px dashed #A07A0A; background: var(--gold-100); color: #4A3600; font-size: 0.88rem;
  border-radius: var(--r-ctl); max-width: 46rem; line-height: 1.5;
}
.draft-note .icon { margin-top: 0.2em; color: var(--gold-ink); }
.draft-note code { color: #3A2A00; background: rgba(122, 88, 0, 0.13); }
.draft-note strong { font-weight: 700; }
.no-draft-notes .draft-note { display: none; }

.page-hero {
  position: relative; color: #fff; background: var(--navy) url("../images/arch-pattern.svg") right bottom / auto 125% no-repeat;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.75rem, 5.5vw, 4.5rem); --focus: var(--gold);
}
.page-hero h1 { color: #fff; font-size: clamp(2.9rem, 6.4vw, 5rem); margin-bottom: 1rem; max-width: 16em; }
.page-hero .lead { color: #DCE8F0; max-width: 40rem; margin-bottom: 0; }
.page-hero a { color: #fff; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--navy-300); --bs-breadcrumb-item-active-color: #DCE8F0; --bs-breadcrumb-divider: "/"; font-size: 0.92rem; margin-bottom: 1.25rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--navy-300); }
.breadcrumb a { text-decoration-color: var(--gold); display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
.breadcrumb a:hover { color: var(--gold); }

.cta-band {
  color: #fff; background: var(--navy) url("../images/arch-pattern.svg") right -4rem bottom / auto 135% no-repeat;
  padding-block: clamp(3rem, 6vw, 5rem); --focus: var(--gold);
}
.cta-band h2 { color: #fff; max-width: 15em; }
.cta-band p { color: #DCE8F0; font-size: 1.15rem; max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 575.98px) { .cta-actions .btn { flex: 1 1 100%; } }

/* Back-to-top button (added by js/script.js on long pages, shown after the first couple of screens) */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1020; width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.25rem;
  box-shadow: 0 10px 24px -10px rgba(6, 43, 67, 0.7);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-900); }
.to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (min-width: 992px) { .to-top { right: 1.5rem; bottom: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Motion. Everything here is skipped for visitors who ask for reduced motion, and nothing depends on it:
   without JavaScript or IntersectionObserver every element simply shows. */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  /* smooth cross-fade between pages in browsers that support it; the header stays put */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }

  .hero h1, .hero-lead, .hero-actions { animation: rise-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-lead { animation-delay: 0.12s; }
  .hero-actions { animation-delay: 0.24s; }
  .page-hero h1, .page-hero .lead, .page-hero .hero-help { animation: rise-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-hero .lead { animation-delay: 0.08s; }
  .page-hero .hero-help { animation-delay: 0.16s; }

  /* js/script.js adds .reveal only to content that starts below the fold, then .is-in as it scrolls into view */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0s); }
  .reveal.is-in { opacity: 1; transform: none; }

  .btn { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
  .btn:not(.disabled):not(:disabled):hover { transform: translateY(-1px); }
  .btn:not(.disabled):not(:disabled):active { transform: none; }
}

/* =============================================================================
   Sections 7+ : page-specific components
   ============================================================================= */

/* ---------- 7. Home: hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; background: var(--navy-900);
  display: flex; flex-direction: column; min-height: clamp(640px, 88vh, 880px); --focus: var(--gold);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 21, 38, 0.95) 0%, rgba(4, 21, 38, 0.84) 36%, rgba(4, 21, 38, 0.4) 64%, rgba(4, 21, 38, 0.06) 100%),
    linear-gradient(0deg, rgba(4, 21, 38, 0.65), transparent 40%);
}
.hero-main { flex: 1; display: flex; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; font-size: clamp(3.1rem, 7.2vw, 5.7rem); max-width: 9.8em; line-height: 0.93; margin-bottom: 0; }
.hero-lead { font-size: clamp(1.15rem, 1.9vw, 1.4rem); max-width: 33rem; color: #E6EEF4; margin: 1.5rem 0 0; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.1rem; }
.hero-trust { border-top: 1px solid rgba(255, 255, 255, 0.2); background: rgba(4, 21, 38, 0.62); backdrop-filter: blur(6px); }
.hero-trust ul { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.hero-trust li { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1.1rem 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.95rem; color: #E6EEF4; line-height: 1.45; }
.hero-trust li:first-child { border-left: 0; padding-left: 0; }
.hero-trust .icon { font-size: 1.35rem; color: var(--gold); margin-top: 0.1rem; }
.hero-trust strong { color: #fff; display: block; font-weight: 700; }
@media (max-width: 991.98px) {
  .hero { min-height: clamp(560px, 72vh, 720px); }
  .hero-art { object-position: 66% 50%; }
  .hero-shade { background: linear-gradient(90deg, rgba(4, 21, 38, 0.93) 0%, rgba(4, 21, 38, 0.78) 55%, rgba(4, 21, 38, 0.35) 100%), linear-gradient(0deg, rgba(4, 21, 38, 0.7), transparent 45%); }
  /* tablets keep the three trust points side by side, just tighter */
  .hero-trust li { padding: 1rem 1rem; gap: 0.65rem; font-size: 0.9rem; }
}
@media (max-width: 767.98px) {
  .hero-trust ul { grid-template-columns: 1fr; }
  .hero-trust li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 0.85rem 0; }
  .hero-trust li:first-child { border-top: 0; }
}
@media (max-width: 575.98px) {
  /* phones: let the content set the height instead of forcing a near-full-screen hero */
  .hero { min-height: 0; }
  .hero-main { padding-block: 2.5rem 2.25rem; }
  .hero h1 { font-size: clamp(2.45rem, 11.5vw, 3.1rem); }
  .hero-lead { margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.6rem; gap: 0.6rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- 8. Home: pillars (mission highlights) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); margin: 0; padding: 0; list-style: none; }
.pillar { padding: 2rem 1.75rem 2.25rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar h3 { margin: 0; }
.pillar p { margin: 0; color: var(--ink-soft); }
@media (max-width: 991.98px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  /* phones: icon beside the text, so four pillars fit in about one screen */
  .pillars { grid-template-columns: 1fr; }
  .pillar { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.2rem; align-items: start; padding: 1.25rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .pillar .arch-tile { grid-row: span 2; width: 48px; height: 56px; font-size: 1.5rem; }
  .pillar h3 { font-size: 1.6rem; }
}

/* ---------- 9. Home: the gap (statistics with sources) ---------- */
.gap-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.gap-stat { padding: 1.5rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.gap-stat:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.gap-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 5.4vw, 4.6rem); line-height: 0.9; color: var(--navy); }
.gap-text { display: block; margin-top: 0.5rem; font-weight: 600; line-height: 1.4; }
.gap-src { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-soft); }
.sources-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1.25rem; }
@media (max-width: 575.98px) {
  .gap-stats { grid-template-columns: 1fr; }
  .gap-stat:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- 10. Home: how it works (two arches span three stops) ---------- */
.route { --gap: 2.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); list-style: none; margin: 0; padding: 5rem 0 0; }
.route-stop { position: relative; padding-top: 2.4rem; }
.stop-node {
  position: absolute; top: -26px; left: 0; z-index: 1; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--navy);
}
.route-stop:not(:last-child)::before {
  content: ""; position: absolute; left: 26px; top: -1.5px; width: calc(100% + var(--gap)); height: 3px; background: var(--navy);
}
.route-stop:not(:last-child)::after {
  content: ""; position: absolute; left: 26px; top: -74px; width: calc(100% + var(--gap)); height: 74px;
  border: 3px solid var(--gold); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.route-stop h3 { margin-bottom: 0.4rem; }
.route-stop p { color: var(--ink-soft); }
.route-note { margin-top: 1rem; font-size: 0.95rem; }
.route-note .chip-list { margin-top: 0.5rem; }
/* below desktop the three stops read top to bottom; three columns are too narrow on tablets */
@media (max-width: 991.98px) {
  .route { grid-template-columns: 1fr; padding-top: 0; gap: 2.25rem; }
  .route-stop p { max-width: 60ch; }
  .route-stop { padding: 0 0 0 4.6rem; min-height: 52px; }
  .stop-node { top: 0; }
  .route-stop:not(:last-child)::before { left: 24.5px; top: 54px; width: 3px; height: calc(100% + 2.25rem - 54px); }
  .route-stop:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .route-stop::after { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.3,.6,.2,1) .15s; }
  .js .route.is-drawn .route-stop:nth-child(2)::after { transition-delay: .7s; }
  .js .route.is-drawn .route-stop::after { clip-path: inset(0 0 0 0); }
}

/* ---------- 11. Notice (food safety) ---------- */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start;
  padding: clamp(1.5rem, 3.4vw, 2.75rem); border-radius: var(--r-lg); background: var(--green-100); border: 2px solid var(--green);
}
.notice-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green-ink); color: #fff; display: grid; place-items: center; font-size: 2.1rem; }
.notice h2 { color: var(--green-ink); font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 0.75rem; }
.notice p { max-width: 62ch; }
.notice-list { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
@media (min-width: 992px) {
  .notice { grid-template-columns: auto minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
  .notice.notice-navy { grid-template-columns: auto 1fr; }
  .notice .notice-list { margin: 0; padding: 0.25rem 0 0.25rem clamp(1.5rem, 3vw, 2.5rem); border-left: 2px solid var(--green-200); gap: 0.9rem; }
}
@media (max-width: 991.98px) { .notice .notice-list { grid-column: 2; margin-top: 0; } }
.notice-list li { display: flex; gap: 0.65rem; align-items: flex-start; }
.notice-list .icon { color: var(--green-ink); margin-top: 0.3em; }
.notice-navy { background: var(--navy-50); border-color: var(--navy); }
.notice-navy .notice-icon { background: var(--navy); }
.notice-navy h2 { color: var(--navy); font-size: clamp(1.9rem, 3vw, 2.5rem); }
@media (max-width: 575.98px) { .notice { grid-template-columns: 1fr; } .notice .notice-list { grid-column: 1; } .notice-icon { width: 60px; height: 60px; font-size: 1.7rem; } }

/* ---------- 12. Counters ---------- */
.counters { background: var(--navy); color: #fff; padding-block: clamp(3rem, 6vw, 4.75rem); --focus: var(--gold); }
.counters h2 { color: #fff; margin-bottom: 0.5rem; }
.counters .lead { color: #DCE8F0; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.counter { padding: 1.75rem 1.25rem 0.5rem 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.counter:first-child { border-left: 0; padding-left: 0; }
.count-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 6.2vw, 5.4rem); line-height: 0.9; color: var(--gold); font-variant-numeric: tabular-nums; }
.count-label { display: block; margin-top: 0.65rem; font-weight: 700; color: #fff; }
.count-sub { display: block; font-size: 0.88rem; color: #C9D6DF; margin-top: 0.15rem; }
.counter-foot { margin-top: 1.5rem; font-size: 0.88rem; color: #C9D6DF; max-width: 60rem; }
@media (max-width: 991.98px) {
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(odd) { border-left: 0; padding-left: 0; }
  .counter:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.22); margin-top: 1.25rem; }
}
/* phones keep a 2 x 2 grid with smaller numerals; only very narrow screens drop to one column */
@media (max-width: 575.98px) {
  .count-num { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .counter { padding: 1.25rem 0.5rem 0.25rem 1rem; }
  .count-label { font-size: 0.95rem; line-height: 1.3; }
  .count-sub { font-size: 0.82rem; }
}
@media (max-width: 359.98px) { .counter-grid { grid-template-columns: 1fr; } .counter { border-left: 0; padding-left: 0; } .counter + .counter { border-top: 1px solid rgba(255,255,255,.22); margin-top: 1rem; } }

/* ---------- 13. Testimonials ---------- */
.quote-feature { margin: 0; padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 6px solid var(--gold); }
.quote-feature blockquote { margin: 0 0 1.25rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; color: var(--navy); text-wrap: balance; }
.quote-side { margin: 0; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.quote-side:first-child { border-top: 2px solid var(--navy); }
.quote-side blockquote { margin: 0 0 0.9rem; font-size: 1.1rem; line-height: 1.55; }
.quote-by { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-100); color: var(--navy); font-weight: 800; font-family: var(--font-display); font-size: 1.15rem; flex: none; }
.quote-by strong { display: block; line-height: 1.25; }
.quote-by span { color: var(--ink-soft); }

/* ---------- 14. About ---------- */
.story-photo { border-radius: 999px 999px var(--r-panel) var(--r-panel); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-100); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.75rem; border-left: 3px solid var(--line); display: grid; gap: 1.75rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.75rem - 9px); top: 0.55rem; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.timeline li.is-planned::before { border-style: dashed; border-color: var(--gold-ink); }
.timeline .when { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1.1; color: var(--navy); }
.timeline p { margin: 0.15rem 0 0; color: var(--ink-soft); }
.timeline .status { margin-top: 0.4rem; }

.principles { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.principles li { display: grid; grid-template-columns: minmax(11rem, 17rem) 1fr; gap: 0.5rem 3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.principles h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.principles p { margin: 0; max-width: 60ch; }
@media (max-width: 767.98px) { .principles li { grid-template-columns: 1fr; } }

.mv { background: var(--navy); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); --focus: var(--gold); }
.mv h2 { color: var(--gold); font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 0.75rem; }
.mv-statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.1; margin: 0 0 1rem; color: #fff; text-wrap: balance; }
.mv p.mv-support { color: #DCE8F0; margin: 0; }
.mv .col-lg-6 + .col-lg-6 { border-left: 1px solid rgba(255, 255, 255, 0.22); }
@media (max-width: 991.98px) { .mv .col-lg-6 + .col-lg-6 { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 2rem; } }

/* Founders: profile cards with arch-shaped avatars (initials by default; an <img class="person-avatar"> works too) */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.person { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; }
.person-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.5rem; align-items: center; }
.person-head > div > :last-child { margin-bottom: 0; }
.person-bio { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.person-bio > p:last-child { margin-bottom: 0; }
.person-avatar {
  width: 104px; height: 120px; display: grid; place-items: center; flex: none; object-fit: cover;
  border-radius: 999px 999px 16px 16px; background: var(--navy) url("../images/arch-pattern.svg") center bottom / 180% auto no-repeat;
  color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 2.9rem; line-height: 1; letter-spacing: 0.02em;
  box-shadow: inset 0 -6px 0 var(--green);
}
.person-avatar.is-pending { background: var(--navy-100); color: var(--navy-600); font-size: 3rem; box-shadow: inset 0 -6px 0 var(--navy-300); }
.person-name { margin: 0; font-size: clamp(1.9rem, 3vw, 2.4rem); }
.person-role { margin: 0.3rem 0 0; font-weight: 700; color: var(--green-ink); }
.person-meta { margin: 0.15rem 0 0; font-weight: 600; font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); }
.person .draft-note { margin-top: 0; }
@media (max-width: 991.98px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
  .person-avatar { width: 80px; height: 92px; font-size: 2.2rem; }
  .person-avatar.is-pending { font-size: 2.3rem; }
}
.section-more { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; }
@media (max-width: 575.98px) { .section-more .btn { width: 100%; } }
.founder-note { max-width: 52rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.founder-note-title { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.founder-message { margin: 0; padding-left: 1.5rem; border-left: 5px solid var(--gold); }
.founder-message p { font-size: 1.12rem; }
.founder-message footer { font-weight: 700; color: var(--navy); }

.commit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-top: 2px solid var(--navy); }
.commit-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.commit-list h3 { font-size: 1.7rem; margin-bottom: 0.35rem; }
.commit-list p { margin: 0; color: var(--ink-soft); }
@media (max-width: 767.98px) { .commit-list { grid-template-columns: 1fr; } }

/* ---------- 15. Programs ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.program { border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; display: flex; flex-direction: column; gap: 1rem; }
.program-head { display: flex; gap: 1rem; align-items: flex-start; }
.program-head h3 { margin: 0 0 0.35rem; }
.program-sub { margin: 0; font-weight: 600; color: var(--ink-soft); }
.program p { margin: 0; }
.program-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.program-points li { display: flex; gap: 0.6rem; align-items: flex-start; }
.program-points .icon { color: var(--green-ink); margin-top: 0.3em; }
.program-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); background: var(--navy-50); border-color: #CFE0EC; }
.program-feature .program-col { display: flex; flex-direction: column; gap: 1rem; }
.program-feature h4 { font-family: var(--font-text); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; }
.program-link { margin-top: auto; font-weight: 700; }
@media (max-width: 991.98px) { .programs-grid, .program-feature { grid-template-columns: 1fr; } }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.stage { position: relative; padding-top: 2rem; border-top: 3px solid var(--line); }
.stage::before { content: ""; position: absolute; top: -11px; left: 0; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--navy-300); }
.stage.is-now { border-top-color: var(--green); }
.stage.is-now::before { background: var(--green); border-color: var(--green); }
.stage-label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }
.stage-when { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--navy); margin: 0.1rem 0 0.5rem; line-height: 1.1; }
.stage h3 { font-size: 1.55rem; }
.stage p { color: var(--ink-soft); margin: 0.3rem 0 0; }
@media (max-width: 991.98px) { .roadmap { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; } }
@media (max-width: 575.98px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- 16. Volunteer & partner ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; list-style: none; margin: 0; padding: 0; }
.roles li { padding: 1.4rem 0 1.75rem; border-top: 2px solid var(--navy); }
.roles h3 { font-size: 1.75rem; margin-bottom: 0.4rem; }
.roles p { margin: 0; color: var(--ink-soft); }
@media (max-width: 991.98px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .roles { grid-template-columns: 1fr; } }

.signup { display: grid; grid-template-columns: 5fr 7fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.signup-side { background: var(--navy) url("../images/arch-pattern.svg") left bottom / auto 70% no-repeat; color: #fff; padding: clamp(1.75rem, 4vw, 3rem); --focus: var(--gold); }
.signup-side h2 { color: #fff; font-size: clamp(2.2rem, 3.6vw, 3rem); }
.signup-side p { color: #DCE8F0; }
.signup-steps { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.signup-steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.75rem; align-items: start; }
.signup-steps li::before { content: counter(s); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.signup-steps strong { color: #fff; display: block; }
.signup-main { padding: clamp(1.5rem, 4vw, 3rem); }
.signup-main h3 { margin-bottom: 1.25rem; }
.embed-frame { width: 100%; min-height: 720px; border: 0; }
.form-fieldset { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
/* checkbox options as full-size tiles: the whole box is the tap target and the chosen ones stand out */
.choice-grid .form-check, .form-check.check-tile {
  position: relative; display: flex; align-items: center; min-height: 3rem; margin: 0; padding: 0.65rem 0.9rem 0.65rem 2.75rem;
  border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: #fff; line-height: 1.35;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice-grid .form-check .form-check-input, .check-tile .form-check-input { position: absolute; left: 0.9rem; top: 50%; float: none; margin: 0; transform: translateY(-50%); }
.choice-grid .form-check-label::after, .check-tile .form-check-label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.choice-grid .form-check:hover, .check-tile:hover { border-color: var(--navy-300); background: var(--navy-50); }
.choice-grid .form-check:has(.form-check-input:checked), .check-tile:has(.form-check-input:checked) { border-color: var(--navy); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy); }
.choice-grid .form-check:has(.form-check-input:focus-visible), .check-tile:has(.form-check-input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-grid .form-check-input:focus-visible, .check-tile .form-check-input:focus-visible { outline: none; }
.has-error .choice-grid .form-check:not(:has(:checked)) { border-color: #B02A37; }
@media (max-width: 991.98px) { .signup { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .choice-grid { grid-template-columns: 1fr; } }

.audience { margin: 0 0 2.25rem; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-top: 2px solid var(--navy); }
.benefit-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.benefit-list h3 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.benefit-list p { margin: 0; color: var(--ink-soft); }
@media (max-width: 767.98px) { .benefit-list { grid-template-columns: 1fr; } }
.ask-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ask-card { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 1.75rem; background: #fff; }
.ask-card h3 { font-size: 1.7rem; }
.ask-card ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.ask-card li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ask-card .icon { color: var(--green-ink); margin-top: 0.3em; }
@media (max-width: 767.98px) { .ask-grid { grid-template-columns: 1fr; } }

.accordion {
  --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--r-panel); --bs-accordion-inner-border-radius: calc(var(--r-panel) - 1px);
  --bs-accordion-btn-color: var(--navy); --bs-accordion-btn-bg: #fff; --bs-accordion-active-color: var(--navy); --bs-accordion-active-bg: var(--navy-50);
  --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-btn-padding-y: 1.1rem; --bs-accordion-btn-padding-x: 1.4rem; --bs-accordion-body-padding-x: 1.4rem;
}
.accordion-header { font-family: var(--font-text); font-size: 1rem; line-height: 1.4; margin: 0; }
.accordion-button { font-family: var(--font-text); font-weight: 700; font-size: 1.05rem; }
.accordion-button:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.accordion-body { color: var(--ink); }
.accordion-body p:last-child { margin-bottom: 0; }

/* ---------- 17. Donate ---------- */
.status-banner { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.4rem; border: 1.5px solid #D2B14A; background: var(--gold-100); color: #4A3600; border-radius: var(--r-panel); }
.status-banner .icon { font-size: 1.5rem; margin-top: 0.1rem; color: var(--gold-ink); }
.status-banner p { margin: 0; max-width: 60ch; }
.status-banner strong { color: #3A2A00; }
.status-banner a { color: #3A2A00; font-weight: 700; }
.status-banner[hidden] { display: none; }

.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin: 0; padding: 0; border: 0; }
.amount { position: relative; display: block; }
.amount input[type="radio"] { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.amount-label { position: relative; display: block; height: 100%; }
.amount-card {
  display: flex; flex-direction: column; gap: 0.2rem; height: 100%; padding: 1.1rem 1rem 1.2rem; border: 2px solid var(--line-strong); border-radius: var(--r-panel); background: #fff;
}
.amount-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--navy); }
.amount-sub { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.35; }
.amount input[type="radio"]:checked + .amount-card { border-color: var(--navy); background: var(--navy-50); box-shadow: inset 0 0 0 2px var(--navy); }
.amount input[type="radio"]:focus-visible + .amount-card { outline: 3px solid var(--navy); outline-offset: 3px; }
.amount input[type="radio"]:disabled { cursor: not-allowed; }
.amount input[type="radio"]:disabled + .amount-card { border-style: dashed; background: var(--mist); border-color: #9AA9B4; }
.amount input[type="radio"]:disabled + .amount-card .amount-num { color: #4C5C68; }
.amount-other .amount-card { padding-bottom: 4.5rem; }
.amount-custom { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2; display: flex; align-items: center; gap: 0.3rem; }
.amount-custom span { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--navy); }
.amount-custom input.form-control { min-height: 2.5rem; width: 100%; padding: 0.3rem 0.6rem; }
.amount-custom input:disabled { background: #E9EDF0; cursor: not-allowed; }
/* "Custom" spans two cells on smaller screens so the grid has no empty hole */
@media (max-width: 991.98px) { .amounts { grid-template-columns: repeat(3, 1fr); } .amount-other { grid-column: span 2; } }
@media (max-width: 575.98px) { .amounts { grid-template-columns: repeat(2, 1fr); } }

.providers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.provider { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 1.5rem; background: #fff; display: flex; flex-direction: column; gap: 0.75rem; }
.provider h3 { font-size: 1.6rem; margin: 0; }
.provider p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.provider .btn { margin-top: auto; }
@media (max-width: 767.98px) { .providers { grid-template-columns: 1fr; } }

.donut-wrap { display: grid; grid-template-columns: 250px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.donut-box { position: relative; width: 250px; height: 250px; }
.donut { width: 250px; height: 250px; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.05; }
.donut-center strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--navy); }
.donut-center span { font-size: 0.85rem; color: var(--ink-soft); }
.donut circle { fill: none; stroke-width: 34; }
@media (prefers-reduced-motion: no-preference) { .donut .seg { transition: stroke-dasharray 1s cubic-bezier(.3,.6,.2,1); } }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.legend li { display: grid; grid-template-columns: 1.1rem 1fr auto; gap: 0.75rem; align-items: baseline; }
.swatch { width: 1.1rem; height: 1.1rem; border-radius: 3px; align-self: center; }
.legend strong { font-variant-numeric: tabular-nums; }
.legend .legend-sub { display: block; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 575.98px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .legend { justify-self: stretch; } }

.help-ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.help-ways li { padding: 1.4rem 0 1.5rem; border-top: 2px solid var(--navy); }
.help-ways h3 { font-size: 1.7rem; }
.help-ways p { color: var(--ink-soft); }
.help-ways a { font-weight: 700; display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
@media (max-width: 767.98px) { .help-ways { grid-template-columns: 1fr; } }

/* ---------- 18. Impact dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); }
.kpi { padding: 1.5rem 1.25rem 1.6rem; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi .icon { font-size: 1.4rem; color: var(--green-ink); }
.kpi-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 4.2vw, 3.8rem); line-height: 0.95; color: var(--navy); margin-top: 0.5rem; font-variant-numeric: tabular-nums; }
.kpi-label { display: block; font-weight: 700; margin-top: 0.3rem; line-height: 1.3; }
.kpi-sub { display: block; font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.2rem; line-height: 1.4; }
@media (max-width: 1199.98px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-left: 1px solid var(--line); }
  .kpi:nth-child(3n+1) { border-left: 1px solid var(--line); padding-left: 1.25rem; }
  .kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi:last-child { grid-column: 1 / -1; }
}

.panel { border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.25rem, 3vw, 2rem); background: #fff; height: 100%; }
.panel-mist { background: var(--mist); border-color: transparent; }
.chart { margin: 0; }
.chart-title { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; color: var(--navy); line-height: 1.05; margin: 0 0 0.35rem; }
.chart-sub { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 0.97rem; }
.chart-note { margin: 1rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.chart-data { margin-top: 1rem; font-size: 0.92rem; }
.chart-data summary { cursor: pointer; font-weight: 700; color: var(--navy); display: inline-block; padding: 0.25rem 0; }
.chart-data table { width: 100%; margin-top: 0.5rem; border-collapse: collapse; }
.chart-data th, .chart-data td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; }
.chart-data td:last-child, .chart-data th:last-child { text-align: right; }

.vbars-wrap { position: relative; padding-top: 0.5rem; }
.vbars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(0.25rem, 1.2vw, 0.75rem); align-items: end; height: 270px; border-bottom: 2px solid var(--navy); }
.vbar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; align-items: stretch; }
.vbar-value { font-size: 0.78rem; font-weight: 700; text-align: center; color: var(--ink-soft); margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.vbar-fill { height: 0; background: var(--green); border-radius: 4px 4px 0 0; }
.v-short { display: none; }
@media (max-width: 575.98px) { .v-full { display: none; } .v-short { display: inline; } .vbar-value { font-size: 0.72rem; } }
.vbar.is-latest .vbar-fill { background: repeating-linear-gradient(135deg, var(--green) 0 6px, #55A97B 6px 12px); }
.vlabels { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(0.25rem, 1.2vw, 0.75rem); margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-soft); text-align: center; font-weight: 600; }
.is-drawn .vbar-fill { height: var(--h); }
.hbars { display: grid; gap: 0.95rem; }
.hbar { display: grid; grid-template-columns: minmax(0, 14rem) 1fr 3.8rem; align-items: center; gap: 1rem; }
.hbar-label { font-size: 0.95rem; line-height: 1.3; }
.hbar-track { height: 24px; background: var(--navy-50); border-radius: 4px; overflow: hidden; }
.hbar-fill { height: 100%; width: 0; border-radius: 4px; }
.is-drawn .hbar-fill { width: var(--w); }
.hbar-fill.t-est  { background: var(--green); }
.hbar-fill.t-proj { background: repeating-linear-gradient(135deg, var(--green) 0 6px, #55A97B 6px 12px); }
.hbar-fill.t-bench { background: var(--navy-300); }
.hbar-fill.t-gap { background: var(--navy-600); }
.hbar-value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.hbar-value small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 0.78rem; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.9rem; }
.legend-inline li { display: flex; align-items: center; gap: 0.45rem; }
.legend-inline .sw { width: 1.1rem; height: 0.8rem; border-radius: 2px; }
.sw-est { background: var(--green); }
.sw-proj { background: repeating-linear-gradient(135deg, var(--green) 0 4px, #55A97B 4px 8px); }
.sw-bench { background: var(--navy-300); }
@media (prefers-reduced-motion: no-preference) {
  .vbar-fill { transition: height 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .hbar-fill { transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
}
@media (max-width: 575.98px) {
  .hbar { grid-template-columns: 1fr auto; row-gap: 0.35rem; }
  .hbar-track { grid-column: 1 / -1; order: 3; }
}
.baseline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.baseline li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.baseline li:first-child { border-top: 2px solid var(--navy); }
.baseline strong { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--navy); line-height: 1; white-space: nowrap; }

.goal-table { width: 100%; border-collapse: collapse; }
.goal-table caption { text-align: left; padding: 0 0 1rem; color: var(--ink-soft); caption-side: top; }
.goal-table th, .goal-table td { padding: 0.95rem 0.75rem 0.95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.goal-table thead th { border-bottom: 2px solid var(--navy); font-size: 0.92rem; color: var(--ink-soft); font-weight: 700; }
.goal-table tbody th { font-weight: 700; }
.goal-table .goal { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--navy); line-height: 1; white-space: nowrap; }
@media (max-width: 767.98px) {
  .goal-table thead { position: absolute; left: -9999px; }
  .goal-table, .goal-table tbody, .goal-table tr, .goal-table th, .goal-table td, .goal-table caption { display: block; width: 100%; }
  .goal-table tr { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
  .goal-table th, .goal-table td { border: 0; padding: 0.15rem 0; }
  .goal-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-soft); }
}
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.findings li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.findings li:first-child { border-top: 2px solid var(--navy); }
.findings .big { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--navy); }
.findings p { margin: 0; }
.findings strong { display: block; }
.cite { font-size: 0.9rem; color: var(--ink-soft); border-left: 4px solid var(--line); padding-left: 1rem; margin-top: 1.5rem; max-width: 60ch; }

/* ---------- 19. Contact & get help ---------- */
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.contact-list strong { display: block; }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; display: inline-block; padding-block: 0.5rem; margin-block: -0.5rem; }
.hero-help { margin: 1.5rem 0 0; }
.help-panel { border: 2px solid var(--navy); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.help-panel-head { background: var(--navy); color: #fff; padding: clamp(1.5rem, 3vw, 2.25rem); --focus: var(--gold); }
.help-panel-head h2 { color: #fff; margin-bottom: 0.5rem; }
.help-panel-head p { color: #DCE8F0; margin: 0; }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1.25rem clamp(1.25rem, 3vw, 2.25rem); border-top: 1px solid var(--line); align-items: start; }
.help-list li:first-child { border-top: 0; }
.help-list h3 { font-size: 1.55rem; margin-bottom: 0.15rem; }
.help-list p { margin: 0; color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.help-list .big-link { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--navy); text-decoration: none; line-height: 1.1; }
.help-list .big-link:hover { text-decoration: underline; }
.help-foot { padding: 1.25rem clamp(1.25rem, 3vw, 2.25rem); background: var(--mist); font-size: 0.97rem; }
.help-foot p { margin: 0 0 0.5rem; max-width: none; }
.help-foot p:last-child { margin: 0; }

/* ---------- 20. Privacy notice ---------- */
.legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.5rem; border-radius: var(--r-panel); background: var(--mist); }
.legal-toc-title { font-family: var(--font-text); font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0 0 0.75rem; }
.legal-toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.15rem; }
.legal-toc a { display: inline-block; padding-block: 0.3rem; font-weight: 600; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-prose { max-width: 46rem; }
.legal-prose section { padding-block: 0.25rem 1.25rem; border-top: 1px solid var(--line); }
.legal-prose section:first-of-type { border-top: 2px solid var(--navy); }
.legal-prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 1.5rem 0 0.75rem; }
.legal-updated { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 1.5rem; }
.legal-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.legal-points li { position: relative; padding-left: 1.5rem; }
.legal-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--green); }
@media (max-width: 991.98px) { .legal-toc { position: static; } }

/* ---------- 21. 404 + print ---------- */
.not-found { padding-block: clamp(4rem, 10vw, 8rem); }
.not-found .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 12rem); line-height: 0.85; color: var(--gold-ink); }

@media print {
  .topbar, .site-header, .site-footer, .cta-band, .hero-art, .hero-shade, .btn, .skip-link, .draft-note, .to-top { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { font-size: 11pt; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .hero, .page-hero, .counters, .mv { background: none !important; color: #000 !important; }
  .hero h1, .page-hero h1, .counters h2, .count-num, .mv h2, .mv-statement { color: #000 !important; }
}
