/* ============================================================
   HIGHR — Site Stylesheet
   Load after tokens.css. Shared by the home page and the
   generated station pages.
   ============================================================ */

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--charcoal);
  background: var(--limestone);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY UTILITIES ──────────────────────────────────── */
.heading {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: var(--text-tracking-loose);
  line-height: var(--leading-tight);
  font-weight: 600;
}

.label-text {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
}

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
  transition: background var(--duration-mid) var(--ease-in-out),
              box-shadow var(--duration-mid) var(--ease-in-out);
}

.nav--solid {
  background: var(--forest-floor);
  box-shadow: 0 2px 20px rgba(30,61,7,.35);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  z-index: 1;
}

.nav-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--duration-fast);
}
.nav-brand:hover .nav-logo { opacity: 0.8; }

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--text-tracking-loose);
  color: white;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--duration-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--golden-slope);
  transition: width var(--duration-mid) var(--ease-out-expo);
}
.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; display: flex; align-items: center; }

.nav-dropdown-menu {
  /* Wide panel under the nav: stations run left-to-right and wrap into
     as many rows as the screen width needs */
  position: fixed;
  top: calc(var(--nav-height) - 4px);
  left: 50%;
  width: min(1100px, calc(100vw - 2 * var(--sp-6)));
  max-height: calc(100vh - var(--nav-height) - var(--sp-8));
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 2px var(--sp-2);
  padding: var(--sp-4);
  background: var(--forest-floor);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--duration-mid), transform var(--duration-mid) var(--ease-out-expo);
}
/* invisible bridge so the panel stays open while the mouse travels down from "Stations" */
.nav-dropdown-menu::before {
  content: '';
  position: fixed;
  top: calc(var(--nav-height) - 40px);
  left: 0; right: 0;
  height: 40px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.nav-dropdown-item:hover {
  background: var(--deep-eucalypt);
  color: var(--golden-slope);
}
.nav-dropdown-item[aria-current="page"] { color: var(--golden-slope); }

.dropdown-arrow {
  font-size: 0.7em;
  vertical-align: middle;
  display: inline-block;
  transition: transform var(--duration-mid);
}
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.is-open .dropdown-arrow { transform: rotate(180deg); }

/* Mobile menu button */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}
.nav-menu-btn span {
  display: block;
  width: 24px; height: 1.5px;
  background: white;
  transition: transform var(--duration-mid), opacity var(--duration-mid);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--forest-floor);
    justify-content: center;
    align-items: center;
    gap: var(--sp-8);
    z-index: var(--z-overlay);
  }
  .nav-links.nav-open .nav-link { font-size: var(--text-lg); }
  /* long station list: start under the nav bar and scroll, rather than squashing */
  .nav-links.nav-open {
    justify-content: flex-start;
    overflow-y: auto;
    padding: calc(var(--nav-height) + var(--sp-8)) 0 var(--sp-12);
  }
  .nav-links.nav-open > * { flex-shrink: 0; }

  /* keep the menu button (now an ×) above the open menu so it can be closed */
  .nav-menu-btn { position: relative; z-index: calc(var(--z-overlay) + 1); }
  .nav-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-dropdown { flex-direction: column; gap: var(--sp-4); }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: calc(100vw - 2 * var(--sp-6));
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    opacity: 1;
    pointer-events: all;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-item { white-space: normal; overflow: visible; line-height: 1.4; }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu { transform: none; }
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  transition: transform 8s ease;
  will-change: transform;
}
.hero-bg-img.loaded { transform: scale(1); }
@media (max-width: 768px) {
  .hero-bg-img { object-position: left 40%; transform-origin: left center; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* true colours (just a light shade behind the nav), fading into the map section's green at the bottom,
     the same as the station pages */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,0) 14%,
    rgba(30,61,7,0) 38%,
    rgba(30,61,7,.35) 60%,
    rgba(30,61,7,.75) 82%,
    var(--forest-floor) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  animation: heroReveal 1.4s var(--ease-out-expo) 0.3s both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  height: clamp(80px, 12vw, 140px);
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0,0,0,.4));
  margin-bottom: var(--sp-2);
}

.hero-rule {
  width: clamp(120px, 20vw, 200px);
  height: 1px;
  background: rgba(255,255,255,0.6);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
  margin-top: var(--sp-1);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 2s both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-scroll-indicator svg {
  width: 20px; height: 30px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.hero-scroll-indicator span {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}


/* ── SECTION LABEL ─────────────────────────────────────────── */
.section-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--worn-rock);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.section-label::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--autumn-bark);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--text-tracking-wide);
  text-transform: uppercase;
  color: var(--forest-floor);
  line-height: var(--leading-tight);
}
.section-heading em {
  font-style: normal;
  color: var(--autumn-bark);
}

/* ── MAP SECTION ────────────────────────────────────────────── */
.map-section {
  background: var(--forest-floor);
  position: relative;
}

.map-header {
  padding: var(--sp-16) clamp(var(--sp-8), 6vw, var(--sp-48));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.map-header__left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.map-header .section-label { color: var(--silver-wattle); }
.map-header .section-label::before { background: var(--golden-slope); }

.map-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--text-tracking-wide);
  text-transform: uppercase;
  color: white;
}

.map-subtext {
  font-size: var(--text-sm);
  color: var(--silver-wattle);
  max-width: 40ch;
}

/* Legend floats over the top-right corner of the home map */
.map-wrap { position: relative; }
.map-legend {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  background: rgba(30,61,7,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  pointer-events: none;   /* don't block dragging the map underneath */
}
.map-legend__toggle {
  position: absolute;
  top: 6px; right: 8px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: var(--silver-wattle);
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  transition: color var(--duration-fast), transform var(--duration-mid);
}
.map-legend__toggle:hover { color: var(--golden-slope); }
.map-legend { padding-right: calc(var(--sp-6) + 18px); }
.map-legend.is-collapsed .legend-item { display: none; }
.map-legend.is-collapsed .map-legend__title { margin-bottom: 0; }
.map-legend.is-collapsed .map-legend__toggle { transform: rotate(45deg); }   /* × becomes + */
.map-legend__title {
  margin-bottom: 2px;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--golden-slope);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-wattle);
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot--visited   { background: var(--golden-slope); }
.legend-dot--unvisited { background: var(--sage-mist); border: 1.5px solid var(--silver-wattle); }

/* ── MAP CONTROLS BAR ──────────────────────────────────────── */
.map-controls {
  display: flex;
  align-items: stretch;
  gap: clamp(var(--sp-4), 3vw, var(--sp-8));
  padding: 0 clamp(var(--sp-8), 6vw, var(--sp-48));
  background: var(--forest-floor);
  border-top: 1px solid rgba(232,201,122,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.3);
  min-height: 62px;
  position: relative;
  z-index: 800;
}

.map-ctrl-sep {
  width: 1px;
  background: rgba(255,255,255,0.14);
  margin: var(--sp-4) var(--sp-5);
  flex-shrink: 0;
}

.map-ctrl-group {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
}

.map-ctrl-label {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200,217,160,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

.map-ctrl-filters {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

/* Search */
.map-search {
  position: relative;
  flex: 1 1 200px;
  max-width: 340px;
  align-self: center;
}

.map-search__icon {
  position: absolute;
  left: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}

.map-search__input {
  width: 100%;
  padding: 8px var(--sp-3) 8px calc(var(--sp-3) + 22px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  color: var(--silver-wattle);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-in-out),
              background var(--duration-fast) var(--ease-in-out);
}

.map-search__input::placeholder { color: rgba(200,217,160,0.3); }

.map-search__input:focus {
  border-color: rgba(232,201,122,0.35);
  background: rgba(255,255,255,0.06);
}

.map-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--charcoal);
  border: 1px solid rgba(232,201,122,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: var(--z-overlay);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.3);
}

.search-result-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 9px var(--sp-4);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.search-result-item + .search-result-item {
  border-top: 1px solid rgba(200,217,160,0.06);
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: rgba(232,201,122,0.08);
  outline: none;
}

.search-result-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  color: var(--silver-wattle);
  text-transform: uppercase;
}

.search-result-item:hover .search-result-name,
.search-result-item:focus-visible .search-result-name {
  color: var(--golden-slope);
}

.search-result-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--trig-stone);
  margin-top: 2px;
}

/* Layer switcher */
.map-layers {
  display: flex;
  gap: var(--sp-2);
}

.map-layer-btn {
  padding: 7px 14px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  color: rgba(200,217,160,0.7);
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast),
              border-color var(--duration-fast);
}

.map-layer-btn[aria-pressed="true"] {
  background: var(--golden-slope);
  border-color: var(--golden-slope);
  color: var(--forest-floor);
}

.map-layer-btn:hover:not([aria-pressed="true"]) {
  background: rgba(255,255,255,0.14);
  color: white;
  border-color: rgba(255,255,255,0.28);
}

/* ── FILTER DROPDOWNS ──────────────────────────────────────── */
.filter-dropdown {
  position: relative;
}

.filter-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  color: rgba(200,217,160,0.85);
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-fast),
              color var(--duration-fast),
              background var(--duration-fast);
}

.filter-dropdown__trigger:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  color: white;
}

.filter-dropdown.is-open .filter-dropdown__trigger {
  background: var(--golden-slope);
  border-color: var(--golden-slope);
  color: var(--forest-floor);
}

.filter-dropdown.is-open .dropdown-arrow { transform: rotate(180deg); }

.filter-dropdown__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--golden-slope);
  color: var(--forest-floor);
  font-size: 9px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
}

.filter-dropdown__panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 185px;
  background: #132A04;
  border: 1px solid rgba(255,255,255,0.14);
  padding: var(--sp-2) 0;
  z-index: 850;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.4);
}

.filter-dropdown.is-open .filter-dropdown__panel {
  display: block;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--duration-fast), color var(--duration-fast);
  user-select: none;
}

.filter-check:last-child { border-bottom: none; }
.filter-check:hover { background: rgba(255,255,255,0.06); color: var(--golden-slope); }
.filter-check:has(input:checked) { color: rgba(255,255,255,0.92); }

.filter-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.filter-check input[type="checkbox"]:checked {
  background: var(--golden-slope);
  border-color: var(--golden-slope);
}

.filter-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 2px;
  width: 5px;
  height: 7px;
  border: 1.5px solid var(--forest-floor);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .map-controls { flex-wrap: wrap; min-height: auto; padding: var(--sp-3) clamp(var(--sp-4), 4vw, var(--sp-8)); gap: var(--sp-3); align-items: center; }
  .map-ctrl-sep { display: none; }
  .map-ctrl-label { display: none; }
  .map-ctrl-group { padding: 0; }
  .map-search { max-width: 100%; flex: 1 1 100%; }
  .map-ctrl-filters { flex-wrap: wrap; }
}

#trig-map {
  height: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  background: var(--forest-floor) !important;
  color: white !important;
  border-radius: 0 !important;
  box-shadow: var(--shadow-xl) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
.leaflet-popup-tip { background: var(--forest-floor) !important; }
.leaflet-popup-content { margin: 16px 18px !important; }

.map-popup__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--golden-slope);
  margin-bottom: 6px;
}
.map-popup__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--silver-wattle);
  margin-bottom: 3px;
}
.map-popup__row span:first-child { color: var(--pale-granite); }
.map-popup__note {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.map-popup__note-label {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--golden-slope);
  margin-bottom: 3px;
}
.map-popup__note-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--silver-wattle);
}
.map-popup__link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--golden-slope);
  border-bottom: 1px solid var(--golden-slope);
  padding-bottom: 1px;
}
.map-popup__link:hover { color: white; border-color: white; }
.map-tooltip {
  background: var(--forest-floor);
  color: var(--golden-slope);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  box-shadow: var(--shadow-xl);
  padding: 4px 9px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.map-tooltip.leaflet-tooltip-top::before { border-top-color: var(--forest-floor); }


/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: var(--pale-granite);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;   /* acknowledgement takes the width, socials hug the right */
  gap: var(--sp-12);
  align-items: center;
  padding: var(--sp-8) clamp(var(--sp-6), 4vw, var(--sp-16));
}

.site-footer .section-label { color: var(--silver-wattle); }
.site-footer .section-label::before { background: var(--golden-slope); }

/* Acknowledgement of Country */
.footer-ack-text {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: var(--leading-base);
  color: var(--limestone);
}
.footer-copy {
  margin-top: var(--sp-2);
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--worn-rock);
}

/* Brand + socials */
.footer-side {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: white;
  line-height: 1;
}
.footer-brand-tag {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--trig-stone);
}

.footer-socials {
  list-style: none;
  display: flex;
  gap: var(--sp-2);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--duration-fast);
}
.footer-social__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-full);
  transition: background var(--duration-mid) var(--ease-out-expo),
              border-color var(--duration-mid) var(--ease-out-expo),
              color var(--duration-mid) var(--ease-out-expo);
}
.footer-social__icon svg { width: 18px; height: 18px; }
.footer-social__handle {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: var(--text-tracking-normal);
  text-transform: none;
  color: var(--trig-stone);
}
.footer-social:hover { color: white; }
.footer-social:hover .footer-social__icon {
  background: var(--golden-slope);
  border-color: var(--golden-slope);
  color: var(--ironbark);
}
.footer-social:focus-visible {
  outline: 1px solid var(--golden-slope);
  outline-offset: 4px;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-8);
  padding: var(--sp-6) clamp(var(--sp-8), 6vw, var(--sp-48));
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--worn-rock);
}

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-8); }
}


/* ── UTILITY ─────────────────────────────────────────────────── */
.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;
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--deep-eucalypt); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bush-canopy); }

/* ── SELECTION ───────────────────────────────────────────────── */
::selection { background: var(--golden-slope); color: var(--ironbark); }

/* ════════════════════════════════════════════════════════════
   STATION PAGES (generated by build.py)
   ════════════════════════════════════════════════════════════ */

.station-hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.station-hero-media {
  position: absolute;
  inset: 0;
}

.station-hero-video,
.station-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.station-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,61,7,.2) 0%,
    rgba(30,61,7,.15) 30%,
    rgba(30,61,7,.65) 80%,
    rgba(30,61,7,.9) 100%
  );
}

.station-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(var(--sp-8), 6vw, var(--sp-16)) clamp(var(--sp-8), 6vw, var(--sp-48));
  width: 100%;
  animation: heroReveal 1.2s var(--ease-out-expo) 0.2s both;
}

.station-hero-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--golden-slope);
  margin-bottom: var(--sp-4);
}

.station-hero-name {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: var(--text-tracking-wide);
  text-transform: uppercase;
  color: white;
  line-height: var(--leading-tight);
  margin-bottom: var(--sp-4);
}

.station-hero-reserve {
  font-size: var(--text-md);
  color: var(--silver-wattle);
}

/* Stats bar */
.station-stats {
  background: var(--charcoal);
  padding: 0 clamp(var(--sp-8), 6vw, var(--sp-48));
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--golden-slope);
}

.stat-item {
  flex: 1;
  min-width: 120px;
  padding: var(--sp-6) var(--sp-4);
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  transition: background var(--duration-fast);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.04); }

.stat-item__icon {
  color: var(--golden-slope);
  margin-bottom: var(--sp-1);
  opacity: 0.85;
}
.stat-item__icon svg { width: 18px; height: 18px; }

.stat-item__value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: white;
  line-height: 1;
}

.stat-item__label {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--trig-stone);
}

/* Station content sections */
.station-section {
  padding: var(--section-pad-v) clamp(var(--sp-8), 6vw, var(--sp-48));
  position: relative;
  overflow: hidden;
}

.station-section--limestone { background: var(--limestone); }
.station-section--forest    { background: var(--forest-floor); color: white; }
.station-section--deep      { background: var(--deep-eucalypt); color: white; }
.station-section--charcoal  { background: var(--charcoal); color: white; }
.station-section--golden    { background: var(--golden-slope); }
.station-section--autumn    { background: var(--autumn-bark); }
.station-section--sage      { background: var(--sage-mist); }
.station-section--ironbark  { background: var(--ironbark); color: white; }
.station-section--dusk      { background: var(--pale-dusk); }

.station-section--forest .section-label::before,
.station-section--deep .section-label::before  { background: var(--golden-slope); }
.station-section--forest .section-label,
.station-section--deep .section-label          { color: var(--silver-wattle); }
.station-section--forest .section-heading,
.station-section--deep .section-heading        { color: white; }

.station-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-8), 5vw, var(--sp-24));
  align-items: start;
}

@media (max-width: 800px) {
  .station-content-grid { grid-template-columns: 1fr; }
}

.station-body-text {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  max-width: 60ch;
}
.station-body-text p + p { margin-top: var(--sp-6); }

/* Station photo layouts */
.station-photos {
  display: grid;
  gap: var(--sp-3);
}

.station-photos--duo {
  grid-template-columns: 1fr 1fr;
}
.station-photos--offset {
  grid-template-columns: 3fr 2fr;
}

/* Centred hero */
.station-hero { align-items: center; justify-content: center; }
.station-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--nav-height);
}
.station-hero-gradient {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #1a3506 0%, #2c5f10 45%, #1e3d07 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  position: absolute;
  top: calc(var(--nav-height) + 20px);
  left: clamp(var(--sp-8), 6vw, var(--sp-48));
  z-index: 5;
  transition: color var(--duration-fast);
}
.back-link:hover { color: var(--golden-slope); }
.back-link svg { width: 14px; height: 14px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

.colour-strip {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, var(--forest-floor) 0%, var(--deep-eucalypt) 25%, var(--autumn-bark) 50%, var(--golden-slope) 75%, var(--clear-sky) 100%);
}

.station-section .section-heading { margin: var(--sp-4) 0 var(--sp-8); }
.station-section .station-body-text { color: var(--dark-shale); }

/* Route map */
.station-map-header {
  background: var(--charcoal);
  padding: var(--sp-8) clamp(var(--sp-8), 6vw, var(--sp-48));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.station-map-header .section-label { color: var(--silver-wattle); }
.station-map-header .section-label::before { background: var(--golden-slope); }
.station-map-header .map-layers { flex-wrap: wrap; }

.track-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.track-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-wattle);
}
.track-chip::before {
  content: '';
  width: 18px; height: 3px;
  background: var(--chip-colour, var(--alpenglow));
  border-radius: 2px;
}

/* Gallery */
.station-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--dark-shale);
  cursor: zoom-in;
  padding: 0;
}
.gallery-item img,
.gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-crawl) var(--ease-out-expo);
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.04); }
.gallery-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gallery-item__play svg {
  width: 56px; height: 56px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(20,19,16,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
}
.lightbox.is-open { display: flex; }
.lightbox__media img,
.lightbox__media video {
  max-width: 92vw;
  max-height: 86vh;
  width: auto; height: auto;
  box-shadow: var(--shadow-xl);
}
.lightbox__btn {
  position: absolute;
  color: rgba(255,255,255,.75);
  font-family: var(--font-heading);
  font-size: 28px;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast);
}
.lightbox__btn:hover { color: var(--golden-slope); }
.lightbox__close { top: var(--sp-4); right: var(--sp-4); }
.lightbox__prev  { left: var(--sp-4);  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: var(--sp-4); top: 50%; transform: translateY(-50%); }

/* Simple page header (About etc.) */
.page-hero-simple {
  background: var(--forest-floor);
  padding: calc(var(--nav-height) + var(--sp-16)) clamp(var(--sp-8), 6vw, var(--sp-48)) var(--sp-16);
}
.page-hero-simple h1 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--text-tracking-wide);
  text-transform: uppercase;
  color: white;
}

@media (max-width: 600px) {
  .stat-item { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .back-link { display: none; }
}

#station-map {
  width: 100%;
  height: 560px;
  position: relative;
  z-index: 1;
}

/* Survey record */
.record-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-8);
  font-size: var(--text-sm);
}
.record-list dt {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--worn-rock);
  padding-top: 2px;
}
.record-list dd {
  color: var(--charcoal);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--pale-granite);
}

/* ════════════════════════════════════════════════════════════
   STATION PAGE — light, flowing blog layout
   ════════════════════════════════════════════════════════════ */

.station-page { background: var(--limestone); }

/* Hero video playlist (two stacked videos dissolve into each other) */
.station-hero-playlist {
  position: absolute;
  inset: 0;
  background: var(--forest-floor);
  isolation: isolate;   /* keep the clips' stacking inside, under the green tint and title */
}
.station-hero-playlist .station-hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s linear;   /* dissolve between clips (matches FADE in station.js) */
}
.station-hero-playlist .station-hero-video.is-active { opacity: 1; }

/* Hero: green hue that deepens towards the bottom, then the facts band
   continues in the same colour just below the fold */
.station-page .station-hero { height: 100svh; }
.station-page .station-hero-overlay {
  /* true colours up top (just a light shade behind the nav), green builds towards the bottom */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,0) 14%,
    rgba(30,61,7,0) 38%,
    rgba(30,61,7,.35) 60%,
    rgba(30,61,7,.75) 82%,
    var(--forest-floor) 100%
  );
}
.station-hero-logo {
  height: clamp(64px, 9vw, 110px);
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--sp-2);
}
.station-page .station-hero-name {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.station-hero-logo { filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0,0,0,.4)); }
.station-hero-reserve {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-wattle);
}

/* Key facts: same green as the bottom of the hero, soft rounded finish */
.station-facts-wrap {
  background: var(--forest-floor);
  padding: var(--sp-4) clamp(var(--sp-4), 4vw, var(--sp-16)) var(--sp-12);
}
.station-facts {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-4) var(--sp-6);
  border-right: 1px solid rgba(255,255,255,.1);
}
.fact:last-child { border-right: none; }
.fact__label {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--golden-slope);
}
.fact__value {
  font-size: var(--text-md);
  font-weight: 500;
  color: white;
  line-height: var(--leading-snug);
  white-space: pre-line;
}
.fact__sub { font-size: 12px; color: var(--silver-wattle); line-height: 1.4; }

/* Section rhythm: one continuous light page */
.station-page .station-section {
  background: transparent;
  padding: var(--sp-16) clamp(var(--sp-6), 6vw, var(--sp-48));
}
.station-page .section-label { color: var(--worn-rock); }
.station-page .section-heading {
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--dark-shale);
  margin: var(--sp-3) 0 var(--sp-8);
}

/* Blog column + text */
.blog-col { max-width: 720px; margin: 0 auto; }
.blog-text {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--dark-shale);
}
.blog-text p + p { margin-top: var(--sp-6); }
.blog-text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bush-canopy);
  margin: var(--sp-12) 0 var(--sp-4);
}
.blog-text h3:first-child { margin-top: 0; }
.blog-text__empty { opacity: .6; font-style: italic; }

.zoomable {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--pale-granite);
  cursor: zoom-in;
}
.zoomable img {
  width: 100%;
  transition: transform var(--duration-crawl) var(--ease-out-expo);
}
.zoomable:hover img { transform: scale(1.03); }

.blog-figure { margin: var(--sp-8) 0; text-align: center; }
.blog-figure .zoomable { display: inline-block; width: auto; max-width: 100%; vertical-align: top; box-shadow: var(--shadow-md); }
.blog-figure .zoomable img { width: auto; max-height: 75vh; }
.blog-figure figcaption {
  text-align: left;
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--worn-rock);
}

.blog-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.blog-photos--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.blog-photos .zoomable { aspect-ratio: 4 / 3; }
.blog-photos .zoomable img { height: 100%; object-fit: cover; }

/* Routes: compact header + one card holding map and profile,
   sized so name, map and elevation fit on one screen */
.route-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-6) clamp(var(--sp-4), 4vw, var(--sp-16)) var(--sp-8);
  scroll-margin-top: calc(var(--nav-height) + var(--sp-4));
  position: relative;
  z-index: 1;   /* keep the card's shadow above the green section below */
}
.route-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.route-header__main { display: flex; flex-direction: column; gap: var(--sp-3); }
.route-section .section-label { color: var(--worn-rock); }
.route-section .map-layers { flex-wrap: wrap; }
.route-section .map-layer-btn {
  background: white;
  border: 1px solid var(--pale-granite);
  color: var(--worn-rock);
}
.route-section .map-layer-btn:hover:not([aria-pressed="true"]) {
  background: white;
  border-color: var(--trig-stone);
  color: var(--charcoal);
}
.route-section .map-layer-btn[aria-pressed="true"] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: white;
}

.route-picker { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.route-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px 16px 8px 12px;
  text-align: left;
  background: white;
  border: 1px solid var(--pale-granite);
  border-radius: var(--radius-full);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.route-btn:hover { border-color: var(--trig-stone); }
.route-btn[aria-pressed="true"] {
  border-color: var(--route-colour);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--route-colour) 22%, transparent);
}
.route-btn__swatch {
  width: 18px; height: 4px;
  border-radius: 2px;
  background: var(--route-colour);
  flex-shrink: 0;
}
.route-btn__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.route-btn__meta { display: block; font-size: 11px; color: var(--worn-rock); }

.route-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28,27,24,.10);
}
.station-page #station-map {
  height: clamp(280px, calc(100svh - 470px), 620px);
}
.route-panel { padding: var(--sp-4) var(--sp-6) var(--sp-4); }
.route-hint {
  padding: var(--sp-4) 0;
  font-size: var(--text-sm);
  color: var(--worn-rock);
  text-align: center;
}

.route-detail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-8);
  margin-bottom: var(--sp-3);
}
.route-detail__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.route-detail__title::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--route-colour);
}
.route-stats { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-8); }
.route-stat dt {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--trig-stone);
}
.route-stat dd {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.3;
}

.elev__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: 2px;
}
.elev__label {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--autumn-bark);
}
.elev__readout { font-size: 12px; color: var(--trig-stone); font-variant-numeric: tabular-nums; }
.elev__readout.is-live { color: var(--charcoal); }
.elev-chart { position: relative; height: 150px; }
.elev-chart svg { display: block; }
.elev-grid { stroke: rgba(28,27,24,.07); stroke-width: 1; }
.elev-tick { fill: var(--trig-stone); font-family: var(--font-body); font-size: 11px; }
.elev-cursor line { stroke: rgba(28,27,24,.45); stroke-width: 1; stroke-dasharray: 3 3; }
.elev-cursor circle { stroke: white; stroke-width: 2; }
.elev-hit { cursor: crosshair; }
.elev-empty { color: var(--worn-rock); font-size: var(--text-sm); }

/* Nearby points of interest */
.poi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}
.poi-card {
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(28,27,24,.07);
  transition: box-shadow var(--duration-mid) var(--ease-out-expo),
              transform var(--duration-mid) var(--ease-out-expo);
}
.poi-card:hover { box-shadow: 0 18px 40px rgba(28,27,24,.12); transform: translateY(-3px); }
.poi-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.poi-card__media .zoomable { height: 100%; }
.poi-card__media .zoomable img { height: 100%; object-fit: cover; }
.poi-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--sage-mist) 0%, var(--silver-wattle) 55%, var(--box-gum) 100%);
}
.poi-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}
.poi-card__distance {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--autumn-bark);
}
.poi-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: var(--leading-snug);
}
.poi-card__body p { font-size: var(--text-sm); color: var(--worn-rock); line-height: var(--leading-base); }
.poi-card__link {
  margin-top: auto;
  padding-top: var(--sp-2);
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bush-canopy);
  border-bottom: 1px solid currentColor;
}
.poi-card__link:hover { color: var(--autumn-bark); }

/* Light green flow: the routes stay limestone, with a short fade to sage
   only at the very bottom, so the nearby section sits on light green */
.station-flow {
  background: linear-gradient(to bottom, var(--limestone) calc(100% - 220px), var(--sage-mist) 100%);
}
.station-page .station-section--sage { background: var(--sage-mist); }

@media (max-width: 700px) {
  .station-facts { grid-template-columns: 1fr 1fr; }
  .fact { border-bottom: 1px solid rgba(255,255,255,.1); }
  .fact:nth-child(2n) { border-right: none; }
  .station-page #station-map { height: 340px; }
  .elev-chart { height: 140px; }
  .route-panel { padding: var(--sp-4); }
}

/* Route write-up photos keep soft rounded corners */
.route-stories .zoomable { border-radius: 14px; }

/* Lightbox caption */
.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: var(--sp-6);
  transform: translateX(-50%);
  max-width: min(720px, 86vw);
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-style: italic;
  line-height: var(--leading-snug);
  color: rgba(255,255,255,.9);
  text-align: center;
  background: rgba(20,19,16,.55);
  border-radius: var(--radius-full);
}
.lightbox__media img,
.lightbox__media video { max-height: 80vh; }
.lightbox { z-index: var(--z-top); }   /* sit above the fixed nav */
.station-page .station-hero-reserve { color: rgba(255,255,255,.92); text-shadow: 0 1px 14px rgba(0,0,0,.55); }

/* ── ACKNOWLEDGEMENT POP-UP ─────────────────────────────────── */
.ack-popup {
  position: fixed;
  inset: 0;
  z-index: var(--z-top);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: var(--sp-6);
  overflow-y: auto;
  background: rgba(30,61,7,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out-expo);
}
.ack-popup.is-open { opacity: 1; }
.ack-popup__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: var(--sp-12) clamp(var(--sp-6), 5vw, var(--sp-12)) var(--sp-12);
  background: var(--forest-floor);
  color: white;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}
.ack-popup.is-open .ack-popup__card { transform: none; }
.ack-popup__logo {
  height: 56px;
  width: auto;
  margin: 0 auto var(--sp-6);
  filter: brightness(0) invert(1);
}
.ack-popup__title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--golden-slope);
  margin-bottom: var(--sp-4);
}
.ack-popup__text {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--limestone);
}
.ack-popup__close {
  margin-top: var(--sp-8);
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-floor);
  background: var(--golden-slope);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.ack-popup__close:hover { background: white; transform: translateY(-1px); }
.ack-popup__close:focus-visible { outline: 1px solid var(--golden-slope); outline-offset: 3px; }

/* ── GROUP PAGES: trig tabs + panel above the map ───────────── */
.trig-section { padding: var(--sp-12) clamp(var(--sp-6), 6vw, var(--sp-48)) var(--sp-4); }
.trig-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 var(--sp-6);
}
.trig-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 16px 8px 12px;
  background: white;
  border: 1px solid var(--pale-granite);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--worn-rock);
  transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}

.trig-tab:hover { border-color: var(--trig-stone); color: var(--charcoal); }
.trig-tab[aria-selected="true"] { background: var(--charcoal); border-color: var(--charcoal); color: white; }

.trig-info { animation: trigFade var(--duration-mid) var(--ease-out-expo); }
@keyframes trigFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.trig-info__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-shale);
}
.trig-info__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-8);
  margin: var(--sp-3) 0 var(--sp-6);
}
.trig-info__facts dt {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--autumn-bark);
}
.trig-info__facts dd { font-size: var(--text-sm); color: var(--charcoal); }
.trig-info__facts dd span { display: block; font-size: 11px; color: var(--worn-rock); }

/* Routes that don't pass the chosen trig */
.route-btn.is-dim { opacity: .45; }
.route-btn.is-dim:hover { opacity: .8; }
.trig-marker--active svg { filter: drop-shadow(0 0 5px rgba(232,201,122,.95)) drop-shadow(0 0 2px rgba(232,201,122,.95)); }

/* Links inside write-ups */
.blog-text a, .poi-card__body p a {
  color: var(--bush-canopy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast);
}
.blog-text a:hover, .poi-card__body p a:hover { color: var(--autumn-bark); }

/* Videos inside write-ups */
.blog-figure--video video {
  display: block;
  width: 100%;
  max-height: 75vh;
  background: var(--charcoal);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

/* Hero title: centred for the first clip, then tucked into the bottom-left corner */
/* (filter, not opacity: the hero's entrance animation already controls opacity) */
.station-hero-content { transition: filter 0.9s var(--ease-in-out); }
.station-hero.is-compact .station-hero-content { filter: opacity(0); pointer-events: none; }
.station-hero-corner {
  position: absolute;
  left: clamp(var(--sp-6), 6vw, var(--sp-48));
  bottom: var(--sp-8);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: calc(50vw - clamp(var(--sp-6), 6vw, var(--sp-48)) - 50px);   /* stay clear of the centred Scroll arrow */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s var(--ease-in-out) 0.3s, transform 0.9s var(--ease-out-expo) 0.3s;
}
.station-hero.is-compact .station-hero-corner { opacity: 1; transform: none; }
.station-hero-corner__logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,.4));
}
.station-hero-corner__name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
  line-height: var(--leading-snug);
}
.station-hero .hero-scroll-indicator { z-index: 2; }
@media (max-width: 600px) {
  .station-hero-corner { bottom: 104px; max-width: calc(100vw - 2 * var(--sp-6)); }   /* sit above the scroll arrow */
  .station-hero-corner__logo { height: 32px; }
}

/* Station-page map legend: same look as the home map's, as a Leaflet control */
.map-legend.map-legend--station {
  position: relative;
  margin: var(--sp-3) var(--sp-3) 0 0;
  padding: var(--sp-3) calc(var(--sp-4) + 22px) var(--sp-3) var(--sp-4);
}
.map-legend--station .map-legend__toggle { top: 3px; right: 4px; }
.map-legend--station .legend-item { font-size: 10px; }

/* Points of interest on station maps */
.poi-marker { background: none; border: none; }
.poi-marker svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); transition: transform var(--duration-fast); }
.poi-marker:hover svg { transform: scale(1.15); }

/* Numbered route markers (from <route>-markers.txt) */
.route-marker { background: none; border: none; }
.route-marker svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); transition: transform var(--duration-fast); }
.route-marker:hover svg { transform: scale(1.15); }
.route-marker-tip { width: max-content; max-width: 260px; white-space: normal; }
.elev-marker-line { stroke: rgba(28,27,24,.25); stroke-width: 1; stroke-dasharray: 2 3; }
.elev-marker-num { fill: #fff; font-size: 10px; font-weight: 700; font-family: system-ui, sans-serif; pointer-events: none; }

/* ── REFERENCES: [1] markers in the text and the Sources list ── */
.cite {
  font-size: max(0.4em, 8px);
  line-height: 0;
  margin-left: 1px;
  vertical-align: 1.1em;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.cite a,
.blog-text .cite a,
.poi-card__body p .cite a {
  color: var(--worn-rock);
  opacity: 0.75;
  text-decoration: none;
  transition: opacity var(--duration-fast), color var(--duration-fast);
}
.cite a:hover,
.blog-text .cite a:hover,
.poi-card__body p .cite a:hover { opacity: 1; color: var(--autumn-bark); text-decoration: none; }
.source-list {
  padding-left: 1.6em;
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--worn-rock);
}
.source-list li { padding-left: var(--sp-2); margin-bottom: var(--sp-2); scroll-margin-top: calc(var(--nav-height) + var(--sp-8)); }
.source-list li:target { background: rgba(232,201,122,.25); }
.source-list a { color: var(--autumn-bark); overflow-wrap: anywhere; }

.blog-figure--instagram blockquote {
  max-width: 400px;
  margin: 0 auto !important;   /* Instagram's player sets its own margins */
}
.blog-figure--instagram blockquote.instagram-pending {
  padding: var(--sp-8) var(--sp-4);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.route-also {
  margin-top: var(--sp-8);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--worn-rock);
}

/* ════════════════════════════════════════════════════════════
   ABOUT PAGES
   Colour-block header · numbered chapters · big stat · map slider
   · Venn scrollytelling · sign-off · hub cards
   ════════════════════════════════════════════════════════════ */
.about-page { background: var(--limestone); }

/* ── Header: deep green band with faint contour lines (no photo) ── */
.about-header {
  position: relative;
  overflow: hidden;
  background: var(--forest-floor);
  color: white;
  padding: calc(var(--sp-24) + 40px) clamp(var(--sp-6), 6vw, var(--sp-48)) var(--sp-16);
}
.about-header__topo {
  position: absolute;
  right: -4%;
  top: 0;
  height: 100%;
  width: min(720px, 80%);
  color: var(--golden-slope);
  opacity: .16;
  pointer-events: none;
}
.about-header__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  animation: heroReveal 1s var(--ease-out-expo) .1s both;
}
.about-header__label {
  display: inline-block;
  margin-bottom: var(--sp-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--golden-slope);
  text-decoration: none;
}
a.about-header__label:hover { color: white; }
.about-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: white;
}
.about-header__hook,
.about-header__intro .blog-text {
  max-width: 600px;
  margin-top: var(--sp-6);
  font-size: var(--text-md);
  line-height: var(--leading-base);
  color: var(--silver-wattle);
}
.about-header__intro .blog-text p { margin: 0; }

/* ── Chapters ── */
.about-chapter { padding: var(--sp-24) clamp(var(--sp-6), 6vw, var(--sp-48)); }
.about-chapter:not(.about-chapter--feature) + .about-chapter:not(.about-chapter--feature) { padding-top: 0; }
.about-chapter__kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.about-chapter__kicker span {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1;
  color: var(--autumn-bark);
  font-variant-numeric: tabular-nums;
}
.about-chapter__kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .15;
}
.about-chapter__heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: var(--leading-tight);
  color: var(--forest-floor);
  margin: 0 0 var(--sp-8);
}
.about-chapter--first .about-chapter__heading + .blog-text p:first-child {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: var(--leading-snug);
  color: var(--deep-eucalypt);
}

/* Dark chapters (big moments). Two in a row read as one continuous band. */
.about-chapter--feature { background: var(--forest-floor); color: white; }
.about-chapter--feature + .about-chapter--feature { padding-top: 0; }
.about-chapter--feature .about-chapter__heading { color: white; }
.about-chapter--feature .about-chapter__kicker span { color: var(--golden-slope); }
.about-chapter--feature .blog-text { color: var(--silver-wattle); }
.about-chapter--feature .blog-text a.about-link { color: var(--golden-slope); }

/* Inline link to another About page */
.blog-text a.about-link {
  display: inline-flex;
  align-items: baseline;
  gap: .4em;
  margin-left: .25em;
  font-family: var(--font-heading);
  font-size: .78em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bush-canopy);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  white-space: nowrap;
}
.blog-text a.about-link span { transition: transform .25s ease; }
.blog-text a.about-link:hover { color: var(--autumn-bark); }
.blog-text a.about-link:hover span { transform: translateX(4px); }

/* Text still to be written */
mark.about-todo {
  background: rgba(232,201,122,.35);
  color: inherit;
  padding: .05em .3em;
  border-radius: 4px;
  outline: 1px dashed var(--autumn-bark);
  outline-offset: 1px;
}
.about-chapter--feature mark.about-todo {
  background: rgba(232,201,122,.18);
  color: var(--golden-slope);
  outline-color: var(--golden-slope);
}

/* ── Big number ── */
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: var(--sp-4) 0 var(--sp-12);
}
.about-stat__num {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 3rem + 9vw, 10rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--golden-slope);
  font-variant-numeric: tabular-nums;
}
.about-stat__cap {
  margin-top: var(--sp-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-wattle);
}

/* ── Map slider: one map fades in over the other ── */
.map-compare { margin: var(--sp-12) auto 0; max-width: 560px; }
.map-compare__frame { --reveal: 0; position: relative; aspect-ratio: 1200 / 1811; }
.map-compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.map-compare__over { opacity: var(--reveal); }
.map-compare__control {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.map-compare__label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--silver-wattle);
  transition: color .3s ease, opacity .3s ease;
}
.map-compare__label--left  { text-align: right; }
.map-compare__label--right { text-align: left; }
.map-compare__label.is-dim { opacity: .45; }
.map-compare__label.is-lit { color: var(--golden-slope); }
.map-compare__slider {
  -webkit-appearance: none;
  appearance: none;
  width: clamp(140px, 30vw, 240px);
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--golden-slope) calc(var(--fill, 0) * 1%), rgba(255,255,255,.22) 0);
  cursor: pointer;
}
.map-compare__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--golden-slope);
  border: 3px solid var(--forest-floor);
  box-shadow: 0 0 0 1px var(--golden-slope), 0 4px 14px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.map-compare__slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--golden-slope);
  border: 3px solid var(--forest-floor);
  box-shadow: 0 0 0 1px var(--golden-slope), 0 4px 14px rgba(0,0,0,.35);
}
.map-compare__slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.map-compare__slider:focus-visible { outline: 2px solid var(--golden-slope); outline-offset: 6px; }

/* ── Venn scrollytelling ── */
.about-chapter--venn .blog-col { max-width: 1100px; }
.about-chapter--venn .blog-col > .blog-text,
.about-chapter--venn .about-chapter__heading { max-width: 720px; }
.venn-scrolly {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: clamp(var(--sp-8), 5vw, var(--sp-16));
  margin-top: var(--sp-12);
}
.venn {
  position: sticky;
  top: calc(50vh - 220px);
  align-self: start;
  margin: 0;
}
.venn__svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--sandstone); }   /* arrowhead colour */
.venn__region {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .7s ease, transform .9s var(--ease-out-expo, ease);
}
.venn__label {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: white;
}
.venn__outline circle { stroke: rgba(30,61,7,.25); stroke-width: 1.5; }
.venn__axis { color: var(--sandstone); }
.venn__axis-label {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: var(--sandstone);
}
.venn__caption {
  margin-top: var(--sp-6);
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--forest-floor);
  transition: opacity .8s ease .2s, transform .8s var(--ease-out-expo, ease) .2s;
}
.venn-step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity .5s ease;
}
.venn-step:first-child { min-height: 60vh; }
.venn-step__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-floor);
}
.venn-step__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(30,61,7,.12); }
.venn-step__dot--right   { background: #9A5B14; }
.venn-step__dot--overlap { background: #1B6FA8; }
.venn-step__dot--left    { background: #66752A; }
.venn-end { height: 30vh; }

/* Animated states (set by about.js; without JS the diagram shows its final state) */
.venn--animate .venn__region { opacity: 0; transform: scale(.82); }
.venn--animate .venn__caption { opacity: 0; transform: translateY(10px); }
.venn--animate[data-state="1"] [data-region="1"],
.venn--animate[data-state="2"] [data-region="2"],
.venn--animate[data-state="3"] [data-region="3"] { opacity: 1; transform: scale(1); }
.venn--animate[data-state="2"] [data-region="1"],
.venn--animate[data-state="3"] [data-region="1"],
.venn--animate[data-state="3"] [data-region="2"] { opacity: .4; transform: scale(1); }
.venn--animate[data-state="4"] .venn__region { opacity: 1; transform: scale(1); }
.venn--animate[data-state="4"] .venn__caption { opacity: 1; transform: none; }
.venn-scrolly.is-live .venn-step { opacity: .35; }
.venn-scrolly.is-live .venn-step.is-active { opacity: 1; }

@media (max-width: 767px) {
  .venn-scrolly { display: block; }
  .venn {
    top: 64px;
    z-index: 2;
    max-width: 320px;
    margin: 0 auto;
    padding: var(--sp-3) 0 var(--sp-4);
    background: var(--limestone);
    box-shadow: 0 18px 16px -12px var(--limestone);
  }
  .venn__caption { font-size: var(--text-md); margin-top: var(--sp-2); }
  .venn-step, .venn-step:first-child { min-height: 0; padding: var(--sp-12) 0; }
  .venn-end { height: 40vh; }
}

/* ── Sign-off: a quiet last line that drifts in as you reach the bottom ── */
.about-signoff {
  padding: var(--sp-24) var(--sp-6) calc(var(--sp-24) + var(--sp-12));
  text-align: center;
}
.about-signoff__text {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: var(--leading-tight);
  color: var(--forest-floor);
  transition: opacity 2.2s ease, letter-spacing 2.6s var(--ease-out-expo, ease), filter 2.2s ease;
}
.about-signoff.is-waiting .about-signoff__text { opacity: 0; letter-spacing: 0.22em; filter: blur(4px); }

/* ── Hub cards ── */
.about-hub-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-6) var(--sp-24);
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}
.about-card {
  display: flex;
  flex-direction: column;
  background: var(--ghost-gum);
  border: 1px solid rgba(28,27,24,.08);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(28,27,24,.04);
  transition: transform .35s var(--ease-out-expo, ease), box-shadow .35s ease, opacity .6s ease;
}
.about-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage-mist); }
.about-card__media--map { background: var(--forest-floor); }
.about-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out-expo, ease); }
.about-card__img--map { object-position: center 18%; transform: scale(1.05); }
.about-card__body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6) var(--sp-6) var(--sp-8); }
.about-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-floor);
}
.about-card__hook { font-size: var(--text-base); line-height: var(--leading-base); color: var(--dark-shale); }
.about-card__cta {
  margin-top: auto;
  padding-top: var(--sp-2);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bush-canopy);
}
.about-card__cta span { display: inline-block; transition: transform .3s ease; }
@media (hover: hover) {
  .about-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(30,61,7,.35); }
  .about-card:hover .about-card__img { transform: scale(1.04); }
  .about-card:hover .about-card__img--map { transform: scale(1.09); }
  .about-card:hover .about-card__cta { color: var(--autumn-bark); }
  .about-card:hover .about-card__cta span { transform: translateX(4px); }
}
.about-card:focus-visible { outline: 2px solid var(--autumn-bark); outline-offset: 4px; }

@media (max-width: 760px) {
  .about-cards { grid-template-columns: 1fr; gap: var(--sp-6); }
  .about-chapter { padding-top: var(--sp-16); padding-bottom: var(--sp-16); }
  .map-compare__control { grid-template-columns: 1fr 1fr; }
  .map-compare__slider { grid-column: 1 / -1; grid-row: 1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .about-signoff__text { transition: none; }
  .venn__region, .venn__caption, .venn-step { transition: none; }
}

/* ── Footprint trail behind a chapter's text: prints step in as you scroll ── */
.about-chapter--trail { position: relative; overflow-x: clip; }
.about-chapter--trail .blog-col { position: relative; z-index: 1; }
.trail {
  position: absolute;   /* no top: it starts where [footprints] sits in the text */
  left: 50%;
  width: min(780px, 100%);
  transform: translateX(-8%);
  z-index: -1;   /* behind the text */
  pointer-events: none;
}
.trail__sticky { padding-top: 4vh; }   /* stays put: the prints scroll with the page */
.trail__prints { position: relative; aspect-ratio: 667 / 721; transform: rotate(-45deg); }
.trail__print {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  transition: opacity 1.8s ease, transform 2.2s var(--ease-out-expo, ease);
}
.trail--live .trail__print { opacity: 0; transform: scale(1.04) translateY(-6px); }
.trail--live .trail__print.is-on { opacity: .55; transform: none; }
@media (max-width: 767px) {
  .trail { left: 0; width: 100%; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .trail__print { transition: none; }
}

/* Header with a photo behind it (Banner: setting) */
.about-header--photo { padding-top: calc(var(--sp-24) + 120px); padding-bottom: var(--sp-16); }
.about-header__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scaleX(-1);   /* mirrored so the trig sits on the right, clear of the title */
}
.about-header__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(30,61,7,.25) 45%, rgba(30,61,7,.88) 100%);
}
.about-header--photo .about-header__topo { display: none; }
.about-header--photo .about-header__title { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.about-header--photo .about-header__hook { color: var(--sage-mist); }

/* The Venn chapter is a dark green chapter: light text and gold accents on the diagram */
.about-main .about-chapter.about-chapter--venn + .about-chapter { padding-top: calc(var(--sp-24) * 1.5); }
.venn-scrolly { position: relative; }
.venn-scrolly .venn__svg { color: var(--golden-slope); }
.venn-scrolly .venn__outline circle { stroke: rgba(255,255,255,.35); }
.venn-scrolly .venn__axis { color: var(--golden-slope); }
.venn-scrolly .venn__axis-label { fill: var(--golden-slope); }
.venn-scrolly .venn__caption { color: white; }
.venn-scrolly .venn-step__title { color: white; }
.venn-scrolly .venn-step .blog-text { color: var(--silver-wattle); }
.venn-scrolly .venn-step__dot { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.venn-scrolly mark.about-todo { background: rgba(232,201,122,.18); color: var(--golden-slope); outline-color: var(--golden-slope); }
@media (max-width: 767px) {
  .venn-scrolly .venn { background: var(--forest-floor); box-shadow: 0 18px 16px -12px var(--forest-floor); }
}
/* Text that continues after the footprints marker keeps its normal spacing */
.about-chapter .trail + .blog-text { margin-top: var(--sp-6); }
.about-chapter .trail + .blog-text h3:first-child { margin-top: var(--sp-12); }
