/* Saffron Grants — public site.
   Flat colour blocks, Raleway for words, wide tracked Archivo for labels, square buttons. */

:root {
  --ink: #13261f;
  --ink-2: #2b3b34;
  --muted: #56655e;
  --faint: #8c9791;
  --line: #ddd8cc;
  --line-2: #ece7dc;
  --input: #b9b3a6;

  --white: #ffffff;
  --cream: #f2ede3;
  --mint: #dcefe5;
  --forest: #0f3b2d;
  --forest-2: #174c3b;
  --pine: #1c6b4f;
  --saffron: #f4c430;
  --saffron-hi: #ffd34f;
  --thread: #c8471c;
  --rust: #9e3d1b;
  --red: #b23a27;
  --red-bg: #fbede8;

  --font: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-label: 'Archivo', 'Raleway', -apple-system, 'Segoe UI', sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 78px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-color: var(--ink);
}

strong {
  font-weight: 700;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--thread);
  outline-offset: 3px;
}

::selection {
  background: var(--saffron);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

.icon {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  vertical-align: -0.22em;
}
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.show-sm { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- type */

.label {
  margin: 0 0 18px;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.h1 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 1.55rem + 3vw, 4.3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 1.45rem + 1.7vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.h3 {
  margin: 0 0 16px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.lead {
  margin: 0 0 24px;
  font-size: clamp(18px, 1rem + 0.45vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* A marker-pen highlight for the key number. */
.hl {
  padding: 0 0.04em;
  background: linear-gradient(transparent 60%, var(--saffron) 60%, var(--saffron) 92%, transparent 92%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- buttons, links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 17px 28px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-primary:hover { background: var(--saffron-hi); color: var(--ink); }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--pine); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, 0.75); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--forest); }
.btn-sm { padding: 11px 18px; font-size: 15.5px; }
.btn.header-cta { gap: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.link-quiet {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.link-quiet:hover { text-decoration: underline; text-decoration-color: var(--saffron); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}
.actions.center { justify-content: center; }

/* ---------------------------------------------------------------- announcement + header */

.announce {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}
.announce-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}
.announce .label { margin: 0; font-size: 12px; color: var(--saffron); }
.announce a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #fff;
  text-decoration-color: var(--saffron);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { width: 34px; height: 34px; color: var(--thread); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-size: 27px; font-weight: 700; line-height: 0.95; letter-spacing: -0.025em; }
.logo-sub {
  margin-top: 4px;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.logo-light { color: #fff; }
.logo-light .logo-mark { color: var(--saffron); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav a {
  padding: 6px 0;
  margin: 0 12px;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
}
.nav a:hover { border-bottom-color: var(--saffron); }
.nav a[aria-current='page'] { border-bottom-color: var(--ink); }

.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav { border-top: 1px solid var(--line); background: #fff; }
.mobile-nav nav { display: grid; padding-top: 8px; padding-bottom: 22px; }
.mobile-nav a:not(.btn) {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav .btn { margin-top: 18px; }

/* ---------------------------------------------------------------- hero (home) */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(calc(100vh - var(--header-h) - 44px), 840px);
}
.hero-media {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: var(--forest);
}
.hero-media .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-media .slide.is-active { opacity: 1; }
.hero-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 22px clamp(22px, 4vw, 52px);
  background: var(--saffron);
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.strip-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }

.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 4.5vw, 72px) clamp(24px, 5.5vw, 96px);
  background: var(--cream);
}
.hero-title { max-width: 13ch; font-size: clamp(2.5rem, 1.55rem + 2.6vw, 4rem); }
.hero-body .lead { max-width: 34em; margin-bottom: 20px; }
.hero-body .actions { margin-top: 26px; }

.grant-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.grant-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.gl-name { font-size: clamp(24px, 1.1rem + 0.9vw, 31px); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.gl-amt {
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.gl-arrow { transition: transform 0.2s var(--ease); }
.grant-list a:hover .gl-name { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.grant-list a:hover .gl-arrow { transform: translateX(6px); }

/* ---------------------------------------------------------------- surfaces */

.section { padding: clamp(72px, 8vw, 124px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 60px); }
.section-head .lead { margin-bottom: 0; }
.section-link { margin: 40px 0 0; }

:is(.section, .band, .split-body, .page-hero, .program-row).tone-cream { background: var(--cream); }
:is(.section, .band, .split-body, .page-hero, .program-row).tone-mint { background: var(--mint); }
:is(.section, .band, .split-body, .page-hero, .program-row).tone-white { background: #fff; }
:is(.section, .band, .split-body, .page-hero, .program-row).tone-saffron { background: var(--saffron); color: var(--ink); }
:is(.section, .band, .split-body, .page-hero, .program-row).tone-pine { background: var(--pine); }
:is(.section, .band, .split-body, .page-hero, .program-row).tone-forest { background: var(--forest); }

/* Text on the dark surfaces */
:is(.section, .band, .split-body, .page-hero, .program-row):is(.tone-pine, .tone-forest),
.snapshot {
  color: rgba(255, 255, 255, 0.86);
}
:is(.tone-pine, .tone-forest, .snapshot) :is(.h1, .h2, .h3, h3, .band-title) { color: #fff; }
:is(.tone-pine, .tone-forest, .snapshot) .label { color: var(--saffron); }
:is(.tone-pine, .tone-forest, .snapshot) .lead { color: rgba(255, 255, 255, 0.82); }
:is(.tone-pine, .tone-forest, .snapshot) a:not(.btn) { color: #fff; }
:is(.tone-pine, .tone-forest) .link-arrow { color: #fff; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}

/* ---------------------------------------------------------------- bands */

.band { padding: clamp(68px, 8vw, 116px) 0; text-align: center; }
.band-inner { max-width: 1020px; }
.band-title {
  max-width: 30ch;
  margin: 0 auto;
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.band-text { max-width: 640px; margin: 22px auto 0; font-size: 19px; }
.band .actions { margin-top: 36px; }
.band.tone-saffron .label { color: var(--ink); }
.band.tone-saffron .band-text strong { font-weight: 700; }

/* ---------------------------------------------------------------- split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 660px;
}
.split.is-reverse .split-media { order: 2; }
.split-media { position: relative; min-height: 440px; overflow: hidden; background: var(--forest); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-body {
  display: flex;
  align-items: center;
  padding: clamp(52px, 7vw, 112px) clamp(24px, 6vw, 100px);
  background: #fff;
}
.split-body-inner { width: 100%; max-width: 580px; }
.note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  font-size: 16px;
}
.tone-forest .note .icon { color: var(--saffron); }

/* ---------------------------------------------------------------- programs */

.programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.program {
  --accent: var(--saffron);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 34px 38px;
  border-right: 1px solid var(--line);
}
.program:first-child { padding-left: 0; }
.program:last-child { padding-right: 0; border-right: 0; }
.program::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 7px; background: var(--accent); }
.program.accent-saffron { --accent: var(--saffron); }
.program.accent-pine { --accent: var(--pine); }
.program.accent-forest { --accent: var(--forest); }
.program .label { margin-bottom: 12px; }
.program-amount {
  margin: 0 0 18px;
  font-size: clamp(40px, 1.9rem + 1.5vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.program-amount .dash { margin: 0 0.06em; color: var(--faint); font-weight: 400; }
.program-text { margin: 0 0 22px; }
.program .link-arrow { margin-top: auto; padding-top: 6px; }
.programs.is-compact .program { padding-bottom: 32px; }
.programs.is-compact .ticks { margin-bottom: 0; }

.ticks {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 16.5px;
}
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--pine); }

/* ---------------------------------------------------------------- uses */

.uses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.uses li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.45; }
.uses strong { font-weight: 600; color: var(--ink); }
.uses-icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; background: #fff; color: var(--pine); }
.uses-icon .icon { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- steps, process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li { padding-top: 26px; border-top: 3px solid var(--ink); }
.step-n,
.process-n {
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--thread);
}
.steps h3 { margin: 14px 0 10px; font-size: 25px; font-weight: 500; line-height: 1.15; }
.steps p { margin: 0; font-size: 17px; }

.process { max-width: 900px; margin: 0; padding: 0; list-style: none; }
.process li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.process li:first-child { border-top: 3px solid var(--ink); }
.process-n { padding-top: 6px; font-size: 16px; }
.process h3 { margin: 0 0 10px; font-size: 28px; font-weight: 500; }
.process p { margin: 0; font-size: 18px; }

/* ---------------------------------------------------------------- rubric */

.rubric { margin: 30px 0 0; padding: 0; list-style: none; }
.rubric li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.rubric li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.rubric-w { font-size: 46px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--saffron); }
.rubric-w small { font-size: 22px; }
.rubric h3 { margin: 4px 0 6px; font-size: 21px; font-weight: 600; }
.rubric p { margin: 0; font-size: 16.5px; color: rgba(255, 255, 255, 0.78); }
.rubric .rubric-strong { margin-top: 12px; color: rgba(255, 255, 255, 0.9); }
.rubric-strong .label { display: block; margin: 0 0 4px; font-size: 11px; }

/* ---------------------------------------------------------------- snapshot */

.snapshot { padding: clamp(68px, 8vw, 116px) 0; background: var(--rust); }
.snapshot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.snapshot p { font-size: 18.5px; }
.snapshot .h2 { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.75rem); }
.micro { margin: 16px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.75); }
.snapshot-figure { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.snapshot-mark { color: var(--saffron); }
.snapshot-big { font-size: clamp(84px, 5vw + 3rem, 168px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.snapshot-figure .label { margin: 8px 0 0; }

/* ---------------------------------------------------------------- timeline */

.timeline {
  --p: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 0;
  right: calc(20% - 14px);
  height: 3px;
  background: linear-gradient(90deg, var(--pine) var(--p), var(--line) var(--p));
}
.timeline li { position: relative; }
.tl-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 3px solid var(--line);
  background: #fff;
  color: #fff;
}
.is-done .tl-dot { border-color: var(--pine); background: var(--pine); }
.is-next .tl-dot { border-color: var(--ink); background: var(--saffron); }
.tl-date { margin: 18px 0 4px; font-size: 25px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.tl-label { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.tl-note { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.tl-now {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 9px;
  background: var(--saffron);
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------------------------------------------------------------- who can apply + quiz */

.check-list { display: grid; gap: 16px; margin: 30px 0 34px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 18px; color: var(--ink); }
.check-list .icon { width: 26px; height: 26px; color: var(--pine); }

.quiz { padding: clamp(24px, 3vw, 38px); border: 2px solid var(--ink); background: #fff; }
.quiz-head .label { margin-bottom: 10px; color: var(--thread); }
.quiz-head h3 { margin: 0 0 6px; font-size: 28px; font-weight: 500; }
.quiz-head p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.quiz-list { margin: 0; padding: 0; list-style: none; }
.quiz-q {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.quiz-num { font-family: var(--font-label); font-stretch: 125%; font-size: 13px; font-weight: 700; color: var(--muted); }
.quiz-q p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.quiz-q.is-no p { color: var(--red); }
.yn { display: flex; gap: 6px; }
.yn button {
  min-width: 58px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.yn button:hover { background: var(--cream); }
.yn button[data-a='yes'][aria-pressed='true'] { border-color: var(--pine); background: var(--pine); color: #fff; }
.yn button[data-a='no'][aria-pressed='true'] { border-color: var(--red); background: var(--red); color: #fff; }
.quiz-result { margin-top: 18px; padding: 22px 24px; }
.quiz-result h4 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.quiz-result p,
.quiz-result ul { margin: 0 0 16px; font-size: 16px; }
.quiz-result ul { padding-left: 20px; }
.quiz-result.is-pass { background: var(--forest); color: rgba(255, 255, 255, 0.86); }
.quiz-result.is-pass h4 { color: #fff; }
.quiz-result.is-fail { background: var(--red-bg); }

/* ---------------------------------------------------------------- faq */

.faq-list { border-top: 3px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { width: 26px; height: 26px; transition: transform 0.2s var(--ease); }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { padding: 0 52px 24px 0; font-size: 17.5px; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin: 0; }

.faq-layout,
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.side-nav { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 2px; }
.side-nav .label { margin-bottom: 12px; color: var(--muted); }
.side-nav a { padding: 7px 0; font-size: 16.5px; font-weight: 500; text-decoration: none; }
.side-nav a:hover { text-decoration: underline; text-decoration-color: var(--saffron); }
.faq-group { margin-bottom: 56px; }

/* ---------------------------------------------------------------- safety */

.safety {
  display: flex;
  gap: 18px;
  padding: 28px 30px;
  border-left: 6px solid var(--saffron);
  background: var(--cream);
}
.safety-icon { flex: none; color: var(--pine); }
.safety-icon .icon { width: 30px; height: 30px; }
.safety h3 { margin: 2px 0 8px; font-size: 21px; font-weight: 600; }
.safety p { margin: 0 0 10px; font-size: 16.5px; }
.safety p:last-child { margin: 0; }

/* ---------------------------------------------------------------- footer */

.site-footer { padding: 84px 0 36px; background: var(--forest); color: rgba(255, 255, 255, 0.76); font-size: 16px; }
.site-footer .label { margin-bottom: 14px; font-size: 14px; letter-spacing: 0.22em; color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 64px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-line { max-width: 30em; margin: 0 0 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-cols h3 {
  margin: 0 0 14px;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.footer-cols a { display: block; padding: 5px 0; color: rgba(255, 255, 255, 0.76); text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--saffron); }
.subscribe label { display: block; margin-bottom: 10px; font-weight: 600; color: #fff; }
.subscribe-row { display: flex; max-width: 460px; border: 2px solid rgba(255, 255, 255, 0.55); }
.subscribe-row:focus-within { border-color: var(--saffron); }
.subscribe input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: transparent; color: #fff; font-size: 16px; }
.subscribe input::placeholder { color: rgba(255, 255, 255, 0.5); }
.subscribe input:focus { outline: none; }
.subscribe .btn { border: 0; }
.subscribe-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 15px; }
.subscribe-msg.is-ok { color: var(--saffron); }
.subscribe-msg.is-err { color: #ffb4a6; }
.footer-safety { display: flex; align-items: flex-start; gap: 14px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.footer-safety .icon { color: var(--saffron); }
.footer-safety p { max-width: 70em; margin: 0; font-size: 15px; }
.footer-safety strong { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 14.5px; }
.footer-bottom p { margin: 0; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.76); }

/* ---------------------------------------------------------------- inner page heroes */

.page-hero { padding: clamp(64px, 8vw, 116px) 0 clamp(56px, 6vw, 92px); }
.page-hero-body { max-width: 860px; }
.page-hero-body .lead { max-width: 40em; margin-bottom: 0; }
.page-hero.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; padding: 0; }
.page-hero.has-photo .page-hero-body { align-self: center; padding: clamp(52px, 6vw, 100px) clamp(24px, 5.5vw, 96px); }
.page-hero-media { position: relative; order: 2; min-height: 380px; overflow: hidden; background: var(--forest); }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- grants page */

.program-row { padding: clamp(68px, 7vw, 108px) 0; }
.program-row-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 88px); }
.pr-main p { max-width: 32em; }
.pr-main .btn { margin-top: 12px; }
.pr-amount { font-size: clamp(52px, 3vw + 1.6rem, 76px); }
.tone-forest .program-amount { color: var(--saffron); }
.tone-forest .program-amount .dash { color: rgba(255, 255, 255, 0.4); }
.pr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; border-top: 3px solid var(--ink); }
.tone-forest .pr-facts { border-top-color: var(--saffron); }
.pr-facts > div { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.tone-forest .pr-facts > div { border-bottom-color: rgba(255, 255, 255, 0.18); }
.pr-facts dt {
  margin-bottom: 10px;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.tone-forest .pr-facts dt { color: var(--saffron); }
.pr-facts dd { margin: 0; font-size: 16.5px; }
.pr-facts ul { margin: 0; padding-left: 18px; }
.pr-facts li { margin: 4px 0; }
.pr-facts p { margin: 0; }

.table-wrap { overflow-x: auto; border-top: 3px solid var(--ink); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; background: transparent; }
.compare th,
.compare td { padding: 20px 22px 20px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16.5px; }
.compare thead th { font-size: 22px; font-weight: 600; color: var(--ink); }
.compare tbody th {
  width: 16%;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.table-note { margin: 22px 0 0; }

/* ---------------------------------------------------------------- eligibility page */

.req-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
.req { padding-top: 24px; border-top: 3px solid var(--ink); }
.req h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 600; }
.req p { margin: 0; font-size: 16.5px; }
.req-icon { display: grid; place-items: center; width: 50px; height: 50px; background: var(--saffron); color: var(--ink); }
.req-icon .icon { width: 25px; height: 25px; }

.x-list { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.x-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 17.5px; color: var(--ink); }
.x-list .icon { width: 24px; height: 24px; color: var(--red); }
.doc-list { margin: 24px 0 0; border-top: 3px solid var(--ink); }
.doc-list div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.doc-list dt { font-weight: 700; color: var(--ink); }
.doc-list dd { margin: 0; font-size: 16.5px; }

/* ---------------------------------------------------------------- promises, recipients, about */

.promise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.promise { padding-top: 24px; border-top: 3px solid var(--ink); }
.promise h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 600; }
.promise p { margin: 0; font-size: 16.5px; }
.tone-mint .req-icon { background: #fff; color: var(--pine); }

.empty-state { max-width: 720px; padding: 52px 44px; border: 2px dashed var(--input); text-align: left; }
.empty-mark { display: block; margin-bottom: 18px; color: var(--thread); }

.recipient-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.recipient { padding-top: 24px; border-top: 3px solid var(--ink); }
.recipient-initial { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; background: var(--saffron); font-size: 24px; font-weight: 700; color: var(--ink); }
.recipient h3 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.recipient-award { color: var(--pine); }

.prose-lg p { font-size: 19px; }
.why-card { margin: 0; padding: clamp(30px, 4vw, 48px); background: var(--forest); color: rgba(255, 255, 255, 0.84); }
.why-mark { color: var(--saffron); }
.why-card h3 { margin: 18px 0 10px; font-size: 28px; font-weight: 500; color: #fff; }
.why-card p { margin: 0; font-size: 18px; }
.info-block .label { margin: 22px 0 6px; color: var(--muted); }
.info-block .label:first-child { margin-top: 0; }
.info-block p { margin: 0; font-size: 18px; color: var(--ink); }

/* ---------------------------------------------------------------- forms */

.form-panel { padding: clamp(24px, 3.4vw, 44px); border: 2px solid var(--ink); background: #fff; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-aside { display: grid; gap: 34px; }
.status-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }

.field { min-width: 0; margin-bottom: 24px; }
fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
label,
legend,
.field-label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
legend { padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.hint { margin: -2px 0 10px; font-size: 15px; color: var(--muted); }
.field > .hint:last-child { margin: 8px 0 0; }

:where(input:not([type='checkbox'], [type='radio'], [type='range'], [type='file']), select, textarea) {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid var(--input);
  border-radius: 0;
  background: #fff;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
:where(textarea) { min-height: 130px; line-height: 1.6; resize: vertical; }
:where(input, textarea)::placeholder { color: #9aa29d; }
:where(input, select, textarea):focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--saffron); }
.has-error:not(.budget) :where(input:not([type='checkbox'], [type='radio']), select, textarea) { border-color: var(--red); box-shadow: 0 0 0 3px rgba(178, 58, 39, 0.15); }
.field-error { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--red); }
.field-error:empty { display: none; }

.input-wrap { position: relative; display: flex; align-items: center; }
.affix { position: absolute; font-weight: 600; color: var(--muted); pointer-events: none; }
.prefix { left: 15px; }
.suffix { right: 15px; }
.has-prefix input { padding-left: 32px !important; }
.has-suffix input { padding-right: 38px !important; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; cursor: pointer; }
.select-chevron { position: absolute; top: 50%; right: 14px; width: 20px; height: 20px; color: var(--ink); transform: translateY(-50%); pointer-events: none; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-row-3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr); }
.form-row-tight { gap: 12px; }
.field-narrow .input-wrap { max-width: 210px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-msg { margin: 0; font-size: 16px; }
.form-msg.is-ok { font-weight: 600; color: var(--pine); }
.form-msg.is-err { font-weight: 600; color: var(--red); }
.form-panel .muted.small { margin: 22px 0 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.notice { padding: 16px 18px; border-left: 5px solid var(--saffron); background: var(--cream); }

.pill-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-option { position: relative; margin: 0; font-weight: 500; }
.pill-option input { position: absolute; opacity: 0; pointer-events: none; }
.pill-option span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1.5px solid var(--input);
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.pill-option:hover span { border-color: var(--ink); }
.pill-option input:checked + span { border-color: var(--forest); background: var(--forest); color: #fff; }
.pill-option input:focus-visible + span { box-shadow: 0 0 0 3px var(--saffron); }
.pill-option.is-check input:checked + span::before { content: '✓'; font-weight: 700; color: var(--saffron); }

/* ---------------------------------------------------------------- apply */

.apply { padding: clamp(32px, 4vw, 64px) 0 104px; background: var(--cream); }
.apply-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 44px; align-items: start; }
.apply-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.apply-aside .label { margin-bottom: 12px; color: var(--thread); }
.apply-title { margin: 0 0 12px; font-size: 40px; font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; }
.apply-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 26px; font-size: 15px; color: var(--muted); }
.stepper { display: grid; margin: 0 0 22px; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.stepper button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  cursor: default;
}
.stepper button:not(:disabled) { cursor: pointer; }
.stepper button:not(:disabled):hover { color: var(--ink); }
.stepper .dot {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--input);
  background: #fff;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.dot-check { display: none; width: 15px; height: 15px; stroke-width: 2.5; }
.stepper li.is-done .dot { border-color: var(--pine); background: var(--pine); color: #fff; }
.stepper li.is-done .dot-n { display: none; }
.stepper li.is-done .dot-check { display: block; }
.stepper li.is-done button { color: var(--ink-2); }
.stepper li.is-current button { font-weight: 700; color: var(--ink); }
.stepper li.is-current .dot { border-color: var(--ink); background: var(--saffron); color: var(--ink); }
.progress-mini { height: 6px; margin-bottom: 20px; overflow: hidden; background: var(--line); }
.progress-mini span { display: block; width: 0; height: 100%; background: var(--pine); transition: width 0.45s var(--ease); }
.aside-note { display: flex; gap: 8px; margin: 0 0 8px; font-size: 14.5px; color: var(--muted); }
.aside-note .icon { margin-top: 3px; }
.aside-help { margin: 0; font-size: 14.5px; color: var(--muted); }

.apply-form { padding: clamp(24px, 4vw, 56px); background: #fff; }
.step-head { margin-bottom: 32px; }
.step-head .step-kicker {
  max-width: none;
  margin: 0 0 12px;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--thread);
}
.step-head .h2 { margin: 0 0 12px; font-size: clamp(30px, 2.4vw, 42px); outline: none; }
.step-head p { max-width: 40em; margin: 0; font-size: 18px; color: var(--muted); }
.step-nav { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 26px; border-top: 2px solid var(--ink); }
.step-count { margin-right: 6px; margin-left: auto; font-size: 15px; color: var(--muted); }
.form-alert { margin-top: 24px; padding: 15px 18px; border-left: 5px solid var(--red); background: var(--red-bg); font-size: 16px; color: #7a2a1f; }
.draft-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 13px 18px; border-left: 5px solid var(--saffron); background: #fff; font-size: 15.5px; }
.draft-banner .link-button { margin-left: auto; }

.yn-list { border-top: 1px solid var(--line); }
.yn-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 28px;
  align-items: center;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.yn-field legend { float: left; display: flex; align-items: flex-start; gap: 14px; margin: 0; font-size: 17px; font-weight: 500; line-height: 1.45; }
.yn-field legend a { font-weight: 600; white-space: nowrap; }
.yn-num { flex: none; padding-top: 3px; font-family: var(--font-label); font-stretch: 125%; font-size: 13px; font-weight: 700; color: var(--muted); }
.yn-options { display: flex; gap: 8px; }
.yn-options label { position: relative; margin: 0; }
.yn-options input { position: absolute; opacity: 0; pointer-events: none; }
.yn-options span {
  display: inline-block;
  min-width: 66px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.yn-options label:hover span { background: var(--cream); }
.yn-options input:focus-visible + span { box-shadow: 0 0 0 3px var(--saffron); }
.yn-options input[value='yes']:checked + span { border-color: var(--pine); background: var(--pine); color: #fff; }
.yn-options input[value='no']:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.yn-field .field-error { grid-column: 1 / -1; margin: 0; }
.yn-field.is-no legend { color: var(--red); }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.choice-card { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 20px;
  border: 2px solid var(--line);
  background: #fff;
  transition: border-color 0.15s, background-color 0.15s, opacity 0.15s;
}
.choice-card:hover .choice-body { border-color: var(--ink); }
.choice-card input:checked + .choice-body { border-color: var(--ink); background: var(--cream); box-shadow: inset 0 6px 0 var(--saffron); }
.choice-card input:focus-visible + .choice-body { box-shadow: 0 0 0 3px var(--saffron); }
.choice-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.choice-top .fit { order: -1; }
.choice-top strong { font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.choice-amount { font-size: 16px; font-weight: 700; color: var(--pine); }
.choice-desc { font-size: 15px; color: var(--ink-2); }
.choice-req { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.fit {
  padding: 4px 8px;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fit:empty { display: none; }
.fit.is-ok { background: var(--mint); color: var(--pine); }
.fit.is-best { background: var(--saffron); color: var(--ink); }
.fit.is-locked { background: var(--line-2); color: var(--muted); }
.choice-card.is-locked { cursor: not-allowed; }
.choice-card.is-locked .choice-body { opacity: 0.6; }
.choice-card.is-locked:hover .choice-body { border-color: var(--line); }

.amount-input { max-width: 360px; }
.amount-input input { padding: 13px 16px 13px 40px !important; font-size: 34px !important; font-weight: 600; letter-spacing: -0.01em; }
.amount-input .prefix { left: 17px; font-size: 28px; color: var(--ink); }
.range { width: 100%; max-width: 560px; height: 28px; margin: 16px 0 2px; background: transparent; appearance: none; cursor: pointer; }
.range:disabled { opacity: 0.4; cursor: default; }
.range::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--pine) var(--fill, 0%), var(--line) var(--fill, 0%)); }
.range::-moz-range-track { height: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; background: var(--pine); }
.range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; border: 3px solid var(--ink); background: var(--saffron); appearance: none; }
.range::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--ink); border-radius: 0; background: var(--saffron); }
.range-scale { display: flex; justify-content: space-between; max-width: 560px; font-size: 14px; color: var(--muted); }

.budget-table { margin-bottom: 14px; border-top: 2px solid var(--ink); }
.budget-row {
  display: grid;
  grid-template-columns: minmax(0, 236px) minmax(0, 1fr) minmax(0, 156px) 42px;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.budget-labels {
  padding: 10px 0;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
[data-budget-rows]:empty::after { content: 'No lines yet.'; display: block; padding: 14px 0; font-size: 15px; color: var(--faint); }
.budget-row input,
.budget-row select { padding: 11px 12px; font-size: 16px; }
.budget-row select { padding-right: 38px; }
.budget-row .has-prefix input { padding-left: 26px !important; }
.budget-row .prefix { left: 12px; }
.budget-row input.is-invalid,
.budget-row select.is-invalid { border-color: var(--red); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 46px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--red-bg); color: var(--red); }
.row-error { grid-column: 1 / -1; margin: 0 !important; }
.budget-total { margin-top: 18px; padding: 18px 20px; background: var(--cream); }
.bt-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 16px; color: var(--ink); }
.bt-left { font-weight: 700; color: var(--thread); }
.is-match .bt-left { color: var(--pine); }
.is-over .bt-left { color: var(--red); }
.bt-bar { height: 8px; margin-top: 12px; overflow: hidden; background: var(--line); }
.bt-bar span { display: block; width: 0; height: 100%; background: var(--saffron); transition: width 0.3s var(--ease), background-color 0.3s; }
.is-match .bt-bar span { background: var(--pine); }
.is-over .bt-bar span { background: var(--red); }

.counter { margin-top: 6px; font-size: 14px; text-align: right; color: var(--muted); }
.counter.is-short { color: var(--thread); }
.counter.is-ok { color: var(--pine); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px;
  border: 2px dashed var(--input);
  background: var(--cream);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover,
.dropzone.is-over { border-color: var(--ink); background: var(--mint); }
.dropzone p { margin: 0; font-size: 16px; }
.dz-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dz-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #fff; color: var(--pine); }
.file-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.file-list:empty { display: none; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border: 1.5px solid var(--line); background: #fff; }
.file-item > .icon { color: var(--pine); }
.fi-body { flex: 1; min-width: 0; }
.fi-name { display: block; overflow: hidden; font-size: 16px; font-weight: 600; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.fi-meta { display: block; font-size: 14px; color: var(--muted); }
.fi-bar { height: 4px; margin-top: 6px; overflow: hidden; background: var(--line-2); }
.fi-bar span { display: block; width: 0; height: 100%; background: var(--pine); transition: width 0.15s; }
.file-item.is-error { border-color: #efc9c2; background: var(--red-bg); }
.file-item.is-error .fi-meta { color: var(--red); }

.review { display: grid; gap: 16px; margin-bottom: 30px; }
.review-sec { border-top: 2px solid var(--ink); }
.review-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.review-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.review-dl > div { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.review-dl dt { margin-bottom: 2px; font-size: 14px; color: var(--muted); }
.review-dl dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.review-dl .is-wide { grid-column: 1 / -1; }
.review-dl .is-long dd { font-weight: 400; color: var(--ink-2); }

.fee-box { margin: 0 0 24px; padding: 20px 22px; border-left: 5px solid var(--saffron); background: var(--cream); }
.fee-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fee-top .field-label { margin: 0; }
.fee-amount { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.fee-box p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

.consents { margin: 0 0 26px; padding: 24px; background: var(--cream); }
.consents legend { float: left; width: 100%; margin-bottom: 16px; font-size: 19px; }
.check { display: flex; clear: both; align-items: flex-start; gap: 12px; margin: 0 0 12px; font-size: 16.5px; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 21px; height: 21px; margin: 2px 0 0; accent-color: var(--forest); cursor: pointer; }
.consents .field-error { margin: -6px 0 12px 33px; }
.signature-input { padding: 12px 16px !important; font-size: 28px !important; font-style: italic; font-weight: 500; }

.apply-success { padding: clamp(28px, 5vw, 64px); background: #fff; outline: none; }
.success-badge { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; background: var(--pine); color: #fff; }
.success-badge .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.apply-success .h2 { margin: 0 0 12px; }
.ref-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 28px 0 10px; padding: 20px 22px; border: 2px dashed var(--ink); background: var(--cream); }
.ref-box > span { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.ref-box strong { font-size: 28px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); }
.apply-success h3 { margin: 32px 0 0; font-size: 20px; font-weight: 700; }
.next-list { display: grid; margin: 10px 0 30px; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.next-list li { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.nl-date { font-weight: 700; color: var(--ink); }

/* status */
.status-result { padding: clamp(24px, 3.4vw, 44px); background: var(--cream); }
.status-empty { padding: 34px 8px; text-align: center; }
.status-empty .req-icon { margin: 0 auto; }
.status-empty h2 { margin: 18px 0 6px; font-size: 22px; font-weight: 600; }
.sr-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; }
.sr-head h2 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -0.01em; }
.sr-ref { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 7px 12px; font-family: var(--font-label); font-stretch: 125%; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.badge.tone-neutral { background: #fff; color: var(--ink); }
.badge.tone-info { background: #e3edf6; color: #1f4f7a; }
.badge.tone-gold { background: var(--saffron); color: var(--ink); }
.badge.tone-green { background: var(--pine); color: #fff; }
.badge.tone-muted { background: var(--line-2); color: var(--muted); }
.badge.tone-red { background: var(--red-bg); color: var(--red); }
.tracker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 26px 0; padding: 0; list-style: none; }
.tracker li { font-size: 13px; line-height: 1.3; color: var(--muted); }
.tracker li::before { content: ''; display: block; height: 6px; margin-bottom: 9px; background: var(--line); }
.tracker li.is-done::before { background: var(--pine); }
.tracker li.is-current::before { background: var(--saffron); }
.tracker li.is-current { font-weight: 700; color: var(--ink); }
.sr-message { margin: 0; padding: 18px 20px; background: #fff; font-size: 17px; color: var(--ink); }
.sr-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; }
.sr-meta dt { font-size: 14px; color: var(--muted); }
.sr-meta dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }

/* legal */
.prose { max-width: 780px; font-size: 18px; }
.prose h2 { margin: 44px 0 12px; font-size: 26px; font-weight: 600; }
.prose section:first-of-type h2 { margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

.error-page { min-height: 54vh; }
.error-page .empty-mark { margin: 0 auto 18px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1140px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .req-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
}

@media (max-width: 960px) {
  .hero,
  .split,
  .page-hero.has-photo,
  .two-col,
  .snapshot-inner,
  .program-row-inner,
  .contact-layout,
  .status-layout,
  .footer-top,
  .faq-layout,
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero-media { min-height: 460px; }
  .split { min-height: 0; }
  .split.is-reverse .split-media { order: 0; }
  .split-media { min-height: 380px; }
  .page-hero-media { order: 0; min-height: 320px; }
  .programs { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .program,
  .program:first-child,
  .program:last-child { padding: 34px 0 30px; border-right: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline::before { top: 14px; bottom: 14px; left: 13px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--pine) var(--p), var(--line) var(--p)); }
  .timeline li { display: grid; grid-template-columns: 29px minmax(0, 1fr); column-gap: 20px; padding-bottom: 28px; }
  .tl-dot { grid-row: span 4; }
  .tl-date { margin-top: 0; }
  .tl-now { justify-self: start; }
  .snapshot-figure { align-items: flex-start; text-align: left; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .side-nav .label { flex-basis: 100%; margin-bottom: 4px; }
  .apply-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .apply-aside { position: static; }
  .stepper,
  .aside-note,
  .aside-help { display: none; }
  .progress-mini { margin-bottom: 0; }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .header-actions .link-quiet { display: none; }
  .header-actions { gap: 10px; }
  .logo-word { font-size: 24px; }
  .logo-mark { width: 30px; height: 30px; }
  .nav-toggle { width: 44px; height: 44px; }
  .hero-media { min-height: 400px; }
  .hero-strip { padding: 16px 20px; font-size: 11.5px; }
  .grant-list a { grid-template-columns: minmax(0, 1fr) 22px; row-gap: 2px; }
  .gl-amt { grid-row: 2; }
  .gl-arrow { grid-row: 1 / span 2; grid-column: 2; }
  .actions .btn { flex: 1 1 auto; }
  .uses,
  .steps,
  .promise-grid,
  .req-grid,
  .pr-facts,
  .recipient-grid { grid-template-columns: minmax(0, 1fr); }
  .rubric li { grid-template-columns: 76px minmax(0, 1fr); }
  .rubric-w { font-size: 38px; }
  .quiz-q { grid-template-columns: 26px minmax(0, 1fr); }
  .quiz-q .yn { grid-column: 2; }
  .safety { flex-direction: column; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .doc-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .process li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .form-row,
  .form-row-3 { grid-template-columns: minmax(0, 1fr); }
  .form-row-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yn-field { grid-template-columns: minmax(0, 1fr); }
  .yn-options { padding-left: 30px; }
  .budget-labels { display: none; }
  .budget-row { grid-template-columns: minmax(0, 1fr) 42px; }
  .budget-row > .select-wrap,
  .budget-row > input,
  .budget-row > .input-wrap { grid-column: 1; }
  .budget-row > .icon-btn { grid-row: 1; grid-column: 2; }
  .review-dl { grid-template-columns: minmax(0, 1fr); }
  .next-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .step-nav { flex-wrap: wrap; }
  .step-count { flex-basis: 100%; order: -1; margin: 0 0 4px; }
  .step-nav .btn { flex: 1 1 auto; }
  .sr-meta { grid-template-columns: minmax(0, 1fr); }
  .tracker li { font-size: 11px; }
  .empty-state { padding: 36px 24px; }
}

@media (max-width: 400px) {
  .hide-xs { display: none; }
  .header-inner { gap: 12px; }
  .btn.header-cta { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
