/* ==========================================================================
   Addison Township Alliance — "Heartland Classic"
   Deep navy + leaf green + harvest orange. Slab headings, crest motifs,
   subtle bunting. Static, no external resources (slab font self-hosted).
   ========================================================================== */

/* Variable font, weights 100-900 in one file (latin subset). Self-hosted so
   the slab identity renders on every device, not just ones with Rockwell. */
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/roboto-slab-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1c2b4a;
  --navy-deep: #131f38;
  --navy-soft: #2c3f66;
  --green: #8fae3b;
  --green-bright: #9cbb3f;
  --green-dark: #5d7522;
  --orange: #e8941a;
  --orange-deep: #b06d08;
  --kraft: #b9885a;
  --kraft-dark: #8a6238;
  --cream: #faf6ec;
  --paper: #fffdf8;
  --ink: #24303f;
  --ink-soft: #4a5568;
  --line: #e6dfcd;
  --line-navy: #35476e;
  --shadow: 0 2px 10px rgba(19, 31, 56, 0.10);
  --shadow-lift: 0 10px 30px rgba(19, 31, 56, 0.16);
  --font-slab: "Roboto Slab", "Rockwell", "Rockwell Nova", "Bookman Old Style", "Clarendon", "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}
::selection {
  background: var(--orange);
  color: var(--navy-deep);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-slab);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

a {
  color: var(--green-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
a:hover { color: var(--navy); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

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

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(19, 31, 56, 0.08);
}
/* Keep anchor-link targets clear of the sticky header */
[id] { scroll-margin-top: 5.5rem; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.15;
  color: var(--navy);
}
.brand-motto {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 700;
  margin-top: 2px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: var(--navy);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* The visually-hidden "Menu" label is the button's first child, so the bars
   are children 2-4. */
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.primary-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: 6px;
  border-bottom: 3px solid transparent;
}
.primary-nav a:hover { background: var(--cream); color: var(--navy); }
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--orange);
  color: var(--navy);
}
.primary-nav .nav-donate a {
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  border: 0;
  padding: 0.55rem 1.1rem;
  margin-left: 0.4rem;
}
.primary-nav .nav-donate a:hover { background: var(--navy-soft); color: #fff; }
.primary-nav .nav-donate a[aria-current="page"] {
  box-shadow: inset 0 -4px 0 var(--orange);
  border-bottom: 0;
}

/* Mobile nav */
@media (max-width: 66rem) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--navy);
    box-shadow: var(--shadow-lift);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
  }
  .primary-nav a { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav a[aria-current="page"] { border-left: 4px solid var(--orange); padding-left: 0.6rem; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-donate a { margin: 0.75rem 0 0; text-align: center; border-radius: 6px; }
}
@media (min-width: 66.0625rem) {
  .nav-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   Bunting strip (repeating pennant SVG as data URI)
   -------------------------------------------------------------------------- */
/* At fractional zoom the GPU samples the repeated tile with wrap-around, so
   an edge row of the tile smears the opposite edge's colors across the strip
   (a hairline at the pennant apexes). The tile is 24px tall — a 1px solid
   strip beyond the pennant bases and a 1px transparent guard beyond the tips
   — and background-position shifts it so both tile edges land outside the
   22px box and their smears are never painted. The footer paints its own
   upward-pointing pennants instead of scaleY(-1), which had the same seam
   problem from compositing the flipped layer. */
.bunting {
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Crect y='0' width='40' height='1' fill='%231c2b4a'/%3E%3Crect x='40' y='0' width='40' height='1' fill='%238fae3b'/%3E%3Crect x='80' y='0' width='40' height='1' fill='%23e8941a'/%3E%3Cpath d='M0 1h40L20 23z' fill='%231c2b4a'/%3E%3Cpath d='M40 1h40L60 23z' fill='%238fae3b'/%3E%3Cpath d='M80 1h40L100 23z' fill='%23e8941a'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 24px;
  background-position: 0 -1px;
  background-color: transparent;
}
.bunting--footer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Crect y='23' width='40' height='1' fill='%231c2b4a'/%3E%3Crect x='40' y='23' width='40' height='1' fill='%238fae3b'/%3E%3Crect x='80' y='23' width='40' height='1' fill='%23e8941a'/%3E%3Cpath d='M0 23h40L20 1z' fill='%231c2b4a'/%3E%3Cpath d='M40 23h40L60 1z' fill='%238fae3b'/%3E%3Cpath d='M80 23h40L100 1z' fill='%23e8941a'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem 1.7rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transform: none; transition: none; }
}
.btn-primary {
  background: var(--orange);
  color: var(--navy-deep);
  border-color: var(--orange);
}
.btn-primary:hover { background: #f8a835; border-color: #f8a835; color: var(--navy-deep); }
.btn-secondary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }
/* PayPal-look CTA: gold pill, wordmark colors, soft even shadow */
.btn-paypal {
  background: #ffc439;
  border-color: #ffc439;
  color: #003087;
  border-radius: 999px;
  font-size: 1.2rem;
  padding: 0.95rem 2.8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.btn-paypal:hover { background: #f2b52f; border-color: #f2b52f; color: #003087; }
.btn-paypal .pp-pay, .btn-paypal .pp-pal { font-style: italic; font-weight: 800; }
.btn-paypal .pp-pay { color: #003087; }
.btn-paypal .pp-pal { color: #0070ba; }
.donate-cta { text-align: center; margin-bottom: 2.4rem; }
.donate-cta p { margin-bottom: 0.4rem; }
.btn-paypal--soon {
  filter: grayscale(1);
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.paypal-soon-note { margin-top: 0.6rem; }

.btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-on-dark:hover { background: #fff; color: var(--navy); }
.btn-green {
  background: var(--green);
  color: var(--navy-deep);
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-bright); border-color: var(--green-bright); color: var(--navy-deep); }
.btn-block { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   Hero (navy crest hero)
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(ellipse at 50% -20%, var(--navy-soft), var(--navy) 55%, var(--navy-deep));
  color: #eef1f8;
  text-align: center;
  padding: calc(3.5rem - 7px) 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath d='M80 20l4.7 9.5 10.5 1.5-7.6 7.4 1.8 10.4L80 43.9l-9.4 4.9 1.8-10.4-7.6-7.4 10.5-1.5z' fill='%23ffffff' fill-opacity='0.035'/%3E%3Cpath d='M20 110l3.5 7.1 7.9 1.1-5.7 5.6 1.3 7.8-7-3.7-7 3.7 1.3-7.8-5.7-5.6 7.9-1.1z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero .hero-motto {
  font-family: var(--font-slab);
  color: var(--orange);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero .hero-lede {
  max-width: 44rem;
  margin: 0 auto 1.8rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: #ccd6ea;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.crest {
  width: clamp(150px, 30vw, 210px);
  height: clamp(150px, 30vw, 210px);
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  border: 4px solid var(--orange);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), var(--shadow-lift);
}
.crest img { display: block; width: 100%; height: 100%; border-radius: 50%; }

/* Interior page hero (shorter) */
.hero--page { padding: 2.75rem 0 2.4rem; }
/* Hero with nothing under the h1: equal breathing room above and below */
.hero--bare { padding-bottom: 2.75rem; }
.hero--bare h1 { margin-bottom: 0; }
.hero--page .hero-lede { margin-bottom: 0.4rem; }
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

/* Communities ribbon */
.communities-ribbon {
  background: var(--green);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem 1rem;
}
.communities-ribbon .star { color: var(--paper); padding: 0 0.35em; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 3.5rem 0; }
.hero--page + .section { padding-top: 2.8rem; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* No hairline against the footer bunting: it reads as a stray line at the
   pennant apexes. */
main > .section--paper:last-child { border-bottom: 0; }
.section--navy {
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: #dfe6f3;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #ffd591; }
.section--navy a:hover { color: #fff; }
.section--navy a.btn-primary, .section--navy a.btn-primary:hover { color: var(--navy-deep); }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.4rem; }
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 0.6rem;
}
.section--navy .eyebrow { color: var(--orange); }

.star-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.9rem auto 0;
  max-width: 16rem;
  color: var(--orange);
  font-size: 0.9rem;
}
.star-rule::before,
.star-rule::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}
.section--navy .star-rule::before,
.section--navy .star-rule::after { background: var(--green-bright); }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.confirm-lede { font-size: 1.6rem; }
.section--navy .lead { color: #c6d0e5; }

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.4rem;
}
/* minmax(0, 1fr), not bare 1fr: a bare 1fr track can't shrink below its
   content's min-width, which pushed cards past the viewport edge on
   very narrow phones. */
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 46rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 66rem) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Card CTAs sit on a shared baseline across a grid row */
.card .card-actions { margin-top: auto; padding-top: 0.5rem; }
.card .card-actions p { margin-bottom: 0.6rem; }
.card .card-actions p:last-child { margin-bottom: 0; }
.card .card-actions--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.card .card-actions--row .btn { flex: 1 1 0; text-align: center; }
.card--orange { border-top-color: var(--orange); }
.card--navy { border-top-color: var(--navy); }
.card--kraft { border-top-color: var(--kraft); }
/* Ledger-style rule under the heading, full card width, in the accent color */
.card h3 {
  margin-top: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--green);
}
.card--orange h3 { border-bottom-color: var(--orange); }
.card--navy h3 { border-bottom-color: var(--navy); }
.card--kraft h3 { border-bottom-color: var(--kraft); }
.card p:last-child { margin-bottom: 0; }

/* Stat counters */
.stats {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 46rem) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border: 2px solid var(--line-navy);
  border-radius: 8px;
  padding: 1.5rem 1rem 1.3rem;
  background: rgba(255, 255, 255, 0.03);
}
.stat-number {
  font-family: var(--font-slab);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  display: block;
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section--navy .stat-label { color: #b9c5dc; }

/* --------------------------------------------------------------------------
   Story timeline (About)
   -------------------------------------------------------------------------- */
.story-steps { counter-reset: story; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
@media (min-width: 46rem) { .story-steps { grid-template-columns: repeat(3, 1fr); } }
.story-step {
  counter-increment: story;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  margin: 0;
}
.story-step::before {
  content: counter(story);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 1.5rem;
  border: 3px solid var(--orange);
  margin-bottom: 1rem;
}
.story-step h3 { margin-bottom: 0.4em; }
.story-step p:last-child { margin-bottom: 0; }

/* Numbered "how it works" list (Market) */
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1rem; display: grid; gap: 1.1rem; }
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 0.2rem 0 0.2rem 4rem;
  min-height: 3rem;
  margin: 0;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--navy-deep);
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid var(--navy);
}
.steps-list strong { display: block; font-family: var(--font-slab); color: var(--navy); font-size: 1.08rem; }
.section--navy .steps-list strong { color: #fff; }

/* --------------------------------------------------------------------------
   Info panels / callouts
   -------------------------------------------------------------------------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.panel--green { border-left-color: var(--green); }
.panel--navy { border-left-color: var(--navy); }
.panel h3 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

/* Language-toggle panel (Hours & Location card on the Get Help page) */
.panel-lang { position: relative; }
.panel-lang h3 { padding-right: 6rem; }
.lang-toggle {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle:hover { background: var(--navy); color: #fff; }

.callout-emergency {
  background: var(--navy);
  color: #e6ecf7;
  border-radius: 10px;
  padding: 2rem 1.6rem;
  text-align: center;
  border: 3px solid var(--orange);
}
.callout-emergency h2, .callout-emergency h3 { color: #fff; }
.callout-emergency .phone-big {
  display: inline-block;
  font-family: var(--font-slab);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  margin: 0.3rem 0;
}
.callout-emergency .phone-big:hover { color: #ffd591; }
.callout-emergency p:last-child { margin-bottom: 0; }

/* Definition rows (hours, contact info) */
.info-rows { margin: 0; }
.info-rows > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}
.info-rows > div:last-child { border-bottom: 0; }
/* Each row is its own grid, so the label track must be a fixed width to
   keep the value column aligned across rows. 7rem in the tablet range,
   where these cards sit at half width; the full 11rem from 64rem up. */
@media (min-width: 40rem) {
  .info-rows > div { grid-template-columns: 7rem 1fr; }
}
@media (min-width: 64rem) {
  .info-rows > div { grid-template-columns: 11rem 1fr; }
}
.info-rows dt {
  font-family: var(--font-slab);
  font-weight: 700;
  color: var(--navy);
}
.info-rows dd { margin: 0; }

/* --------------------------------------------------------------------------
   Event schedule timeline
   -------------------------------------------------------------------------- */
.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 4px solid var(--green);
}
.schedule li {
  position: relative;
  padding: 0 0 1.4rem 1.6rem;
  margin: 0;
}
.schedule li:last-child { padding-bottom: 0.2rem; }
.schedule li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--green);
}
.schedule time {
  display: block;
  font-family: var(--font-slab);
  font-weight: 700;
  color: var(--orange-deep);
  font-size: 1.05rem;
}
.schedule strong { color: var(--navy); }

/* Sponsorship tiers */
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
}
.tier--gold { border-top-color: var(--orange); }
.tier--green { border-top-color: var(--green); }
.tier--kraft { border-top-color: var(--kraft); }
.tier .tier-count {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--navy);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 0.9rem;
}
.tier h3 { margin-bottom: 0.35em; }
.tier .tier-price {
  font-family: var(--font-slab);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
}
.tier-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.tier-grid .tier {
  flex: 1 1 190px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
}
.tier-grid .tier .tier-price { margin-top: auto; margin-bottom: 0; }
.tier p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Gallery (past events) + lightbox
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery figure { margin: 0; }
.photo-ph {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.photo-ph svg { width: 100%; height: 100%; display: block; }
.gallery figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.55rem;
  text-align: center;
}
.gallery button.photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
}
.gallery button.photo-open:hover .photo-ph { box-shadow: var(--shadow-lift); }

.lightbox {
  border: 0;
  border-radius: 10px;
  padding: 0;
  max-width: min(46rem, 92vw);
  width: 100%;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.lightbox::backdrop { background: rgba(19, 31, 56, 0.85); }
.lightbox-inner { padding: 1rem; }
.lightbox .photo-ph { aspect-ratio: 4 / 3; }
.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.3rem 0.1rem;
  font-weight: 600;
  color: var(--navy);
}
.lightbox-close {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--navy-soft); }

/* --------------------------------------------------------------------------
   FAQ accordion (native details/summary, styled)
   -------------------------------------------------------------------------- */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-family: var(--font-slab);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--orange-deep);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px dashed var(--line); }
.faq .faq-body { padding: 1rem 1.3rem 1.2rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Forms (contact)
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 46rem) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .form-full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-family: var(--font-slab);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 6px;
}
.field input:focus,
.field textarea:focus { border-color: var(--green); }
.field textarea { min-height: 9rem; resize: vertical; }
.hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
.fineprint { font-size: 0.9rem; margin-bottom: 0.5rem; }
.fineprint:last-child { margin-bottom: 0; }
.section--navy .fineprint { color: #c6d0e5; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green) 65%, var(--green-bright));
  color: var(--navy-deep);
  text-align: center;
  padding: 3rem 0;
}
.cta-band h2 { color: var(--navy-deep); }
.cta-band p { max-width: 42rem; margin-left: auto; margin-right: auto; color: #263312; }
.cta-band .hero-actions { margin-top: 1.4rem; }
.cta-band .btn-secondary { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.cta-band .btn-secondary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Communities badge list */
.communities-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 46rem) { .communities-grid { grid-template-columns: repeat(4, 1fr); } }
.communities-grid li {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-family: var(--font-slab);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--green);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #c3cde0;
  font-size: 0.95rem;
}
/* Longhand only: this element is also a .wrap, and the padding shorthand
   would wipe out .wrap's side padding. */
.footer-main {
  display: grid;
  gap: 2.2rem;
  padding-top: 3rem;
  padding-bottom: 2.2rem;
}
@media (min-width: 46rem) { .footer-main { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { width: 120px; height: auto; border-radius: 8px; background: #fff; padding: 8px; }
.footer-motto {
  font-family: var(--font-slab);
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0.9rem 0 0.4rem;
}
.site-footer h2 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--green);
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #dbe4f4; text-decoration-color: rgba(219, 228, 244, 0.4); }
.site-footer a:hover { color: var(--orange); }
.site-footer address { font-style: normal; }
.footer-communities {
  border-top: 1px solid var(--line-navy);
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.83rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fb0cd;
}
.footer-communities .star { color: var(--green-bright); padding: 0 0.3em; }
.footer-legal {
  border-top: 1px solid var(--line-navy);
  padding: 1rem 0 1.4rem;
  text-align: center;
  font-size: 0.83rem;
  color: #8b9cbb;
}
.footer-legal p { margin: 0.2rem 0; }

/* --------------------------------------------------------------------------
   Scroll reveal (JS-gated so no-JS users see everything)
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; }
.max-prose { max-width: 46rem; margin-left: auto; margin-right: auto; }
.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px dashed var(--kraft);
  border-radius: 6px;
  padding: 0.7rem 1rem;
}
.note--lg { font-size: 1.17rem; }
.note:last-child { margin-bottom: 0; }

/* ==========================================================================
   Two-door v2 additions — same skin, new skeleton
   ========================================================================== */

/* Nav door pills */
.primary-nav .nav-gethelp a,
.primary-nav .nav-givehelp a {
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  padding: 0.55rem 1.1rem;
  margin-left: 0.4rem;
  white-space: nowrap;
}
.primary-nav .nav-donate a { white-space: nowrap; }
.primary-nav .nav-gethelp a {
  background: var(--green);
  color: var(--navy-deep);
}
.primary-nav .nav-gethelp a:hover { background: var(--green-bright); color: var(--navy-deep); }
.primary-nav .nav-givehelp a {
  background: var(--orange);
  color: var(--navy-deep);
}
.primary-nav .nav-givehelp a:hover { background: #f8a835; color: var(--navy-deep); }
.primary-nav .nav-gethelp a[aria-current="page"],
.primary-nav .nav-givehelp a[aria-current="page"] {
  box-shadow: inset 0 -4px 0 var(--navy-deep);
  border-bottom: 0;
}
@media (max-width: 66rem) {
  .primary-nav .nav-gethelp a,
  .primary-nav .nav-givehelp a {
    margin: 0.75rem 0 0;
    text-align: center;
    border-radius: 6px;
    border-bottom: 0;
  }
  .primary-nav .nav-gethelp a[aria-current="page"],
  .primary-nav .nav-givehelp a[aria-current="page"],
  .primary-nav .nav-donate a[aria-current="page"] { border-left: 0; padding-left: 1.1rem; }
}

/* The two doors (homepage hero) */
.doors {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  max-width: 58rem;
  margin: 2.4rem auto 0;
  text-align: left;
}
@media (min-width: 46rem) {
  .doors { grid-template-columns: repeat(2, 1fr); }
}
.door {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 10px;
  border-top: 8px solid var(--green);
  padding: 1.9rem 1.7rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.door:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(19, 31, 56, 0.28);
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .door, .door:hover { transform: none; transition: none; }
}
.door--give { border-top-color: var(--orange); }
.door-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.55rem;
}
.door--give .door-kicker { color: var(--orange-deep); }
.door h2 {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  margin-bottom: 0.45em;
}
.door h2 .uline {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
  text-decoration-color: var(--orange);
}
.door p { color: var(--ink-soft); margin-bottom: 1rem; }
.door-list {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  font-size: 0.94rem;
}
.door-list li {
  margin: 0 0 0.45rem;
  padding-left: 1.35rem;
  position: relative;
}
.door-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-size: 0.8rem;
}
.door--give .door-list li::before { color: var(--orange); }
.door-go {
  margin-top: auto;
  display: inline-block;
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  background: var(--green);
  color: var(--navy-deep);
}
.door--give .door-go { background: var(--orange); }
.door:hover .door-go { background: var(--green-bright); }
.door--give:hover .door-go { background: #f8a835; }
.door:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Wednesday hours strip (time-critical reassurance under the doors) */
.hours-strip {
  background: var(--navy);
  color: #eef1f8;
  border-top: 1px solid var(--line-navy);
  text-align: center;
  padding: 1rem 0;
}
.hours-strip p { margin: 0; font-size: 0.98rem; }
.hours-strip strong {
  font-family: var(--font-slab);
  color: var(--orange);
  letter-spacing: 0.02em;
}
.hours-strip .sep { color: var(--green-bright); padding: 0 0.55em; }
.hours-strip a { color: #ffd591; }
.hours-strip a:hover { color: #fff; }

/* Quiet reassurance band on the get-help path (no fundraising pressure) */
.assure-band {
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: #dfe6f3;
  text-align: center;
  padding: 3rem 0;
}
.assure-band h2 { color: #fff; }
.assure-band p { max-width: 42rem; margin-left: auto; margin-right: auto; color: #c6d0e5; }
.assure-band .hero-actions { margin-top: 1.4rem; }

/* ==================================================================
   Site-build additions (post-design-phase)
   ================================================================== */

/* Environment badge (dev/staging only; rendered by includes/header.php) */
.env-badge {
  position: fixed;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 999;
  background: var(--orange);
  color: var(--navy-deep);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  pointer-events: none;
}

/* Illustration blocks */
/* One frame for every illustration: cream mat + navy hairline + lift */
.art-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 6px solid var(--paper);
  box-shadow: 0 0 0 1px rgba(28, 43, 74, 0.18), var(--shadow-lift);
}
.crest-figure { text-align: center; }
.crest-img {
  display: inline-block;
  width: min(100%, 300px);
  height: auto;
  border-radius: 10px;
  border: 6px solid var(--paper);
  box-shadow: 0 0 0 1px rgba(28, 43, 74, 0.18), var(--shadow-lift);
}
.art-figure { margin: 0; }
.art-figure--sm { text-align: center; }
.art-figure--sm .art-img {
  display: inline-block;
  width: 75%;
}
.art-figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
  text-align: center;
}
.feature-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 46rem) {
  .feature-split { grid-template-columns: 1.1fr 1fr; }
  /* Crest variant: the figure is a small logo, so size its column to content
     and cap the whole split so text lines stay comfortable at wide viewports */
  .feature-split--crest { grid-template-columns: minmax(240px, 320px) 1fr; gap: 3rem; max-width: 58rem; margin-left: auto; margin-right: auto; }
}

/* Battle of the Badges event logo (transparent die-cut PNG, no frame) */
.botb-badge {
  display: block;
  max-width: 340px;
  margin: 0 auto;
}
.botb-badge img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(28, 43, 74, 0.28));
}
.botb-badge--hero { max-width: 240px; margin-top: 1.4rem; }

/* 404 page */
.page-404 { padding: 7rem 0 8rem; }
.page-404 h1 { margin-bottom: 1.6rem; }

/* Spanish key-info panel */
.panel--es h3 { display: flex; align-items: center; gap: 0.5rem; }
.panel--es .es-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-dark);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* Most-needed items list */
.needs-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.5rem 1.4rem;
}
@media (min-width: 46rem) { .needs-list { grid-template-columns: repeat(2, 1fr); } }
.needs-list li {
  padding-left: 1.5rem;
  position: relative;
}
.needs-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* Nearby-pantries cards */
/* Each pantry card needs ~17rem: the phone numbers and addresses can't
   wrap (no break is allowed between a hyphen and a digit), so forcing
   3 columns at tablet widths overflowed the viewport. */
.pantry-list { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }

/* Footer sponsor strip (markup currently commented out in footer.php) */
.footer-sponsors {
  background: var(--navy-soft);
  padding: 1rem 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

/* Disabled contact form state */
.form-disabled-note {
  background: var(--cream);
  border: 2px dashed var(--orange);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.form-disabled fieldset[disabled] { opacity: 0.55; border: 0; padding: 0; margin: 0; }

/* Two-tier communities presentation (ribbon + footer).
   NOTE: class is "towns-tier", NOT "tier" — .tier is the sponsorship card on events. */
.towns-tier {
  display: block;
}
.towns-tier + .towns-tier {
  margin-top: 0.35rem;
}
.towns-tier--partial {
  font-size: 0.88em;
  opacity: 0.85;
}
.towns-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-right: 0.6em;
  opacity: 0.75;
}

/* Impact slider (donation amount -> pounds -> meals) */
.impact-slider {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.6rem 0.9rem;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.impact-slider-prompt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.impact-slider--big .impact-slider-amount { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.impact-slider-amount {
  font-family: var(--font-slab);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.impact-slider input[type="range"] {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0.4rem auto 0.25rem;
  cursor: pointer;
  height: 2.2rem;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  --fill: 20%;
}
.impact-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: linear-gradient(to right, var(--orange) var(--fill), var(--cream) var(--fill));
}
.impact-slider input[type="range"]::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: linear-gradient(to right, var(--orange) var(--fill), var(--cream) var(--fill));
}
.impact-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.3 4.6 5.2.8-3.7 3.6.9 5.1L12 14.7l-4.7 2.4.9-5.1L4.5 8.4l5.2-.8L12 3z' fill='%23fffdf8'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  box-shadow: var(--shadow);
}
.impact-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.3 4.6 5.2.8-3.7 3.6.9 5.1L12 14.7l-4.7 2.4.9-5.1L4.5 8.4l5.2-.8L12 3z' fill='%23fffdf8'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  box-shadow: var(--shadow);
}
.impact-slider input[type="range"]:focus-visible {
  outline: none;
}
.impact-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(28, 43, 74, 0.35);
}
.impact-slider input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(28, 43, 74, 0.35);
}
.impact-slider-ends {
  display: flex;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
/* Fixed two-column split: the numbers change while the user drags, so the
   row must never re-wrap based on content width or the widget's height
   jumps mid-drag. */
.impact-slider-outs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-width: 480px;
  margin: 0 auto 0.2rem;
}
.impact-slider-out {
  flex: 1 1 0;
  min-width: 0;
}
.impact-slider-num {
  display: block;
  font-family: var(--font-slab);
  font-size: 1.9rem;
  white-space: nowrap;
  font-weight: 700;
  color: var(--orange-deep);
  font-variant-numeric: tabular-nums;
}
.impact-slider-lbl {
  display: block;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
@media (max-width: 340px) {
  .impact-slider-num { font-size: 1.5rem; }
  .impact-slider-lbl { font-size: 0.9rem; }
}

/* Homepage: impact slider + business pitch side by side */
.ways-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.ways-duo > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ways-duo .section-head { margin-bottom: 1.6rem; }
.ways-duo h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
@media (min-width: 62rem) {
  .ways-duo { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .ways-duo > div + div {
    border-left: 1px dashed var(--line);
    padding-left: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Small fixes: nowrap times, hours-strip stacking, pantry card columns
   -------------------------------------------------------------------------- */
.nowrap { white-space: nowrap; }
@media (min-width: 20rem) {
  .pantry-list .info-rows > div { grid-template-columns: 5rem 1fr; }
}
@media (max-width: 40rem) {
  .hours-strip p { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
  .hours-strip .sep { display: none; }
}

/* --------------------------------------------------------------------------
   Print: what a neighbor sticks on the fridge
   -------------------------------------------------------------------------- */
@media print {
  .env-badge, .bunting, .nav-toggle, .primary-nav, .skip-link,
  .cta-band, .assure-band, .hero-actions, .lang-toggle,
  .footer-communities, .site-footer .footer-brand img { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body, .hero, .hero--page, .section--navy, .section--paper, .cta-band,
  .hours-strip, .communities-ribbon, .site-footer, .callout-emergency {
    background: #fff !important;
    color: #000 !important;
  }
  .hero h1, .hero p, .section--navy h2, .section--navy p, .section--navy .stat-number,
  .section--navy .stat-label, .site-footer h2, .site-footer p, .site-footer li,
  .site-footer address, .callout-emergency h2, .callout-emergency p, .phone-big {
    color: #000 !important;
  }
  a { color: #000; text-decoration: none; }
}
