/* ==========================================================================
   Alliance for Community Transformations — alliance4you.org
   "ACT brand" design system — matches the organization's existing branding:
   deep blue #283890 / mid blue #0E6DAF / sky #53C0E9 / CTA ocean #0E6DAF,
   off-white #F0ECE6 section ground, Roboto + Roboto Slab type.
   --------------------------------------------------------------------------
   Rules that must not drift:
   - CTA blue (--cta) is used ONLY for get-help / crisis-call surfaces.
   - Exit red (--exit) is used ONLY for the Quick Exit control.
   - Programs share one unified style; identity comes from their real logos.
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  --paper: #ffffff;
  --paper-alt: #f0ece6;
  --surface: #ffffff;
  --ink: #262626;
  --ink-soft: #5a5a5a;
  --line: #e2ddd3;

  --blue: #283890;
  --blue-deep: #1d2a6e;
  --blue-night: #161f4e;
  --blue-mid: #0e6daf;
  --sky: #53c0e9;
  --sky-soft: #e3f4fc;
  --tan: #c2b59b;

  /* crisis surfaces only */
  --cta: #0e6daf;
  --cta-deep: #095284;
  --cta-mist: #e3f4fc;

  /* quick exit only */
  --exit: #d7332d;
  --exit-deep: #b3261e;

  --font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
  --font-body: "Roboto", -apple-system, "Segoe UI", system-ui, sans-serif;

  --radius: 8px;
  --radius-sm: 5px;
  --shadow-soft: 0 1px 2px rgba(22, 31, 78, 0.06), 0 6px 18px rgba(22, 31, 78, 0.08);
  --shadow-lift: 0 2px 4px rgba(22, 31, 78, 0.08), 0 14px 32px rgba(22, 31, 78, 0.14);
  --wrap: 72rem;
  --wrap-text: 46rem;
  --gutter: clamp(1.1rem, 4vw, 2rem);
}

/* Program pages share the unified brand accent — no per-program theming */
.theme-mcs, .theme-vcc, .theme-casa, .theme-frc, .theme-hh {
  --accent: var(--blue-mid);
  --accent-tint: var(--sky-soft);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.6em;
  color: var(--blue);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); }

p { margin: 0 0 1.1em; }
p, li { max-width: var(--wrap-text); }

a { color: var(--blue-mid); text-underline-offset: 3px; }
a:hover { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-header :focus-visible, .util-bar :focus-visible, .site-footer :focus-visible,
.hero :focus-visible, .prog-hero :focus-visible, .section-pine :focus-visible {
  outline-color: var(--sky);
}
.exit-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, 0 3px 12px rgba(38, 38, 38, 0.3);
}

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Crisis utility bar — magenta, every page
   ========================================================================== */
.util-bar {
  background: var(--cta);
  color: #fff;
  font-size: 0.92rem;
  position: relative;
  z-index: 40;
}
.util-bar .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.25rem 1.4rem;
  padding-block: 0.45rem;
  padding-right: calc(var(--gutter) + 7.5rem);
}
.util-bar strong { font-weight: 700; }
.util-bar a {
  color: #fff; font-weight: 700; text-decoration-thickness: 1px; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; margin-block: -0.55rem;
}
.util-bar a:hover { color: var(--sky-soft); }
.util-bar .util-label { display: inline-flex; align-items: center; gap: 0.45rem; }
.util-bar .util-label svg { flex: none; }
@media (max-width: 40em) {
  .util-bar { font-size: 0.84rem; }
  .util-bar .wrap { padding-right: calc(var(--gutter) + 7.6rem); gap: 0.2rem 1rem; }
}

/* ==========================================================================
   Quick Exit — fixed, red, top right, all pages
   ========================================================================== */
.exit-btn {
  position: fixed; top: 0.55rem; right: 0.75rem; z-index: 100;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--exit); color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  font: 700 0.9rem/1 var(--font-body);
  padding: 0.62rem 1.05rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(38, 38, 38, 0.3);
}
.exit-btn:hover { background: var(--exit-deep); color: #fff; }
.exit-btn svg { flex: none; }
.exit-btn .exit-hint { font-weight: 500; opacity: 0.9; }
@media (max-width: 40em) { .exit-btn .exit-hint { display: none; } }

/* ==========================================================================
   Header — deep blue with the real ACT logo
   ========================================================================== */
.site-header { background: var(--blue); color: #fff; position: relative; z-index: 30; }
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.6rem; padding-block: 0.7rem;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: clamp(170px, 24vw, 230px); height: auto; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm); color: #fff;
  font: 700 0.9rem var(--font-body);
  padding: 0.5rem 0.8rem; cursor: pointer;
  align-items: center; gap: 0.5rem;
}
.nav-toggle:hover { border-color: #fff; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.2rem; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; color: #fff; text-decoration: none;
  font-weight: 500; font-size: 0.97rem;
  padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 -3px 0 var(--sky);
}
.site-nav .nav-help a { background: var(--cta); font-weight: 700; box-shadow: none; }
.site-nav .nav-help a:hover { background: var(--cta-deep); }
.site-nav .nav-donate a { background: var(--sky); color: var(--blue-night); font-weight: 700; }
.site-nav .nav-donate a:hover { background: #79cfee; color: var(--blue-night); }

@media (max-width: 68em) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; inset: 100% 0 auto 0;
    background: var(--blue-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 30px rgba(22, 31, 78, 0.35);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.8rem var(--gutter) 1.1rem; }
  .site-nav a { display: block; padding: 0.8rem 0.9rem; font-size: 1.05rem; }
}

/* ==========================================================================
   Heroes
   ========================================================================== */
.hero {
  background:
    linear-gradient(rgba(29, 42, 110, 0.85), rgba(22, 31, 78, 0.93)),
    url("/assets/img/act-about.jpg") center / cover no-repeat;
  color: #fff;
  position: relative;
}
.hero .wrap { position: relative; padding-block: clamp(3rem, 8vw, 6rem); }
.hero h1, .prog-hero h1 { color: #fff; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.1rem;
}
.hero h1 { max-width: 20ch; margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 48ch; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  border: none; border-radius: var(--radius-sm);
  padding: 0.85rem 1.5rem;
  font: 700 1rem var(--font-body);
  text-decoration: none; cursor: pointer;
  min-height: 44px;
  transition: background-color 0.15s ease;
}
.btn svg { flex: none; }

.btn-help { background: var(--cta); color: #fff; }
.btn-help:hover { background: var(--cta-deep); color: #fff; }

.btn-pine { background: var(--blue-mid); color: #fff; }
.btn-pine:hover { background: var(--blue); color: #fff; }
.hero .btn-pine, .prog-hero .btn-pine {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.hero .btn-pine:hover, .prog-hero .btn-pine:hover { background: rgba(255, 255, 255, 0.24); }

.btn-gold { background: var(--sky); color: var(--blue-night); }
.btn-gold:hover { background: #79cfee; color: var(--blue-night); }

.btn-ghost { background: transparent; color: var(--blue-mid); border: 2px solid var(--blue-mid); }
.btn-ghost:hover { background: var(--sky-soft); color: var(--blue); }

.call-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--cta); color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  font-weight: 700; font-size: 1.02rem;
  text-decoration: none; min-height: 44px; white-space: nowrap;
}
.call-chip:hover { background: var(--cta-deep); color: #fff; }
.call-chip small { font-weight: 500; opacity: 0.9; font-size: 0.78em; }
.call-chip.call-office { background: var(--blue-mid); }
.call-chip.call-office:hover { background: var(--blue); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(2.8rem, 7vw, 4.6rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.2rem); }
.section-paper-deep { background: var(--paper-alt); }
.section-pine { background: var(--blue); color: #fff; }
.section-pine h2, .section-pine h3 { color: #fff; }
.section-pine a { color: var(--sky-soft); }
.section-pine .kicker { color: var(--sky); }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.9rem;
}
.kicker::before { content: ""; width: 2rem; height: 3px; border-radius: 2px; background: var(--sky); }

.section-head { max-width: 52rem; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.section-head .lede { font-size: 1.12rem; color: var(--ink-soft); }
.lede { font-size: 1.12rem; color: var(--ink-soft); }

/* ==========================================================================
   Program cards — unified brand style, real logos
   ========================================================================== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: 1.2rem;
}
.program-card {
  position: relative;
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.18s ease;
}
.program-card:hover { box-shadow: var(--shadow-lift); }

.pc-logo {
  height: 72px; width: auto; max-width: 80%;
  object-fit: contain; object-position: left center;
  margin-bottom: 0.3rem;
}
.program-card h3 { margin-bottom: 0.1rem; }
.program-card h3 a { color: var(--blue); text-decoration: none; }
.program-card h3 a::after { content: ""; position: absolute; inset: 0; }
.program-card h3 a:hover { color: var(--blue-mid); }
.program-card .pc-tag {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--sky-soft);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.7rem;
}
.program-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.program-card .pc-call {
  position: relative; z-index: 1;
  margin-top: auto; padding-top: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.program-card .pc-call a {
  font-weight: 700; color: var(--blue-mid); white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; margin-block: -0.5rem;
}
.program-card .pc-call .pc-crisis {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--cta); color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  text-decoration: none;
}
.program-card .pc-call .pc-crisis:hover { background: var(--cta-deep); }

/* ==========================================================================
   Cards / callouts
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-top: 0; }
.card > img { border-radius: var(--radius-sm); margin-bottom: 1rem; }

.callout-help {
  background: var(--cta-mist);
  border: 1px solid #ecc3dc;
  border-left: 5px solid var(--cta);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.callout-help h2, .callout-help h3 { color: var(--cta-deep); margin-top: 0; }
.callout-help .call-row { margin-top: 0.9rem; }

.call-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.notice-safety {
  background: var(--paper-alt);
  border: 1px solid var(--tan);
  border-left: 5px solid var(--tan);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-size: 0.97rem;
}
.notice-safety p { margin: 0; max-width: none; }
.notice-safety a { color: var(--blue-mid); font-weight: 600; }

/* ==========================================================================
   Program pages — unified blue hero
   ========================================================================== */
.prog-hero { background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; position: relative; }
.prog-hero .wrap { position: relative; padding-block: clamp(2.6rem, 6vw, 4.2rem) clamp(2rem, 5vw, 3rem); }
.prog-hero .crumb { font-size: 0.88rem; font-weight: 500; margin-bottom: 1.4rem; }
.prog-hero .crumb a { color: rgba(255, 255, 255, 0.95); }
.prog-hero .crumb a:hover { color: #fff; }
.prog-hero .prog-of {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.8rem;
}
.prog-hero h1 { max-width: 22ch; }
.prog-hero .hero-lede { color: rgba(255, 255, 255, 0.92); }
.prog-hero .hero-actions { margin-top: 1.5rem; }
.prog-hero .btn-help { background: var(--cta); border: 1px solid rgba(255, 255, 255, 0.5); }
.prog-hero .btn-office { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; }
.prog-hero .btn-office:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

.prog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}
@media (max-width: 56em) { .prog-layout { grid-template-columns: 1fr; } }

/* The rail scrolls with the page (no sticky): a rail taller than the screen
   kept its lower cards out of view until the main column ended. */
.prog-rail { display: grid; gap: 1.1rem; }
.rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.96rem;
}
.rail-card h3 {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.7rem;
}
.rail-card p { margin-bottom: 0.6em; }
.rail-card .call-chip { width: 100%; justify-content: center; }
.rail-card address { font-style: normal; color: var(--ink-soft); }
.rail-logo { border-top-color: var(--line); }
.rail-card-safety { border-top-color: var(--sky); }
.rail-card-safety h3 { color: var(--ink); }
.rail-logo img { max-height: 90px; width: auto; margin-inline: auto; }

.prog-body h2 { padding-top: 0.4em; margin-top: 1em; }
.prog-body h2::after {
  content: ""; display: block;
  width: 3.2rem; height: 4px; border-radius: 2px;
  margin-top: 0.35em;
  background: var(--sky);
}
.prog-body h2:first-child { margin-top: 0; }
.prog-body ul { padding-left: 1.2rem; }
.prog-body li { margin-bottom: 0.45em; }
.prog-body li::marker { color: var(--blue-mid); }
.prog-body img { border-radius: var(--radius-sm); }

/* "Read more" link from a hub summary section to its detail page */
.read-more { margin: 0.3rem 0 1.5rem; font-weight: 500; }
.read-more a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.read-more a::after { content: " \2192"; }

.svc-list {
  list-style: none;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 0.55rem 1.4rem;
}
.svc-list li { position: relative; padding-left: 1.9rem; margin: 0; max-width: none; }
.svc-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--sky-soft);
  border: 2px solid var(--blue-mid);
}
.svc-list li::after {
  content: "";
  position: absolute; left: 0.30rem; top: calc(0.42em + 0.28rem);
  width: 0.5rem; height: 0.28rem;
  border-left: 2.5px solid var(--blue-mid);
  border-bottom: 2.5px solid var(--blue-mid);
  transform: rotate(-45deg);
}

details.edu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 0.7rem; overflow: hidden;
}
details.edu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.2rem;
  font-weight: 700; font-size: 1.02rem;
  color: var(--blue);
}
details.edu summary::-webkit-details-marker { display: none; }
details.edu summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem; line-height: 1;
  color: var(--blue-mid);
  flex: none;
}
details.edu[open] summary::after { content: "–"; }
details.edu[open] summary { border-bottom: 1px solid var(--line); }
details.edu .edu-body { padding: 1rem 1.2rem 0.4rem; }
details.edu:hover { border-color: var(--blue-mid); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 1.2rem 2rem;
}
.stat .stat-n {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}
.stat .stat-l { font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); margin-top: 0.4rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--blue-night); color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; }
.site-footer .wrap { padding-block: clamp(2.4rem, 6vw, 3.4rem) 1.6rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.4rem;
}
@media (max-width: 56em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36em) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .f-phone {
  white-space: nowrap; font-weight: 500;
  display: inline-flex; align-items: center; min-height: 44px; margin-block: -0.6rem;
}
.footer-brand img { width: 200px; margin-bottom: 0.4rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; margin-top: 0.8rem; }
.footer-brand strong { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-legal a { color: rgba(255, 255, 255, 0.8); }
.footer-legal-bare { border-top: none; padding-top: 0; }

/* ==========================================================================
   Sticky mobile call bar
   ========================================================================== */
.mobile-call-bar {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 90;
  background: var(--cta);
  padding: 0.55rem var(--gutter) calc(0.55rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(38, 38, 38, 0.25);
}
.mobile-call-bar .mcb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mobile-call-bar .mcb-grid.one { grid-template-columns: 1fr; }
.mobile-call-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.05rem;
  background: #fff; color: var(--cta-deep);
  border-radius: var(--radius-sm);
  min-height: 50px;
  padding: 0.35rem 0.5rem;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.mobile-call-bar a small {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.75;
}
.mobile-call-bar a:hover { background: var(--cta-mist); }
@media (max-width: 48em) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 4.4rem; }
}

/* ==========================================================================
   Misc
   ========================================================================== */
.old-domains { font-size: 0.95rem; color: var(--ink-soft); }
.old-domains code {
  font-family: inherit;
  background: var(--paper-alt);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}

.a-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1.2rem;
  align-items: start;   /* a card ends where its content ends — never stretched to its row-mate's height */
}
/* Grids whose cards differ a lot in length (volunteer, wish lists, values): pack cards into
   columns so short cards sit under each other instead of beside one tall card. Reading order
   runs down each column; on narrow screens it collapses to one column in document order. */
.a-grid.flow {
  display: block;
  columns: 19rem;
  column-gap: 1.2rem;
}
.a-grid.flow > * { break-inside: avoid; margin-bottom: 1.2rem; }
.card > :last-child { margin-bottom: 0; }

.contact-block address { font-style: normal; }

.figure-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.4rem; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); animation: reveal 0.6s ease-out forwards; }
  .reveal-2 { animation-delay: 0.1s; }
  .reveal-3 { animation-delay: 0.2s; }
  .reveal-4 { animation-delay: 0.3s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .program-card, .btn { transition: none; }
}

@media print {
  .exit-btn, .mobile-call-bar, .nav-toggle, .site-nav { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .util-bar, .site-header, .site-footer, .hero, .prog-hero, .section-pine {
    background: #fff !important; color: #000 !important;
  }
  .util-bar a, .site-header a, .site-footer a, .hero *, .prog-hero * { color: #000 !important; }
}

/* ==========================================================================
   Page-level classes (2026-09-11) — replaced the inline style attributes
   that pages used to carry. Two kinds:
   - component rules keyed on markup that already existed (forms, stats,
     footer brand);
   - small single-purpose utilities named by their value (mt-07 = margin-top
     0.7rem) so that swapping one for another is an obvious edit. They sit at
     the end of the file so, on equal specificity, they win — the same
     guarantee an inline style gave the element.
   ========================================================================== */

/* ---- Forms (contact, MHH volunteer application, VCC newsletter) ---- */
.form-label { display: block; font-weight: 700; margin: 0.9rem 0 0.3rem; }
.form-label-tight { margin-top: 0.6rem; }
.form-input {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: inherit;
  min-height: 44px;
  width: 100%;
  max-width: 26rem;
}
.form-input-full { max-width: none; }
.form-textarea { min-height: 7rem; }
.form-actions { margin-top: 1.1rem; }
.form-note { margin: 0 0 0.4rem; }
.pay-form { margin: 0 0 1.4rem; }
.btn-block { width: 100%; }

/* ---- Stats page (VCC yearly numbers) ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 1.6rem;
}
.stat-n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.4rem;
}

/* ---- Media and embeds ----
   Element-qualified on purpose: img.x and iframe.x tie with the container
   rules (.card > img, .prog-body img, .card > :last-child) on specificity
   and win by coming later in the file. ---- */
img.img-rounded { border-radius: 8px; }
img.img-fluid { max-width: 100%; height: auto; }
img.img-avatar { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; margin-bottom: 0.8rem; }
iframe.embed-map { border: 0; border-radius: var(--radius-sm); display: block; margin-top: 0.6rem; }
iframe.embed-form { max-width: 601px; border: 0; display: block; margin: 1rem 0; }
iframe.embed-form-fluid { border: 0; max-width: 100%; display: block; margin: 1rem 0; }

/* ---- Sections and wrappers ---- */
.section-cta { background: var(--cta); color: #fff; }
.wrap-pad { padding-block: clamp(2.2rem, 5vw, 3.2rem); }
.wrap-pad-lg { padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.action-row { display: flex; flex-wrap: wrap; gap: 0.8rem; max-width: 46rem; margin-bottom: 1.6rem; }

/* ---- Text utilities ---- */
.small { font-size: 0.9rem; }
.text-95 { font-size: 0.95rem; }
.text-85 { font-size: 0.85rem; }
.fine-print { font-size: 0.92rem; color: var(--ink-soft); }
.h2-sm { font-size: 1.4rem; }
.h2-md { font-size: 1.5rem; }
.fw-normal { font-weight: 400; }
.fw-bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.on-dark { color: rgba(255, 255, 255, 0.92); }
.on-dark-88 { color: rgba(255, 255, 255, 0.88); }
.on-dark-80 { color: rgba(255, 255, 255, 0.8); }

/* ---- Measure (max-width) utilities ---- */
.measure-52 { max-width: 52rem; }
.measure-46 { max-width: 46rem; }
.measure-20 { max-width: 20rem; }
.measure-24ch { max-width: 24ch; }
.measure-22ch { max-width: 22ch; }

/* ---- Spacing utilities (value in the name: mt-07 = 0.7rem) ---- */
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mt-04 { margin-top: 0.4rem; }
.mt-05 { margin-top: 0.5rem; }
.mt-07 { margin-top: 0.7rem; }
.mt-09 { margin-top: 0.9rem; }
.mt-1 { margin-top: 1rem; }
.mt-12 { margin-top: 1.2rem; }
.mt-14 { margin-top: 1.4rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-16 { margin-top: 1.6rem; }
.mt-18 { margin-top: 1.8rem; }
.mt-2 { margin-top: 2rem; }
.mt-24 { margin-top: 2.4rem; }
.mt-26 { margin-top: 2.6rem; }
.mb-06 { margin-bottom: 0.6rem; }
.mb-16 { margin-bottom: 1.6rem; }
