/* Riverbend Community Center — landing.css (built on theme.css tokens) */

/* Every panel on the page — the events tile, the three middle-band panels, the
   testimonials tile — insets its content by the same amount, so headings and
   list edges line up from band to band. */
:root { --panel-pad: 1.5rem; }

/* ---------- Shared bespoke bits ---------- */

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

.btn-donate {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-donate:hover {
  background: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
}

/* Library glyphs sit inside buttons and nav links at text scale. */
.btn-icon {
  flex: none;
  width: 14px;
  height: 14px;
}

.nav-link.has-caret {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-caret {
  flex: none;
  width: 10px;
  height: 10px;
}

/* Bespoke two-part brand lockup (mirrors the theme.css pseudo-element lockup) */

.brand-lockup {
  display: block;
  line-height: 1.05;
}

.brand-line-1,
.brand-line-2 {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.brand-line-1 {
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  color: var(--color-brand);
}

.brand-line-2 {
  font-weight: 400;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: var(--color-accent-deep);
  margin-top: 0.18em;
}

.site-header .brand-mark { width: 50px; height: 50px; }

.site-header .brand-mark::after { width: 62px; height: 55px; }

.tile {
  background: var(--tile-bg, var(--color-surface-alt));
  border-radius: var(--radius-md);
  padding: var(--panel-pad);
}

.tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tile-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin: 0;
}

.tile-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: none;
  white-space: nowrap;
}

/* lucide:arrow-right */
.tile-more::after,
.news-more::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.4em;
  vertical-align: -0.14em;
  background-color: currentColor;
  -webkit-mask: var(--icon-arrow-right) center / contain no-repeat;
  mask: var(--icon-arrow-right) center / contain no-repeat;
}

.tile-more:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

/* Full-bleed sunlit courtyard scene: photo over gradient fallback, with a
   left-to-right scrim so the headline reads directly on the image. */
.hero {
  position: relative;
  background:
    url(../../assets/img/riverbend/hero.webp),
    radial-gradient(circle at 72% 12%, rgba(255, 243, 205, 0.9) 0%, transparent 38%),
    radial-gradient(ellipse 55% 40% at 8% 20%, rgba(150, 190, 140, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 92% 42%, rgba(146, 90, 62, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 90% 42% at 45% 104%, rgba(63, 112, 36, 0.5) 0%, transparent 75%),
    linear-gradient(180deg, #b8d5ec 0%, #d3e5d9 52%, #97b981 100%);
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg,
      rgba(250, 250, 246, 0.98) 0%,
      rgba(250, 250, 246, 0.96) 28%,
      rgba(250, 250, 246, 0.82) 44%,
      rgba(250, 250, 246, 0.3) 57%,
      rgba(250, 250, 246, 0) 68%);
}

.hero-inner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.hero-copy {
  padding-block: 4rem;
  max-width: 32rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 0.5em;
}

/* Primary ink, not muted: the lede sits on a photo, and the muted blue only
   cleared AA against a flat surface, not against a washed sunlit background. */
.hero-lede {
  font-size: 1.12rem;
  color: var(--color-ink);
  max-width: 26rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero .btn-secondary { background: rgba(255, 255, 255, 0.85); }

/* ---------- Events + Programs band ---------- */

/* Every vertical gap between bands matches the container's 1.5rem side
   margins, so the page reads as one even grid of tiles. */
.section { padding-block: 0 1.5rem; }

.events-programs { padding-top: 1.5rem; }

/* The events tile is a plain list now, so it needs less room than the three
   program cards beside it. */
.ep-grid {
  display: grid;
  grid-template-columns: minmax(0, 39fr) minmax(0, 61fr);
  gap: 1.1rem;
  align-items: stretch;
}

/* Both columns lead with a bare heading row, so the events card and the
   program cards start at the same height and stretch to the same bottom. */
.programs-col,
.events-col {
  display: flex;
  flex-direction: column;
}

.program-grid { flex: 1; }

.events-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* The rows share the card's full height so the taller program cards don't
   leave dead space under the last event. */
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Hairline between entries instead of a gap does the separating work, so each
   entry can sit tight: name line, then one muted line of time and place. The
   padding is symmetric so every divider sits centered between two entries. */
.event-item {
  display: flex;
  flex: 1;
  gap: 0.9rem;
  align-items: center;
  padding-block: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* The tile's own padding provides the space above the first and below the last
   entry, so the list ends flush with it. */
.event-item:first-child { border-top: 0; padding-top: 0; }

.event-item:last-child { padding-bottom: 0; }

.date-square {
  flex: none;
  width: 52px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 0.4rem 0.45rem;
}

.date-month {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

.date-day {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-brand);
  line-height: 1.1;
}

.event-info { flex: 1; min-width: 0; }

.event-name {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 0.15rem;
}

.event-meta {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--color-ink-muted);
}

.event-where {
  color: var(--color-link);
  white-space: nowrap;
}

/* lucide:map-pin */
.event-where::before {
  content: "";
  display: inline-block;
  width: 0.86em;
  height: 0.86em;
  margin-right: 0.3em;
  vertical-align: -0.1em;
  background-color: var(--color-link);
  -webkit-mask: var(--icon-map-pin) center / contain no-repeat;
  mask: var(--icon-map-pin) center / contain no-repeat;
}

/* Programs */

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

/* One rhythm inside every program card: a full step from the photo to the
   title, a half step from the title to the blurb, and a full step above the
   link, which stays on the shared bottom edge of the row. */
.program-grid .card-body {
  padding: 1rem;
  gap: 0.5rem;
}

.program-grid .card-title { font-size: 1.02rem; }

.program-grid .card-text { font-size: 0.9rem; }

.program-grid .card-link { margin-top: 0.5rem; }

.ph-kids,
.ph-fitness,
.ph-meals {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.94);
}

.ph-kids {
  background-image:
    url(../../assets/img/riverbend/program-kids.webp),
    radial-gradient(circle at 25% 30%, rgba(240, 200, 90, 0.5) 0%, transparent 40%),
    radial-gradient(ellipse 70% 50% at 60% 100%, rgba(146, 90, 62, 0.45) 0%, transparent 75%),
    linear-gradient(180deg, #cadeee 0%, #d9c9a8 100%);
}

.ph-fitness {
  background-image:
    url(../../assets/img/riverbend/program-fitness.webp),
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
    radial-gradient(ellipse 80% 55% at 40% 105%, rgba(47, 108, 176, 0.5) 0%, transparent 75%),
    linear-gradient(180deg, #b8d5ec 0%, #dce8f1 100%);
}

.ph-meals {
  background-image:
    url(../../assets/img/riverbend/program-meals.webp),
    radial-gradient(circle at 30% 25%, rgba(255, 240, 200, 0.8) 0%, transparent 45%),
    radial-gradient(ellipse 75% 50% at 65% 105%, rgba(79, 139, 47, 0.55) 0%, transparent 75%),
    linear-gradient(180deg, #e7d9b8 0%, #cfe0c2 100%);
}

/* ---------- Middle band: volunteer / news / mission ---------- */

.mid-band { padding-top: 0; }

.mid-grid {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 34fr) minmax(0, 31fr);
  gap: 1.1rem;
  align-items: stretch;
}

/* Three narrow columns: the headings only fit on one line each at a slightly
   tighter setting than the wide tiles above. */
.mid-grid .tile-title {
  font-size: 0.92rem;
  letter-spacing: 0.07em;
}

.mid-grid .tile-more { font-size: 0.84rem; }

/* Volunteers and news read as light panels next to the solid navy mission
   card, so the row is one weight step instead of three. */
.volunteer-tile,
.news-tile {
  --tile-bg: #f7fbfd;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.vol-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Hairlines rather than wide gaps keep the three roles scannable in a narrow
   column: role, one line about it, when it runs. */
.vol-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding-block: 0.9rem;
  border-top: 1px solid var(--color-border);
}

.vol-item:first-child { border-top: 0; padding-top: 0; }

.vol-item:last-child { padding-bottom: 0; }

.vol-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8cb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Traced role glyphs carry their own olive ink, so no recoloring here. */
.vol-glyph {
  width: 20px;
  height: 20px;
}

/* Shrinkable so the role text stays beside its icon instead of wrapping to a
   line of its own on narrow screens. */
.vol-info {
  flex: 1 1 0;
  min-width: 0;
}

.vol-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 0.1rem;
  white-space: nowrap;
}

.vol-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-ink-muted);
}

.vol-when {
  flex: none;
  margin-left: auto;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  line-height: 1.45;
}

/* The button follows the list at a normal step instead of being pinned to the
   tile floor, which left a slab of empty panel under the last role. */
.vol-cta { align-self: center; }

/* News */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Each thumbnail starts on its headline's line: no dividers here, the gap and
   the shared top edge do the separating. */
.news-item {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}

.news-thumb {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
}

.ph-solar,
.ph-sprout,
.ph-flag {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.92);
}

.ph-solar {
  background-image:
    url(../../assets/img/riverbend/news-solar.webp),
    repeating-linear-gradient(115deg, rgba(22, 64, 110, 0.55) 0 8px, rgba(87, 160, 216, 0.5) 8px 16px),
    linear-gradient(180deg, #cfe4f4 0%, #6f9cc4 100%);
}

.ph-sprout {
  background-image:
    url(../../assets/img/riverbend/news-seedling.webp),
    radial-gradient(ellipse 14px 20px at 38% 42%, #5da339 0 60%, transparent 65%),
    radial-gradient(ellipse 14px 20px at 62% 42%, #4f8b2f 0 60%, transparent 65%),
    linear-gradient(180deg, transparent 0 62%, #6b4f37 62% 100%),
    linear-gradient(180deg, #f2f7ea 0%, #d8e8c9 100%);
}

.ph-flag {
  background-image:
    url(../../assets/img/riverbend/news-flag.webp),
    radial-gradient(circle 30px at 0% 0%, #16406e 0 96%, transparent 100%),
    repeating-linear-gradient(180deg, #b0432f 0 9px, #f3efe8 9px 18px);
}

.news-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 0.15rem;
}

.news-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-ink-muted);
}

/* Closes the tile the way the volunteer button does: pinned to the floor of
   the stretched panel, centered. */
.news-more-bottom {
  align-self: center;
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Mission */

/* Every card and panel on the page carries the same --radius-md corner, so the
   navy panel matches the light tiles beside it and the cards above it. */
/* The transparent hairline matches the 1px border on the two light tiles beside
   it, so all three panels inset their content to the same line. */
.mission-panel {
  background: var(--color-brand);
  color: #dcebf7;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--panel-pad);
  display: flex;
  flex-direction: column;
}

/* The panel stretches to the tallest column in the row; the figures sit on its
   floor rather than leaving a slab of empty navy underneath. */
.mission-stats { margin-top: auto; }

.mission-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

/* One 28px icon column for the whole panel: header glyph and stat discs share
   it, so every line of text starts on the same rail as the title. */
.mission-icon {
  display: inline-flex;
  justify-content: center;
  flex: none;
  width: 28px;
}

.mission-icon img {
  width: 28px;
  height: auto;
}

.mission-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.mission-text {
  font-size: 0.97rem;
  line-height: 1.6;
  margin-left: calc(28px + 0.8rem);
  margin-bottom: 1.5rem;
}

.mission-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem 1.1rem;
}

/* Plain figures, not cards: a panel inside a panel inside a card was two
   frames too many. The round glyph discs stay; the tile boxes are gone. */
.m-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

/* Lighter-navy disc behind each traced white stat glyph (CSS, per manifest). */
.m-stat-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1b4874;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-stat-icon img {
  width: 17px;
  height: auto;
}

.m-stat-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.m-stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1.15;
}

.m-stat-label {
  font-size: 0.74rem;
  line-height: 1.3;
  color: #b9d2e8;
}

/* ---------- Quote band ---------- */

.quote-band { padding-top: 0; }

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 68fr) minmax(0, 32fr);
  gap: 0;
  align-items: stretch;
}

/* Warm sand ground so the testimonials read softer than the cool civic blues */
.quotes-tile {
  --tile-bg: linear-gradient(120deg, #fbf4e6 0%, #f7efdf 60%, #f3ead4 100%);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 2.25rem 2rem;
}

.quotes-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  text-align: center;
  margin: 0 0 1.75rem;
}

.quotes-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

/* The rules divide the quotes, so the first one carries none and sits flush
   with the tile's left inset. */
.quote {
  margin: 0;
  padding-left: 1.1rem;
  border-left: 1px solid #e4d8bd;
  position: relative;
}

.quote:first-child {
  padding-left: 0;
  border-left: 0;
}

/* lucide:quote, turned 180deg so it reads as the mockup's opening "66" */
.quote::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 0.45rem;
  transform: rotate(180deg);
  background-color: var(--color-accent-deep);
  -webkit-mask: var(--icon-quote) center / contain no-repeat;
  mask: var(--icon-quote) center / contain no-repeat;
}

.quote-text {
  font-size: 0.92rem;
  color: var(--color-ink);
  margin-bottom: 0.8rem;
}

.quote-by {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-brand);
}

.quote-role {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--color-link);
  margin-top: 0.1rem;
  margin-left: 1rem;
}

/* Welcome photo with sign */

/* The photo carries the welcome message on its own yard sign, so it needs no
   overlay card — just the image, filling its half of the band. */
.welcome-art {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  min-height: 260px;
  background:
    url(../../assets/img/riverbend/quote-building.webp),
    radial-gradient(circle at 20% 15%, rgba(255, 244, 214, 0.85) 0%, transparent 45%),
    radial-gradient(ellipse 60% 45% at 15% 105%, rgba(176, 67, 47, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 70% 108%, rgba(63, 112, 36, 0.65) 0%, transparent 75%),
    linear-gradient(180deg, #a8c9e4 0%, #cfe0d2 55%, #7ea065 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.96);
}

/* ---------- Footer (landing variant) ---------- */

.landing-footer { margin-top: 0; }

/* Four columns have to fit the 1120px container without any track being sized
   by its widest unbreakable child, so every track is minmax()-clamped: a floor
   only where content genuinely cannot wrap (the email line and social row in
   Visit Us, the day/time rows in Hours) and minmax(0, …) for the newsletter so
   the fr shares are honoured instead of min-content pushing it off-screen. */
.lf-grid {
  display: grid;
  grid-template-columns:
    minmax(11rem, 1fr)
    minmax(17rem, 1.25fr)
    minmax(7.5rem, 0.8fr)
    minmax(0, 1.25fr);
  gap: 1.75rem;
  padding-block: 3.25rem 2.25rem;
}

.lf-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.lf-line {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #cfe0ef;
}

.lf-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.lf-contact svg {
  flex: none;
  margin-top: 0.2em;
}

.lf-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #a8c4de;
}

.hours-list {
  margin: 0;
  width: 100%;
  font-size: 0.9rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.18rem;
}

/* Both halves of a row are ranges — breaking either one strands the en dash on
   its own line, so each stays on one line and the column is sized to hold them. */
.hours-row dt { color: #a8c4de; white-space: nowrap; }

.hours-row dd { margin: 0; color: #ffffff; white-space: nowrap; }

/* Sits under the Visit Us contact lines, so it needs a little more air above it
   than the 0.45rem that separates those lines from each other. */
.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

/* Stacked, as in the mockup: side by side, the input plus the Subscribe button
   set a min-content width the newsletter column cannot honour at 1100px. */
.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.4rem;
}

.nl-input {
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border-color: transparent;
}

/* ---------- Mobile nav ---------- */

/* Both the hamburger and the drawer are mobile-only; desktop never sees them. */
.nav-toggle,
.mobile-nav { display: none; }

/* ---------- Responsive ---------- */

/* Tablet: the side-by-side bands stack, the four footer columns drop to two,
   and the inline nav hands over to the drawer. */
@media (max-width: 1024px) {
  .ep-grid,
  .mid-grid,
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .tile-head { flex-wrap: wrap; }
  .quotes-tile { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .hero-inner { min-height: 380px; }
  .hero-copy { padding-block: 3rem; }

  /* The four footer columns need too much room for their unbreakable content
     (hours rows, social icons, Subscribe button), so they pair up. */
  .lf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem; }

  /* Stacked, the photo runs the full band width. A fixed height would then
     crop it top and bottom and cut the second line off the yard sign, so the
     box takes a landscape ratio instead and scales with the band. */
  .welcome-art {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  /* The drawer hangs off the header, so the header is its containing block. */
  .site-header { position: relative; }

  /* Brand and hamburger stay on one line: the stacked-header rule from
     theme.css would otherwise drop the toggle below the lockup. */
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .site-nav { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    color: var(--color-brand);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  .nav-toggle:hover { background: var(--color-surface-alt); }

  .nav-toggle-icon { width: 24px; height: 24px; }

  /* One button, two glyphs: menu while closed, x while open. */
  .nav-toggle-close { display: none; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

  /* A layer over the page, not a row in it: absolutely placed under the header
     so opening it never moves the hero. */
  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition:
      transform 220ms ease,
      opacity 220ms ease,
      visibility 0s linear 220ms;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      transform 220ms ease,
      opacity 220ms ease,
      visibility 0s;
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding-block: 0.25rem 1.25rem;
  }

  /* Same uppercase setting as the desktop nav links, at a full tap height. */
  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-brand);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-nav-link:hover { color: var(--color-link); }

  .mobile-nav-cta {
    margin-top: 1rem;
    align-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav.is-open { transition: none; }
}

@media (max-width: 640px) {
  /* The hero copy now sits fully over the photo, so the scrim goes opaque at
     the top and the band drops its reserved height. */
  .hero::before {
    background: linear-gradient(180deg,
      rgba(250, 250, 246, 0.96) 0%,
      rgba(250, 250, 246, 0.9) 55%,
      rgba(250, 250, 246, 0.7) 100%);
  }
  .hero-inner { min-height: 0; }

  /* Narrow enough that the box is already close to the photo's own ratio:
     a plain banner height crops the sides, not the sign. */
  .welcome-art {
    aspect-ratio: auto;
    min-height: 260px;
  }

  .program-grid { grid-template-columns: 1fr; }
  .quotes-row { grid-template-columns: 1fr; }
  .lf-grid { grid-template-columns: minmax(0, 1fr); }
  .vol-item { flex-wrap: wrap; }
  .vol-when {
    margin-left: calc(38px + 0.8rem);
    width: calc(100% - 38px - 0.8rem);
    text-align: left;
  }
  :root { --panel-pad: 1.35rem; }

  /* The rules between quotes were vertical dividers for a three-across row;
     stacked, they become a stray line down the left edge. */
  .quote {
    padding-left: 0;
    border-left: 0;
  }

  .quote + .quote {
    padding-top: 1.5rem;
    border-top: 1px solid #e4d8bd;
  }

  .quotes-row { gap: 1.5rem; }

  .quotes-tile { padding: 1.75rem 1.35rem; }

  /* Two stat columns leave the labels a ~99px ribbon beside a 28px disc. */
  .mission-stats { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }

  .m-stat-label { font-size: 0.8rem; }

  /* Role names can wrap now: at this width "Meal Program Assistant" has no
     slack left on one line. */
  .vol-name { white-space: normal; }

  /* Centered hero: copy, lede, and the two action buttons share one axis. */
  .hero-copy {
    max-width: none;
    text-align: center;
    padding-block: 2.5rem;
  }

  .hero-lede { margin-inline: auto; }

  .hero-actions { justify-content: center; }

  /* Tap targets: the inline "more" and "learn more" links were ~22px lines. */
  .tile-more,
  .card-link,
  .lf-col .footer-link,
  .footer-bottom .footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .tile-head { align-items: center; }

  .newsletter-form .btn-donate.btn-small { min-height: 44px; }

  .social { width: 44px; height: 44px; }

  /* Stacked footer columns: more air between them, less above and below. */
  .lf-grid {
    gap: 2rem;
    padding-block: 2.25rem 1.75rem;
  }
}
