/* Self-hosted fonts: Google Fonts latin + latin-ext woff2 subsets, vendored 2026-07-01 (families/weights match the approved design prototype). */
@font-face{font-family:'Public Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/public-sans-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/public-sans-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/public-sans-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/public-sans-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/public-sans-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/public-sans-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/public-sans-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/public-sans-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/zilla-slab-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/zilla-slab-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/zilla-slab-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/zilla-slab-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/zilla-slab-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/zilla-slab-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/zilla-slab-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/zilla-slab-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* Design tokens. Palettes mirror the approved Claude Design prototype. */
:root {
  --font-serif: 'Zilla Slab', Georgia, serif;
  --font-sans: 'Public Sans', system-ui, -apple-system, sans-serif;

  /* Constants that read the same on both themes (dark-green/brass surfaces). */
  --brass-bright: #E2B25E;
  --on-brass: #111A0C; /* darkened from prototype's #1B2615 for AA on brass fills */
  --cream: #F3EEE0;
  --cream-strong: #F4EFDF;
  /* Translucent light-on-dark text/borders derive from these two bases only:
     rgb(var(--cream-rgb) / a) on near-black, rgb(var(--onforest-rgb) / a) on greens. */
  --cream-rgb: 243 238 224;
  --onforest-rgb: 234 225 203;
  /* Forest band fill that keeps AA contrast under cream text in BOTH themes.
     (--forest lightens in dark mode for icon tints; bands must stay deep.) */
  --band: #2C4A33;

  --sidebar-w: 264px;
  --maxw: 1120px;
  --pad-x: clamp(16px, 4vw, 36px);

  /* Topographic line pattern, injected by build.js. */
  --topo: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'720'%20height%3D'480'%3E%3Cg%20fill%3D'none'%20stroke%3D'rgb(234%2C225%2C203)'%20stroke-opacity%3D'0.06'%20stroke-width%3D'1.1'%3E%3Cpath%20d%3D'M0%2014%20C%20120%20-12%2C%20240%2040%2C%20360%2014%20S%20600%20-12%2C%20720%2014'%2F%3E%3Cpath%20d%3D'M0%2058%20C%20120%2032%2C%20240%2084%2C%20360%2058%20S%20600%2032%2C%20720%2058'%2F%3E%3Cpath%20d%3D'M0%20102%20C%20120%2076%2C%20240%20128%2C%20360%20102%20S%20600%2076%2C%20720%20102'%2F%3E%3Cpath%20d%3D'M0%20146%20C%20120%20120%2C%20240%20172%2C%20360%20146%20S%20600%20120%2C%20720%20146'%2F%3E%3Cpath%20d%3D'M0%20190%20C%20120%20164%2C%20240%20216%2C%20360%20190%20S%20600%20164%2C%20720%20190'%2F%3E%3Cpath%20d%3D'M0%20234%20C%20120%20208%2C%20240%20260%2C%20360%20234%20S%20600%20208%2C%20720%20234'%2F%3E%3Cpath%20d%3D'M0%20278%20C%20120%20252%2C%20240%20304%2C%20360%20278%20S%20600%20252%2C%20720%20278'%2F%3E%3Cpath%20d%3D'M0%20322%20C%20120%20296%2C%20240%20348%2C%20360%20322%20S%20600%20296%2C%20720%20322'%2F%3E%3Cpath%20d%3D'M0%20366%20C%20120%20340%2C%20240%20392%2C%20360%20366%20S%20600%20340%2C%20720%20366'%2F%3E%3Cpath%20d%3D'M0%20410%20C%20120%20384%2C%20240%20436%2C%20360%20410%20S%20600%20384%2C%20720%20410'%2F%3E%3Cpath%20d%3D'M0%20454%20C%20120%20428%2C%20240%20480%2C%20360%20454%20S%20600%20428%2C%20720%20454'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #E6DDC8;
  --bg2: #DCD2BA;
  --surface: #F6F1E4;
  --ink: #20271C;
  --muted: #5C5545; /* darkened from prototype's #6B6452 for AA on --bg/--bg2 */
  --line: #D3C8AE;
  --forest: #2C4A33;
  --forest-deep: #21331E;
  --moss: #5C7048;
  --brass: #A9802F;
  --rust: #9C4A24;
  --on-forest: #EAE1CB;
  /* Text/link green: matches --forest in light, lightened in dark for AA contrast. */
  --link: #2C4A33;
  /* Brass as TEXT (eyebrows, dates): darker than --brass fills for AA. */
  --brass-text: #6E531B;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #141A11;
  --bg2: #1B2216;
  --surface: #1F2818;
  --ink: #E9E2CF;
  --muted: #9EA288;
  --line: #33402A;
  --forest: #4E7047;
  --forest-deep: #0E140A;
  --moss: #7E9862;
  --brass: #CA9B3D;
  --rust: #D98A5F; /* error text; lighter than the prototype's #C4693B for AA on dark surfaces */
  --on-forest: #EAE1CB;
  --link: #7E9862;
  --brass-text: #CA9B3D; /* dark theme's brass already passes AA as text */
}

/* Reset + base element styles. */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Keep anchor targets clear of the sticky topbar. */
[id] { scroll-margin-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--brass); color: var(--on-brass); }

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

/* Author display rules must not defeat the hidden attribute. */
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); }

a { color: var(--link); }

button { font-family: var(--font-sans); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 10px 16px;
  background: var(--forest-deep);
  color: var(--cream);
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* Responsive visibility */
@media (min-width: 980.02px) { .only-mobile { display: none !important; } }
@media (max-width: 980px) { .only-desktop { display: none !important; } }

/* Topographic pattern overlay: apply .topo to a positioned dark-green box. */
.topo { position: relative; overflow: hidden; }
.topo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--topo);
  background-size: 340px;
  opacity: 0.5;
  pointer-events: none;
}
.topo > * { position: relative; }

/* Keyframes */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes kenBurns { from { transform: scale(1.05); } to { transform: scale(1.15); } }

/* ---------- Scroll reveals ----------
   main.js adds .reveal/.reveal-item and observes; nothing here applies
   without html.js, so no-JS visitors see everything immediately. Motion
   language: slow settle, no bounce (the "arriving at camp" easing). */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal .reveal-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  html.js .reveal.in .reveal-item { opacity: 1; transform: none; }
}
@media print {
  .reveal, .reveal-item { opacity: 1 !important; transform: none !important; }
}

/* Page-change transition we fully control (browser View Transitions proved
   inconsistently skipped): main.js intercepts same-origin link clicks, the
   page content dips out, then the arrival cascade plays on the next page.
   The sidebar and topbar hold still, so the frame feels persistent. */
@media (prefers-reduced-motion: no-preference) {
  html.js main { transition: opacity 0.16s ease, transform 0.16s ease; }
  html.page-exit main { opacity: 0; transform: translateY(10px); }
}

/* Shared text/section primitives */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-text);
}
.eyebrow.on-dark { color: var(--brass-bright); }
.eyebrow-line,
.eyebrow-lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-line::before,
.eyebrow-line::after,
.eyebrow-lead::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h2 {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  margin: 9px 0 0;
  letter-spacing: -0.2px;
}
.h2-sm {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 25px);
  margin: 0;
}

.lead { font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border: none;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }
.btn-brass:hover { box-shadow: 0 10px 22px -10px rgb(0 0 0 / 0.35); }
.btn-forest:hover { box-shadow: 0 10px 22px -10px rgb(0 0 0 / 0.35); }
.btn-brass { background: var(--brass); color: var(--on-brass); }
.btn-forest { background: var(--band); color: var(--on-forest); }
.btn-ghost-light {
  background: rgb(var(--cream-rgb) / 0.1);
  color: var(--cream);
  border: 1px solid rgb(var(--cream-rgb) / 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgb(var(--cream-rgb) / 0.2); transform: none; }
.btn-ghost-forest {
  background: transparent;
  color: var(--on-forest);
  border: 1px solid rgb(var(--onforest-rgb) / 0.5);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--link);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 0;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Site chrome: sidebar, shell, topbar, footer. */

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 50;
  background: var(--forest-deep);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0, 0, 0, 0.28);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--topo);
  background-size: 300px;
  opacity: 0.55;
  pointer-events: none;
}
.sidebar > * { position: relative; }

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgb(var(--onforest-rgb) / 0.14);
  text-align: center;
  text-decoration: none;
}
.sidebar-brand img { height: 62px; width: auto; display: block; }
.sidebar-brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--cream-strong);
  line-height: 1.14;
}
.sidebar-brand-tag {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgb(var(--onforest-rgb) / 0.7);
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgb(var(--onforest-rgb) / 0.16); border-radius: 6px; }

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-left: 3px solid transparent;
  border-radius: 0 7px 7px 0;
  color: rgb(var(--onforest-rgb) / 0.8);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.side-link:hover { background: rgb(var(--onforest-rgb) / 0.08); }
.side-link.is-active {
  background: rgba(169, 128, 47, 0.16);
  border-left-color: var(--brass);
  color: var(--cream-strong);
  font-weight: 700;
}
.side-link svg { flex: none; }

.side-events-row { display: flex; align-items: stretch; }
.side-events-row .side-link { flex: 1; }
.side-caret {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 13px;
  display: grid;
  place-items: center;
  color: rgb(var(--onforest-rgb) / 0.6);
}
.side-caret svg { transition: transform 0.22s ease; }
.side-caret[aria-expanded='false'] svg { transform: rotate(-90deg); }

/* Fold: grid-rows 0fr -> 1fr animates height without measuring it.
   Closed, it must add zero height between Events and Contact: the -2px
   margin cancels the extra nav gap it introduces as a flex child, and the
   sub's own vertical margins only apply when open (margins count toward
   the 0fr track's minimum, so left in place they hold the fold 7px tall). */
.side-fold {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: -2px;
  transition: grid-template-rows 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    margin 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.side-fold.open { grid-template-rows: 1fr; margin-top: 0; }
.side-fold > .side-sub {
  overflow: hidden;
  min-height: 0;
  visibility: hidden;
  margin-top: 0;
  margin-bottom: 0;
  transition: visibility 0.28s, margin 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.side-fold.open > .side-sub { visibility: visible; margin-top: 2px; margin-bottom: 5px; }

.side-sub {
  margin: 2px 0 5px 27px;
  padding-left: 12px;
  border-left: 1px solid rgb(var(--onforest-rgb) / 0.18);
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: fadeIn 0.22s ease both;
}
.side-sub-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 6px;
  color: rgb(var(--onforest-rgb) / 0.66);
  font-weight: 500;
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.side-sub-link:hover { background: rgb(var(--onforest-rgb) / 0.08); }
.side-sub-link.is-active {
  background: rgba(169, 128, 47, 0.14);
  color: var(--brass-bright);
  font-weight: 700;
}
.side-sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  opacity: 0.75;
}

.sidebar-foot {
  padding: 13px;
  border-top: 1px solid rgb(var(--onforest-rgb) / 0.14);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.side-next {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgb(var(--onforest-rgb) / 0.06);
  border: 1px solid rgb(var(--onforest-rgb) / 0.15);
  border-radius: 9px;
  padding: 9px 10px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.side-next:hover { background: rgb(var(--onforest-rgb) / 0.11); }
.side-next-thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  flex: none;
  background-color: var(--forest-deep);
  background-size: cover;
  background-position: center;
}
.side-next-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.side-next-eyebrow {
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 700;
}
.side-next-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--cream-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-cta { width: 100%; padding: 11px; font-size: 13px; }
.side-social { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.social-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgb(var(--onforest-rgb) / 0.2);
  display: grid;
  place-items: center;
  color: var(--on-forest);
}
.social-icon-btn.lg {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

/* ---------- Shell & topbar ---------- */
.shell {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }
main > * { width: 100%; }
/* Vertically center short pages (404) in the leftover space. */
.page-center { margin-top: auto; margin-bottom: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  background: var(--bg); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 clamp(16px, 4vw, 32px);
}

.burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.burger-bar {
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: rgb(var(--onforest-rgb) / 0.85);
}
.burger-bar-brass { background: var(--brass); }

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.topbar-brand img { height: 32px; width: auto; display: block; }
.topbar-brand span {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}

.crumbs { display: flex; align-items: center; gap: 9px; }
.crumb {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.crumb:hover { color: var(--ink); }
.crumb.is-current { font-weight: 700; color: var(--ink); }
.crumb-sep { color: var(--muted); font-size: 12px; }

.theme-btn {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.4s ease;
}
.theme-btn:hover { transform: rotate(18deg); }
.theme-btn span { display: none; }
/* Block, not inline: inline svg reserves baseline space below itself,
   floating the icon above the button's true center. */
.theme-btn span svg { display: block; }
html[data-theme='light'] .theme-icon-light { display: block; }
html[data-theme='dark'] .theme-icon-dark { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-deep); color: var(--on-forest); }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--pad-x) 26px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr 1.5fr;
  gap: 34px;
}
.footer-grid img { height: 54px; width: auto; display: block; }
.footer-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  margin: 13px 0 8px;
}
.footer-blurb {
  font-size: 13px;
  line-height: 1.6;
  color: rgb(var(--onforest-rgb) / 0.72);
  margin: 0 0 14px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 9px; }
.footer-head {
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-bright);
  margin-bottom: 13px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-links a {
  color: rgb(var(--onforest-rgb) / 0.8);
  font-size: 13.5px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--cream-strong); }
.footer-contact {
  font-size: 13px;
  line-height: 1.7;
  color: rgb(var(--onforest-rgb) / 0.8);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact a { color: var(--on-forest); text-decoration: none; word-break: break-word; }
.footer-meet { color: rgb(var(--onforest-rgb) / 0.6); font-size: 12px; margin-top: 3px; }
.footer-legal { border-top: 1px solid rgb(var(--onforest-rgb) / 0.15); }
.footer-legal-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 12px;
  color: rgb(var(--onforest-rgb) / 0.6);
}

/* ---------- Mobile ---------- */
.mob-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(12, 16, 9, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease both;
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  }
  .shell { margin-left: 0; }
  .topbar {
    background: var(--forest-deep);
    border-bottom-color: rgba(0, 0, 0, 0.25);
  }
  .topbar-brand span { color: var(--cream-strong); }
  .theme-btn {
    background: rgb(var(--onforest-rgb) / 0.08);
    border-color: rgb(var(--onforest-rgb) / 0.28);
    color: var(--on-forest);
  }
  /* On the dark mobile topbar both theme icons read light. */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  /* Compact phone footer: slim brand row, Explore + Events side by side,
     contact full width below. The blurb is dropped here — the legal bar
     still carries the 501(c)(3) line. */
  .footer-grid {
    /* Two equal halves, mirror-symmetric around the page center. */
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
    padding-top: 26px;
    padding-bottom: 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgb(var(--onforest-rgb) / 0.15);
  }
  .footer-brand img { height: 38px; }
  .footer-brand .footer-name { margin: 0; font-size: 15px; flex: 1; min-width: 0; }
  .footer-brand .footer-blurb { display: none; }
  /* Centered Explore | Contact columns. Events links, the meetings line,
     and the email hide on phones (all live elsewhere: Events page,
     sidebar fold, Contact page) so the columns stay short and balanced. */
  .footer-events { display: none; }
  .footer-meet { display: none; }
  .fc-email { display: none; }
  .footer-head { margin-bottom: 9px; text-align: center; }
  .footer-links { gap: 7px; align-items: center; }
  .footer-contact { align-items: center; text-align: center; }
  .footer-legal-inner {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    /* Bottom clearance keeps the fixed back-to-top caret (44px + 16px
       inset) off the legal text when scrolled to the very end. */
    padding: 12px var(--pad-x) 64px;
    text-align: center;
  }
}

/* ---------- Back to top (mobile only) ---------- */
.to-top {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40; /* above content, below the mobile-nav overlay (45) */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgb(var(--onforest-rgb) / 0.3);
  background: var(--forest-deep);
  color: var(--cream-strong);
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.to-top svg { transform: rotate(180deg); display: block; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 980px) {
  /* JS-gated: the button is pure enhancement and never renders without it. */
  html.js .to-top { display: grid; place-items: center; }
}

/* Page sections & components (shared across pages). */

/* ---------- Hero (home + about + event detail) ---------- */
.hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-color: #12180E;
  background-size: cover;
  background-position: center;
}
.hero-media.kenburns { animation: kenBurns 20s ease-out both; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 30, 18, 0.9) 0%, rgba(20, 30, 18, 0.5) 55%, rgba(20, 30, 18, 0.25) 100%);
}
.hero-scrim.vertical {
  background: linear-gradient(180deg, rgba(20, 30, 18, 0.35), rgba(20, 30, 18, 0.82));
}
.hero-content {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  max-width: 640px;
  color: var(--cream);
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(30px, 4.3vw, 50px);
  line-height: 1.02;
  margin: 14px 0 0;
  letter-spacing: -0.4px;
  color: inherit;
}
.hero-sub {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
  margin: 16px 0 0;
  color: rgb(var(--cream-rgb) / 0.9);
  max-width: 520px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn.block { width: 100%; text-transform: none; letter-spacing: 0; }
.btn-row.center { justify-content: center; }
.hero.short { min-height: 240px; align-items: flex-end; }
.hero.short .hero-content { padding: clamp(22px, 3vw, 36px); }
.hero.short h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.03; margin-top: 8px; }
.hero.event { min-height: 320px; align-items: flex-end; }
.hero.event .hero-content { width: 100%; max-width: none; padding: clamp(20px, 3vw, 32px); }
.hero.event h1 { font-size: clamp(30px, 4.6vw, 52px); }
.hero.event .hero-sub { max-width: 580px; margin-top: 14px; }

.section-head { text-align: center; max-width: 600px; margin: 0 auto 34px; }
.section-head .lead { font-size: 15px; margin: 12px 0 0; }

/* ---------- Page intro (events hub / contact) ---------- */
.page-intro { max-width: 700px; margin: 0 auto; text-align: center; }
.page-intro h1 {
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 50px);
  margin: 9px 0 0;
  line-height: 1.03;
}
.page-intro .lead { margin: 16px 0 0; }

/* ---------- Stats band ---------- */
.stats {
  background: var(--band);
  border-radius: 12px;
  padding: 22px clamp(18px, 3vw, 30px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1;
  color: var(--brass-bright);
}
.stat-label { margin-top: 7px; font-size: 12px; letter-spacing: 0.3px; color: rgb(var(--onforest-rgb) / 0.85); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.card.lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -24px rgba(0, 0, 0, 0.35);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--forest) 12%, var(--surface));
  color: var(--forest);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  margin-bottom: 15px;
}
.card h3 { font-weight: 700; font-size: 19px; margin: 0 0 7px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.card.sm .card-icon { width: 46px; height: 46px; margin-bottom: 14px; }
.card.sm h3 { font-size: 18px; }
.card.sm p { font-size: 13.5px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- Event cards (home grid) ---------- */
.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.event-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.4);
}
.event-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.event-card-img {
  position: absolute;
  inset: 0;
  background-color: var(--bg2);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.event-card:hover .event-card-img { transform: scale(1.06); }
.season-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  background: var(--brass);
  color: var(--on-brass);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 5px;
  text-transform: uppercase;
}
.season-badge.right { top: 16px; left: auto; right: 16px; }
.event-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.event-card-date { font-size: 11.5px; color: var(--brass-text); font-weight: 700; letter-spacing: 0.4px; }
.event-card-body h3 { font-weight: 700; font-size: 18px; margin: 5px 0 7px; }
.event-card-body p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.event-card-more { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--link); }

/* ---------- Event rows (events hub) ---------- */
.event-row {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.event-row:hover {
  box-shadow: 0 26px 52px -30px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}
.event-row-media { position: relative; overflow: hidden; min-height: 220px; }
.event-row:hover .event-card-img { transform: scale(1.05); }
.event-row-media .season-badge { top: 13px; left: 13px; font-size: 10.5px; padding: 5px 11px; }
.event-row-body { padding: 28px 30px; display: flex; flex-direction: column; }
.event-row-meta { font-size: 12px; color: var(--brass-text); font-weight: 700; letter-spacing: 0.5px; }
.event-row-body h2 {
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 29px);
  margin: 7px 0 10px;
}
.event-row-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 540px;
}
.event-row-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--link);
}

/* ---------- Gallery grids ---------- */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 12px;
}
.gallery-tile {
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 9px;
  background: var(--bg2);
  transition: filter 0.2s ease;
}
.gallery-tile:hover { filter: brightness(1.05); }
.gallery-tile:active img { transform: scale(1.02); transition-duration: 0.1s; }
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile.big { grid-column: span 2; grid-row: span 2; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.gallery-grid .gallery-tile { aspect-ratio: 4 / 3; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: 12px;
  background: var(--band);
  color: var(--on-forest);
  padding: clamp(26px, 4vw, 46px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.cta-banner h2 {
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px);
  margin: 0 0 12px;
  line-height: 1.1;
  color: inherit;
}
.cta-banner p { font-size: 15.5px; line-height: 1.6; color: rgb(var(--onforest-rgb) / 0.88); margin: 0; }
.cta-banner-txt { max-width: 540px; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-banner.center { display: block; text-align: center; }
.cta-banner.center p { max-width: 500px; margin: 0 auto 22px; }

/* ---------- Sponsors ---------- */
.sponsors-title {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 22px;
}
.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}
.sponsor-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.sponsor-mark {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--moss) 20%, var(--surface));
  color: var(--forest);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--line);
}
.sponsor-name { font-weight: 600; font-size: 13px; color: var(--ink); text-align: center; line-height: 1.3; }

/* ---------- Schedule / rules / FAQ (event detail) ---------- */
.schedule {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.schedule-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-time { font-family: var(--font-serif); font-weight: 700; color: var(--link); font-size: 14.5px; }
.schedule-label { font-size: 14px; color: var(--ink); line-height: 1.5; }

.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.check-list .check-dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--moss) 22%, var(--surface));
  color: var(--forest);
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.faq-list { margin-top: 16px; display: grid; gap: 9px; }
details.faq {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  overflow: hidden;
}
details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
.faq-sign {
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--bg2);
  color: var(--link);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
}
.faq-sign::before { content: '+'; }
details.faq[open] .faq-sign::before { content: '–'; }
/* During the animated close [open] stays on until the height settles;
   the sign still flips back at the moment of the click. */
details.faq.closing .faq-sign::before { content: '+'; }
.faq-a {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  animation: faqOpen 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Event-detail content rhythm: every section heading after the first */
.detail-grid .h2-sm { margin-top: 40px; }
.detail-grid .h2-sm:first-child { margin-top: 0; }

/* ---------- Detail sidebar (event pages) ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: start;
}
.detail-aside {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside-card { padding: 22px; }
.aside-card h3 { font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.aside-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0 0 15px; }
.aside-card .btn { padding: 12px; font-size: 14px; }
.aside-sponsor { display: flex; align-items: center; gap: 10px; }
.sponsor-mark.sm {
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 7px;
  font-size: 11px;
}
.aside-sponsor-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.aside-sponsors-list { display: flex; flex-direction: column; gap: 9px; }
.btn-quiet {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background: var(--bg2);
  color: var(--link);
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}

/* ---------- Event hero meta ---------- */
.event-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; }
.event-meta span { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.event-meta svg { color: var(--brass-bright); }
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgb(var(--cream-rgb) / 0.12);
  color: var(--cream);
  border: 1px solid rgb(var(--cream-rgb) / 0.4);
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  margin-bottom: 20px;
}
.back-pill:hover { background: rgb(var(--cream-rgb) / 0.22); }
.hero-badge {
  display: inline-block;
  background: var(--brass);
  color: var(--on-brass);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 5px;
  text-transform: uppercase;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 9, 0.93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease both;
}
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  color: var(--cream);
}
.lightbox-meta { display: flex; flex-direction: column; }
.lightbox-title { font-family: var(--font-serif); font-weight: 600; font-size: 16px; }
.lightbox-counter { font-size: 12.5px; color: rgb(var(--cream-rgb) / 0.6); }
.lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgb(var(--cream-rgb) / 0.3);
  background: rgb(var(--cream-rgb) / 0.08);
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px 22px;
  min-height: 0;
}
.lightbox-img {
  max-width: min(1100px, 94vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: scaleIn 0.22s ease both;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgb(var(--cream-rgb) / 0.35);
  background: rgba(18, 22, 14, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--cream);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
}
.lightbox-nav:hover { background: rgba(18, 22, 14, 0.82); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------- Forms ---------- */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
}
.form-input:focus-visible { outline: 2px solid var(--brass); outline-offset: 0; }
.form-input[aria-invalid='true'] { border-color: var(--rust); }
textarea.form-input { resize: vertical; min-height: 130px; }
.form-error { margin-top: 7px; font-size: 12.5px; color: var(--rust); font-weight: 600; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ---------- Officers (about) ---------- */
.officers {
  /* Three per row at every size (9 members → 3×3); centered flex keeps a
     short last row balanced as membership changes. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 22px;
  max-width: 524px; /* 3 × 160px tiles + 2 × 22px gaps */
  margin: 0 auto;
}
/* min-width:0 lets the 130px avatar shrink with its column on narrow screens */
.officer { flex: 0 0 min(160px, calc((100% - 44px) / 3)); min-width: 0; }
@media (max-width: 560px) {
  .officers { gap: 20px 12px; }
  .officer { flex-basis: calc((100% - 24px) / 3); }
  .officer-name { font-size: 13px; }
  .officer-title { font-size: 10.5px; }
  .officer-badge { width: 24px; height: 24px; }
}
.officer { text-align: center; }
.officer-avatar {
  position: relative;
  width: 130px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 14px;
}
.officer-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.25s ease;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--moss) 26%, var(--surface)), var(--bg2));
  border: 3px solid var(--surface);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--moss);
}
.officer-avatar-circle svg { opacity: 0.45; }
.officer-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.officer:hover .officer-avatar-circle {
  transform: scale(1.06);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
}
.officer-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--on-brass);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--bg);
}
.officer-name { font-family: var(--font-serif); font-weight: 600; font-size: 16px; color: var(--ink); }
.officer-title { font-size: 12.5px; color: var(--brass); font-weight: 700; letter-spacing: 0.3px; margin-top: 2px; }

/* ---------- Responsive ----------
   Desktop > 980px · tablet 561-980px (2-col grids, narrower aside) ·
   phone ≤ 560px (single column). */
@media (max-width: 980px) {
  .event-row { grid-template-columns: 1fr; }
  .gallery-teaser { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sponsors { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sponsor-chip { padding: 14px 8px; }
}
@media (max-width: 980px) and (min-width: 561px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* An odd last card in a 2-col grid spans the full row (no half-width orphan). */
  .grid-3 > :nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) and (min-width: 701px) {
  /* Keep the event aside beside the content only where it genuinely fits. */
  .detail-grid { grid-template-columns: 1fr 280px; gap: 28px; }
}
@media (max-width: 700px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
}

/* Page-specific sections. */

/* About */
.band { background: var(--bg2); }
.about-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.story-p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 16px 0 0; }
.story-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-imgs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.story-imgs img:first-child { margin-top: 22px; }

/* Contact — shared panel base for the section cards */
.membership-card, .contact-form-card, .reach-card, .meeting-card, .news-card, .aside-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.membership-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: center;
}
.membership-card {
  position: relative;
  border-color: var(--forest);
  padding: 28px 26px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.4);
}
.membership-card h3 { font-weight: 700; font-size: 22px; margin: 0; }
.membership-price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; }
.membership-price strong {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--ink);
}
.membership-price span { font-size: 13.5px; color: var(--muted); }
.membership-rule { height: 1px; background: var(--line); margin: 18px 0; }
.membership-benefits { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; }
.membership-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.membership-benefits svg { flex: none; color: var(--forest); margin-top: 2px; }
.membership-card .btn { padding: 13px; font-size: 14px; }

.where-item { display: flex; gap: 12px; align-items: center; }
.where-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  background: color-mix(in srgb, var(--forest) 12%, var(--surface));
  color: var(--forest);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.where-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.where-sub { font-size: 12.5px; color: var(--muted); }
.where-note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.where-note a { color: var(--link); font-weight: 700; text-decoration: none; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  /* Columns stretch to equal height; the message field absorbs the surplus. */
  align-items: stretch;
}
.contact-form-card {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
}
.contact-form-card form { display: flex; flex-direction: column; flex: 1; }
.form-message { margin-top: 15px; flex: 1; display: flex; flex-direction: column; }
.form-message textarea { flex: 1; }
.contact-form-card .form-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-form-card h3 { font-weight: 700; font-size: 21px; margin: 0 0 20px; }
.contact-aside { display: flex; flex-direction: column; gap: 15px; }

.reach-card { padding: 24px; }
.reach-card h3 { font-weight: 700; font-size: 18px; margin: 0 0 15px; }
.reach-rows { display: flex; flex-direction: column; gap: 13px; font-size: 14px; color: var(--ink); }
.reach-rows > div { display: flex; gap: 12px; }
.reach-rows svg { flex: none; color: var(--forest); margin-top: 1px; }
.reach-rows a { color: var(--ink); text-decoration: none; word-break: break-word; }
.reach-rows span { line-height: 1.5; }

.meeting-card { overflow: hidden; }
.meeting-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--band);
  color: var(--on-forest);
}
.meeting-day {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgb(var(--onforest-rgb) / 0.14);
  border: 1px solid rgb(var(--onforest-rgb) / 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
}
.meeting-day-eyebrow {
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-bright);
}
.meeting-day-name { font-family: var(--font-serif); font-weight: 700; font-size: 19px; line-height: 1; }
.meeting-eyebrow {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-bright);
}
.meeting-title { font-family: var(--font-serif); font-weight: 700; font-size: 18px; margin-top: 3px; }
.meeting-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 13px; }
.meeting-where {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.meeting-where svg { flex: none; color: var(--forest); margin-top: 1px; }
.meeting-where .sub { color: var(--muted); }
.welcome-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--moss) 20%, var(--surface));
  color: var(--link);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
}

.news-card {
  background: var(--band);
  color: var(--on-forest);
  padding: 24px;
}
.news-card h3 { font-weight: 700; font-size: 18px; margin: 0 0 8px; color: inherit; }
.news-card p { font-size: 13.5px; line-height: 1.6; color: rgb(var(--onforest-rgb) / 0.86); margin: 0 0 15px; }
.news-form { display: flex; gap: 8px; }
.news-input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgb(var(--onforest-rgb) / 0.3);
  border-radius: 7px;
  background: rgb(var(--onforest-rgb) / 0.08);
  color: var(--on-forest);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
}
.news-input::placeholder { color: rgb(var(--onforest-rgb) / 0.75); }
.news-input[aria-invalid='true'] { border-color: #F2C94C; }
.news-input:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 0; }
.news-btn {
  flex: none;
  padding: 11px 17px;
  background: var(--brass);
  color: var(--on-brass);
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.news-btn:hover { transform: translateY(-1px); }
.news-btn:active { transform: translateY(0) scale(0.97); }
.news-form .news-msg { flex-basis: 100%; margin: 7px 0 0; }
.news-msg { margin-top: 8px; font-size: 12.5px; color: #F2C94C; overflow-wrap: anywhere; }

/* No-JS feedback: the form endpoints redirect back with a fragment that
   :target-reveals one of these. main.js removes them when JS is running. */
.nojs-flash { display: none; font-size: 14px; font-weight: 600; margin: 0 0 14px; overflow-wrap: anywhere; }
.nojs-flash:target { display: block; }
.nojs-flash.ok { color: var(--link); }
.nojs-flash.err { color: var(--rust); }
.news-card .nojs-flash.ok { color: var(--on-forest); }
.news-card .nojs-flash.err { color: #F2C94C; }
.news-done { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }


/* Turnstile widgets: centered rectangle in both forms */
.cf-turnstile {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}
.news-form { flex-wrap: wrap; }
.news-form .cf-turnstile { flex-basis: 100%; margin-top: 7px; }

/* Honeypot field: off-screen (not display:none, which naive bots skip). */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form success state */
.form-success { text-align: center; padding: 38px 10px; animation: scaleIn 0.3s ease both; }
.form-success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--band);
  color: var(--on-forest);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.form-success h3 { font-weight: 700; font-size: 23px; margin: 0 0 8px; }
.form-success p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

@media (max-width: 980px) {
  .about-story, .membership-grid, .contact-grid { grid-template-columns: 1fr; }
}

/* Dark-theme contrast overrides (AA): tinted tiles darken while their
   foreground tokens lighten, so these two need explicit dark values. */
html[data-theme='dark'] .welcome-pill { color: #A9C08F; }
html[data-theme='dark'] .sponsor-mark { color: var(--on-forest); }
