/* ==========================================================================
   Kenduskeag.com — shared stylesheet
   Independent community guide for Kenduskeag, Maine.
   No external requests. No dependencies.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  color-scheme: light;

  --ink: #1d2c24;
  --body: #3f5148;
  --muted: #5a6b62;
  --paper: #f7f6f1;
  --paper-2: #efeee6;
  --card: #ffffff;

  --accent: #4f7040;
  --accent-deep: #223c2c;
  --accent-mid: #3d5a33;
  --accent-tint: #e7eddb;
  --accent-tint-2: #dde7ce;

  --warm: #8f4f2c;
  --warm-tint: #f6ece3;

  --line: #e3e5da;
  --line-strong: #d1d6c6;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(29, 44, 36, .05), 0 4px 12px -6px rgba(29, 44, 36, .10);
  --shadow: 0 1px 2px rgba(29, 44, 36, .04), 0 16px 34px -16px rgba(29, 44, 36, .22);
  --shadow-lg: 0 2px 4px rgba(29, 44, 36, .05), 0 30px 60px -24px rgba(29, 44, 36, .30);

  --wrap: 1140px;
  --header-h: 68px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 16px/1.65 var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
strong { color: var(--ink); font-weight: 650; }
small { font-size: .82em; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent-tint-2); color: var(--ink); }

/* ---------- 3. Layout helpers -------------------------------------------- */
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-deep); color: #fff; padding: 12px 18px;
  font-weight: 650; text-decoration: none; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tight { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.section--flush-top { padding-top: 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 4. Notice + header ------------------------------------------- */
.notice {
  background: var(--accent-deep);
  color: #dfe9d8;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .05em;
  padding: 9px 20px;
}
.notice strong { color: #fff; font-weight: 650; }
.notice a { color: #cfe3b8; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 246, 241, .88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px -18px rgba(29, 44, 36, .5); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--accent-deep); color: #fff;
  font-family: var(--serif); font-size: .84rem; font-weight: 700; letter-spacing: .06em;
}
.brand .name { font-weight: 750; letter-spacing: -.02em; font-size: 1.06rem; line-height: 1.15; }
.brand .name span { display: block; color: var(--muted); font-size: .66rem; font-weight: 550; letter-spacing: .13em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-block; padding: 9px 12px;
  color: var(--muted); text-decoration: none;
  font-size: .9rem; font-weight: 550; border-radius: 999px;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--accent-deep); background: var(--accent-tint); }
.nav a[aria-current="page"] { color: var(--accent-deep); background: var(--accent-tint); font-weight: 650; }
.nav .official {
  margin-left: 6px; padding: 10px 16px;
  background: var(--accent-deep); color: #fff; font-weight: 650;
  border-radius: 999px;
}
.nav .official:hover { background: var(--accent-mid); color: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--card); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer;
}
.nav-toggle .bars { position: relative; width: 17px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle .bars::before { top: -5.5px; }
.nav-toggle .bars::after { top: 5.5px; }

/* ---------- 5. Hero ------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(660px, 78vh);
  display: flex; align-items: flex-end;
  background: var(--accent-deep); color: #fff;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 32, 23, .80) 0%, rgba(20, 36, 26, .52) 34%, rgba(18, 32, 23, .90) 100%),
    linear-gradient(95deg, rgba(18, 32, 23, .72) 0%, rgba(18, 32, 23, .18) 58%, rgba(18, 32, 23, .05) 100%);
}
.hero-inner { position: relative; width: 100%; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem); }
.hero .eyebrow { color: #cfe6b6; }
.hero h1 {
  margin: 0; color: #fff;
  font-size: clamp(2.9rem, 8vw, 6rem);
  line-height: .96; letter-spacing: -.05em;
  max-width: 15ch;
}
.hero .lede { max-width: 56ch; margin: 1.4rem 0 2rem; color: #e6ecdf; font-size: 1.1rem; }

.lede { max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.band .lede { color: #cddcc4; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent); font-size: .73rem; font-weight: 750;
  letter-spacing: .16em; text-transform: uppercase;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid var(--accent-deep); border-radius: 999px;
  background: var(--accent-deep); color: #fff;
  text-decoration: none; font-weight: 650; font-size: .93rem;
  transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .62); }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); filter: none; }
.btn.solid-ghost { background: var(--card); color: var(--accent-deep); border-color: var(--card); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .86rem; }

.photo-credit {
  position: absolute; z-index: 3; right: max(20px, calc((100vw - var(--wrap)) / 2));
  bottom: 12px; margin: 0; padding: 5px 10px; border-radius: 8px;
  background: rgba(12, 22, 15, .72); color: #e7eee2;
  font-size: .66rem; line-height: 1.45; text-align: right; max-width: min(46ch, 60vw);
}
.photo-credit a { color: #fff; text-underline-offset: 2px; }

/* Hero stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(4px);
}
.stat-strip div { background: rgba(16, 30, 21, .42); padding: 16px 18px; }
.stat-strip dt { color: #b9cfa8; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.stat-strip dd { margin: 4px 0 0; color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.stat-strip dd small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 500; color: #c4d5b6; letter-spacing: 0; }

/* ---------- 6. Section headers ------------------------------------------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.section-head h2 { margin: 0; font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
.section-head p { max-width: 52ch; margin: 0; color: var(--muted); }
.section-head .head-text { max-width: 56ch; }
.section-head .head-text p { margin-top: .85rem; }
.head-link { white-space: nowrap; font-weight: 650; font-size: .9rem; text-decoration: none; border-bottom: 1px solid var(--accent-tint-2); padding-bottom: 2px; }
.head-link:hover { border-bottom-color: var(--accent); }

/* ---------- 7. Cards ------------------------------------------------------ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h2, .card h3 { margin: 8px 0 6px; font-size: 1.14rem; letter-spacing: -.015em; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.card .kicker {
  color: var(--accent); font-size: .69rem; font-weight: 750;
  letter-spacing: .13em; text-transform: uppercase;
}
.card .card-foot { margin-top: auto; padding-top: 4px; }
.card a.link { color: var(--accent); font-weight: 650; font-size: .9rem; text-decoration: none; }
.card a.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card .meta { color: var(--muted); font-size: .84rem; }
.card .meta div { display: flex; gap: 8px; align-items: baseline; }
.card .meta span:first-child { flex: none; width: 74px; color: var(--ink); font-weight: 650; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.card.feature { background: linear-gradient(160deg, var(--card), var(--accent-tint)); }

.card .icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 12px; background: var(--accent-tint); color: var(--accent-deep);
  font-size: 1.15rem; line-height: 1;
}
.card .icon.warm { background: var(--warm-tint); color: var(--warm); }

/* ---------- 8. Feature band ---------------------------------------------- */
.band {
  background: var(--accent-deep); color: #dbe6d4;
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative; overflow: hidden;
}
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #b9d49f; }
.band p { color: #cddcc4; }
.band .muted-light { color: #a9bfa0; }

.band-art { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.band-art svg { width: 100%; height: 100%; display: block; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

.quote {
  margin: 0; padding: 22px 24px;
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, .06);
}
.quote p { margin: 0; font-family: var(--serif); font-size: 1.16rem; line-height: 1.5; color: #f0f4ea; }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .8rem; color: #a9bfa0; }

/* ---------- 9. Data lists / tables ---------------------------------------- */
.data-list { margin: 0; display: grid; gap: 0; }
.data-list > div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.data-list > div:last-child { border-bottom: 0; }
.data-list dt { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.data-list dd { margin: 0; color: var(--ink); font-weight: 550; }
.band .data-list > div { border-bottom-color: rgba(255, 255, 255, .14); }
.band .data-list dt { color: #a9bfa0; }
.band .data-list dd { color: #eaf0e4; }

.hours { width: 100%; font-size: .93rem; }
.hours caption { text-align: left; color: var(--muted); font-size: .8rem; padding-bottom: 8px; }
.hours th, .hours td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.hours thead th { color: var(--muted); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 750; }
.hours tbody th { font-weight: 600; color: var(--ink); }
.hours td { color: var(--body); }
.hours .closed { color: var(--muted); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { background: var(--accent-tint); color: var(--ink); }
.hours tr.is-today th::after { content: " · today"; color: var(--accent); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- 10. Callouts -------------------------------------------------- */
.callout {
  padding: 18px 20px; border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: .93rem;
}
.callout h2, .callout h3 { margin: 0 0 6px; font-size: 1rem; font-family: var(--sans); letter-spacing: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.warm { border-left-color: var(--warm); background: var(--warm-tint); border-color: #ecdfd4; }
.callout.info { border-left-color: #4d7c8a; background: #eef4f6; border-color: #d9e5ea; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card);
  color: var(--body); font-size: .84rem; font-weight: 550; text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chip .dist { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover .dist { color: var(--accent); }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-deep);
  font-size: .72rem; font-weight: 650; letter-spacing: .02em;
}

/* ---------- 11. Timeline --------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  position: relative; padding: 0 0 22px 30px;
  border-left: 2px solid rgba(255, 255, 255, .18);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-deep); border: 2px solid #9fc087;
}
.timeline .year { display: block; color: #b9d49f; font-size: .74rem; font-weight: 750; letter-spacing: .14em; }
.timeline h3 { margin: 3px 0 5px; font-size: 1.08rem; }
.timeline p { margin: 0; font-size: .93rem; }

.on-light .timeline li { border-left-color: var(--line-strong); }
.on-light .timeline li::before { background: var(--paper); border-color: var(--accent); }
.on-light .timeline .year { color: var(--accent); }
.on-light .timeline h3 { color: var(--ink); }
.on-light .timeline p { color: var(--muted); }

/* ---------- 12. Two-column split panels ----------------------------------- */
.panel {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow-sm);
}
.panel h3 { margin: 0 0 14px; font-size: 1.35rem; }
.panel.accent { background: linear-gradient(160deg, var(--card), var(--accent-tint)); border-color: var(--line-strong); }

.contact-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-panel .col h3 { margin: 0 0 10px; font-size: 1.08rem; }
.contact-panel .col p { font-size: .93rem; color: var(--muted); }
.contact-panel .col .big { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-block; }
.contact-panel .col .big:hover { color: var(--accent); }

/* ---------- 13. Emergency strip -------------------------------------------- */
.emergency {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.emergency div { background: var(--card); padding: 18px; }
.emergency .num { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.emergency .num:hover { color: var(--accent); }
.emergency .lbl { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.emergency .note { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }

/* ---------- 14. Directory --------------------------------------------------- */
.dir-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.dir-search {
  flex: 1 1 240px; min-width: 200px;
  padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--card); color: var(--ink); font: inherit; font-size: .92rem;
}
.dir-search::placeholder { color: var(--muted); opacity: 1; }
.filter-btn {
  padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--card); color: var(--body); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.filter-btn[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.dir-count { color: var(--muted); font-size: .87rem; }
.dir-empty { display: none; padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.dir-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.dir-card .dir-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.dir-card .dir-actions a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--body); text-decoration: none; background: var(--card);
}
.dir-card .dir-actions a:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-tint); }

/* ---------- 15. Sponsor ---------------------------------------------------- */
.sponsor-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(115deg, #fff, var(--accent-tint));
  box-shadow: var(--shadow-sm);
}
.ad-label {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--warm); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.ad-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }
.sponsor-card h2 { margin: 7px 0 4px; font-size: 1.5rem; }
.sponsor-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.sponsor-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border: 1px solid var(--accent-deep); border-radius: 999px;
  background: var(--accent-deep); color: #fff; text-decoration: none; font-size: .89rem; font-weight: 700;
  white-space: nowrap;
}
.sponsor-cta:hover { background: var(--accent-mid); }
.sponsor-email { font-weight: 700; }

/* ---------- 16. Page header (interior pages) -------------------------------- */
.page-head {
  background:
    radial-gradient(ellipse at 88% 14%, #dde7ce 0, transparent 42%),
    linear-gradient(140deg, #eef0e0, var(--paper) 68%);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-head h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.045em; max-width: 20ch; }
.page-head .lede { max-width: 62ch; margin: 1.1rem 0 0; color: var(--body); font-size: 1.06rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0 0 16px; padding: 0; font-size: .84rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }

/* ---------- 17. Documents (terms / privacy) ---------------------------------- */
.doc { padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.doc h2 { margin: 2rem 0 .5rem; font-size: 1.18rem; }
.doc h3 { margin: 1.5rem 0 .35rem; font-size: 1.02rem; font-family: var(--sans); letter-spacing: 0; }
.doc p, .doc li { color: var(--body); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .35em; }
.doc .updated { margin: 0 0 2rem; color: var(--muted); font-size: .92rem; }
.doc table { font-size: .93rem; margin: 1rem 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.doc thead th { background: var(--paper-2); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- 18. Footer ------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; font-size: .89rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2, .site-footer h3 { margin: 0 0 10px; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); font-weight: 750; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-note p { margin: 0; }

/* ---------- 19. Utilities ---------------------------------------------------- */
.stack-sm > * + * { margin-top: .6rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.pb-3 { padding-bottom: 3rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.nowrap { white-space: nowrap; }
.measure { max-width: 38ch; }
.kicker-label {
  color: var(--accent); font-size: .72rem; font-weight: 750;
  letter-spacing: .13em; text-transform: uppercase;
}
.band .kicker-label { color: #b9d49f; }
.plain-list { margin: 0; padding-left: 1.15em; color: var(--body); font-size: .93rem; }
.link-list { margin: 0 0 14px; padding-left: 1.1em; color: var(--muted); font-size: .92rem; }
.section-title { margin: 0 0 18px; font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
.w-8 { width: 8rem; }
.w-9 { width: 9rem; }
.panel-invert { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.panel-flush { padding: 0; overflow: hidden; }
.caption-pad { padding: 18px 22px 0; }
.contact-stack { grid-template-columns: 1fr; }
.brand-footer { margin-bottom: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--card); color: var(--ink); text-decoration: none; font-size: 1rem;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* Reveal on scroll. Content is visible by default; the `js` class on <html>
   is set by an inline script before first paint, so nothing is ever hidden
   when JavaScript is unavailable or an observer fails to fire. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------------------------------------------------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .emergency { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: .97rem; }
  .nav .official { margin: 8px 0 0; text-align: center; }
  .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .sponsor-card { grid-template-columns: 1fr; gap: 16px; }
  .sponsor-cta { justify-self: start; }
  .dir-card { grid-template-columns: 1fr; }
  .dir-card .dir-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .data-list > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .emergency { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .photo-credit { position: static; margin: 0 auto 12px; text-align: center; max-width: none; }
  .hero { min-height: 0; }
  .hero-inner { padding-bottom: 1.25rem; }
  .brand .name span { display: none; }
}

/* ---------- 21. Motion / print ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .to-top, .sponsor-wrap, .notice, .nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band { background: #fff; color: #000; }
  .band h2, .band h3 { color: #000; }
  .band p, .band .data-list dd { color: #000; }
  .card, .panel, .doc { box-shadow: none; border: 1px solid #999; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: 0; }
  .hero-photo { display: none; }
  .hero h1 { color: #000; }
  .wrap { width: 100%; }
}
