/* OZRK design system — tokens, base, components, pages */

/* ---------- Tokens ---------- */
:root {
  --basalt: #16201b;      /* deep forest near-black */
  --pine: #1f2c25;        /* raised dark surface */
  --pine-2: #2a3a31;      /* dark borders / hover */
  --lichen: #eaede3;      /* cool off-white */
  --paper: #f5f6f0;       /* light surface */
  --stone: #a9b0a1;       /* muted text on dark */
  --slate: #56605a;       /* muted text on light */
  --contour: #c09157;     /* topo contour brown — structural accent */
  --contour-dim: rgba(192, 145, 87, 0.28);
  --moss: #7e9d63;        /* trails / verified */
  --river: #5795b4;       /* water */
  --blaze: #e66a32;       /* hazards & alerts only */
  --land: #8a9a5b;        /* public land tint */

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.8rem, 1.8rem + 5vw, 6.4rem);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --gutter: clamp(1.1rem, 0.6rem + 2.5vw, 2.5rem);
  --max: 1240px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--lichen);
  background: var(--basalt);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.015em; font-variation-settings: "wdth" 112; }
h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-variation-settings: "wdth" 100; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: var(--step-1); color: var(--stone); line-height: 1.45; max-width: 46ch; }
.condensed { font-variation-settings: "wdth" 75; letter-spacing: 0.01em; }
.muted { color: var(--stone); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--lichen); color: var(--basalt); padding: 0.6rem 1rem; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--contour); outline-offset: 2px; }
::selection { background: var(--contour); color: var(--basalt); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.light { background: var(--paper); color: var(--basalt); }
.light .muted, .light .lede { color: var(--slate); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(22, 32, 27, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(192, 145, 87, 0.18);
}
.site-header .wrap { display: flex; align-items: center; height: 100%; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 900; font-size: 1.35rem; letter-spacing: 0.04em; font-variation-settings: "wdth" 125; }
.brand svg { width: 28px; height: 28px; }
.nav-primary { display: none; gap: 0.25rem; }
.nav-primary a, .nav-auth .link-btn {
  text-decoration: none; padding: 0.45rem 0.75rem; border-radius: var(--r-sm); color: var(--stone); font-weight: 600;
  background: none; border: 0; cursor: pointer;
}
.nav-primary a:hover, .nav-auth .link-btn:hover { color: var(--lichen); background: var(--pine); }
.nav-primary a[aria-current="page"] { color: var(--lichen); box-shadow: inset 0 -2px 0 var(--contour); border-radius: 0; }
.nav-auth { display: none; margin-left: auto; align-items: center; gap: 0.5rem; }
.menu-toggle {
  margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 1px solid var(--pine-2); border-radius: var(--r-sm); cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--lichen); position: relative; transition: transform 0.25s var(--ease); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--lichen); transition: transform 0.25s var(--ease); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--basalt);
  padding: 1.5rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 0.25rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  overflow-y: auto;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a.mm-link {
  text-decoration: none; font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 112;
  padding: 0.55rem 0; border-bottom: 1px solid var(--pine-2);
}
.mobile-menu a.mm-link[aria-current="page"] { color: var(--contour); }
.mobile-menu .mm-actions { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.mobile-menu .mm-secondary { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: auto; padding-top: 2rem; color: var(--stone); }
body.menu-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav-primary, .nav-auth { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--lichen); --fg: var(--basalt); --bd: var(--lichen);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.65rem 1.25rem; border-radius: var(--r-sm);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { --bg: #fff; --bd: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { --bg: transparent; --fg: var(--lichen); --bd: rgba(234, 237, 227, 0.4); }
.btn-ghost:hover { --bg: rgba(234, 237, 227, 0.08); --bd: var(--lichen); --fg: var(--lichen); }
.btn-contour { --bg: var(--contour); --fg: var(--basalt); --bd: var(--contour); }
.btn-contour:hover { --bg: #d3a46a; --bd: #d3a46a; }
.btn-sm { min-height: 36px; padding: 0.4rem 0.8rem; font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.light .btn { --bg: var(--basalt); --fg: var(--lichen); --bd: var(--basalt); }
.light .btn:hover { --bg: var(--pine); --bd: var(--pine); }
.light .btn-ghost { --bg: transparent; --fg: var(--basalt); --bd: rgba(22, 32, 27, 0.35); }
.light .btn-ghost:hover { --bg: rgba(22, 32, 27, 0.06); --bd: var(--basalt); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--pine); border: 1px solid var(--pine-2); color: var(--lichen); cursor: pointer;
}
.icon-btn:hover { background: var(--pine-2); }
.icon-btn[aria-pressed="true"] { background: var(--lichen); color: var(--basalt); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.18rem 0.55rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.4; border: 1px solid currentColor;
  font-variation-settings: "wdth" 85;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-sample { color: var(--contour); }
.badge-official { color: var(--moss); }
.badge-community { color: #d8b45a; }
.badge-provider { color: var(--contour); }
.badge-provider { color: var(--river); }
.badge-soon { color: var(--stone); }
.badge-hazard { color: var(--blaze); }
.light .badge-sample { color: #8c6431; }
.light .badge-provider { color: #8c6431; }
.light .badge-official { color: #4b6b33; }
.diff { font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.diff i { width: 10px; height: 10px; display: inline-block; }
.diff-easy i { background: #6fae5a; border-radius: 50%; }
.diff-moderate i { background: #4a8fd1; }
.diff-hard i { background: var(--lichen); transform: rotate(45deg); outline: 1px solid #000; }
.diff-expert i { background: var(--lichen); transform: rotate(45deg); box-shadow: 6px 0 0 var(--lichen); margin-right: 6px; outline: 1px solid #000; }
.light .diff-hard i, .light .diff-expert i { background: var(--basalt); box-shadow: none; }
.light .diff-expert i { box-shadow: 6px 0 0 var(--basalt); }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; padding: 0.35rem 0.85rem;
  border-radius: 999px; border: 1px solid var(--pine-2); background: var(--pine); color: var(--lichen);
  cursor: pointer; font-weight: 600; font-size: 0.92rem; white-space: nowrap;
}
.pill:hover { border-color: var(--stone); }
.pill[aria-pressed="true"] { background: var(--lichen); color: var(--basalt); border-color: var(--lichen); }
.pill .swatch { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Inputs ---------- */
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; font-size: var(--step--1); }
.input, .select {
  min-height: 46px; padding: 0.6rem 0.85rem; border-radius: var(--r-sm); border: 1.5px solid var(--pine-2);
  background: var(--pine); color: var(--lichen); width: 100%;
}
.input:focus, .select:focus { border-color: var(--contour); outline: none; box-shadow: 0 0 0 3px var(--contour-dim); }
.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 0.85rem; width: 18px; height: 18px; color: var(--stone); pointer-events: none; }
.search .input { padding-left: 2.6rem; border-radius: 999px; background: rgba(22, 32, 27, 0.92); }
.toggle { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.toggle input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--pine-2); position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--lichen); transition: transform 0.15s var(--ease); }
.toggle input:checked { background: var(--moss); }
.toggle input:checked::after { transform: translateX(16px); }
.toggle input:focus-visible { outline: 3px solid var(--contour); outline-offset: 2px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1px solid rgba(22, 32, 27, 0.15); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: 0; padding: 0.75rem 0.9rem; font-weight: 700; cursor: pointer; color: var(--slate);
  border-bottom: 2.5px solid transparent; white-space: nowrap; min-height: 44px;
}
.tab[aria-selected="true"] { color: var(--basalt); border-bottom-color: var(--contour); }
.tab .count { font-weight: 500; color: var(--slate); margin-left: 0.25rem; }

/* ---------- Cards ---------- */
.trail-card {
  display: grid; grid-template-rows: auto 1fr; background: var(--pine); border-radius: var(--r-md);
  overflow: hidden; border: 1px solid var(--pine-2); text-decoration: none; color: inherit;
}
.trail-card .plate { aspect-ratio: 16 / 10; position: relative; background: #1b2620; }
.trail-card .plate canvas { width: 100%; height: 100%; }
.trail-card .plate .badge { position: absolute; top: 0.7rem; left: 0.7rem; background: rgba(22, 32, 27, 0.85); }
.trail-card .body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: 0.35rem; align-content: start; }
.trail-card h3 { margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.92rem; color: var(--stone); }
.stats b { color: var(--lichen); font-weight: 700; }
.light .stats { color: var(--slate); }
.light .stats b { color: var(--basalt); }

.panel { background: var(--pine); border: 1px solid var(--pine-2); border-radius: var(--r-lg); }
.light .panel { background: #fff; border-color: rgba(22, 32, 27, 0.1); }

/* ---------- Modal & drawer ---------- */
dialog.modal {
  border: 0; padding: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--basalt);
  width: min(92vw, 440px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
dialog.modal::backdrop { background: rgba(10, 14, 12, 0.6); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop 0.2s var(--ease); }
.modal-body { padding: 1.75rem 1.75rem 1.5rem; }
.modal-body h2 { font-size: var(--step-2); }
.modal-body p { color: var(--slate); }
.modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.25rem; }
.modal-close { position: absolute; top: 0.6rem; right: 0.6rem; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; border-radius: var(--r-sm); color: var(--slate); }
.modal-close:hover { background: rgba(22, 32, 27, 0.08); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

.drawer-scrim { position: fixed; inset: 0; background: rgba(10, 14, 12, 0.55); z-index: 80; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-height: 85vh; overflow-y: auto;
  background: var(--basalt); border-radius: var(--r-lg) var(--r-lg) 0 0; border-top: 1px solid var(--pine-2);
  padding: 0.5rem var(--gutter) 1.5rem; transform: translateY(100%); transition: transform 0.25s var(--ease);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}
.drawer.open { transform: none; }
.drawer .grabber { width: 40px; height: 4px; border-radius: 4px; background: var(--pine-2); margin: 0.4rem auto 1rem; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: 120; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: grid; gap: 0.5rem; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--lichen); color: var(--basalt); padding: 0.8rem 1rem; border-radius: var(--r-md); font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); animation: pop 0.2s var(--ease); pointer-events: auto; }

/* ---------- States ---------- */
.state { display: grid; justify-items: center; text-align: center; gap: 0.5rem; padding: 3rem 1.25rem; }
.state svg.state-art { width: 120px; height: 80px; color: var(--contour); margin-bottom: 0.5rem; }
.state h3 { font-size: var(--step-1); margin: 0; }
.state p { color: var(--stone); margin: 0 auto 0.75rem; max-width: 40ch; }
.light .state p { color: var(--slate); }
.skeleton { background: linear-gradient(90deg, var(--pine) 0%, var(--pine-2) 50%, var(--pine) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-sm); }
.light .skeleton { background: linear-gradient(90deg, #e3e6dc 0%, #eef0e8 50%, #e3e6dc 100%); background-size: 200% 100%; }
.sk-line { height: 0.9rem; margin: 0.45rem 0; }
.sk-card { height: 96px; border-radius: var(--r-md); margin-bottom: 0.75rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.site-footer { background: #111914; color: var(--stone); padding-block: 3.5rem 2rem; border-top: 1px solid rgba(192, 145, 87, 0.18); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer-grid h2 { font-size: 0.95rem; color: var(--lichen); font-variation-settings: "wdth" 100; letter-spacing: 0; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--lichen); text-decoration: underline; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { max-width: 36ch; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--pine-2); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: var(--step--1); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* ---------- Home: hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; overflow: hidden; isolation: isolate; background: #18231d; }
.hero-terrain { position: absolute; inset: -6%; z-index: -2; }
.hero-terrain canvas { width: 100%; height: 100%; }
.hero.drift .hero-terrain { animation: drift 60s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.03); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 32, 27, 0.25) 0%, rgba(22, 32, 27, 0.1) 40%, rgba(22, 32, 27, 0.92) 100%); }
.hero-route { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-route path.route { fill: none; stroke: var(--blaze); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s 0.4s var(--ease) forwards; }
.hero-route path.route-casing { fill: none; stroke: rgba(22, 32, 27, 0.55); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s 0.4s var(--ease) forwards; }
.hero-route circle { fill: var(--lichen); stroke: var(--basalt); stroke-width: 3; opacity: 0; animation: appear 0.3s forwards; }
.hero-route circle.start { animation-delay: 0.4s; }
.hero-route circle.end { animation-delay: 3.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
.hero-content { padding-block: 7rem 3.5rem; position: relative; }
.hero h1 { font-size: clamp(3.2rem, 1.4rem + 9vw, 9.5rem); line-height: 0.88; font-variation-settings: "wdth" 118; letter-spacing: -0.045em; margin-bottom: 1.5rem; text-wrap: balance; }
.hero .lede { color: #d2d8cb; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.map-collar {
  position: absolute; inset: auto var(--gutter) 1rem auto; display: flex; gap: 1.5rem; align-items: end;
  color: rgba(234, 237, 227, 0.7); font-size: 0.75rem; font-variation-settings: "wdth" 75; letter-spacing: 0.03em;
}
.scalebar { display: grid; gap: 4px; }
.scalebar .bar { display: flex; height: 6px; width: 120px; border: 1px solid rgba(234, 237, 227, 0.7); }
.scalebar .bar i { flex: 1; }
.scalebar .bar i:nth-child(odd) { background: rgba(234, 237, 227, 0.7); }
.north { width: 22px; height: 34px; }
.hero-note { position: absolute; top: calc(var(--header-h) - 48px); right: var(--gutter); font-size: 0.75rem; color: rgba(234, 237, 227, 0.55); font-variation-settings: "wdth" 75; }
@media (max-width: 640px) { .map-collar { display: none; } }

/* ---------- Home: sections ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.15fr; } .split.reverse > :first-child { order: 2; } }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head p { color: var(--stone); font-size: var(--step-1); line-height: 1.45; }
.light .section-head p { color: var(--slate); }

.explore-visual { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: #1b2620; border: 1px solid var(--pine-2); }
.explore-visual canvas { width: 100%; height: 100%; }
.explore-visual .pin {
  position: absolute; transform: translate(-50%, -100%); background: var(--lichen); color: var(--basalt);
  padding: 0.25rem 0.55rem; border-radius: var(--r-sm); font-size: 0.8rem; font-weight: 700; white-space: nowrap;
  font-variation-settings: "wdth" 85;
}
.explore-visual .pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: inherit; }
.explore-visual .pin.water { background: var(--river); color: #fff; }
.explore-visual .pin.camp { background: var(--contour); }
.visual-note { position: absolute; left: 0.75rem; bottom: 0.6rem; font-size: 0.72rem; color: rgba(234, 237, 227, 0.75); font-variation-settings: "wdth" 75; }

.activity-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 2.5rem; }
.activity-row .chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem 0.45rem 0.55rem; border-radius: 999px; border: 1px solid rgba(22, 32, 27, 0.18); font-weight: 600; }
.activity-row .chip svg { width: 22px; height: 22px; }
.card-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.light .trail-card { background: #fff; border-color: rgba(22, 32, 27, 0.1); }

/* weather preview */
.wx { background: #0f1713; border: 1px solid var(--pine-2); border-radius: var(--r-lg); padding: 1.25rem; display: grid; gap: 1rem; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.wx-top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.wx-temp { font-size: clamp(3rem, 2rem + 4vw, 4.5rem); font-weight: 800; line-height: 1; font-variation-settings: "wdth" 110; letter-spacing: -0.04em; }
.wx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.wx-cell { background: var(--pine); border-radius: var(--r-md); padding: 0.75rem; }
.wx-cell .k { font-size: 0.8rem; color: var(--stone); }
.wx-cell .v { font-size: var(--step-1); font-weight: 800; font-variation-settings: "wdth" 100; }
.wx-hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.25rem; align-items: end; height: 90px; }
.wx-hours div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--stone); height: 100%; }
.wx-hours b { display: block; width: 70%; background: var(--river); border-radius: 3px 3px 0 0; }
.wx-alert { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; border: 1px solid var(--blaze); border-radius: var(--r-md); padding: 0.75rem 0.9rem; background: rgba(230, 106, 50, 0.08); }
.wx-alert svg { width: 22px; height: 22px; color: var(--blaze); }
.wx-alert strong { display: block; }
.wx-alert span { font-size: 0.85rem; color: var(--stone); }
.preview-label { font-size: 0.75rem; color: var(--stone); font-variation-settings: "wdth" 80; }

/* public lands list */
.land-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(22, 32, 27, 0.15); }
.land-list li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(22, 32, 27, 0.15); align-items: start; }
.land-list .swatch { width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); }
.land-list h3 { margin: 0 0 0.15rem; }
.land-list p { margin: 0; color: var(--slate); font-size: 0.95rem; }

/* offline */
.offline-visual { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: #1b2620; }
.offline-visual canvas { width: 100%; height: 100%; filter: saturate(0.4); }
.offline-chip { position: absolute; top: 1rem; left: 1rem; display: inline-flex; gap: 0.5rem; align-items: center; background: var(--basalt); padding: 0.45rem 0.8rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.offline-chip svg { width: 16px; height: 16px; }
.offline-frame { position: absolute; inset: 18% 14%; border: 2px dashed var(--contour); border-radius: var(--r-md); }
.offline-frame span { position: absolute; top: -0.75rem; left: 0.75rem; background: var(--contour); color: var(--basalt); font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 4px; }

/* intelligence */
.intel-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--pine-2); }
@media (min-width: 700px) { .intel-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .intel-grid { grid-template-columns: repeat(3, 1fr); } }
.intel-grid article { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--pine-2); }
.intel-grid h3 { display: flex; align-items: center; gap: 0.6rem; }
.intel-grid h3 svg { width: 22px; height: 22px; color: var(--contour); }
.intel-grid p { color: var(--stone); margin: 0; font-size: 0.96rem; }
.source-legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; margin-top: 2rem; align-items: center; }
.source-legend p { margin: 0; width: 100%; color: var(--stone); font-size: 0.92rem; }

/* trip preview */
.trip-preview { background: #fff; color: var(--basalt); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(22, 32, 27, 0.18); border: 1px solid rgba(22, 32, 27, 0.1); }
.trip-preview .tp-map { aspect-ratio: 16 / 8; position: relative; background: #1b2620; }
.trip-preview .tp-map canvas { width: 100%; height: 100%; }
.trip-preview .tp-body { padding: 1.25rem 1.4rem 1.4rem; }
.trip-preview h3 { font-size: var(--step-2); font-variation-settings: "wdth" 112; margin-bottom: 0.25rem; }
.stops { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: stop; }
.stops li { counter-increment: stop; display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-top: 1px solid rgba(22, 32, 27, 0.1); }
.stops li::before { content: counter(stop); width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--basalt); color: var(--lichen); font-weight: 700; font-size: 0.85rem; }
.stops small { color: var(--slate); }

/* final CTA */
.final-cta { position: relative; overflow: hidden; isolation: isolate; text-align: left; }
.final-cta canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.55; }
.final-cta h2 { font-size: var(--step-4); max-width: 12ch; line-height: 0.95; }
.final-cta .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Page header (interior pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid rgba(192, 145, 87, 0.2); }
.page-hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.5; }
.page-hero h1 { font-size: var(--step-4); max-width: 14ch; }

/* ---------- Explore ---------- */
body.explore-page { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.explore-page .site-footer { display: none; }
.explore { position: relative; flex: 1; display: grid; grid-template-columns: 1fr; min-height: 0; }
@media (min-width: 960px) { .explore { grid-template-columns: 380px 1fr; } }
.ex-sidebar { display: none; flex-direction: column; min-height: 0; background: var(--basalt); border-right: 1px solid var(--pine-2); }
@media (min-width: 960px) { .ex-sidebar { display: flex; } }
.ex-sidebar-head { padding: 1rem 1.1rem 0.75rem; display: grid; gap: 0.75rem; border-bottom: 1px solid var(--pine-2); }
.ex-results { overflow-y: auto; padding: 0.75rem 1.1rem 1.5rem; flex: 1; }
.ex-results-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--stone); margin-bottom: 0.5rem; }
.result {
  width: 100%; text-align: left; display: grid; grid-template-columns: 42px 1fr; gap: 0.8rem; align-items: start;
  background: none; border: 1px solid transparent; border-radius: var(--r-md); padding: 0.7rem; cursor: pointer; color: inherit;
}
.result:hover, .result[aria-current="true"] { background: var(--pine); border-color: var(--pine-2); }
.result .ricon { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; }
.result .ricon svg { width: 22px; height: 22px; }
.result h3 { font-size: 1rem; margin: 0 0 0.15rem; }
.result .stats { font-size: 0.85rem; }

.ex-map { position: relative; min-height: 0; overflow: hidden; background: #1b2620; touch-action: none; }
.map-stage { position: absolute; inset: 0; cursor: grab; }
.map-stage.dragging { cursor: grabbing; }
.map-stage canvas, .map-stage svg.vector { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-stage svg.vector { pointer-events: none; }
.map-stage svg.vector .hit { pointer-events: stroke; cursor: pointer; }
.map-stage svg.vector .land { pointer-events: fill; cursor: pointer; }
.marker-layer { position: absolute; inset: 0; pointer-events: none; }
.marker {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 2.5px solid var(--basalt); cursor: pointer; padding: 0; color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); transition: transform 0.12s;
}
.marker svg { width: 18px; height: 18px; }
.marker:hover, .marker[aria-pressed="true"] { transform: translate(-50%, -50%) scale(1.18); z-index: 2; }
.marker[aria-pressed="true"] { border-color: var(--lichen); }
.marker.cluster { width: 44px; height: 44px; background: var(--lichen); color: var(--basalt); font-weight: 800; border-color: rgba(22, 32, 27, 0.6); }
.map-label { position: absolute; transform: translate(-50%, 14px); font-size: 0.72rem; font-weight: 700; color: var(--lichen); text-shadow: 0 1px 3px #000, 0 0 2px #000; white-space: nowrap; pointer-events: none; font-variation-settings: "wdth" 80; }

.map-top { position: absolute; z-index: 5; top: 0.75rem; left: 0.75rem; right: 0.75rem; display: grid; gap: 0.6rem; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-top .row { display: flex; gap: 0.5rem; align-items: center; }
.map-top .search { flex: 1; }
.chip-scroll { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .pill { background: rgba(22, 32, 27, 0.9); }
.chip-scroll .pill[aria-pressed="true"] { background: var(--lichen); }
@media (min-width: 960px) { .map-top { right: 4.5rem; } .map-top .chip-scroll { flex-wrap: wrap; overflow: visible; } .map-top .search-mobile, .map-top .filter-btn { display: none; } }

.map-controls { position: absolute; z-index: 5; right: 0.75rem; top: 50%; transform: translateY(-50%); display: grid; gap: 0.5rem; }
@media (max-width: 959px) { .map-controls { top: auto; bottom: 7.5rem; transform: none; } }
.map-controls .group { display: grid; border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.map-controls .group .icon-btn { border-radius: 0; border-width: 0 0 1px; }
.map-controls .group .icon-btn:last-child { border-bottom: 0; }
.layers-pop { position: absolute; right: 56px; top: 0; width: 260px; padding: 1rem; display: none; z-index: 6; }
.layers-pop.open { display: block; }
.layers-pop h3 { font-size: 0.95rem; margin: 0 0 0.6rem; }
.layers-pop .styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 1rem; }
.layers-pop .styles button { background: var(--basalt); border: 1.5px solid var(--pine-2); border-radius: var(--r-sm); padding: 0.5rem 0.2rem; cursor: pointer; font-size: 0.8rem; font-weight: 600; min-height: 44px; }
.layers-pop .styles button[aria-pressed="true"] { border-color: var(--contour); }
.layers-pop .styles button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.layers-pop .toggle { display: flex; justify-content: space-between; padding: 0.4rem 0; width: 100%; }
.layers-pop .note { font-size: 0.78rem; color: var(--stone); margin: 0.5rem 0 0; }

.map-attrib { position: absolute; z-index: 4; left: 0.6rem; bottom: 0.5rem; font-size: 0.72rem; color: rgba(234, 237, 227, 0.8); background: rgba(22, 32, 27, 0.75); padding: 0.2rem 0.5rem; border-radius: 4px; font-variation-settings: "wdth" 80; }
@media (max-width: 959px) { .map-attrib { bottom: auto; top: 7.6rem; } }
.map-scale { position: absolute; z-index: 4; right: 4rem; bottom: 0.6rem; font-size: 0.72rem; color: rgba(234, 237, 227, 0.85); font-variation-settings: "wdth" 80; display: grid; gap: 3px; justify-items: start; }
.map-scale .bar { height: 5px; border: 1.5px solid rgba(234, 237, 227, 0.85); border-top: 0; }
@media (max-width: 959px) { .map-scale { display: none; } }
.map-empty { position: absolute; z-index: 4; left: 50%; top: 45%; transform: translate(-50%, -50%); width: min(90%, 340px); background: rgba(22, 32, 27, 0.94); border-radius: var(--r-lg); border: 1px solid var(--pine-2); }
.map-empty .state { padding: 1.5rem; }
.map-loading { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; }
.map-loading::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--contour); animation: bar 1s linear infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(400%); } }

/* mobile sheet for results */
.ex-sheet { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; background: var(--basalt); border-radius: var(--r-lg) var(--r-lg) 0 0; border-top: 1px solid var(--pine-2); max-height: 60%; display: flex; flex-direction: column; transition: max-height 0.25s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.ex-sheet.collapsed { max-height: 56px; overflow: hidden; }
.ex-sheet .ex-results-meta > span:first-child { display: none; }
.ex-sheet .ex-results-meta { justify-content: flex-end; }
.ex-sheet-handle { background: none; border: 0; padding: 0.5rem 1rem 0.25rem; width: 100%; cursor: pointer; display: grid; gap: 0.35rem; justify-items: center; color: var(--stone); font-size: 0.85rem; min-height: 44px; }
.ex-sheet-handle::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--pine-2); }
.ex-sheet .ex-results { padding-top: 0.25rem; }
@media (min-width: 960px) { .ex-sheet { display: none; } }

/* detail panel */
.detail { position: absolute; z-index: 8; background: var(--basalt); border: 1px solid var(--pine-2); overflow-y: auto; display: none; }
.detail.open { display: block; animation: pop 0.2s var(--ease); }
@media (min-width: 960px) { .detail { top: 0.75rem; bottom: 0.75rem; left: 0.75rem; width: 380px; border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); } }
@media (max-width: 959px) { .detail { left: 0; right: 0; bottom: 0; max-height: 78%; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: env(safe-area-inset-bottom); } }
.detail-hero { aspect-ratio: 16 / 9; position: relative; background: #1b2620; }
.detail-hero canvas { width: 100%; height: 100%; }
.detail-hero .icon-btn { position: absolute; top: 0.6rem; right: 0.6rem; background: rgba(22, 32, 27, 0.85); }
.detail-body { padding: 1.1rem 1.25rem 1.5rem; display: grid; gap: 1rem; }
.detail-body h2 { font-size: var(--step-2); margin: 0.35rem 0 0.2rem; }
.detail-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.detail-kpis div { background: var(--pine); border-radius: var(--r-md); padding: 0.65rem 0.75rem; }
.detail-kpis .k { font-size: 0.75rem; color: var(--stone); }
.detail-kpis .v { font-weight: 800; font-size: 1.1rem; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.detail dl { margin: 0; display: grid; gap: 0.85rem; }
.detail dt { font-weight: 700; font-size: 0.85rem; color: var(--stone); }
.detail dd { margin: 0.15rem 0 0; }
.provenance { font-size: 0.85rem; color: var(--stone); border-top: 1px solid var(--pine-2); padding-top: 0.85rem; }

/* filter drawer contents */
.filter-group { margin-bottom: 1.5rem; }
.filter-group h3 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.filter-group .pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ex-filters-desktop { display: grid; gap: 0.75rem; }
.ex-filters-desktop details { border-top: 1px solid var(--pine-2); padding-top: 0.6rem; }
.ex-filters-desktop summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; list-style: none; display: flex; justify-content: space-between; min-height: 32px; align-items: center; }
.ex-filters-desktop summary::after { content: "+"; color: var(--stone); }
.ex-filters-desktop details[open] summary::after { content: "–"; }
.ex-filters-desktop .pills { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.5rem 0 0.25rem; }
.ex-filters-desktop .pill { min-height: 32px; font-size: 0.85rem; padding: 0.25rem 0.7rem; }

/* ---------- Features page ---------- */
.feature-rows { display: grid; gap: 0; }
.feature-row { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid rgba(22, 32, 27, 0.14); align-items: center; }
@media (min-width: 860px) { .feature-row { grid-template-columns: 1fr 1fr; gap: 4rem; } .feature-row:nth-child(even) .fr-art { order: -1; } }
.fr-art { aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: #1b2620; position: relative; }
.fr-art canvas { width: 100%; height: 100%; }
.feature-row h2 { font-size: var(--step-3); }
.feature-row ul { padding-left: 1.1rem; color: var(--slate); }
.feature-row li { margin-bottom: 0.3rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: var(--r-lg); background: #fff; border: 1px solid rgba(22, 32, 27, 0.12); position: relative; }
.plan.featured { background: var(--basalt); color: var(--lichen); border-color: var(--basalt); }
.plan.featured .muted { color: var(--stone); }
.plan h2 { font-size: var(--step-2); margin: 0; }
.plan .coverage { height: 52px; color: var(--contour); }
.plan .price { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 110; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 0.6rem; font-size: 0.95rem; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--moss); }
.plan .btn { width: 100%; }
.plan.featured .btn { --bg: var(--lichen); --fg: var(--basalt); --bd: var(--lichen); }
.compare-note { margin-top: 2rem; color: var(--slate); font-size: 0.95rem; }
.faq { max-width: 760px; }
.faq details { border-top: 1px solid rgba(22, 32, 27, 0.14); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--contour); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0.75rem 0 0; color: var(--slate); }

/* ---------- App pages (trips/saved/account) ---------- */
.app-page { padding-block: 2.5rem 5rem; min-height: 70vh; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.app-head h1 { font-size: var(--step-3); margin: 0; }
.gate { display: grid; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--r-lg); background: var(--basalt); color: var(--lichen); grid-template-columns: 1fr; align-items: center; margin-bottom: 2rem; }
@media (min-width: 700px) { .gate { grid-template-columns: auto 1fr auto; } }
.gate svg { width: 36px; height: 36px; color: var(--contour); }
.gate h2 { font-size: var(--step-1); margin: 0 0 0.2rem; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.gate p { margin: 0; color: var(--stone); }
.trip-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.trip-card { background: #fff; border: 1px solid rgba(22, 32, 27, 0.12); border-radius: var(--r-md); overflow: hidden; }
.trip-card .cover { aspect-ratio: 16 / 9; position: relative; background: #1b2620; }
.trip-card .cover canvas { width: 100%; height: 100%; }
.trip-card .cover .badge { position: absolute; top: 0.6rem; left: 0.6rem; background: rgba(22, 32, 27, 0.85); color: var(--contour); }
.trip-card .tbody { padding: 1rem 1.1rem 1.2rem; }
.trip-card h3 { margin: 0 0 0.3rem; }
.status { font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; background: #e9eee3; color: #3d5a2b; }
.empty-panel { background: #fff; border: 1.5px dashed rgba(22, 32, 27, 0.2); border-radius: var(--r-lg); }
.account-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 220px 1fr; align-items: start; } }
.account-nav { display: flex; gap: 0.25rem; overflow-x: auto; }
@media (min-width: 900px) { .account-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 1rem); } }
.account-nav a { text-decoration: none; padding: 0.55rem 0.8rem; border-radius: var(--r-sm); font-weight: 600; color: var(--slate); white-space: nowrap; }
.account-nav a:hover { background: rgba(22, 32, 27, 0.06); color: var(--basalt); }
.account-section { padding: 1.5rem; margin-bottom: 1rem; }
.account-section h2 { font-size: var(--step-1); font-variation-settings: "wdth" 100; letter-spacing: 0; }
.account-section fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.account-section fieldset[disabled] { opacity: 0.6; }
.light .input, .light .select { background: var(--paper); border-color: rgba(22, 32, 27, 0.2); color: var(--basalt); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.seg { display: inline-flex; border: 1.5px solid rgba(22, 32, 27, 0.2); border-radius: var(--r-sm); overflow: hidden; }
.seg label { padding: 0.5rem 1rem; cursor: pointer; font-weight: 600; }
.seg input { position: absolute; opacity: 0; }
.seg input:checked + span { color: var(--basalt); }
.seg label:has(input:checked) { background: var(--basalt); color: var(--lichen); }

/* ---------- Prose (legal/about) ---------- */
.prose-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .prose-layout { grid-template-columns: 240px 1fr; } }
.toc { font-size: 0.92rem; }
@media (min-width: 960px) { .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }
.toc ol { padding-left: 1.2rem; margin: 0; display: grid; gap: 0.35rem; color: var(--slate); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; padding-top: 0.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2c3630; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.notice { border-left: 4px solid var(--contour); background: #fbf6ee; padding: 1rem 1.2rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 0 0 2rem; }
.notice p { margin: 0; color: #4a3b26; }
.placeholder { background: #fdf0d8; border-radius: 3px; padding: 0 0.25rem; color: #6a4a12; font-weight: 600; }
.safety { border: 1.5px solid var(--blaze); border-radius: var(--r-md); padding: 1rem 1.2rem; margin: 1rem 0; background: #fff4ee; }
.safety p { margin: 0; color: #5b2a12; }

/* about */
.principles { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles h3 { font-size: var(--step-1); }
.principles p { color: var(--slate); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.notfound canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.6; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero.drift .hero-terrain { animation: none; }
  .hero-route path.route, .hero-route path.route-casing { stroke-dashoffset: 0; }
  .hero-route circle { opacity: 1; }
}

/* Conditions panel (wildfire + alerts) */
.conditions { position: absolute; z-index: 5; left: 0.6rem; bottom: 2.4rem; width: min(22rem, calc(100% - 1.2rem)); max-height: 46%; overflow: auto; font-size: 0.85rem; }
.conditions > summary { cursor: pointer; padding: 0.5rem 0.75rem; font-weight: 600; }
.conditions .cond-body { padding: 0 0.75rem 0.75rem; display: grid; gap: 0.4rem; }
.conditions h3 { font-size: 0.9rem; margin: 0.4rem 0 0; }
.conditions .cond-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.conditions .cond-dim { opacity: 0.7; }
.conditions .cond-flag { color: #d8b45a; }
.light .conditions .cond-flag { color: #8c6431; }
.conditions .cond-note { margin: 0.2rem 0 0; }
@media (max-width: 959px) { .conditions { bottom: auto; top: 10.2rem; max-height: 38%; } }
