/* "Warm Trail-Map" design system — cartography, not campfire kitsch.
   Topo texture + pine/clay/sand ramp over the validated base tokens. */
:root {
  --bg: #f6f4ee;
  --card: #ffffff;
  --ink: #2b2b26;
  --muted: #6f6d63;
  --accent: #2e6e4e;
  --accent-ink: #ffffff;
  --warn: #a0522d;
  --line: #e2ded2;
  /* categorical watch colors — six-checks validated on #f6f4ee (2026-07-25) */
  --c0: #1f7a55;
  --c1: #3b66c4;
  --c2: #c05020;
  --c3: #8a4bbf;
  --chip-bg: #efece3;
  /* trail-map ramp (text-role colors >=4.5:1 on --bg) */
  --pine-900: #1b3d2c;
  --clay-600: #b0552f;
  --clay-100: #f3e4da;
  --sand-300: #e7e0cd;
  --sun-200: #f4e8c8; /* background only, never text */
  /* availability traffic-light (occupancy/follows calendars): room→full */
  --avail-room: #2f8f5b;    /* lots of room — green */
  --avail-filling: #e3c14e; /* filling up — pale yellow */
  --avail-packed: #e0792f;  /* packed — orange */
  --avail-full: #cf3a2b;    /* full — red */
  --bg-wash: rgba(246, 244, 238, 0.9); /* washes the topo backdrop for readability */
  --radius-s: 8px;
  --radius-m: 12px;
  --shadow-card: 0 1px 2px rgb(43 43 38 / 0.06), 0 2px 8px rgb(43 43 38 / 0.05);
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='none' stroke='%232e6e4e' stroke-opacity='.07' stroke-width='1.5'%3E%3Cpath d='M150 65c46-4 88 26 92 66s-24 78-70 86-92-14-104-56 6-80 40-90 28-4 42-6z'/%3E%3Cpath d='M152 95c32-3 60 18 63 46s-17 54-49 60-64-10-72-39 4-56 28-63 20-3 30-4z'/%3E%3Cpath d='M153 125c19-2 36 11 38 28s-10 32-29 36-38-6-43-23 2-33 17-38 12-2 17-3z'/%3E%3Cpath d='M45 250c14-10 34-8 44 4s8 30-6 38-34 6-42-8-6-24 4-34z'/%3E%3Cpath d='M245 35c10-7 24-5 31 3s6 21-4 27-24 4-30-6-4-17 3-24z'/%3E%3C/g%3E%3C/svg%3E");
  /* full topo-map body tile: nested elevation rings around several peaks */
  --topo-map: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27500%27%20height%3D%27500%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%232e6e4e%27%20stroke-opacity%3D%27.13%27%20stroke-width%3D%271.15%27%3E%3Cpath%20d%3D%27M60%20165%20C60%20105%20112%2062%20168%2068%20C232%2074%20252%20132%20246%20178%20C240%20226%20190%20256%20140%20249%20C92%20242%2060%20216%2060%20165%20Z%27%2F%3E%3Cpath%20d%3D%27M96%20168%20C96%20128%20126%2098%20166%20101%20C210%20105%20221%20142%20216%20176%20C211%20212%20181%20225%20146%20220%20C112%20215%2096%20202%2096%20168%20Z%27%2F%3E%3Cpath%20d%3D%27M126%20170%20C126%20147%20146%20130%20169%20134%20C193%20138%20196%20159%20191%20179%20C186%20199%20166%20206%20149%20201%20C131%20196%20126%20186%20126%20170%20Z%27%2F%3E%3Cpath%20d%3D%27M300%20120%20C300%2080%20342%2060%20377%2071%20C417%2083%20427%20121%20416%20151%20C406%20183%20360%20196%20330%20181%20C306%20168%20300%20150%20300%20120%20Z%27%2F%3E%3Cpath%20d%3D%27M331%20123%20C331%2099%20356%2086%20379%2096%20C401%20106%20403%20129%20394%20150%20C385%20170%20356%20178%20341%20165%20C329%20155%20331%20141%20331%20123%20Z%27%2F%3E%3Cpath%20d%3D%27M150%20362%20C150%20316%20196%20291%20246%20300%20C301%20309%20321%20346%20313%20386%20C305%20428%20250%20451%20200%20441%20C158%20432%20150%20406%20150%20362%20Z%27%2F%3E%3Cpath%20d%3D%27M191%20364%20C191%20333%20221%20316%20253%20323%20C289%20331%20299%20356%20293%20383%20C287%20412%20251%20426%20219%20419%20C193%20412%20191%20389%20191%20364%20Z%27%2F%3E%3Cpath%20d%3D%27M223%20366%20C223%20349%20239%20339%20257%20344%20C276%20349%20281%20363%20277%20379%20C273%20396%20253%20401%20239%20396%20C227%20392%20223%20381%20223%20366%20Z%27%2F%3E%3Cpath%20d%3D%27M20%2040%20C90%2070%20150%2040%20210%2080%20C270%20120%20330%2090%20480%20130%27%2F%3E%3Cpath%20d%3D%27M0%20470%20C80%20440%20140%20470%20210%20440%20C290%20405%20360%20445%20500%20410%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1f1c;
    --card: #262924;
    --ink: #e8e6dd;
    --muted: #a4a294;
    --accent: #58a67e;
    --accent-ink: #10241a;
    --line: #3a3d36;
    /* dark steps of the same hues — validated on #262924 */
    --c0: #2fa877;
    --c1: #5c85dd;
    --c2: #d06a3a;
    --c3: #a273d4;
    --chip-bg: #30332d;
    /* dark ramp: lifted lightness, cut saturation (never invert earth tones) */
    --pine-900: #cfe4d8;
    --clay-600: #d0764a;
    --clay-100: #3a2c24;
    --sand-300: #2c2f2a;
    --sun-200: #3a3524;
    --avail-room: #3fae72;
    --avail-filling: #d9b84a;
    --avail-packed: #e08a45;
    --avail-full: #e05646;
    --bg-wash: rgba(29, 31, 28, 0.92);
    --shadow-card: none;
    --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='none' stroke='%23e8e6dd' stroke-opacity='.05' stroke-width='1.5'%3E%3Cpath d='M150 65c46-4 88 26 92 66s-24 78-70 86-92-14-104-56 6-80 40-90 28-4 42-6z'/%3E%3Cpath d='M152 95c32-3 60 18 63 46s-17 54-49 60-64-10-72-39 4-56 28-63 20-3 30-4z'/%3E%3Cpath d='M153 125c19-2 36 11 38 28s-10 32-29 36-38-6-43-23 2-33 17-38 12-2 17-3z'/%3E%3Cpath d='M45 250c14-10 34-8 44 4s8 30-6 38-34 6-42-8-6-24 4-34z'/%3E%3Cpath d='M245 35c10-7 24-5 31 3s6 21-4 27-24 4-30-6-4-17 3-24z'/%3E%3C/g%3E%3C/svg%3E");
    --topo-map: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27500%27%20height%3D%27500%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23a9c8b6%27%20stroke-opacity%3D%27.08%27%20stroke-width%3D%271.15%27%3E%3Cpath%20d%3D%27M60%20165%20C60%20105%20112%2062%20168%2068%20C232%2074%20252%20132%20246%20178%20C240%20226%20190%20256%20140%20249%20C92%20242%2060%20216%2060%20165%20Z%27%2F%3E%3Cpath%20d%3D%27M96%20168%20C96%20128%20126%2098%20166%20101%20C210%20105%20221%20142%20216%20176%20C211%20212%20181%20225%20146%20220%20C112%20215%2096%20202%2096%20168%20Z%27%2F%3E%3Cpath%20d%3D%27M126%20170%20C126%20147%20146%20130%20169%20134%20C193%20138%20196%20159%20191%20179%20C186%20199%20166%20206%20149%20201%20C131%20196%20126%20186%20126%20170%20Z%27%2F%3E%3Cpath%20d%3D%27M300%20120%20C300%2080%20342%2060%20377%2071%20C417%2083%20427%20121%20416%20151%20C406%20183%20360%20196%20330%20181%20C306%20168%20300%20150%20300%20120%20Z%27%2F%3E%3Cpath%20d%3D%27M331%20123%20C331%2099%20356%2086%20379%2096%20C401%20106%20403%20129%20394%20150%20C385%20170%20356%20178%20341%20165%20C329%20155%20331%20141%20331%20123%20Z%27%2F%3E%3Cpath%20d%3D%27M150%20362%20C150%20316%20196%20291%20246%20300%20C301%20309%20321%20346%20313%20386%20C305%20428%20250%20451%20200%20441%20C158%20432%20150%20406%20150%20362%20Z%27%2F%3E%3Cpath%20d%3D%27M191%20364%20C191%20333%20221%20316%20253%20323%20C289%20331%20299%20356%20293%20383%20C287%20412%20251%20426%20219%20419%20C193%20412%20191%20389%20191%20364%20Z%27%2F%3E%3Cpath%20d%3D%27M223%20366%20C223%20349%20239%20339%20257%20344%20C276%20349%20281%20363%20277%20379%20C273%20396%20253%20401%20239%20396%20C227%20392%20223%20381%20223%20366%20Z%27%2F%3E%3Cpath%20d%3D%27M20%2040%20C90%2070%20150%2040%20210%2080%20C270%20120%20330%2090%20480%20130%27%2F%3E%3Cpath%20d%3D%27M0%20470%20C80%20440%20140%20470%20210%20440%20C290%20405%20360%20445%20500%20410%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  }
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
h1, h2, .brand {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -0.01em;
}
h1, h2 { color: var(--pine-900); }
/* page-title h1 (not the hero, which has its own size): a touch above h2 */
main h1 { font-size: 1.7rem; line-height: 1.15; margin: 1.3rem 0 0.7rem; }
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Real topographic backdrop (Toporama/NRCan) for Mount Assiniboine or Lake
     O'Hara, picked at random per load and washed out by --bg-wash so text
     stays readable. Single fixed layer — no overlap. Content sits on solid
     cards. */
  background-color: var(--bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* === GENERATED topo rules — see scripts/grab-topos.sh ===
   One `body.topo-<slug>` rule per src/ui/topos.ts manifest entry. Regenerated
   (not hand-merged) by the script; if you add a topo by hand, keep the slug
   in both places or pickTopo() can select a class with no matching image. */
body.topo-assiniboine {
  background-image: linear-gradient(var(--bg-wash), var(--bg-wash)), url("/img/topo-assiniboine.webp");
}
body.topo-ohara {
  background-image: linear-gradient(var(--bg-wash), var(--bg-wash)), url("/img/topo-ohara.webp");
}
/* === END GENERATED topo rules === */
header {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap;
  /* Always-visible bar: stays put on scroll and is fully opaque so page
     content never bleeds through the topo-backed body behind it. The solid
     --bg base keeps full opacity; a faint warm gradient + low-opacity topo
     contour tile (reused --topo var) layer on top for cartographic depth. */
  position: sticky; top: 0; z-index: 70;
  background-color: var(--bg);
  background-image:
    var(--topo),
    linear-gradient(to bottom,
      color-mix(in srgb, var(--sun-200) 40%, transparent),
      transparent 72%);
  background-repeat: repeat, no-repeat;
  background-size: 300px 300px, 100% 100%;
  background-position: right -40px top -30px, center;
  box-shadow: 0 6px 16px -8px rgb(43 43 38 / 0.16);
}
/* Bottom edge reads as a trail-map boundary: the hairline border-bottom is
   the map edge, this dashed accent stripe is the trail running along it. */
header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  pointer-events: none;
  background: repeating-linear-gradient(to right,
    color-mix(in srgb, var(--accent) 55%, transparent) 0 11px,
    transparent 11px 21px);
}
@media (prefers-color-scheme: dark) {
  /* light drop shadow vanishes on the dark body — deepen it so the bar still
     lifts off the topo backdrop. */
  header { box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.55); }
}
/* Shrink-on-scroll as progressive enhancement: browsers with scroll-driven
   animations tighten the bar after a little scroll; everywhere else it just
   stays full-size and sticky (still fully functional). Skipped under
   reduced-motion. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    header {
      animation: header-shrink linear both;
      animation-timeline: scroll(root);
      animation-range: 0 140px;
    }
    header .brand {
      animation: brand-shrink linear both;
      animation-timeline: scroll(root);
      animation-range: 0 140px;
    }
    @keyframes header-shrink {
      to { padding-top: 0.35rem; padding-bottom: 0.35rem; }
    }
    @keyframes brand-shrink {
      to { font-size: 0.98rem; }
    }
  }
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.1rem;
}
/* emoji sits in a small rounded map-marker tile so the lockup reads as a
   deliberate mark, not a stray glyph. Sized in em so it tracks the
   shrink-on-scroll brand font-size. */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7em; height: 1.7em; border-radius: var(--radius-s); line-height: 1;
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.brand-word { letter-spacing: -0.02em; }
nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
nav a { color: var(--accent); text-decoration: none; }
/* top-level nav links (not the CTA buttons, not the dropdown-panel links)
   get an accent underline that wipes in from the left on hover/focus. */
nav > a:not(.btn) {
  position: relative; padding: 0.3rem 0.15rem; border-radius: var(--radius-s);
}
nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0.15rem; right: 0.15rem; bottom: 0.05rem;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.18s ease;
}
nav > a:not(.btn):hover::after,
nav > a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav-auth { gap: 0.9rem; }
/* Primary site nav: inline links on desktop, hamburger dropdown on mobile.
   Site operations live here; the avatar (.header-actions) is account-only. */
.nav-cb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mainnav-toggle { display: none; } /* hamburger label — mobile only */
.mainnav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.mainnav-links a { color: var(--accent); text-decoration: none; white-space: nowrap; }
/* hover affordance comes from the shared wipe underline (nav > a::after); no
   extra text-decoration underline (that made a distracting double line). */
.header-actions { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }

/* ── waffle site menu: 9-box button (next to login/avatar) → right-side drawer
   with big links + subtitles (campc style). CSS-only checkbox toggle. ── */
.waffle-btn {
  display: inline-flex; align-items: center; justify-content: center; line-height: 0;
  padding: 0.32rem; border-radius: var(--radius-s); cursor: pointer; color: var(--ink);
  background: none; border: 1px solid transparent;
}
.waffle-btn:hover { background: var(--chip-bg); border-color: var(--line); }
.menu-cb { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.menu-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / 0.35);
  opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.menu-cb:checked ~ .menu-scrim { opacity: 1; visibility: visible; transition: opacity 0.28s ease; }
.site-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(92vw, 30rem); background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; padding: clamp(1.2rem, 4vw, 2.4rem);
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
  overflow-y: auto; box-shadow: -8px 0 30px rgb(0 0 0 / 0.25);
}
.menu-cb:checked ~ .site-menu { transform: none; }
.site-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.site-menu .brand, .site-menu .brand-word { color: var(--accent-ink); }
.site-menu .brand-mark { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.3); }
.menu-close { cursor: pointer; font-size: 1.35rem; line-height: 1; padding: 0.25rem 0.5rem; border-radius: var(--radius-s); user-select: none; }
.menu-close:hover { background: rgb(255 255 255 / 0.15); }
.site-menu-links { display: flex; flex-direction: column; }
.site-link {
  display: block; text-decoration: none; color: var(--accent-ink);
  padding: 0.7rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.18);
}
.site-link-label {
  display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.5rem; font-weight: 700; line-height: 1.15;
}
.site-link:hover .site-link-label { text-decoration: underline; }
.site-link-sub { display: block; font-size: 0.85rem; opacity: 0.82; }
@media (max-width: 860px) {
  .mainnav-toggle {
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    width: 2.1rem; height: 2.1rem; font-size: 1.3rem; line-height: 1;
    border: 1px solid var(--line); background: var(--card); border-radius: 8px; color: var(--ink);
  }
  .mainnav-links { display: none; } /* collapsed by default on mobile */
  .nav-cb:checked ~ .mainnav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.1rem; min-width: 13rem;
    position: absolute; top: 3.1rem; left: 1.2rem; z-index: 80;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
    box-shadow: 0 8px 28px rgb(0 0 0 / 0.22); padding: 0.4rem;
  }
  .nav-cb:checked ~ .mainnav-links a { padding: 0.45rem 0.6rem; border-radius: 6px; }
  .nav-cb:checked ~ .mainnav-links a:hover { background: var(--chip-bg); text-decoration: none; }
}
/* primary action buttons (New watch / Log in) — gentle gradient + lift so
   they read as the deliberate call to action in the bar. */
.nav-cta {
  background-image: linear-gradient(to bottom,
    color-mix(in srgb, var(--accent) 86%, white), var(--accent));
  box-shadow: 0 1px 2px rgb(43 43 38 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.nav-cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 2px 7px rgb(43 43 38 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.22);
}
.nav-cta:active { transform: translateY(1px); }
/* account dropdown (CSS-only <details>) */
.usermenu { position: relative; }
.usermenu > summary { list-style: none; cursor: pointer; }
.usermenu > summary::-webkit-details-marker { display: none; }
.avatar {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-weight: 700;
  font-family: "Bricolage Grotesque", system-ui, sans-serif; user-select: none;
  border: 2px solid color-mix(in srgb, var(--card) 65%, transparent);
  box-shadow: 0 1px 3px rgb(43 43 38 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.avatar:hover { transform: translateY(-1px); box-shadow: 0 3px 7px rgb(43 43 38 / 0.32), inset 0 1px 0 rgb(255 255 255 / 0.22); }
.avatar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* open dropdown: accent ring so the avatar reads as the active toggle */
.usermenu[open] > .avatar { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.avatar-c0 { background: var(--c0); }
.avatar-c1 { background: var(--c1); }
.avatar-c2 { background: var(--c2); }
.avatar-c3 { background: var(--c3); }
.usermenu-panel {
  position: absolute; right: 0; top: 2.6rem; z-index: 80; min-width: 12rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.22); padding: 0.4rem; display: grid; gap: 0.1rem;
}
.usermenu-panel a { padding: 0.4rem 0.6rem; border-radius: 6px; color: var(--ink); }
.usermenu-panel a:hover { background: var(--chip-bg); }
.usermenu-name { padding: 0.4rem 0.6rem 0.3rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.usermenu-plan { font-size: 0.65rem; text-transform: uppercase; background: var(--chip-bg); color: var(--muted); padding: 0.1rem 0.4rem; border-radius: 999px; letter-spacing: 0.03em; }
.usermenu-panel hr { border: none; border-top: 1px solid var(--line); margin: 0.25rem 0; }
.usermenu-logout { width: 100%; text-align: left; background: none; color: var(--warn); padding: 0.4rem 0.6rem; border-radius: 6px; font-size: 1rem; }
.usermenu-logout:hover { background: var(--chip-bg); }
main { max-width: 860px; margin: 0 auto; padding: 1.2rem; }
footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 1.5rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 1rem 1.2rem; margin-bottom: 0.9rem; box-shadow: var(--shadow-card);
}
.card h3 { margin: 0 0 0.2rem; }
.meta { color: var(--muted); font-size: 0.88rem; }
.open { color: var(--accent); font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.08rem 0.6rem; border-radius: 999px;
  font-size: 0.75rem; border: 1px solid var(--line); vertical-align: middle;
}
/* semantic dot: shape + color, never color alone; hollow = paused */
.badge::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.badge.paused::before { background: none; border: 1.5px solid currentColor; }
.badge.active { background: var(--accent); color: var(--accent-ink); border: none; }
.badge.paused { background: var(--line); }
.badge.expired, .badge.error { background: var(--warn); color: #fff; border: none; }
.row-actions { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
button, .btn {
  background: var(--accent); color: var(--accent-ink); border: none; border-radius: 8px;
  padding: 0.5rem 1rem; font-size: 0.95rem; cursor: pointer; text-decoration: none;
}
button.link, .row-actions button {
  background: none; color: var(--accent); padding: 0; font-size: 0.9rem;
  text-decoration: underline;
}
form.inline { display: inline; }
label { display: block; margin: 0.8rem 0 0.25rem; font-weight: 600; }
input, select {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font-size: 1rem;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 0.2rem; }
.error { color: var(--warn); font-weight: 600; }
#park-results { list-style: none; margin: 0.3rem 0 0; padding: 0; }
#park-results li {
  padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 0.3rem; cursor: pointer; background: var(--card);
}
#park-results li:hover { border-color: var(--accent); }
.submit-row { margin-top: 1.2rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
button.alt, .btn.alt { background: var(--card); color: var(--accent); border: 1px solid var(--accent); }
/* park-name headings that link to the fullness hub read as headings, click as links */
.watch-head h3 a, .card h3 a { color: inherit; text-decoration: none; }
.watch-head h3 a:hover, .card h3 a:hover { text-decoration: underline; }
/* eyeball shortcut: jump straight to a watch from a park name on fullness pages */
.watch-eye { text-decoration: none; opacity: 0.5; font-size: 0.8em; vertical-align: middle; }
.watch-eye:hover, .watch-eye:focus-visible { opacity: 1; }
/* hero draws no texture of its own — the body's organic topo shows through,
   so there's no contours-over-circles double layer. */
.hero { text-align: center; padding: 3rem 0 1rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.12; margin: 0 0 0.8rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.tagline { max-width: 38rem; margin: 0 auto 1rem; color: var(--muted); font-size: 1.05rem; }
.pitch { list-style: none; padding: 0; max-width: 34rem; margin: 0 auto; text-align: left; }
.pitch li { margin: 0.45rem 0; }
section h2 { margin: 1.6rem 0 0.7rem; }
/* fixed column count so widths + gaps stay uniform (auto-fill stretched the
   last row unevenly: 3,3,2 with the last two wider). 3 across → 2 → 1. */
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; align-items: stretch; }
@media (max-width: 720px) { .coverage { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .coverage { grid-template-columns: 1fr; } }
.coverage > * { margin: 0; }
.card.slim { margin: 0; padding: 0.7rem 0.9rem; }
.card.slim p { margin: 0.15rem 0 0; }
/* coverage: two-tier expandable boxes (system → park → campgrounds) */
.coverage-list { display: grid; gap: 0.6rem; }
.sys-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.sys-box > summary {
  padding: 0.8rem 1rem; cursor: pointer; list-style: none;
}
.sys-box > summary::-webkit-details-marker { display: none; }
.sys-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sys-head::before { content: "▸ "; color: var(--accent); }
.sys-box[open] > summary .sys-head::before { content: "▾ "; }
.sys-desc { display: block; color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0 0 1.1rem; }
.sys-box[open] > summary { border-bottom: 1px solid var(--line); }
/* single-park areas: shown flat (no summary/collapse), same card chrome */
.sys-flat { padding: 0.2rem 0.5rem; }
.sys-flat .occ-table tr:last-child td { border-bottom: none; }
/* park groups + single parks flow into narrow auto-fitting columns — no
   fixed 2-col (which left wide gaps) and no horizontal scroll. */
.park-groups {
  margin: 0; padding: 0.6rem 1rem; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.15rem 1rem; align-items: start;
}
.park-leaf, .park-box > summary { padding: 0.2rem 0; font-size: 0.9rem; }
.park-box { grid-column: auto; }
.park-box > summary { cursor: pointer; list-style: none; color: var(--accent); }
.park-box > summary::-webkit-details-marker { display: none; }
.park-box > summary::before { content: "+ "; }
.park-box[open] > summary::before { content: "− "; }
.camp-list { margin: 0.1rem 0 0.4rem 0.8rem; padding-left: 0.6rem; list-style: none; border-left: 2px solid var(--line); font-size: 0.85rem; }
.camp-list li { padding: 0.12rem 0; }
/* clickable park → start a watch */
.park-link { text-decoration: none; color: var(--accent); }
.park-link:hover { text-decoration: underline; }
.park-leaf { padding: 0.2rem 0; }
/* boxed second tier so multi-campground parks stand out among single ones */
.park-box-wrap { grid-column: 1 / -1; }
.park-box { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.3rem 0.6rem; background: var(--sand-300); margin: 0.2rem 0; }
.park-box > summary { color: var(--ink); font-weight: 600; }
.camp-list { columns: 2; column-gap: 1.4rem; }
@media (max-width: 560px) { .camp-list { columns: 1; } }
.cov-link { display: block; text-decoration: none; color: var(--ink); }
.cov-link:hover { border-color: var(--accent); }
.cov-link strong { color: var(--accent); }
.mode-row { display: flex; gap: 1.2rem; margin: 0.2rem 0 0.4rem; }
.mode-row .radio { font-weight: 400; margin: 0; display: flex; gap: 0.35rem; align-items: center; }
.mode-row input[type="radio"] { width: auto; }
.site-list {
  max-height: 14rem; overflow-y: auto; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.5rem 0.7rem;
}
.site-list label { font-weight: 400; margin: 0.15rem 0; display: flex; gap: 0.4rem; align-items: center; }
.site-list input[type="checkbox"] { width: auto; }

/* dashboard: view tabs + polished list cards */
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.view-tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-tabs a { padding: 0.3rem 0.9rem; text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.view-tabs a.active { background: var(--accent); color: var(--accent-ink); }
/* watch cards flow into columns: a minimum block width, side by side when the
   viewport has room, single-column when it doesn't. */
.watch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 0.9rem; align-items: start;
}
.watch-grid > .card { margin-bottom: 0; }
.watch-card { border-left-width: 4px; }
.cal-c0-accent { border-left-color: var(--c0); }
.cal-c1-accent { border-left-color: var(--c1); }
.cal-c2-accent { border-left-color: var(--c2); }
.cal-c3-accent { border-left-color: var(--c3); }
.watch-head { display: flex; justify-content: space-between; align-items: start; gap: 0.6rem; }
.watch-head h3 { margin: 0; }
.watch-head .meta { margin: 0.05rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0.4rem; }
.chip {
  background: var(--chip-bg); border-radius: 999px; padding: 0.15rem 0.7rem;
  font-size: 0.82rem; white-space: nowrap;
}
.open-banner {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid var(--accent); border-radius: 8px;
  padding: 0.45rem 0.8rem; font-weight: 600; margin: 0.4rem 0;
}
.meta.faint { font-size: 0.78rem; }

/* calendar view */
.cal-month h3 { margin: 0 0 0.6rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 0.72rem; color: var(--muted); padding-bottom: 0.2rem; }
.cal-cell {
  min-height: 3.4rem; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.15rem 0.2rem; overflow: hidden; background: var(--card);
}
.cal-empty { border: none; background: none; }
.cal-today { outline: 2px solid var(--accent); outline-offset: -2px; }
/* past days: a faint diagonal slash, like crossing off a paper calendar */
.cal-past { position: relative; }
.cal-past::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 6px;
  background: linear-gradient(to top right, transparent calc(50% - 0.6px), var(--muted) calc(50% - 0.6px), var(--muted) calc(50% + 0.6px), transparent calc(50% + 0.6px));
  opacity: 0.4;
}
.cal-past .cal-daynum { opacity: 0.55; }
/* a night that currently has an opening — dot in the corner */
.cal-open-night { position: relative; }
.cal-open-night::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card);
}
.cal-open-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); display: inline-block; }
/* trip rooms */
.night-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.2rem 0.6rem; margin: 0.3rem 0; }
.night-check { font-weight: 400; display: flex; gap: 0.3rem; align-items: center; margin: 0; }
.claim-grid { display: grid; gap: 0.3rem; }
.claim-row { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
/* occupancy page */
.occ-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.occ-table th, .occ-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }
.occ-pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.occ-high { background: var(--clay-100); color: var(--clay-600); }
.occ-med { background: var(--sun-200); color: var(--ink); }
.occ-low { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.fullness-line { margin: 0.5rem 0 0; font-size: 0.9rem; display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.fresh-dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; vertical-align: middle; }
.fresh-current { background: var(--accent); }
.fresh-warm { background: #d9a520; }
.fresh-cold { background: var(--muted); }
.fresh-none { background: var(--line); }
.cal-daynum { font-size: 0.72rem; color: var(--muted); display: block; }
.cal-bar {
  height: 0.95rem; margin-top: 2px; font-size: 0.68rem; line-height: 0.95rem;
  color: #fff; padding: 0 0.25rem; white-space: nowrap; overflow: hidden;
  border-radius: 0;
}
/* occupancy park calendar: a night bar that links to an action (book / watch) */
a.cal-bar { display: block; text-decoration: none; }
.cal-bar-link { cursor: pointer; }
.cal-bar-link:hover, .cal-bar-link:focus-visible { outline: 1.5px solid var(--accent); outline-offset: -1px; }
.cal-bar.cal-start { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.cal-bar.cal-end { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.cal-bar.cal-paused { opacity: 0.45; }
.cal-c0 { background: var(--c0); --bar-color: var(--c0); }
.cal-c1 { background: var(--c1); --bar-color: var(--c1); }
.cal-c2 { background: var(--c2); --bar-color: var(--c2); }
.cal-c3 { background: var(--c3); --bar-color: var(--c3); }
/* follows calendar: outline in the park colour, fill graded by availability */
.cal-bar.graded { border: 1.5px solid var(--bar-color); color: var(--ink); height: 0.95rem; }
/* fill = availability status (traffic-light); the 1.5px outline stays the park
   colour so identity + status read at once */
.cal-bar.graded.avail-high { background: var(--avail-room); color: #fff; }
.cal-bar.graded.avail-med { background: var(--avail-filling); color: #2b2b26; }
.cal-bar.graded.avail-low { background: var(--avail-packed); color: #fff; }
.cal-bar.graded.avail-unknown { background: transparent; }
/* FULL: no sites open that night — distinct solid clay, not part of the
   availability gradient, so it reads as blocked at a glance. */
.cal-bar.graded.avail-full { background: var(--avail-full); border-color: var(--avail-full); color: #fff; }
/* follows calendar + side legend layout */
.cal-with-legend { display: flex; gap: 1rem; align-items: flex-start; }
.cal-main { flex: 1; min-width: 0; }
.cal-side-legend { flex: 0 0 11rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0.7rem 0.9rem; box-shadow: var(--shadow-card); }
.cal-side-legend h4 { margin: 0 0 0.5rem; }
.cal-side-legend ul { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.cal-side-legend li { display: flex; align-items: center; gap: 0.5rem; margin: 0.3rem 0; font-size: 0.85rem; }
.lg-swatch { width: 1.4rem; height: 0.95rem; border-radius: 4px; border: 1.5px solid var(--accent); flex: none; }
.lg-high { background: var(--avail-room); border-color: var(--avail-room); }
.lg-med { background: var(--avail-filling); border-color: var(--avail-filling); }
.lg-low { background: var(--avail-packed); border-color: var(--avail-packed); }
.lg-unknown { background: transparent; border-color: var(--muted); }
.lg-full { background: var(--avail-full); border-color: var(--avail-full); }
@media (max-width: 640px) { .cal-with-legend { flex-direction: column; } .cal-side-legend { flex-basis: auto; width: 100%; } }
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.4rem 0 0; }
.cal-legend-item { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }
.cal-swatch { width: 0.8rem; height: 0.8rem; border-radius: 3px; display: inline-block; }
@media (max-width: 560px) {
  .cal-bar-label { display: none; }
  .cal-cell { min-height: 2.2rem; }
}

/* public pages: steps strip, tier grid, quota chip, footer */
.steps { list-style: none; padding: 0; max-width: 40rem; margin: 1rem auto; display: grid; gap: 0.7rem; text-align: left; }
.steps li {
  display: grid; grid-template-columns: 2.2rem 1fr; grid-template-rows: auto auto;
  column-gap: 0.7rem; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-card);
}
.steps .step-n {
  grid-row: 1 / 3; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}
.steps .meta { grid-column: 2; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.9rem; }
.tier-grid .card { margin: 0; }
.tier-supporter { border-color: var(--accent); border-width: 2px; }
.quota-chip {
  font-size: 0.72rem; font-weight: 600; vertical-align: middle; margin-left: 0.6rem;
  background: var(--chip-bg); border-radius: 999px; padding: 0.15rem 0.6rem;
  font-family: system-ui, sans-serif; letter-spacing: 0;
}
.quota-chip.full { background: var(--clay-100); color: var(--clay-600); }
.btn-small { padding: 0.3rem 0.85rem; font-size: 0.88rem; border-radius: var(--radius-s); }
nav a.btn-small { color: var(--accent-ink); }
.footer-links { display: flex; gap: 1.1rem; justify-content: center; margin-bottom: 0.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
footer a { color: var(--muted); }
.open-banner { background: var(--sun-200); }

/* landing extras */
.hero-sub { font-size: 1.15rem; font-weight: 600; color: var(--accent); margin: 0 auto 0.6rem; max-width: 40rem; }
.fairness { max-width: 38rem; margin: 0.8rem auto 0; font-size: 0.9rem; color: var(--muted); font-style: italic; }
.liveness { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 1rem 0; }
.hero-cta { margin-top: 1.4rem; }

/* ── landing arm B: Google-minimal search ──────────────────────────── */
.glanding { min-height: 74vh; display: flex; flex-direction: column; }
.gtop { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: 0.4rem 0; }
.gtop .link { color: var(--muted); text-decoration: none; }
.gtop .link:hover { color: var(--accent); }
.gcenter { margin: auto; text-align: center; max-width: 34rem; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem; }
.gbrand { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 700; }
.gtag { color: var(--muted); font-size: 1.05rem; margin: 0; }
.gsearch { display: flex; width: 100%; max-width: 30rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; }
.gsearch input { flex: 1; border: none; background: transparent; padding: 0.75rem 1.1rem; font-size: 1rem; color: var(--ink); }
.gsearch input:focus { outline: none; }
.gsearch button { border: none; background: transparent; padding: 0 1.1rem; font-size: 1.1rem; cursor: pointer; color: var(--accent); }
.gbtns { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.gnote { color: var(--muted); font-size: 0.85rem; max-width: 30rem; margin: 0; }

/* ── landing arm C: tequila-style overlay menu + stat hero ──────────── */
.teq-cb { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
/* break out of main's 860px cap so the logo sits far-left and the nav/CTA
   far-right across a wide container, like tequila.ae (centered via transform;
   width capped under 100vw to avoid a horizontal scrollbar). */
.teq-bar {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 60; box-sizing: border-box;
  width: min(96vw, 1240px); margin-left: 50%; transform: translateX(-50%);
  padding: 0.7rem clamp(1.2rem, 4vw, 3rem);
}
.teq-toggle { cursor: pointer; font-weight: 700; letter-spacing: 0.02em; padding: 0.4rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; user-select: none; }
.teq-toggle-close { display: none; }
.teq-cb:checked ~ .teq-bar .teq-toggle-open { display: none; }
.teq-cb:checked ~ .teq-bar .teq-toggle-close { display: inline; }
.teq-cb:checked ~ .teq-bar .teq-toggle { color: var(--accent-ink); border-color: rgba(255,255,255,0.5); }
.teq-scrim { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.teq-cb:checked ~ .teq-scrim { pointer-events: auto; }
.teq-overlay {
  position: fixed; inset: 0; z-index: 50; background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: center; gap: 0.1rem;
  padding: clamp(1.5rem, 6vw, 5rem); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-1.4rem);
  transition: opacity 0.34s ease, transform 0.34s ease, visibility 0s linear 0.34s;
}
.teq-cb:checked ~ .teq-overlay {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.34s ease, transform 0.34s ease;
}
.teq-link {
  display: block; text-decoration: none; color: var(--accent-ink);
  padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.18);
  opacity: 0; transform: translateY(0.6rem); transition: opacity 0.3s ease, transform 0.3s ease;
}
.teq-cb:checked ~ .teq-overlay .teq-link { opacity: 1; transform: none; }
.teq-cb:checked ~ .teq-overlay .teq-link:nth-child(1) { transition-delay: 0.06s; }
.teq-cb:checked ~ .teq-overlay .teq-link:nth-child(2) { transition-delay: 0.11s; }
.teq-cb:checked ~ .teq-overlay .teq-link:nth-child(3) { transition-delay: 0.16s; }
.teq-cb:checked ~ .teq-overlay .teq-link:nth-child(4) { transition-delay: 0.21s; }
.teq-cb:checked ~ .teq-overlay .teq-link:nth-child(5) { transition-delay: 0.26s; }
.teq-cb:checked ~ .teq-overlay .teq-link:nth-child(6) { transition-delay: 0.31s; }
.teq-lg { display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 700; line-height: 1.12; }
.teq-link:hover .teq-lg { text-decoration: underline; }
.teq-sub { display: block; font-size: 0.9rem; opacity: 0.82; }
.teq-cta { margin-top: 1.3rem; align-self: flex-start; background: var(--accent-ink); color: var(--accent); }
.teq-hero { text-align: center; padding: clamp(2rem, 8vw, 5rem) 0 2rem; max-width: 42rem; margin: 0 auto; }
.teq-hero h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.1; margin: 0 0 1rem; }
.teq-hero h1 em { color: var(--accent); font-style: normal; }
.teq-lede { font-size: 1.1rem; color: var(--muted); max-width: 34rem; margin: 0 auto 1.6rem; }
.teq-stats { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin: 1.6rem 0; }
.teq-stat { display: flex; flex-direction: column; }
.teq-stat strong { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 1.9rem; color: var(--accent); }
.teq-stat span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.teq-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
/* tequila.ae desktop nav: right-justified horizontal menu; each label is two
   stacked copies inside an overflow-clipped wrap — on hover the stack slides up
   one line so the duplicate rolls in from below to replace it. */
/* generous gap so the Log in CTA is clearly separated from the menu (the
   "space before Get in touch" on tequila.ae). */
.teq-right { display: flex; align-items: center; gap: 2.2rem; }
.teq-desktop-nav { display: none; }
@media (min-width: 900px) {
  .teq-desktop-nav { display: flex; align-items: center; gap: 1.7rem; flex-wrap: nowrap; }
  .teq-right .teq-toggle { display: none; }
}
@media (max-width: 899px) {
  /* mobile: the Log in CTA lives inside the overlay; bar shows just the burger */
  .teq-nav-cta { display: none; }
}
.teq-nav-link { text-decoration: none; color: var(--ink); font-weight: 600; }
.teq-roll { display: block; overflow: hidden; height: 1.4em; }
.teq-roll > span {
  display: block; height: 1.4em; line-height: 1.4;
  transition: transform 0.34s cubic-bezier(0.65, 0, 0.35, 1);
}
.teq-nav-link:hover .teq-roll > span,
.teq-nav-link:focus-visible .teq-roll > span { transform: translateY(-100%); }

/* coverage search + results (two-level coverage nav) */
.cov-search { display: flex; gap: 0.5rem; max-width: 30rem; margin: 0.8rem 0 1.2rem; }
.cov-search input { flex: 1; padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); color: var(--ink); font-size: 1rem; }
.cov-results { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.3rem 1rem; }
.cov-results li { padding: 0.25rem 0; }
.cov-sys { font-size: 0.8rem; }
/* CSS-only login overlay (:target). No JS; closes via the × or backdrop link. */
.modal {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 24, 20, 0.55); align-items: flex-start; justify-content: center;
  padding: 8vh 1rem;
}
.modal:target, .modal.modal-open { display: flex; }
.modal-card { max-width: 26rem; width: 100%; margin: 0; position: relative; box-shadow: 0 12px 40px rgb(0 0 0 / 0.3); }
.modal-close {
  position: absolute; top: 0.4rem; right: 0.7rem; font-size: 1.6rem; line-height: 1;
  text-decoration: none; color: var(--muted);
}
/* admin-only A/B switcher — hover tab pinned bottom-right */
.ab-switch { position: fixed; bottom: 1rem; right: 1rem; z-index: 90; font-size: 0.8rem; }
.ab-tab {
  display: inline-block; background: var(--clay-600); color: #fff; padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-card); cursor: default;
}
.ab-menu {
  display: none; position: absolute; bottom: 2.2rem; right: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0.4rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); min-width: 8rem;
}
.ab-switch:hover .ab-menu { display: block; }
.ab-arm { display: block; padding: 0.3rem 0.6rem; text-decoration: none; color: var(--ink); border-radius: 6px; }
.ab-arm:hover { background: var(--chip-bg); }
.ab-arm.active { color: var(--accent); font-weight: 600; }
/* honest example-alert card (Discord-styled, clearly labeled) */
.alert-demo { margin: 1rem auto; max-width: 30rem; }
.discord-msg { background: #313338; color: #dbdee1; border-radius: var(--radius-m); padding: 0.8rem 1rem; border-left: 3px solid var(--accent); font-size: 0.9rem; }
.discord-bot { color: #fff; font-weight: 600; font-size: 0.85rem; }
.discord-bot::after { content: " APP"; background: #5865f2; color: #fff; font-size: 0.6rem; padding: 0.05rem 0.25rem; border-radius: 3px; margin-left: 0.3rem; vertical-align: middle; }
.discord-msg p { margin: 0.25rem 0; }
.discord-title { font-weight: 600; color: #fff; }
.discord-foot { color: #949ba4; font-size: 0.8rem; }
.alert-demo figcaption { text-align: center; margin-top: 0.4rem; }
/* near-me */
.nearme-controls { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.8rem; }
#nearme-map { height: 340px; border-radius: var(--radius-m); border: 1px solid var(--line); margin-bottom: 1rem; }
.nights-strip { display: flex; gap: 3px; margin: 0.4rem 0; flex-wrap: wrap; }
.night-cell { text-align: center; font-size: 0.68rem; border-radius: 5px; padding: 0.15rem 0.35rem; background: var(--chip-bg); min-width: 2.6rem; }
.night-cell.has-open { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.dist { color: var(--muted); font-size: 0.85rem; }
/* status page */
.stats-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1rem 0; }
.stat-tile { flex: 1; min-width: 8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem; text-align: center; box-shadow: var(--shadow-card); }
.stat-n { display: block; font-size: 2rem; font-weight: 700; font-family: "Bricolage Grotesque", system-ui, sans-serif; color: var(--accent); }
.rank { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.rank li { margin: 0.25rem 0; }
.prose p { margin: 0.6rem 0; }
.admin-note { background: var(--clay-100); color: var(--clay-600); border-radius: var(--radius-s); padding: 0.4rem 0.7rem; font-size: 0.82rem; }
/* admin */
.invite-row { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.invite-row code { background: var(--chip-bg); padding: 0.1rem 0.4rem; border-radius: 5px; }
.share-link { word-break: break-all; }
.admin-users { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-users th, .admin-users td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }
.admin-users th.num, .admin-users td.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-users tr.total-row td { border-top: 2px solid var(--line); border-bottom: none; }
/* admin brand-assets previews */
.brand-assets { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-start; }
.brand-assets figure { margin: 0; }
.brand-preview { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); padding: 0.3rem; }
.brand-preview-sq { border-radius: var(--radius-m); padding: 0; }
/* utility classes (replace inline style= so a strict style-src CSP holds) */
.card-narrow { max-width: 26rem; margin: 1.5rem auto; }
.w-auto { width: auto; }
.input-narrow { max-width: 16rem; }
.tagline-left { margin-left: 0; text-align: left; }
.center-block { text-align: center; margin: 1.4rem 0; }

/* ==== Planning Groups (added 2026-07-25; trip-rooms rework) ================= */
/* friend invite multi-select */
.planning-invite-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.15rem 0.6rem; margin: 0.3rem 0 0.6rem; }
.planning-invite { font-weight: 400; display: flex; gap: 0.35rem; align-items: center; margin: 0; }
.planning-fallback { margin: 0.4rem 0; }
.planning-fallback summary { cursor: pointer; font-weight: 600; }
/* goal + day-type radios */
.planning-radios { display: flex; flex-direction: column; gap: 0.2rem; margin: 0.2rem 0 0.7rem; }
.planning-radio { font-weight: 400; display: flex; gap: 0.4rem; align-items: baseline; margin: 0; }
/* unavailability month-grid picker (pure-HTML checkboxes; no JS, CSP-safe) */
.planning-cal-wrap { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.4rem 0 0.6rem; }
.planning-cal { flex: 1; min-width: 15rem; }
.planning-cal h4 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.planning-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.planning-dow { text-align: center; font-size: 0.68rem; color: var(--muted); }
.planning-day {
  position: relative; min-height: 2.2rem; border: 1px solid var(--line); border-radius: 6px;
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 0.1rem 0.25rem;
  cursor: pointer; background: var(--card); user-select: none;
}
.planning-day .planning-daynum { font-size: 0.72rem; color: var(--muted); }
/* the checkbox stays in the DOM (accessible) but is visually collapsed; the
   cell shading is the control's affordance. */
.planning-day-cb { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.planning-empty { border: none; background: none; cursor: default; }
.planning-out { background: var(--bg); opacity: 0.4; cursor: default; }
/* a member's preferred night type — subtle outline so it's distinct from picked */
.planning-pref { border-color: var(--accent); }
/* picked = UNAVAILABLE night */
.planning-day:has(.planning-day-cb:checked) { background: var(--clay-100); border-color: var(--clay-600); }
.planning-day:has(.planning-day-cb:checked) .planning-daynum { color: var(--clay-600); font-weight: 700; }
.planning-day:has(.planning-day-cb:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
/* mutual-night chip that every member prefers */
.planning-chip-pref { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 600; }
.planning-live { margin-top: 0.6rem; }

/* ==== Planning Groups v2 (added 2026-07-25; ADR-CFC-004 holds/capacity) ==== */
/* in-cart holds: one row per candidate night, holders + progress + release/hold */
.hold-grid { display: grid; gap: 0.6rem; }
.hold-row { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.hold-row-head { display: flex; align-items: center; gap: 0.5rem; justify-content: space-between; }
.hold-row .chips { margin: 0.3rem 0; }
