/* ============================================================
   Common Ground Fund — design system
   Audience: people in the middle of a financial emergency.
   Design brief: calm, warm, readable under stress. Restraint
   is the point — nothing here should feel clever or clinical.
   ============================================================ */

/* Fonts served from this site, not from Google.
   Applicants here are sending us ID documents and financial details;
   their IP address shouldn't go to a third party just to load a typeface.
   Regenerate with vendor-fonts.py. */
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fraunces-latin-italic.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fraunces-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fraunces-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fraunces-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/karla-latin-ext-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/karla-latin-italic.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;
}
/* latin-ext */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/karla-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/karla-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/karla-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/karla-latin.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 {
  /* Warm paper, deep green ink, one clay accent. No corporate blue. */
  --paper:        #FBF7F0;
  --paper-sunk:   #F3EDE2;
  --paper-raised: #FFFDF9;
  --ink:          #1A2620;
  --ink-soft:     #4A5A52;
  --ink-faint:    #7C8A82;
  --green:        #2D4A3E;
  --green-deep:   #1F352C;
  --clay:         #B85427;
  --clay-deep:    #8F3F1C;
  --clay-wash:    #F6E7DE;
  --rule:         #E2D9CB;

  --display: 'Fraunces', Georgia, serif;
  --body:    'Karla', 'Segoe UI', sans-serif;

  /* Fluid scale */
  --t-hero:  clamp(2.75rem, 1.6rem + 5.2vw, 6rem);
  --t-h1:    clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  --t-h2:    clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --t-h3:    clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --t-lead:  clamp(1.125rem, 1.02rem + 0.5vw, 1.4rem);
  --t-body:  clamp(1.0rem, 0.96rem + 0.2vw, 1.125rem);
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  --gap:     clamp(1.5rem, 1rem + 2vw, 3rem);
  --band:    clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --measure: 62ch;
  --shell:   1240px;

  --radius: 3px;
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* barely-there paper grain */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(184,84,39,0.035), transparent 45%),
    radial-gradient(circle at 88% 78%, rgba(45,74,62,0.045), transparent 42%);
  background-attachment: fixed;
}

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip {
  position: absolute; left: 0; top: 0;
  padding: 0.85rem 1.4rem;
  background: var(--green-deep); color: #fff;
  transform: translateY(-120%);
  z-index: 200; font-weight: 600;
  transition: transform 0.18s var(--ease);
}
.skip:focus { transform: translateY(0); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.band  { padding-block: var(--band); }
.band--sunk   { background: var(--paper-sunk); }
.band--ink    { background: var(--green-deep); color: #EDE6DA; }
.band--ink h2, .band--ink h3 { color: #fff; }
.measure { max-width: var(--measure); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
p  { text-wrap: pretty; }
p + p { margin-top: 1.1em; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}
.band--ink .lead { color: #C4CFC7; }

.eyebrow {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.25rem;
}
.band--ink .eyebrow { color: #D9A184; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
.band--ink a { color: #E8C4AE; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.arrow-link span { transition: transform 0.22s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--body);
  font-weight: 700; font-size: 1.0625rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.14s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.band--ink .btn--ghost { border-color: #EDE6DA; color: #EDE6DA; }
.band--ink .btn--ghost:hover { background: #EDE6DA; color: var(--green-deep); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.9375rem; }

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,240,0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 74px;
}
.brand {
  font-family: var(--display);
  font-size: 1.3rem; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
  display: flex; align-items: center; gap: 0.6rem;
}
.brand__mark {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: inset 0 0 0 4px var(--paper), 0 0 0 1.5px var(--clay);
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-weight: 500; font-size: 1rem;
  text-decoration: none; color: var(--ink-soft);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--clay); }

/* The Apply button never leaves the bar, at any width. Someone in a
   crisis opening this on a phone must see the way out without tapping. */
.masthead .btn { flex: none; }

.nav-toggle { display: none; }

@media (max-width: 800px) {
  .nav {
    display: none;
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  .nav a:hover, .nav a[aria-current="page"] { border-color: var(--rule); }
  .masthead[data-open="true"] .nav { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: transparent; border: 1.5px solid var(--rule);
    border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .masthead__inner { position: relative; }
  .masthead .btn { padding-inline: 1.1rem; font-size: 0.9375rem; }
  .brand { font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) var(--band); }
.hero__grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
}
.hero h1 {
  font-size: var(--t-hero);
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--clay);
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 2.25rem;
}
.hero__aside {
  border-left: 2px solid var(--clay);
  padding-left: 1.5rem;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.hero__aside strong { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { margin-top: 1rem; }
}

/* ---------- generic grids ---------- */
.cols {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
}
.split {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.section-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

/* ---------- cards ---------- */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card__num {
  font-family: var(--display);
  font-size: 0.95rem; font-weight: 600;
  color: var(--clay);
  display: block; margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--ink-soft); font-size: var(--t-small); }

/* ---------- stats ---------- */
.stats {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.stat__fig {
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  font-weight: 500; line-height: 0.95;
  letter-spacing: -0.04em;
  display: block; margin-bottom: 0.6rem;
}
.stat__label {
  font-size: var(--t-small);
  color: var(--ink-soft);
  max-width: 22ch;
}
.band--ink .stat__label { color: #A9B8B0; }
.stat--flag .stat__fig { color: var(--clay); }
.band--ink .stat--flag .stat__fig { color: #E8A57E; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding-block: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 2.25rem; font-weight: 400;
  line-height: 1;
  color: var(--clay);
}
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--ink-soft); max-width: 58ch; }
.step__meta {
  display: inline-block; margin-top: 0.7rem;
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- checklist / requirement table ---------- */
.checks { display: grid; gap: 1rem; }
.check {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.9rem;
  align-items: start;
}
.check svg { width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; flex: none; color: var(--green); }
.check--no svg { color: var(--ink-faint); }

.doc-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.doc-table th, .doc-table td {
  text-align: left; padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.doc-table th {
  font-family: var(--body); font-weight: 700;
  font-size: var(--t-small);
  width: 34%;
}
.doc-table td { color: var(--ink-soft); font-size: var(--t-small); }
@media (max-width: 620px) {
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; width: auto; }
  .doc-table th { border: 0; padding-bottom: 0.25rem; }
  .doc-table td { padding-top: 0; }
}

/* ---------- who-can-apply statement ----------
   The single most-read sentence on the apply page. Given its own block so it
   reads before the conditions, not as one bullet among them. */
.who {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.25rem 1.5rem;
}
.who__label {
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.6rem;
}
.who__stmt {
  font-family: var(--display);
  font-size: var(--t-h3); line-height: 1.3;
  letter-spacing: -0.01em;
}
.who__stmt em { font-size: var(--t-small); font-family: var(--body); color: var(--ink-faint); }

/* ---------- what the grant pays for ---------- */
.pays {
  list-style: none; padding: 0;
  display: grid; gap: 0.85rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.pays li {
  position: relative; padding-left: 1.5rem;
  color: var(--ink-soft); font-size: var(--t-small);
  border-bottom: 1px solid var(--rule); padding-bottom: 0.85rem;
}
.pays li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 2px; background: var(--clay);
}

/* ---------- callout ---------- */
.callout {
  background: var(--clay-wash);
  border-left: 3px solid var(--clay);
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { color: var(--ink); }
.callout strong { font-weight: 700; }

/* ---------- quotes ---------- */
.quote {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.quote blockquote {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}
.quote figcaption { font-size: var(--t-small); color: var(--ink-soft); }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink); display: block; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer; list-style: none;
  font-family: var(--display);
  font-size: var(--t-h3); font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.25;
  transition: color 0.18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay); }
.faq summary::after {
  content: '+';
  margin-left: auto; flex: none;
  font-family: var(--body); font-weight: 400;
  font-size: 1.75rem; line-height: 1; color: var(--clay);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div {
  padding-bottom: 1.75rem;
  max-width: var(--measure);
  color: var(--ink-soft);
}

/* ---------- contact ---------- */
.contact-list { display: grid; gap: 1.75rem; }
.contact-list dt {
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.35rem;
}
.contact-list dd { font-size: var(--t-lead); }
.contact-list dd a { text-decoration-thickness: 1px; }

/* ---------- form embed slot ---------- */
.form-slot {
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  text-align: center;
}
.form-slot__tag {
  display: inline-block;
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1rem;
}
.form-slot code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.8125rem;
  background: var(--paper-sunk);
  padding: 0.2em 0.5em; border-radius: 2px;
}

/* ---------- prose (privacy / long text) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 3rem; margin-bottom: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.75rem; }
.prose ul li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--clay);
}

/* ---------- closing CTA ---------- */
.closer { text-align: center; }
.closer h2 { max-width: 20ch; margin-inline: auto; margin-bottom: 2rem; }

/* ---------- footer ---------- */
.footer { background: var(--green-deep); color: #B6C3BB; padding-block: var(--band) 3rem; }
.footer__grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  margin-bottom: 4rem;
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer .brand__mark { box-shadow: inset 0 0 0 4px var(--green-deep), 0 0 0 1.5px var(--clay); }
.footer h4 {
  font-family: var(--body);
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #7E9187; margin-bottom: 1.1rem;
}
.footer ul { display: grid; gap: 0.7rem; }
.footer a { color: #D6DFD9; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 2rem;
  font-size: var(--t-micro);
  color: #7E9187;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
}

/* ---------- page load: one orchestrated reveal, nothing bouncy ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s var(--ease) forwards;
  }
  .rise:nth-child(1) { animation-delay: 0.05s; }
  .rise:nth-child(2) { animation-delay: 0.14s; }
  .rise:nth-child(3) { animation-delay: 0.23s; }
  .rise:nth-child(4) { animation-delay: 0.32s; }
  @keyframes rise { to { opacity: 1; transform: none; } }

  .card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -12px rgba(26,38,32,0.18); }
}

/* ---------- large hero button ---------- */
.btn--hero { padding: 1.15rem 2.6rem; font-size: 1.2rem; }

/* ---------- facts list (home dark block + about panel) ---------- */
.facts { margin: 2rem 0; display: grid; gap: 0; }
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.8rem 0; border-top: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt {
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.facts dd { font-weight: 600; text-align: right; color: var(--ink); }
.band--ink .facts > div { border-color: rgba(255,255,255,0.14); }
.band--ink .facts dt { color: #9DB3A8; }
.band--ink .facts dd { color: #fff; }
.facts--panel {
  background: var(--paper-raised); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 0.4rem 1.5rem; margin: 0;
}

/* ---------- photography ---------- */
/* Illustrative stock-style photos. aspect-ratio reserves the box so nothing shifts on load. */
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius);
}
.shot figcaption {
  font-size: var(--t-micro); color: var(--ink-faint);
  margin-top: 0.6rem;
}
.shot--band { margin-top: calc(var(--band) * 0.45); }

/* ---------- forms ---------- */
.form { display: grid; gap: 2rem; align-content: start; }
.form__group { border: 0; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.form__group legend {
  font-family: var(--display); font-size: var(--t-h3); font-weight: 500;
  letter-spacing: -0.01em; padding: 0; margin-bottom: 0.25rem;
}
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: var(--t-small); font-weight: 600; }
.req { color: var(--clay); }
.opt { color: var(--ink-faint); font-weight: 400; font-size: var(--t-micro); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  background: var(--paper-raised); color: var(--ink);
  border: 1.5px solid var(--rule); border-radius: var(--radius);
  font-size: var(--t-body); transition: border-color 0.18s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--clay); }
.field input[type="file"] { padding: 0.55rem; border-style: dashed; background: transparent; cursor: pointer; }
.field__hint { font-size: var(--t-micro); color: var(--ink-faint); }
.field-row--3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) { .field-row--3 { grid-template-columns: 1fr; } }
.checkgroup__legend { font-size: var(--t-small); font-weight: 600; }
.checkgroup { display: grid; gap: 0.55rem; margin-top: 0.15rem; }
.checkgroup label {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: var(--t-body); font-weight: 400; cursor: pointer;
}
.checkgroup input { width: 1.05rem; height: 1.05rem; margin-top: 0.28rem; flex: none; accent-color: var(--clay); }

/* ---------- confirmation modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 1.5rem;
  background: rgba(26,38,32,0.55); backdrop-filter: blur(3px);
}
.modal[hidden] { display: none; }
.modal__box {
  background: var(--paper-raised); border-top: 4px solid var(--clay);
  border-radius: var(--radius); max-width: 34rem;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center;
}
.modal__box h2 { font-size: var(--t-h2); margin-bottom: 1rem; }
.modal__box p { color: var(--ink-soft); margin-bottom: 1.75rem; }
.modal__mark {
  display: block; width: 52px; height: 52px; margin: 0 auto 1.25rem;
  border-radius: 50%; background: var(--clay);
  box-shadow: inset 0 0 0 7px var(--paper-raised), 0 0 0 2px var(--clay);
}

/* ---------- funds ---------- */
.fund h2 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.65rem; }
.fund__terms {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule);
  font-weight: 600; color: var(--ink); font-size: var(--t-small);
}
.fund__note { margin-top: 2.5rem; font-style: italic; color: var(--ink-faint); font-size: var(--t-small); }

/* ---------- reports ---------- */
.reports-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.col-head { font-size: var(--t-h3); padding-bottom: 1rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.5rem; }
.downloads { display: grid; gap: 0; }
.downloads li { border-bottom: 1px solid var(--rule); }
.downloads a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 0; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: var(--t-small);
}
.downloads a:hover { color: var(--clay); }
.downloads__meta { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; color: var(--ink-faint); }
.news { display: grid; gap: 1.5rem; }
.news li { border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; }
.news__date { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.4rem; }
.news h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 0.4rem; }
.news h3 a { text-decoration: none; }
.news__sum { font-size: var(--t-small); color: var(--ink-soft); }
.stories { display: grid; gap: 1.75rem; }
.stories .quote { padding-top: 1.25rem; }
.stories blockquote { font-size: 1.15rem; }

/* ---------- donate ---------- */
.donate-card {
  background: var(--paper-raised); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
}
.donate { display: grid; gap: 0; }
.seg { display: flex; background: var(--paper-sunk); border-radius: var(--radius); padding: 4px; gap: 4px; }
.seg__btn {
  flex: 1; padding: 0.6rem; border: 0; background: transparent; border-radius: 2px;
  font-weight: 600; cursor: pointer; color: var(--ink-soft);
}
.seg__btn.is-active { background: var(--paper-raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.donate__label { font-size: var(--t-small); font-weight: 600; margin: 1.5rem 0 0.75rem; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.amount {
  padding: 0.85rem; border: 1.5px solid var(--rule); background: var(--paper);
  border-radius: var(--radius); font-weight: 700; cursor: pointer; color: var(--ink);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.amount:hover { border-color: var(--clay); }
.amount.is-active { border-color: var(--clay); background: var(--clay-wash); color: var(--clay-deep); }
.donate__continue { width: 100%; margin-top: 1.5rem; }
.donate__fine { font-size: var(--t-micro); color: var(--ink-faint); text-align: center; margin-top: 0.75rem; }

/* ---------- policy list ---------- */
.policy-list { display: grid; gap: 0; max-width: var(--measure); }
.policy-list li { border-top: 1px solid var(--rule); padding: 1.75rem 0; }
.policy-list li:last-child { border-bottom: 1px solid var(--rule); }
.policy-list h2 { font-size: var(--t-h3); margin-bottom: 0.5rem; }
.policy-list h2 a { text-decoration: none; }
.policy-list p { color: var(--ink-soft); font-size: var(--t-small); }

/* ---------- print ---------- */
@media print {
  .masthead, .footer, .form-slot { display: none; }
  body { background: #fff; }
}
