/* Brindlecote Food Bank. Plain class-based CSS. No bare element color rules and nothing on .ct-* so injected blocks inherit cleanly. */

@font-face { font-family: "Commissioner"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/commissioner-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Commissioner"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/commissioner-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Commissioner"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/commissioner-latin-700-normal.woff2") format("woff2"); }

:root {
  --ct-accent: #b34a08;
  --ct-fg: #12263f;
  --ct-bg: #ffffff;
  --ct-muted: #4a5b70;
  --ct-font: "Commissioner", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ct-radius: 6px;

  --ink: #12263f;
  --ink-deep: #0c1b2e;
  --slate: #4a5b70;
  --line: #d6dee8;
  --soft: #f3f6f9;
  --accent: #b34a08;
  --accent-dark: #8f3b05;
  --accent-light: #f2a65a;
  --on-dark: #dbe4ee;
  --focus: #0b5cad;
  --wrap: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #8fa1b5 #eef2f6; }
body {
  margin: 0;
  font-family: var(--ct-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  accent-color: var(--accent);
  caret-color: var(--accent);
}
img, svg { max-width: 100%; }
::selection { background: #f7d4b0; color: var(--ink-deep); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--accent-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; font-weight: 700; border-radius: 4px; }
.skip-link:focus { top: 12px; }

/* ---------- utility bar ---------- */
.utility { background: var(--ink-deep); color: var(--on-dark); font-size: 0.875rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.utility-phone { margin: 0; color: var(--on-dark); display: flex; align-items: center; gap: 6px; }
.utility-phone .utility-link { padding: 0 4px; }
.utility-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.utility-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; text-decoration: none; font-weight: 500; }
.utility-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; min-height: 44px; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: block; line-height: 1.05; font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; }
.brand-text small { display: block; margin-top: 3px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font-weight: 500; font-size: 1rem; text-decoration: none; border-radius: 4px; }
.nav-link:hover { background: var(--soft); }
.nav-link[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav-extra { display: none; }

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

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 4px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.menu-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; font: inherit; font-weight: 700; cursor: pointer; }
.menu-toggle-bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1139px) {
  .header-inner { gap: 10px; min-height: 72px; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-monthly { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(12, 27, 46, 0.14); }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 12px; max-width: var(--wrap); margin: 0 auto; }
  .nav-link { width: 100%; min-height: 50px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; }
  .nav-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 16px; }
  .nav-extra { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink-deep) url("img/hero.svg") center right / cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 22, 38, 0.94) 0%, rgba(9, 22, 38, 0.82) 38%, rgba(9, 22, 38, 0.18) 78%, rgba(9, 22, 38, 0) 100%); }
.hero-inner { min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 72px; }
.hero-title { margin: 0 0 18px; max-width: 14ch; font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.hero-lede { margin: 0 0 32px; max-width: 34rem; font-size: 1.1875rem; line-height: 1.55; color: #e6edf5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-banner { position: relative; color: #fff; background: var(--ink-deep) url("img/banner.svg") center right / cover no-repeat; isolation: isolate; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 22, 38, 0.95) 0%, rgba(9, 22, 38, 0.8) 50%, rgba(9, 22, 38, 0.25) 100%); }
.page-banner-inner { padding-top: 56px; padding-bottom: 56px; }
.page-title { margin: 0 0 10px; font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.page-lede { margin: 0; max-width: 38rem; font-size: 1.125rem; color: #e6edf5; }
.crumbs { margin: 0 0 14px; font-size: 0.9375rem; color: var(--on-dark); }
.crumbs a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin-left: -4px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-tight { padding: 56px 0; }
.sec-head { margin-bottom: 32px; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-title { margin: 0 0 8px; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.sec-sub { margin: 0; max-width: 40rem; color: var(--slate); }
.text-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; display: inline-flex; align-items: center; min-height: 44px; }
.text-link:hover { color: var(--accent-dark); }
.prose-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose-link:hover { color: var(--accent-dark); }

/* ---------- three cards ---------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.tri-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; scroll-margin-top: 16px; }
.tri-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: var(--ink); }
.tri-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 20px; }
.tri-title { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.2; font-weight: 700; }
.tri-text { margin: 0 0 16px; color: var(--slate); }
.tri-body .text-link { margin-top: auto; align-self: flex-start; }
.tri-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- stats band ---------- */
.stats { background: var(--ink); color: #fff; padding: 64px 0 40px; }
.stats-title { margin: 0 0 32px; font-size: 1.25rem; font-weight: 500; color: var(--on-dark); }
.stat-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.stat { padding-top: 16px; border-top: 3px solid var(--accent-light); }
.stat-num { display: block; font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 10px; font-size: 1.0625rem; color: var(--on-dark); line-height: 1.4; }
.stats-note { margin: 36px 0 0; font-size: 0.875rem; color: #b9c8d9; }

/* ---------- dollar ---------- */
.dollar { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.dollar-bar { display: flex; height: 64px; border-radius: 6px; overflow: hidden; margin: 0 0 20px; background: var(--line); }
.dollar-seg { display: flex; align-items: center; padding: 0 14px; color: #fff; font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.dollar-seg-food { width: 88%; background: var(--ink); }
.dollar-seg-ops { width: 8%; background: var(--accent); padding: 0 6px; font-size: 0.9375rem; justify-content: center; }
.dollar-seg-fund { width: 4%; background: #6b7c91; padding: 0; }
.dollar-legend { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dollar-legend li { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; transform: translateY(2px); }
.swatch-food { background: var(--ink); }
.swatch-ops { background: var(--accent); }
.swatch-fund { background: #6b7c91; }
.legend-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.fine { margin: 14px 0 0; font-size: 0.875rem; color: var(--slate); }

/* ---------- events ---------- */
.events { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 76px 1fr auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.event-date { text-align: center; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; line-height: 1; background: #fff; }
.event-month { display: block; padding: 5px 0; background: var(--ink); color: #fff; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.event-day { display: block; padding: 8px 0 9px; font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-title { margin: 0 0 2px; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.event-meta { margin: 0; color: var(--slate); font-size: 0.9375rem; }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.news-card { display: flex; flex-direction: column; }
.news-img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 8px; display: block; background: var(--ink); }
.news-date { margin: 16px 0 4px; font-size: 0.875rem; color: var(--slate); }
.news-title { margin: 0 0 8px; font-size: 1.3125rem; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.news-text { margin: 0 0 8px; color: var(--slate); }
.news-card .text-link { align-self: flex-start; margin-top: auto; }

/* ---------- partners ---------- */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.partner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 8px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; font-size: 0.9375rem; line-height: 1.3; }
.partner img { width: 48px; height: 48px; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--soft); border-top: 1px solid var(--line); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px var(--gutter); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form .field { flex: 1 1 240px; }
.form-status { margin: 10px 0 0; min-height: 1.5em; font-weight: 500; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 700; font-size: 0.9375rem; }
.input { min-height: 48px; padding: 0 14px; width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #8696aa; border-radius: 4px; }
.input:hover { border-color: var(--ink); }
.input:focus { border-color: var(--focus); }
select.input { padding-right: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px var(--gutter) 40px; }
.footer-title { margin: 0 0 10px; color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; text-decoration: none; min-height: 44px; }
.footer-brand .brand-text small { color: #b9c8d9; }
.footer-brand .brand-mark { border-radius: 10px; box-shadow: 0 0 0 1px #5d7390; }
.footer-address { margin: 0 0 14px; font-style: normal; color: var(--on-dark); }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: #fff; text-decoration: none; }
.footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hours { margin: 0 0 12px; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 12px; max-width: 280px; }
.social { display: flex; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #5d7390; color: #fff; }
.social-link:hover { background: #fff; color: var(--ink); }
.social-link svg { width: 20px; height: 20px; fill: currentColor; }
.footer-base { border-top: 1px solid #263f5c; }
.footer-base-inner { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding: 20px var(--gutter) 28px; font-size: 0.875rem; color: #b9c8d9; }
.footer-base-inner p { margin: 0; }

/* ---------- donate ---------- */
.give-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.give-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 32px; box-shadow: 0 8px 24px rgba(12, 27, 46, 0.07); }
.give-title { margin: 0 0 20px; font-size: 1.75rem; line-height: 1.2; font-weight: 700; }
.freq { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.freq-btn { min-height: 48px; padding: 0 12px; background: #fff; color: var(--ink); border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.freq-btn + .freq-btn { border-left: 2px solid var(--ink); }
.freq-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 0.9375rem; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.amount span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 2px solid #8696aa; border-radius: 4px; font-weight: 700; font-size: 1.125rem; background: #fff; font-variant-numeric: tabular-nums; }
.amount input:hover + span { border-color: var(--ink); }
.amount input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.amount input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.other-amount { margin-top: 12px; }
.other-amount[hidden] { display: none; }
.money { position: relative; }
.money-sign { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--slate); }
.money .input { padding-left: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 4px 0 24px; padding: 4px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }

.aside-block { padding: 24px 0; border-top: 1px solid var(--line); }
.aside-block:first-child { padding-top: 0; border-top: 0; }
.aside-title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; }
.aside-block p { margin: 0 0 8px; color: var(--slate); }
.aside-list { margin: 0; padding-left: 1.2rem; color: var(--slate); }
.aside-list li { margin-bottom: 6px; }

/* ---------- get help ---------- */
.callout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; background: var(--ink); color: #fff; border-radius: 8px; }
.callout-title { margin: 0 0 4px; font-size: 1.5rem; font-weight: 700; }
.callout p { margin: 0; color: var(--on-dark); }
.filter-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-row .field { width: min(100%, 260px); }
.table-wrap { width: 100%; }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table caption { text-align: left; padding-bottom: 12px; color: var(--slate); font-size: 0.9375rem; }
.data-table th { text-align: left; padding: 12px 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9375rem; }
.data-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:nth-child(even) td { background: var(--soft); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr[hidden] { display: none; }
.cell-strong { font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 16px; height: 9px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg) scale(0.9); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; min-height: 56px; padding: 8px 0; font-weight: 700; cursor: pointer; }
.faq-item p { margin: 0 0 16px; color: var(--slate); }

/* ---------- about ---------- */
.mission { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.mission p { margin: 0 0 16px; max-width: 65ch; }
.values { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.values li { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.values li:last-child { border-bottom: 0; }
.values strong { display: block; margin-bottom: 4px; font-size: 1.1875rem; }
.values span { color: var(--slate); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.person { display: flex; gap: 16px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.375rem; letter-spacing: 0.02em; }
.avatar-warm { background: var(--accent); }
.avatar-mid { background: #2c5a85; }
.person-name { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.person-role { margin: 2px 0 0; color: var(--slate); font-size: 0.9375rem; }
.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.jobs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.jobs li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-card { font-style: normal; display: grid; gap: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .stat-list { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .give-grid { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .tri { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .news { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .dollar, .newsletter-inner, .mission, .fin-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero-inner { min-height: 480px; padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 719px) {
  :root { --gutter: 20px; }
  .section { padding: 52px 0; }
  .hero::before, .page-banner::before { background: linear-gradient(180deg, rgba(9, 22, 38, 0.72) 0%, rgba(9, 22, 38, 0.88) 100%); }
  .utility-phone { display: none; }
  .utility-inner { justify-content: flex-end; }
  .brand-text { font-size: 1.1875rem; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text small { font-size: 0.64rem; letter-spacing: 0.1em; }
  .btn-header { padding: 0 16px; }
  .event { grid-template-columns: 64px 1fr; gap: 16px; }
  .event .text-link { grid-column: 2; justify-self: start; }
  .event-day { font-size: 1.5rem; }
  .give-card { padding: 22px 18px; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; padding: 24px; }
  .people { grid-template-columns: 1fr; }
  .stats { padding-top: 48px; }
  .dollar-bar { height: 56px; }
  .dollar-seg { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .data-table td { padding: 3px 0; border: 0; background: transparent !important; }
  .data-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--slate); }
  .data-table td.cell-strong::before { content: none; }
  .data-table .num { text-align: left; }
}
@media (max-width: 479px) {
  .stat-list { gap: 24px 16px; }
  .stat-label { font-size: 0.9375rem; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .btn-header { padding: 0 14px; font-size: 0.9375rem; }
}

/* dev preview banner (harness inserts a plain status paragraph at the top of body) */
body > p[role="status"] { margin: 0; padding: 8px var(--gutter); background: var(--ink-deep); color: #fff; font-size: 0.875rem; border-bottom: 2px solid var(--accent-light); }

/* integration contract: empty slots take no space (the other pages still use v1 slots) */
[data-impact-slot]:empty { display: none; }

/* ---------- returning donor (contract v2) ----------
   Regions hold the stranger's default markup. For a recognized donor the layer swaps in the matching
   <template data-impact-for>, and sets html[data-impact-active] so the page can be re-composed below.
   Nothing here applies to a first-time visitor. */
[data-impact-region]:empty { display: none; }

/* names for the layer's view transition: the swap morphs the headline and re-ordered sections glide.
   Each name is used once per document; the default h1 and the donor h1 never exist together. */
#hero-h, #donor-hero-h { view-transition-name: ct-headline; }
main > .hero-region { view-transition-name: ct-hero; }
main > .ways-section { view-transition-name: ct-ways; }
main > .stats { view-transition-name: ct-stats; }
main > .since-region { view-transition-name: ct-since; }
main > .dollar-section { view-transition-name: ct-dollar; }
main > #events { view-transition-name: ct-events; }
main > #news { view-transition-name: ct-news; }
main > .partners-section { view-transition-name: ct-partners; }
main > .next-region { view-transition-name: ct-next; }

/* "Just logged" tag: only a record that arrived live (the layer sets data-ct-new) shows it */
.ct-new-tag { display: none; }
[data-ct-new] .ct-new-tag { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: var(--accent-light); color: var(--ink-deep); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; vertical-align: middle; }

/* if the layer has no label for the next step (older API), the button still reads sensibly */
.next-btn:empty::before { content: "Your next step"; }

/* donor hero: the same dark scene, re-composed around the donor's own record */
.hero-donor::before { background: linear-gradient(90deg, rgba(9, 22, 38, 0.95) 0%, rgba(9, 22, 38, 0.9) 62%, rgba(9, 22, 38, 0.72) 100%); }
.donor-inner { justify-content: flex-start; align-items: flex-start; min-height: 0; padding-top: 64px; padding-bottom: 64px; }
.donor-title { max-width: 20ch; }
.donor-lede { max-width: 40rem; }
.hero-donor .hero-lede { margin-bottom: 28px; }
.donor-gift { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding-left: 14px; border-left: 4px solid var(--accent-light); font-size: 1.125rem; font-weight: 500; color: #fff; }
.gift-tag { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); }
.donor-then { max-width: 36rem; margin: 0 0 28px; font-size: 1.125rem; line-height: 1.55; color: #fff; }
.hero-donor .hero-actions { margin-bottom: 8px; }
.hero-donor-news .donor-inner { padding-top: 56px; padding-bottom: 56px; }

.dh-sub { margin: 0 0 12px; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.01em; color: #fff; }
.dh-gifts-wrap { margin: 0 0 24px; }
.dh-gifts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dh-gift { display: flex; flex-direction: column; min-width: 150px; padding: 12px 18px 12px 14px; border-left: 4px solid var(--accent-light); background: rgba(255, 255, 255, 0.08); }
.dh-amount { font-size: 1.75rem; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.dh-date { margin-top: 2px; font-size: 0.9375rem; color: var(--on-dark); }

.dh-block { width: 100%; margin-top: 40px; }
.dh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.dh-fact { display: block; padding-top: 14px; border-top: 3px solid var(--accent-light); }
.dh-fact > span { display: block; }
.dh-num { font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dh-unit { margin-top: 6px; font-size: 1.125rem; line-height: 1.3; color: #fff; }
.dh-when { margin-top: 4px; font-size: 0.9375rem; font-weight: 700; color: var(--on-dark); }
.dh-note { margin-top: 4px; font-size: 0.9375rem; line-height: 1.45; color: var(--on-dark); }

/* estimates: dashed, italic, never filled like a record, and always labeled */
.dh-est { align-self: flex-start; max-width: 36rem; margin-top: 32px; padding: 16px 20px; border: 2px dashed rgba(255, 255, 255, 0.7); border-radius: 6px; }
.dh-est .dh-sub { font-style: italic; margin-bottom: 8px; }
.dh-est-list { margin: 0 0 8px; padding: 0; list-style: none; }
.dh-est-item { margin: 0 0 2px; font-size: 1.375rem; font-style: italic; font-weight: 500; line-height: 1.35; color: #fff; }
.dh-est-note { margin: 0; font-size: 0.9375rem; color: var(--on-dark); }

/* since your last visit: a light band under the stats band */
.since-sec { border-top: 1px solid var(--line); }
.since-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; margin: 0; padding: 0; list-style: none; }
.since-fact { display: flex; flex-direction: column; padding-top: 14px; border-top: 3px solid var(--accent); }
.since-photo { order: 9; width: 100%; max-width: 280px; aspect-ratio: 16 / 9; margin-top: 14px; object-fit: cover; border-radius: 6px; background: var(--ink); }
.since-num { font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.since-unit { margin-top: 6px; font-size: 1.125rem; line-height: 1.3; font-weight: 500; }
.since-when { margin-top: 4px; font-size: 0.9375rem; font-weight: 700; color: var(--slate); }
.since-note { margin-top: 4px; font-size: 0.9375rem; line-height: 1.45; color: var(--slate); }
.since-est { max-width: 36rem; margin-top: 36px; padding: 16px 20px; border: 2px dashed var(--slate); border-radius: 6px; background: transparent; }
.since-est-title { margin: 0 0 8px; font-size: 1.0625rem; font-style: italic; font-weight: 700; }
.since-est-list { margin: 0 0 8px; padding: 0; list-style: none; }
.since-est-item { margin: 0 0 2px; font-size: 1.375rem; font-style: italic; font-weight: 500; line-height: 1.35; }
.since-est-note { margin: 0; font-size: 0.9375rem; color: var(--slate); }

/* next step */
.next-sec { padding: 56px 0; }
.next-callout .btn { white-space: normal; }

/* page re-composition for a recognized donor: their own record first, then where the dollar goes.
   Strangers keep the plain DOM order. */
html[data-impact-active] main { display: flex; flex-direction: column; }
html[data-impact-active] main > .hero-region { order: 1; }
html[data-impact-active] main > .since-region { order: 2; }
html[data-impact-active] main > .next-region { order: 3; }
html[data-impact-active] main > .dollar-section { order: 4; }
html[data-impact-active] main > .ways-section { order: 5; }
html[data-impact-active] main > .stats { order: 6; }
html[data-impact-active] main > #events { order: 7; }
html[data-impact-active] main > #news { order: 8; }
html[data-impact-active] main > .partners-section { order: 9; }

@media (max-width: 719px) {
  .donor-inner { padding-top: 48px; padding-bottom: 48px; }
  .gift-tag { flex-basis: 100%; }
  .dh-block { margin-top: 32px; }
  .next-sec { padding: 40px 0; }
}
@media (max-width: 479px) {
  .hero-donor .hero-actions .btn { flex: 1 1 100%; }
}
@media (forced-colors: active) {
  .dh-est, .since-est { border: 2px dashed CanvasText; }
}
