/* ============================================================
   NMOI public website — built on tokens.css ("Field Journal").
   Warm paper, Fraunces display headlines, Inter text, real photos.
   Class names from the previous stylesheet are kept for the inner pages.
   ============================================================ */

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-dark); }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--ink); margin: 0 0 0.55em; }
h1, h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.3; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: var(--s-3);
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.center .lede { margin-left: auto; margin-right: auto; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s-6); }
.wrap.narrow { max-width: 780px; }
section { padding: var(--s-10) 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 1.25em; border-radius: var(--r-sm);
  border: 1.5px solid transparent; font: inherit; font-size: 1rem; font-weight: 650; line-height: 1.15;
  text-decoration: none; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-lg { min-height: 54px; padding: 0 1.6em; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 0 0.9em; font-size: 0.92rem; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); color: #fff; }
.btn-white { background: #fff; color: var(--ink); border-color: var(--line-warm); }
.btn-white:hover { background: var(--paper); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-text { background: transparent; color: var(--ink); padding: 0 0.7em; font-weight: 550; }
.btn-text:hover { color: var(--coral-dark); text-decoration: underline; }
.btn-text[aria-current="page"] { color: var(--coral-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ── Utility bar, header, mobile menu ─────────────────────── */
.utility-bar { background: var(--ink); color: #fff; font-size: 0.9rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 40px; }
.utility-bar a { color: #fff; font-weight: 600; text-decoration: none; padding: 6px 0; }
.utility-bar a:hover { text-decoration: underline; color: #fff; }
.utility-help { display: inline-flex; align-items: center; gap: 8px; }
.utility-help::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff8a72; box-shadow: 0 0 0 3px rgba(255,138,114,.25); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid var(--line-warm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand-name { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.1; font-weight: 550; max-width: 15ch; }
.header-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.header-actions .btn-coral { margin-left: var(--s-2); }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: transparent; color: var(--ink);
  font: inherit; font-weight: 650; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.portal-bar { background: var(--navy); color: #fff; font-size: 0.92rem; }
.portal-bar-inner { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.portal-hello { font-weight: 600; margin-right: auto; }
.portal-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.portal-tabs a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.portal-tabs a:hover, .portal-tabs a:focus-visible { background: rgba(255,255,255,0.15); color: #fff; }
.portal-signout { background: none; border: 1px solid rgba(255,255,255,0.6); color: #fff; border-radius: 6px; min-height: 36px; padding: 0 12px; cursor: pointer; font: inherit; }

/* ── Homepage ─────────────────────────────────────────────── */
.hero { padding: var(--s-9) 0 var(--s-9); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-9); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin-bottom: var(--s-4); }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.hero-photo::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 46%; height: 46%; z-index: -1;
  border-radius: var(--r-lg); background: var(--sage-100);
}
.hero-note { margin-top: var(--s-5); color: var(--muted); font-size: 0.95rem; }

.impact { padding: var(--s-7) 0; border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-5); margin: 0 0 var(--s-3); }
.impact-stat { text-align: left; }
.impact-stat strong { display: block; font-family: var(--font-serif); font-weight: 550; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.impact-stat span { color: var(--muted); font-size: 0.98rem; }
.impact h2 { font-size: 1rem; font-family: var(--font-sans); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-5); }
.fineprint { font-size: 0.9rem; color: var(--muted); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-7); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }

.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.program-card { background: var(--surface); border: 1px solid var(--line-warm); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.program-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.program-card .body { padding: var(--s-6); }
.program-card h3 { font-family: var(--font-serif); font-weight: 550; font-size: 1.5rem; }
.program-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.program-card p { color: var(--muted); margin: 0; }

.story { background: var(--surface); border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-9); align-items: start; }
.story-grid img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.pull-quote {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.2;
  color: var(--navy); border-left: 3px solid var(--coral); padding-left: var(--s-5); margin: var(--s-7) 0;
}
.goal-list { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-2); }
.goal-list li { display: flex; gap: var(--s-3); align-items: baseline; font-weight: 600; }
.goal-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--coral); transform: translateY(-1px); }

.wide-photo { width: 100%; height: clamp(220px, 34vw, 460px); object-fit: cover; }
.founded { padding: var(--s-9) 0; }
.founded .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); }

.twin { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.event-item { display: flex; gap: var(--s-4); align-items: flex-start; background: var(--surface); border: 1px solid var(--line-warm); border-radius: var(--r-md); padding: var(--s-4); }
.event-item h2, .event-item h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 650; margin: 0 0 4px; letter-spacing: 0; line-height: 1.3; }
.event-date { min-width: 58px; text-align: center; background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 6px 4px; }
.event-date strong { display: block; font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.event-date span { text-transform: uppercase; font-size: 0.75rem; letter-spacing: .08em; }

.cta-band { background: var(--ink); color: #fff; padding: var(--s-10) 0; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: var(--on-dark-muted); max-width: 56ch; }
.cta-band .vision { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.5rem); color: #fff; max-width: 52ch; }
.cta-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn-outline:hover { background: #fff; color: var(--ink); }

.partners { padding: var(--s-8) 0; }
.partners h2 { font-size: 1rem; font-family: var(--font-sans); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.partner-logos { display: flex; flex-wrap: wrap; gap: var(--s-7); justify-content: center; align-items: center; margin-top: var(--s-4); }
.partner-logos img { max-height: 64px; max-width: 170px; width: auto; height: auto; filter: grayscale(1); opacity: .8; transition: filter var(--ease), opacity var(--ease); }
.partner-logos a:hover img, .partner-logos a:focus-visible img, .partner-logos img:hover { filter: none; opacity: 1; }

/* ── Inner pages (shared layouts) ─────────────────────────── */
.page-hero, .band-sage.page-hero { padding: var(--s-9) 0 var(--s-7); background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line-warm); }
.page-hero.tall { padding: var(--s-10) 0; }
.page-hero h1 { color: var(--ink); margin-bottom: 0.3em; }
.page-hero p { max-width: 62ch; color: var(--muted); font-size: 1.12rem; }
.page-hero .fineprint { font-size: 0.92rem; margin-top: var(--s-3); }
.page-hero.center p, .page-hero .center p { margin-left: auto; margin-right: auto; }
.page-hero .light-link, .light-link { color: var(--navy); font-weight: 600; }
.form-section, .section { padding: var(--s-8) 0 var(--s-10); }
.prose-page h2 { margin-top: 1.4em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.prose-page p, .prose p { max-width: 68ch; }

/* Bands kept for any page that still uses them */
.band-sage, .band-orange, .band-navy { background: var(--surface); }
.band-navy { background: var(--ink); color: #fff; }
.band-navy h2, .band-navy p { color: #fff; }
.statement { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }

/* ── Forms ────────────────────────────────────────────────── */
.vform .group { border: 0; border-top: 1px solid var(--line-warm); padding: var(--s-6) 0 var(--s-2); margin: 0 0 var(--s-3); min-width: 0; }
.vform .group > legend { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 550; color: var(--ink); padding-right: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); }
.field { margin-bottom: var(--s-5); min-width: 0; }
.field > label, .field legend, .filter-inline label { display: block; font-weight: 650; font-size: 0.98rem; margin-bottom: 6px; color: var(--ink); }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field input[type=text], .field input[type=email], .field input[type=date], .field input[type=tel],
.field input[type=number], .field input[type=url], .field select, .field textarea, .filter-inline select {
  width: 100%; max-width: 100%; min-height: var(--tap); font: inherit; font-size: 1rem; padding: 0.6em 0.8em;
  border: 1.5px solid #c9c2b6; border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus, .filter-inline select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 22%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.check-grid.radios { grid-template-columns: 1fr; }
.check, .check-single { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: 1rem; cursor: pointer; min-height: 36px; padding: 4px 0; }
.check input, .check-single input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--coral); flex: none; }
.req { color: var(--coral-dark); font-style: normal; }
.help { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.error { display: block; color: var(--red); font-size: 0.92rem; margin-top: 6px; font-weight: 650; }
.error::before { content: "⚠ "; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.alert { background: var(--red-bg); border-left: 4px solid var(--red); padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: var(--s-5); }
.alert p { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.filter-inline { display: flex; gap: var(--s-3); align-items: end; flex-wrap: wrap; margin-bottom: var(--s-6); }
.filter-inline label { margin: 0 0 10px; }
.filter-inline select { width: auto; flex: 1 1 200px; }
.section-note { color: var(--muted); font-size: 0.95rem; }
.geo { margin: -6px 0 16px; }
.field.is-hidden { display: none; }
[hidden] { display: none !important; }

.emergency, .crisis-box {
  background: #fff; border: 1px solid var(--line-warm); border-left: 5px solid var(--red);
  padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); margin-bottom: var(--s-6); color: var(--ink);
}
.emergency a, .crisis-box a { font-weight: 750; color: var(--red); }
.crisis-lines { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.crisis-lines a {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-pill);
  background: var(--red-bg); color: var(--red); text-decoration: none; font-weight: 700;
}
.crisis-lines a:hover { background: var(--red); color: #fff; }

.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-3); }
.type-card { display: flex; gap: 10px; align-items: center; border: 1.5px solid #c9c2b6; border-radius: var(--r-md); padding: 14px 16px; cursor: pointer; font-weight: 650; color: var(--ink); background: #fff; }
.type-card input { width: 20px; height: 20px; accent-color: var(--coral); flex: none; }
.type-card:has(input:checked) { border-color: var(--coral); background: #fdf1ee; }
.type-card:has(input:focus-visible) { outline: var(--focus); outline-offset: 2px; }

.notice-ok { background: var(--green-bg); border-radius: var(--r-md); padding: 14px 16px; margin: 16px 0; }

/* ── Team, documents, chapters, help, news ────────────────── */
.team-section { padding: var(--s-8) 0 var(--s-4); }
.team-intro { max-width: 760px; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-6); margin-top: var(--s-5); }
.team-card { background: var(--surface); border: 1px solid var(--line-warm); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); text-align: center; }
.team-card img, .team-initials { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--s-4); }
.team-initials { display: flex; align-items: center; justify-content: center; background: var(--sage-100); color: var(--navy); font-family: var(--font-serif); font-size: 2.6rem; }
.team-card h3 { margin-bottom: 0.15em; }
.team-title { color: var(--coral-dark); font-weight: 650; font-size: .95rem; margin-bottom: 0.6em; }
.team-bio { font-size: 0.97rem; color: var(--muted); text-align: left; }

.doc-list { list-style: none; padding: 0; margin: 0 0 var(--s-7); }
.doc-list li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line-warm); }
.doc-list a { font-weight: 650; }
.doc-list p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

.chapter-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); margin-top: var(--s-5); }
.chapter-card { display: flex; flex-direction: column; gap: 6px; padding: var(--s-5); border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-warm); text-decoration: none; color: inherit; }
.chapter-card:hover { border-color: var(--ink); color: inherit; }
.chapter-card span { color: var(--muted); font-size: 0.92rem; }
.chapter-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin: var(--s-5) 0; }

.help-group { margin: var(--s-7) 0; }
.help-group h2 { font-size: 1.6rem; }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.help-item { background: #fff; border: 1px solid var(--line-warm); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); }
.help-item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.help-item p { margin: 4px 0; }
.help-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.help-actions .btn { min-height: 44px; }
.help-call { font-weight: 700; }
.help-meta { color: var(--muted); font-size: 0.93rem; }

.badge-open { background: var(--green-bg); color: var(--green); border-radius: var(--r-pill); padding: 2px 10px; font-size: 0.85rem; font-weight: 650; }
.badge-full { background: #eee; color: var(--muted); border-radius: var(--r-pill); padding: 2px 10px; font-size: 0.85rem; font-weight: 650; }
.news-item { padding: var(--s-5) 0; border-bottom: 1px solid var(--line-warm); }
.news-item h2 { margin: 0 0 4px; font-size: 1.5rem; }
.news-img { width: 100%; height: auto; border-radius: var(--r-md); margin: var(--s-3) 0; }

/* Legacy homepage pieces (kept in case a page still uses them) */
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split-img { width: 100%; border-radius: var(--r-md); object-fit: cover; max-height: 460px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.accent-card, .goal { border: 1px solid var(--line-warm); border-radius: var(--r-md); padding: var(--s-5); background: #fff; }
.banner { width: 100%; height: clamp(220px, 34vw, 440px); object-fit: cover; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: var(--s-9) 0 var(--s-7); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--s-7); }
.footer-brand { display: flex; gap: var(--s-3); align-items: center; color: #fff; margin-bottom: var(--s-3); }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.footer-brand strong { font-family: var(--font-serif); font-weight: 550; font-size: 1.1rem; line-height: 1.2; }
.site-footer h2 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; white-space: pre-line; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--s-8); padding-top: var(--s-5); font-size: 0.88rem; display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .story-grid, .founded .wrap, .twin { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-photo { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-actions {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-3) var(--s-4) var(--s-5);
    background: var(--paper); border-bottom: 1px solid var(--line-warm); box-shadow: var(--shadow-2);
  }
  .header-actions.open { display: flex; }
  .header-actions .btn { justify-content: flex-start; min-height: 48px; font-size: 1.05rem; }
  .header-actions .btn-coral { margin: var(--s-3) 0 0; justify-content: center; }
  .no-js .header-actions { display: flex; position: static; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; padding: 0; }
  .no-js .nav-toggle { display: none; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 var(--s-4); }
  section { padding: var(--s-9) 0; }
  .hero { padding: var(--s-7) 0 var(--s-8); }
  .program-grid, .grid-2, .cards-2, .split-inner { grid-template-columns: 1fr; }
  .page-hero, .band-sage.page-hero { padding: var(--s-7) 0 var(--s-6); }
  .brand-name { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .utility-inner { font-size: 0.85rem; }
  .portal-hello { width: 100%; }
}

/* Homepage events + news */
.whatson { padding-top: 0; }
.twin h3 { font-family: var(--font-serif); font-weight: 550; font-size: 1.6rem; margin-bottom: var(--s-4); }
.news-title { margin: 0 0 4px; font-size: 1.1rem; }
.help-meta.tight { margin: 0; }
.more-link { margin-top: var(--s-4); font-weight: 600; }

/* Homepage: One Pill Kills / featured documents */
.awareness { background: var(--surface); border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }
.awareness-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s-5); }
.awareness-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-warm); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color var(--ease), box-shadow var(--ease); }
.awareness-card:hover { border-color: var(--ink); box-shadow: var(--shadow-2); color: var(--ink); }
.awareness-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.awareness-file { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--sage-100); color: var(--navy); font-weight: 750; font-size: 2rem; letter-spacing: .08em; }
.awareness-body { display: grid; gap: 4px; padding: var(--s-4) var(--s-5) var(--s-5); }
.awareness-body strong { font-size: 1.02rem; line-height: 1.3; }
.awareness-body span { color: var(--muted); font-size: 0.93rem; }
.awareness-card img.is-preview { object-position: top; }

/* ── How to use naloxone: four steps. Without JS they sit side by side (stacked on phones);
      home.js turns them into one card at a time with Back / Next. ── */
.naloxone { background: var(--sage-50); border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }
.nx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.nx-step { background: var(--surface); border: 1px solid var(--line-warm); border-radius: var(--r-lg); padding: var(--s-5); }
.nx-step[hidden] { display: none; }
.nx-step h4 { display: flex; align-items: center; gap: var(--s-2); font-size: 1.15rem; margin: var(--s-3) 0 var(--s-2); }
.nx-step h4:focus { outline: none; }
.nx-step h4:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.nx-step p { margin: 0; color: var(--ink); line-height: 1.55; }
.nx-num { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); color: #fff; font-size: 0.95rem; font-weight: 750; font-variant-numeric: lining-nums tabular-nums; }
.nx-art { display: block; width: 100%; max-width: 160px; height: auto; aspect-ratio: 4 / 3; margin: 0 auto;
  border-radius: var(--r-md); background: var(--sage-100); }
.nx-skin { fill: #f1c9a5; }
.nx-shirt { fill: var(--sage); }
.nx-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nx-phone { fill: var(--ink); }
.nx-screen { fill: #fff; }
.nx-911 { fill: var(--red); font: 750 13px var(--font-sans); }
.nx-spray { fill: var(--coral); }
.nx-nozzle { fill: #fff; stroke: var(--coral); stroke-width: 2; }
.nx-z { fill: var(--ink); font: 750 20px var(--font-sans); }

/* Stepper mode: one large card, art beside the words */
.nx-on .nx-steps { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.nx-on .nx-step { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-2) var(--s-6); align-items: center;
  padding: var(--s-6); animation: nx-in .25s ease-out; }
.nx-on .nx-step[hidden] { display: none; }
.nx-on .nx-art { grid-row: span 2; max-width: 180px; }
.nx-on .nx-step h4 { margin: 0; font-size: 1.4rem; align-self: end; }
.nx-on .nx-step p { align-self: start; font-size: 1.05rem; }
@keyframes nx-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.nx-where { margin: var(--s-3) 0 0; color: var(--muted); font-size: 0.9rem; }
.nx-nav { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-3); max-width: 760px; }
.nx-nav .btn:disabled { opacity: .4; cursor: default; }
.nx-dots { display: flex; gap: var(--s-2); margin: 0 auto; }
.nx-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; }
.nx-dot[aria-current="step"] { background: var(--ink); }
.nx-dot:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.nx-kit { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-7);
  padding: var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--line-warm); border-left: 4px solid var(--coral);
  border-radius: var(--r-md); }
.nx-kit p { margin: 0; max-width: 60ch; }
.naloxone .fineprint { margin-top: var(--s-4); }
@media (max-width: 860px) {
  .nx-steps { grid-template-columns: minmax(0, 1fr); }
  .nx-on .nx-step { grid-template-columns: minmax(0, 1fr); text-align: left; padding: var(--s-5); }
  .nx-on .nx-art { grid-row: auto; max-width: 140px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .nx-on .nx-step { animation: none; } }

/* ── Find help: map and "closest to me" ── */
.help-map-wrap { margin: var(--s-6) 0 var(--s-2); }
.near-me { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.near-me-status { color: var(--muted); font-size: 0.93rem; }
.help-map { height: 320px; border-radius: var(--r-md); border: 1px solid var(--line-warm); background: var(--sage-50); z-index: 0; }
.help-map-wrap .fineprint { margin: var(--s-2) 0 0; }
.help-distance { display: inline-block; margin-left: var(--s-2); padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--sage-100); color: var(--ink); font: 650 0.85rem var(--font-sans); vertical-align: middle;
  font-variant-numeric: tabular-nums; }
.help-distance[hidden] { display: none; }
@media (max-width: 720px) { .help-map { height: 260px; } }

/* ── Homepage, calm editorial: navy hero over the Franklin Mountains, floating impact card, program tabs,
   volunteer role picker. Motion is limited to the impact count-up and a 150 ms tab change. ── */
.hero-band { position: relative; overflow: hidden; color: var(--on-dark); padding-bottom: calc(var(--s-10) + 72px);
  background: linear-gradient(180deg, #16313d 0%, #1d3f4f 45%, #2a5265 100%); }
.hero-band .hero-grid { position: relative; z-index: 1; }
.hero-band h1 { color: #fff; }
.hero-band .eyebrow { color: #f2c46d; }
.hero-band .lede { color: var(--on-dark-muted); }
.hero-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.75); }
.hero-band .btn-outline:hover { background: #fff; color: var(--ink); }
.hero-band .hero-note { color: var(--on-dark-muted); }
.hero-band .hero-note a { color: #fff; }
.hero-band .hero-photo::after { background: rgba(108,161,168,.35); }
.hero-ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; display: block; }
.ridge-far { fill: #6ca1a8; opacity: .35; }
.ridge-near { fill: var(--paper); }
.ridge-star { fill: #f2c46d; }

.impact-float { border: 0; padding: 0 0 var(--s-8); margin-top: -64px; position: relative; z-index: 2; }
.impact-card { background: var(--surface); border: 1px solid var(--line-warm); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  padding: var(--s-6) var(--s-7); margin-bottom: var(--s-3); }
.impact-float h2 { margin-bottom: var(--s-4); }
.impact-float .impact-grid { margin: 0; }
.impact-float .impact-stat { border-left: 1px solid var(--line-warm); padding-left: var(--s-5); }
.impact-float .impact-stat:first-child { border-left: 0; padding-left: 0; }

.programs .section-head .eyebrow { margin-bottom: var(--s-2); }
.prog-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-5); }
.prog-tabs[hidden] { display: none; }
.prog-tabs [role=tab] { background: transparent; border: 1.5px solid var(--line-warm); border-radius: var(--r-pill); padding: 8px 16px;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; min-height: var(--tap); transition: border-color var(--ease), color var(--ease), background var(--ease); }
.prog-tabs [role=tab]:hover { border-color: var(--ink); color: var(--ink); }
.prog-tabs [role=tab][aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.prog-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.prog-on .prog-panels { grid-template-columns: minmax(0, 1fr); }
.prog-panel { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--surface); border: 1px solid var(--line-warm);
  border-radius: var(--r-lg); overflow: hidden; }
.prog-panel[hidden] { display: none; }
.prog-on .prog-panel { animation: prog-in 150ms var(--ease-curve, cubic-bezier(.2,.7,.2,1)); }
@keyframes prog-in { from { opacity: .4; } }
.prog-panel-text { grid-template-columns: minmax(0, 1fr); }
.prog-panel picture, .prog-panel img { width: 100%; height: 100%; }
.prog-panel img { object-fit: cover; aspect-ratio: 4 / 3; }
.prog-panel .body { padding: var(--s-7); display: grid; gap: var(--s-3); align-content: center; }
.prog-panel h3 { font-family: var(--font-serif); font-weight: 550; font-size: 1.7rem; margin: 0; }
.prog-panel p, .prog-panel ul { margin: 0; color: var(--muted); }
.prog-panel ul { padding-left: 1.1em; }
.prog-tag { justify-self: start; font-size: 0.8rem; font-weight: 650; color: var(--navy); background: var(--sage-50); border-radius: var(--r-pill); padding: 3px 10px; }
.prog-links { font-weight: 600; }
.prog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-bottom: var(--s-5); }
.prog-card { background: var(--surface); border: 1px solid var(--line-warm); border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; }
.prog-card h3 { font-family: var(--font-serif); font-weight: 550; font-size: 1.4rem; margin: 0; }
.prog-card p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .prog-cards { grid-template-columns: minmax(0, 1fr); } }

.roles { margin: var(--s-5) 0; }
.roles-q { font-weight: 600; color: #fff; margin-bottom: var(--s-3); }
.roles-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); max-width: 64ch; }
.role-chip { background: transparent; border: 0; padding: 0; font: inherit; font-weight: 650; color: #fff; text-align: left; }
.role-desc { margin: 2px 0 0; color: var(--on-dark-muted); }
.roles-on .roles-list { display: flex; flex-wrap: wrap; gap: var(--s-2); max-width: none; }
.roles-on .role-desc { display: none; }
.roles-on .role-chip { border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--r-pill); padding: 8px 16px; min-height: var(--tap); cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease); }
.roles-on .role-chip:hover { border-color: #fff; }
.roles-on .role-chip[aria-pressed=true] { background: #fff; border-color: #fff; color: var(--ink); }
.role-out { margin: var(--s-4) 0 0; color: #fff; font-size: 1.05rem; max-width: 60ch; min-height: 3.2em; }

/* signed-in staff bar on the public site: one slim line */
.portal-bar { font-size: 0.85rem; background: var(--ink); }
.portal-bar-inner { padding-top: 2px; padding-bottom: 2px; }
.portal-tabs a { padding: 6px 8px; }
.portal-signout { min-height: 30px; }

@media (max-width: 980px) {
  .prog-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero-band { padding-bottom: calc(var(--s-9) + 56px); }
  .hero-ridge { height: 72px; }
  .impact-float { margin-top: -40px; }
  .impact-card { padding: var(--s-5); }
  .impact-float .impact-stat { border-left: 0; padding-left: 0; }
  .prog-panel { grid-template-columns: minmax(0, 1fr); }
  .prog-panel img { aspect-ratio: 16 / 9; }
  .prog-panel .body { padding: var(--s-5); }
  .prog-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .prog-tabs [role=tab] { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .prog-on .prog-panel { animation: none; } }


/* Hero photo reel: real field photos cross-fade every 6 s with a slow push-in; caption chip names the moment.
   Without JS only the first photo shows. */
.hero-reel { margin: 0; }
.reel-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); background: var(--navy-dark); }
.reel-shot { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms ease; }
.reel-shot.is-on { opacity: 1; }
.reel-shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; aspect-ratio: auto; transform: scale(1.0); }
.reel-on .reel-shot.is-on img { animation: reel-push 7000ms linear both; }
@keyframes reel-push { from { transform: scale(1.0); } to { transform: scale(1.07); } }
.reel-caption { position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(22, 49, 61, .78); color: #fff; backdrop-filter: blur(6px); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: 0.88rem; font-weight: 600; max-width: calc(100% - 2 * var(--s-4)); }
.reel-dot { width: 8px; height: 8px; border-radius: 50%; background: #f2c46d; flex: none; }
.reel-caption span[data-reel-caption] { transition: opacity 300ms ease; }

/* Sections ease up into place as they scroll in (only below the fold, only when motion is welcome) */
.reveal-wait { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1); }
.prog-panel img { transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.prog-panel:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .reel-shot { transition: none; } .reel-on .reel-shot.is-on img { animation: none; }
  .reveal-wait { opacity: 1; transform: none; } .prog-panel:hover img { transform: none; }
}

/* Header Donate: a quiet outline button beside the coral Volunteer */
.header-actions .btn-donate { min-height: 40px; padding: 0 1em; }
@media (max-width: 860px) { .header-actions .btn-donate { margin-top: var(--s-2); justify-content: center; } }

/* Impact: "in the past 12 months" */
.impact-when { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }

/* Supplies we need */
.needs { background: var(--sage-50); border-top: 1px solid var(--line-warm); }
.needs-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.needs-inner p { color: var(--muted); max-width: 46ch; }
.needs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.needs-list li { background: var(--surface); border: 1px solid var(--line-warm); border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
  font-weight: 550; display: flex; gap: var(--s-3); align-items: center; }
.needs-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }

/* Footer newsletter */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center;
  margin-top: var(--s-8); padding: var(--s-6); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); }
.newsletter h2 { color: #fff; font-size: 1.3rem; margin: 0 0 var(--s-2); }
.newsletter p { margin: 0; }
.newsletter-form { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1 1 220px; min-width: 0; min-height: var(--tap); border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08); color: #fff; padding: 0 var(--s-4); font: inherit; }
.newsletter-form input[type=email]::placeholder { color: var(--on-dark-muted); }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-done { color: #fff; font-weight: 600; }
@media (max-width: 720px) { .newsletter, .needs-inner { grid-template-columns: minmax(0, 1fr); } }

/* Naloxone tab: "How to use naloxone" and "One Pill Kills" are blocks inside the Programs panel. */
.prog-panel-nx { grid-template-columns: minmax(0, 1fr); }
.prog-sub { padding: var(--s-7); }
.prog-sub .section-head { margin-bottom: var(--s-5); }
.prog-sub .section-head h3 { font-family: var(--font-serif); font-weight: 550; font-size: 1.5rem; }
.prog-panel .nx-step p { color: var(--ink); }
.prog-panel .nx-kit p, .prog-panel .awareness-body span { color: var(--muted); }
.prog-panel .awareness-card img { height: auto; aspect-ratio: 1 / 1; transform: none; transition: none; }
.prog-panel:hover .awareness-card img { transform: none; }
.prog-panel .awareness-card img.is-preview { object-position: top; }
@media (max-width: 720px) { .prog-sub { padding: var(--s-5); } }
