/* ==========================================================================
   EAST BENCH OVERLANDERS — site stylesheet
   Ogden, Utah convoy club. Canyon-country palette, editorial grid.
   Every colour, face and rule lives in :root so the club can re-skin once.
   ========================================================================== */

@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/barlow-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2");
}

:root {
  /* palette — canyon at dusk */
  --ink:        #0b0a09;
  --ink-2:      #12100e;
  --ink-3:      #1a1714;
  --line:       rgba(233, 224, 210, .14);
  --line-soft:  rgba(233, 224, 210, .07);
  --sand:       #ece3d4;
  --sand-dim:   #b6a893;
  --sand-faint: #8b8071;
  --ember:      #d4603a;
  --ember-lit:  #f08a5d;
  --sage:       #93a48d;
  --sky:        #22303d;

  /* type */
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* measure */
  --page: 1320px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --rule: 1px solid var(--line);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--ember); color: #120d0a; }

:focus-visible {
  outline: 2px solid var(--ember-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- shell ------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.rule-top { border-top: var(--rule); }

.sec-head {
  display: flex; align-items: baseline; gap: 18px;
  padding-top: 26px; margin-bottom: clamp(28px, 4vw, 56px);
  border-top: var(--rule);
}
.sec-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--ember); white-space: nowrap; padding-top: 4px;
}
.sec-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(13px, 1.1vw, 14px); letter-spacing: .3em; text-transform: uppercase;
  color: var(--sand-dim); margin: 0;
}

/* ---------- header ------------------------------------------------------ */

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(11, 10, 9, .78), rgba(11, 10, 9, 0));
  transition: background .45s ease, padding .45s ease, border-color .45s ease;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(11, 10, 9, .92);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
  padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; display: block; }
.join-emblem { width: 128px; height: 128px; display: block; margin: 0 0 16px; }
.hero-emblem { width: 148px; height: 148px; display: block; margin: 0 0 26px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: .14em; text-transform: uppercase;
}
.brand-sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: .22em;
  color: var(--sand-faint); text-transform: uppercase; margin-top: 5px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: 13px;
  letter-spacing: .17em; text-transform: uppercase; text-decoration: none;
  color: var(--sand-dim); padding: 6px 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ember); transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--sand); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.head-cond {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--sand-dim); padding: 7px 11px; border: var(--rule); border-radius: 2px;
  white-space: nowrap;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 0 rgba(147,164,141,.6); animation: pulse 3.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147,164,141,.55); }
  55%      { box-shadow: 0 0 0 6px rgba(147,164,141,0); }
}

.nav-toggle {
  display: none; margin-left: auto; background: none; border: var(--rule);
  border-radius: 2px; padding: 10px 12px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--sand); margin: 4px 0; }

/* ---------- hero -------------------------------------------------------- */

/* The frame opens at the top: emblem and slogan ride just under the fixed
   header, and the photograph keeps the rest of the viewport. */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-start; isolation: isolate; overflow: clip;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
  filter: saturate(1.08) contrast(1.06);
  will-change: transform; transform-origin: 50% 60%;
  animation: kenburns 40s ease-in-out infinite alternate;
}
.hero-media--portrait { display: none; }
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to   { transform: scale(1.13) translate3d(-1.2%, -1.4%, 0); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(212,96,58,.20), transparent 60%),
    linear-gradient(to bottom, rgba(11,10,9,.66) 0%, rgba(11,10,9,.10) 30%, rgba(11,10,9,.14) 68%, rgba(11,10,9,.52) 92%, var(--ink) 100%),
    linear-gradient(to right, rgba(11,10,9,.88), rgba(11,10,9,.46) 46%, rgba(11,10,9,.10) 74%, rgba(11,10,9,0) 92%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Emblem on the left, the club's words to its right. The markup order is
   unchanged (picture, eyebrow, h1, cta, figs) — the grid does the placing, so a
   screen reader still meets the emblem first and the figure strip still spans
   the full width underneath. */
.hero-inner {
  padding-block: clamp(104px, 9.5vh, 128px) 0;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  column-gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
.hero-emblem { grid-column: 1; grid-row: 1 / span 3; margin: 0; align-self: start; }
.hero-inner .hero-slogan { grid-column: 2; }
.hero-inner .eyebrow { grid-column: 2; }
.hero-inner h1.hero-lede { grid-column: 2; }
.hero-inner .hero-cta { grid-column: 2; }
.hero-inner .hero-figs { grid-column: 1 / -1; }

/* The slogan is the frame's display line, set as a plate beside the emblem —
   not a mono eyebrow. Sized so the whole line holds one row in the text
   column at 1440 px (~1004 px of track) and stacks to two rows on a phone. */
.hero-slogan {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: .9; letter-spacing: .004em; text-transform: uppercase;
  color: var(--sand); margin: 0 0 22px;
  text-shadow: 0 2px 40px rgba(0,0,0,.55);
  text-wrap: balance;
}
/* A short ember rule between the two halves of the slogan, in place of the
   comma: drawn rather than typed, so it stays hairline at any display size
   instead of scaling into a slab with the 80 px glyphs. */
.hero-slogan .slogan-dash {
  display: inline-block; width: .3em; height: 2px;
  margin: 0 .16em 0 .14em; vertical-align: .34em;
  background: var(--ember); border-radius: 1px;
}
/* The dash travels with the second half: a phone break must not leave a hyphen
   hanging at the end of the first line. */
.hero-slogan .slogan-rest { white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--sand-dim); margin: 0 0 26px;
}
.eyebrow::before {
  content: ""; width: clamp(24px, 5vw, 56px); height: 1px; background: var(--ember);
}

.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.5rem, 6.05vw, 5rem);
  line-height: .93; letter-spacing: -.004em; text-transform: uppercase;
  margin: 0; max-width: none; text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0,0,0,.55);
}
.hero h1 em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 1px rgba(236,227,212,.78); text-shadow: 0 2px 34px rgba(0,0,0,.6);
}
/* The hero h1 is the club statement, not a display slogan: it carries the sub-head
   treatment so the emblem and the eyebrow lead the frame. Two classes + tag outranks
   both `.hero h1` and the 620 px font-size override. */
.hero h1.hero-lede {
  font-family: inherit; font-weight: 400;
  font-size: clamp(1rem, 1.25vw, 1.16rem); line-height: 1.6;
  letter-spacing: 0; text-transform: none; text-wrap: pretty;
  max-width: 46ch; margin: 0; color: #d9cfc0;
  text-shadow: 0 1px 20px rgba(0,0,0,.6);
}
.hero-sub {
  max-width: 46ch; margin: 22px 0 0;
  font-size: clamp(1rem, 1.25vw, 1.16rem); color: #d9cfc0; line-height: 1.6;
  text-shadow: 0 1px 20px rgba(0,0,0,.6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 2px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line); color: var(--sand);
  /* A <button> inherits the UA's grey face; anchors with .btn do not. Clearing it
     keeps <a> and <button> identical, which matters now that the portal uses buttons. */
  background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
.btn--solid { background: var(--ember); border-color: var(--ember); color: #140e0a; }
.btn--solid:hover { background: var(--ember-lit); border-color: var(--ember-lit); transform: translateY(-2px); }
.btn--ghost:hover { border-color: var(--sand-dim); background: rgba(236,227,212,.05); transform: translateY(-2px); }

/* live strip + big figures */
.hero-figs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 5.5vh, 64px); border-top: 1px solid rgba(236,227,212,.2);
  /* The strip now sits over lit rock rather than down in the frame's dark
     floor, so it carries its own wash or the 9.5 px labels lose contrast. */
  background: linear-gradient(to bottom, rgba(11,10,9,.60), rgba(11,10,9,.44));
}
.fig {
  padding: 20px 18px 26px; border-right: 1px solid rgba(236,227,212,.12);
  display: flex; flex-direction: column; gap: 7px; min-width: 0;
}
.fig:last-child { border-right: 0; }
.fig-k {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sand-faint); display: flex; align-items: center; gap: 6px;
}
.fig-v {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1; letter-spacing: .01em; display: flex; align-items: baseline; gap: 5px;
}
.fig-v small {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--sand-dim);
  font-weight: 400;
}
/* The muster coordinate is one line, one face: latitude and longitude in the
   display face at the same weight, the degree and hemisphere marks in that face
   (they were 10 px mono, which read as a second typeface), separated by a dot.
   It is the longest string in the tape, so it carries its own size — measured
   against the cell track at every breakpoint rather than guessed. */
.hero-figs .fig-v--coord { font-size: clamp(1.15rem, 2.1vw, 2.05rem); white-space: nowrap; }
.coord-sep { margin: 0 .22em; font-weight: 400; color: var(--sand-faint); }
.hero-figs .fig-v small {
  font-family: var(--display); font-size: .56em; font-weight: 600;
  letter-spacing: .04em; color: var(--sand-dim);
}
.fig-note { font-size: 12px; color: var(--sand-faint); line-height: 1.4; }
/* The muster cell's note sits on the cell floor with the rest: it keeps the four
   captions level if any one cell ever runs taller than its neighbours. */
.hero-figs .fig-note { margin-top: auto; }
/* The strip rides over lit rock now, so its small text takes the lighter sand:
   measured 5.0:1 over the brightest cell, where --sand-faint read 2.97:1. */
.hero-figs .fig-k,
.hero-figs .fig-note { color: var(--sand-dim); }
.fig-v.is-pending { color: var(--sand-faint); }

.scroll-cue {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 22px 0 26px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--sand-faint);
  text-decoration: none;
}
.scroll-cue i {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--sand-faint));
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; top: -44px; left: 0; width: 1px; height: 44px;
  background: var(--ember-lit); animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip { 0% { top: -44px; } 60%, 100% { top: 44px; } }

/* ---------- marquee ----------------------------------------------------- */

.tape {
  overflow: hidden; border-block: var(--rule); background: var(--ink-2);
  padding: 13px 0; user-select: none;
}
.tape-track {
  display: flex; width: max-content; gap: 0;
  animation: tape 64s linear infinite;
}
.tape:hover .tape-track { animation-play-state: paused; }
.tape span {
  font-family: var(--display); font-weight: 500; font-size: 13px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--sand-dim);
  padding-inline: 26px; white-space: nowrap; display: inline-flex; align-items: center; gap: 26px;
}
.tape span::after { content: "◆"; font-size: 7px; color: var(--ember); }
@keyframes tape { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- generic type ------------------------------------------------- */

.h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: .98;
  letter-spacing: -.005em; text-transform: uppercase; margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; margin: 0;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: #ded4c5; }
.prose p { margin: 0 0 1.1em; color: var(--sand-dim); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--sand); font-weight: 500; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.accent { color: var(--ember); }
.hair { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- brief ------------------------------------------------------- */

.brief { padding-block: clamp(64px, 9vw, 120px); }
.brief-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 84px); align-items: start;
}
.brief-copy .h2 { margin-bottom: 22px; max-width: 20ch; }
.brief-copy .lede { max-width: 46ch; margin-bottom: 26px; }

.pull {
  border-left: 2px solid var(--ember); padding: 4px 0 4px 20px; margin: 34px 0;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.2; color: var(--sand); text-transform: uppercase; letter-spacing: .02em;
}
.pull cite {
  display: block; margin-top: 10px; font-family: var(--mono); font-style: normal;
  font-size: 10px; letter-spacing: .18em; color: var(--sand-faint); text-transform: uppercase;
}

.facts { border-top: var(--rule); }
.facts-row {
  display: flex; align-items: baseline; gap: 16px; padding: 13px 0;
  border-bottom: var(--rule); font-size: 14px;
}
.facts-row dt {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sand-faint); flex: 0 0 44%; line-height: 1.5;
}
.facts-row dd {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px;
  line-height: 1.1; letter-spacing: .01em; text-align: right; margin-left: auto;
}
.facts-row dd small { font-family: var(--mono); font-size: 10px; color: var(--sand-dim); font-weight: 400; }

/* countdown */
.count {
  margin-top: 26px; border: var(--rule); border-radius: 2px;
  background: linear-gradient(160deg, rgba(212,96,58,.10), rgba(18,16,14,.6) 55%);
  padding: 20px 20px 18px;
}
.count-k {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sand-faint); margin-bottom: 14px;
}
.count-k b { color: var(--ember); font-weight: 400; }
.count-when { font-family: var(--display); font-weight: 600; font-size: 21px; text-transform: uppercase; letter-spacing: .02em; }
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.count-cell { text-align: center; border: 1px solid var(--line-soft); border-radius: 2px; padding: 9px 4px 7px; }
.count-cell b {
  display: block; font-family: var(--display); font-weight: 600; font-size: 27px;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.count-cell i {
  display: block; font-family: var(--mono); font-style: normal; font-size: 8.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sand-faint); margin-top: 5px;
}

/* ---------- route / map -------------------------------------------------- */

.route { padding-block: clamp(64px, 9vw, 120px); background: linear-gradient(180deg, var(--ink), var(--ink-2) 40%, var(--ink)); }
.route-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
@media (min-width: 1041px) { .route-grid > div:first-child { position: sticky; top: 92px; } }
.map-card {
  position: relative; border: var(--rule); border-radius: 3px; overflow: hidden;
  background:
    radial-gradient(80% 60% at 30% 12%, rgba(147,164,141,.07), transparent 70%),
    linear-gradient(180deg, #100e0c, #0c0b09);
}
.map-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(236,227,212,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,227,212,.05) 1px, transparent 1px);
  background-size: 42px 42px;
}
.map-svg { position: relative; display: block; width: 100%; height: auto; }
.map-svg .route-line {
  fill: none; stroke: var(--ember); stroke-width: 3.1; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(212,96,58,.45));
}
.map-svg .route-under {
  fill: none; stroke: rgba(236,227,212,.11); stroke-width: 9; stroke-linejoin: round; stroke-linecap: round;
}
.map-svg .wp-dot { fill: var(--ink); stroke: var(--sand-dim); stroke-width: 2.6; cursor: pointer; transition: fill .25s, stroke .25s; }
.map-svg .wp-hit { fill: transparent; cursor: pointer; }
.map-svg .wp.is-active .wp-dot, .map-svg .wp:hover .wp-dot { fill: var(--ember); stroke: var(--ember-lit); }
.map-svg .wp-label {
  font-family: var(--mono); font-size: 22px; letter-spacing: .1em; text-transform: uppercase;
  fill: #a2967f; pointer-events: none;
}
.map-svg .wp-label--sub { font-size: 17px; fill: #96897a; letter-spacing: .14em; }
.map-svg .wp.is-active .wp-label { fill: var(--sand); }
.map-svg .term { fill: var(--ember); stroke: none; }
.map-svg .halo { fill: none; stroke: var(--ember); stroke-width: 2; opacity: .45; }
.map-legend { display: none; }
.map-caption { margin: 10px 0 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-faint); }
.map-legend-old {
  position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sand-faint);
  background: rgba(11,10,9,.72); padding: 6px 9px; border: var(--rule); border-radius: 2px;
}
.map-tag {
  position: absolute; right: 14px; top: 14px; font-family: var(--mono);
  font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand-faint); background: rgba(11,10,9,.72); padding: 6px 9px;
  border: var(--rule); border-radius: 2px;
}

/* ---------- per-leg route maps (trip sheets) ----------------------------- */

.map-fig { margin: 0 0 clamp(34px, 4.5vw, 60px); }
.map-head { margin: 0 0 14px; }
.map-head .h3 { margin: 6px 0 4px; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: .04em; }
.map-head p { margin: 0; color: var(--sand-dim); font-size: 14.5px; line-height: 1.5; max-width: 68ch; }
/* A turn marker is filled; a stop is a ring. Colour carries the distinction, so
   the two never need a legend. */
.map-svg .map-turn { fill: var(--ember-lit); stroke: var(--ink); stroke-width: 2.4; }
.map-svg .wp-label--turn { fill: var(--ember-lit); }
/* Dirt is dashed, pavement is solid. One glance tells you where the 4WD starts. */
.map-svg .route-line--dirt {
  stroke-dasharray: 16 11; stroke-width: 3.4;
  filter: drop-shadow(0 0 7px rgba(212,96,58,.55));
}
.map-fig .map-caption { margin-top: 10px; max-width: 92ch; line-height: 1.6; }
/* A 1,000-unit viewBox scaled into a 348 px phone column puts the 22-unit mono
   labels at ~7 px — legible only as texture. Let the chart keep a readable
   width and scroll sideways instead of shrinking; the page itself still has
   zero horizontal overflow. */
@media (max-width: 760px) {
  .map-fig .map-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .map-fig .map-svg { min-width: 620px; }
}

.wp-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: var(--rule); }
.wp-btn {
  width: 100%; display: grid; grid-template-columns: 62px 1fr auto; align-items: baseline;
  gap: 12px; text-align: left; background: none; border: 0; border-bottom: var(--rule);
  padding: 13px 2px; cursor: pointer; transition: background .25s ease, padding-left .25s ease;
}
.wp-btn:hover, .wp-btn[aria-pressed="true"] { background: rgba(236,227,212,.04); padding-left: 8px; }
.wp-mi { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--sand-faint); }
.wp-name { font-family: var(--display); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.wp-sub { display: block; font-family: var(--body); font-size: 11.5px; color: var(--sand-faint); text-transform: none; letter-spacing: 0; margin-top: 2px; font-weight: 400; }
.wp-leg { font-family: var(--mono); font-size: 9.5px; color: var(--sand-faint); letter-spacing: .06em; white-space: nowrap; }
.wp-btn[aria-pressed="true"] .wp-name { color: var(--ember); }

.wp-detail {
  margin-top: 16px; border: var(--rule); border-radius: 2px; padding: 16px 18px;
  background: rgba(236,227,212,.03); min-height: 92px;
}
.wp-detail h4 {
  margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 17px;
  letter-spacing: .06em; text-transform: uppercase;
}
.wp-detail p { margin: 0; font-size: 14px; color: var(--sand-dim); line-height: 1.55; }

/* fuel calculator */
.calc { margin-top: 28px; border-top: var(--rule); padding-top: 22px; }
.calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand-faint); display: flex; justify-content: space-between; }
.field label b { color: var(--sand); font-weight: 400; }
.field select {
  -webkit-appearance: none; appearance: none;
  width: 100%; background: var(--ink-2) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%23b6a893' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: var(--rule); border-radius: 2px; color: var(--sand);
  font-family: var(--display); font-size: 15px; letter-spacing: .07em; text-transform: uppercase;
  padding: 11px 34px 11px 12px; cursor: pointer;
}
.field select:hover { border-color: rgba(236,227,212,.3); }
.field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ember) var(--pct, 50%), rgba(236,227,212,.16) var(--pct, 50%));
  cursor: pointer;
}
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--sand); border: 2px solid var(--ink); box-shadow: 0 0 0 1px var(--ember);
}
.field input[type="range"]::-moz-range-thumb {
  width: 11px; height: 11px; border-radius: 50%; background: var(--sand);
  border: 2px solid var(--ink); box-shadow: 0 0 0 1px var(--ember);
}
.calc-out {
  margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.calc-cell { border: var(--rule); border-radius: 2px; padding: 12px 10px; }
.calc-cell b { display: block; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1; }
.calc-cell i { display: block; font-family: var(--mono); font-style: normal; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-faint); margin-top: 5px; }
.calc-verdict {
  margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 9px;
}
.calc-verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.is-go { color: var(--sage); }
.is-tight { color: #d9a441; }
.is-nogo { color: var(--ember-lit); }

/* ---------- parallax band ------------------------------------------------ */

.band {
  position: relative; min-height: clamp(420px, 62vh, 620px); display: grid; place-items: center;
  overflow: clip; isolation: isolate; text-align: center;
}
.band img {
  position: absolute; inset: -14% 0; z-index: -2; width: 100%; height: 128%;
  object-fit: cover; object-position: center 45%; will-change: transform;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--ink), rgba(11,10,9,.42) 30%, rgba(11,10,9,.55) 70%, var(--ink));
}
.band-inner { max-width: 760px; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.band q {
  display: block; font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.14; text-transform: uppercase;
  letter-spacing: .01em; quotes: none; text-wrap: balance;
}
.band cite {
  display: block; margin-top: 20px; font-family: var(--mono); font-style: normal;
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--sand-dim);
}
.band-rule { width: 44px; height: 1px; background: var(--ember); margin: 24px auto 0; }

/* ---------- playbook tabs ------------------------------------------------ */

.play { padding-block: clamp(64px, 9vw, 120px); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: var(--rule); }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 12px 16px 13px; font-family: var(--display); font-weight: 600; font-size: 13.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sand-faint);
  transition: color .25s, border-color .25s, background .25s; margin-bottom: -1px;
}
.tab:hover { color: var(--sand); background: rgba(236,227,212,.04); }
.tab[aria-selected="true"] { color: var(--sand); border-bottom-color: var(--ember); }
.tab-panel { display: none; padding-top: 30px; }
.tab-panel.is-on { display: block; animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.panel-grid .h3 { margin-bottom: 14px; }

/* ---------- playbook page (/ebo/playbook/) ------------------------------ */
.pb-jump {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 0 0 clamp(28px, 4vw, 46px); padding-bottom: 16px; border-bottom: var(--rule);
}
.pb-jump a {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sand-faint); text-decoration: none; transition: color .25s;
}
.pb-jump a:hover, .pb-jump a:focus-visible { color: var(--ember); }
.pb-block {
  scroll-margin-top: 96px;
  padding-bottom: clamp(30px, 4.5vw, 52px); margin-bottom: clamp(30px, 4.5vw, 52px);
  border-bottom: var(--line-soft);
}
.pb-block:last-of-type { border-bottom: 0; margin-bottom: 0; }
.pb-block > .h2 { margin: 0 0 20px; max-width: 34ch; }
.rulelist { list-style: none; margin: 0; padding: 0; }
.rulelist li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 0;
  border-bottom: var(--line-soft); font-size: 14.5px; color: var(--sand-dim); line-height: 1.55;
}
.rulelist li:last-child { border-bottom: 0; }
.rulelist b { color: var(--sand); font-weight: 500; }
/* A list item that holds only a link (the Sources lists) has no number gutter —
   without this it lands in the 26px counter column and wraps into a tall strip. */
.rulelist li > a:only-child { grid-column: 1 / -1; }
/* Long reference lists read better two-up than as one endless column. */
@media (min-width: 900px) {
  .rulelist:has(> li:nth-child(9)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .rulelist:has(> li:nth-child(9)) > li { border-bottom: var(--line-soft); }
}
.rulelist .n {
  font-family: var(--mono); font-size: 10px; color: var(--ember); letter-spacing: .06em; padding-top: 3px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border: var(--rule);
  border-radius: 2px; color: var(--sand-dim);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.radio-card { border: var(--rule); border-radius: 2px; padding: 18px; background: rgba(236,227,212,.03); }
.radio-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: var(--line-soft); font-size: 14px; }
.radio-row:last-child { border-bottom: 0; }
.radio-row span:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-faint); }
.radio-row b { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .04em; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: var(--rule);
  border-radius: 2px; padding: 8px 11px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sand-dim); cursor: pointer;
  transition: border-color .25s, color .25s;
}
.copy-btn:hover { border-color: var(--sand-dim); color: var(--sand); }
.copy-btn.is-done { color: var(--sage); border-color: var(--sage); }

/* ---------- camping / legality ------------------------------------------- */

.camp { padding-block: clamp(64px, 9vw, 120px); background: var(--ink-2); border-block: var(--rule); }
.camp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.camp-card {
  border: var(--rule); border-radius: 3px; padding: 24px 22px 22px; background: var(--ink);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color .35s ease, transform .35s ease;
}
.camp-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--ember), transparent); opacity: 0; transition: opacity .35s;
}
.camp-card:hover { border-color: rgba(236,227,212,.28); transform: translateY(-3px); }
.camp-card:hover::before { opacity: 1; }
.camp-card .mono { color: var(--ember); margin-bottom: 12px; display: block; }
.camp-card .h3 { margin-bottom: 12px; }
.camp-card p { font-size: 14px; color: var(--sand-dim); margin: 0 0 10px; line-height: 1.6; }
.camp-card ul { margin: 6px 0 16px; padding-left: 16px; font-size: 13.5px; color: var(--sand-dim); }
.camp-card ul li { margin-bottom: 6px; }
.camp-card .src { margin-top: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-faint); }
.camp-card a.src:hover { color: var(--ember); }
.tight { color: var(--ember-lit); font-weight: 500; }

/* ---------- gallery ------------------------------------------------------ */

.gal { padding-block: clamp(64px, 9vw, 120px); }
.gal-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.gal figure { margin: 0; position: relative; overflow: hidden; border-radius: 2px; cursor: zoom-in; background: var(--ink-3); }
.gal figure:nth-child(1) { grid-column: span 4; }
.gal figure:nth-child(2) { grid-column: span 2; }
.gal figure:nth-child(3) { grid-column: span 3; }
.gal figure:nth-child(4) { grid-column: span 3; }
.gal img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s; }
.gal figure:nth-child(1) img { aspect-ratio: 16 / 10; }
.gal figure:nth-child(2) img { aspect-ratio: 3 / 4; object-position: center 42%; }
.gal figure:nth-child(5), .gal figure:nth-child(6) { grid-column: span 3; }
.gal figcaption span:last-child { color: #8a7f6f !important; }
.gal figure:hover img { transform: scale(1.045); filter: brightness(1.06); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand); background: linear-gradient(to top, rgba(11,10,9,.88), transparent);
  display: flex; justify-content: space-between; gap: 10px;
}
.gal figcaption span:last-child { color: var(--sand-faint); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: rgba(8,7,6,.96); padding: 24px; backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1400px, 94vw); max-height: 82vh; width: auto; object-fit: contain; border-radius: 2px; }
.lightbox-cap { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand-dim); text-align: center; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; background: none; border: var(--rule);
  border-radius: 2px; padding: 10px 14px; cursor: pointer; font-family: var(--mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- section teasers ---------------------------------------------- */

.next { padding-block: clamp(64px, 9vw, 120px); border-top: var(--rule); }
.group { padding-block: clamp(64px, 9vw, 120px); border-top: var(--rule); }
.next-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.next-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  border: var(--rule); border-radius: 3px; padding: 22px 20px 20px; min-height: 210px;
  background: linear-gradient(170deg, rgba(236,227,212,.045), transparent 65%);
  transition: border-color .3s, transform .3s, background .3s;
}
.next-card:hover { border-color: rgba(236,227,212,.3); transform: translateY(-3px); background: linear-gradient(170deg, rgba(212,96,58,.10), transparent 65%); }
.next-card .mono { color: var(--ember); }
.next-card h3 { font-family: var(--display); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.next-card p { margin: 0; font-size: 13.5px; color: var(--sand-dim); line-height: 1.5; }
.next-card .go { margin-top: auto; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand-faint); display: flex; align-items: center; gap: 7px; }
.next-card:hover .go { color: var(--ember); }
.next-card .go i { display: block; width: 16px; height: 1px; background: currentColor; transition: width .3s; }
.next-card:hover .go i { width: 26px; }

/* ---------- join / footer ------------------------------------------------ */

.join { padding-block: clamp(72px, 10vw, 140px); background: linear-gradient(180deg, var(--ink), #080706); border-top: var(--rule); }
.join-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  padding: 16px 0; border-bottom: var(--line-soft);
}
.steps li::before {
  content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; color: var(--ember); padding-top: 4px;
}
.steps b { display: block; grid-column: 2; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.steps p { grid-column: 2; margin: 0; font-size: 14px; color: var(--sand-dim); }

.mailbox {
  border: var(--rule); border-radius: 3px; padding: 24px 22px;
  background: radial-gradient(120% 90% at 80% 0%, rgba(212,96,58,.12), transparent 60%), var(--ink-2);
}
.mailbox .mono { color: var(--sand-faint); }
.mailbox a.mail {
  display: block; margin: 12px 0 6px; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem); text-decoration: none; color: var(--sand);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; word-break: break-word;
}
.mailbox a.mail:hover { color: var(--ember-lit); border-color: var(--ember); }
.mailbox p { font-size: 13px; color: var(--sand-dim); margin: 10px 0 0; }

.site-foot { border-top: var(--rule); padding-block: 64px 40px; background: #070606; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot-emblem { width: 64px; height: 64px; flex: 0 0 auto; display: block; }
.site-foot .foot-slogan {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ember); margin: 12px 0 0;
}
.site-foot h4 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-faint); margin: 0 0 12px; font-weight: 400; }
.site-foot p, .site-foot li { font-size: 12.5px; color: var(--sand-faint); line-height: 1.65; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: 2px 0; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--sand); }
.foot-legal {
  margin-top: 36px; padding-top: 20px; border-top: var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #8a8072;
}
/* The hero-band credit sits under the legal line: small, quiet, and always
   present when a report page carries a licensed photograph. */
.site-foot .foot-credit {
  margin: 14px 0 0; max-width: 100ch;
  font-size: 11px; line-height: 1.7; color: #8a8072;
}
.site-foot .foot-credit a { color: var(--sand-dim); text-decoration: underline; text-underline-offset: 2px; }
.site-foot .foot-credit a:hover { color: var(--sand); }

/* ---------- reveal ------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .09s; }
.reveal[data-d="2"] { transition-delay: .18s; }
.reveal[data-d="3"] { transition-delay: .27s; }
.reveal[data-d="4"] { transition-delay: .36s; }

.progress {
  position: fixed; inset: auto 0 0 0; height: 2px; z-index: 70; pointer-events: none;
  background: linear-gradient(90deg, var(--ember), var(--ember-lit));
  transform-origin: 0 50%; transform: scaleX(0);
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--sand); color: var(--ink); padding: 10px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.skip:focus { left: 12px; }

/* ---------- inner pages -------------------------------------------------- */

.page-head {
  padding: clamp(120px, 16vw, 190px) 0 clamp(34px, 5vw, 60px);
  border-bottom: var(--rule);
  background: radial-gradient(90% 120% at 15% 0%, rgba(212,96,58,.12), transparent 65%), var(--ink);
}
/* A filed report's head carries the ground it covers: one 21:9 band behind the
   title with a scrim, so the cream type keeps its contrast over photograph. */
.page-head.has-media {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--ink);
  min-height: clamp(340px, 46vh, 520px);
}
.page-head .head-media { position: absolute; inset: 0; z-index: -2; display: block; }
.page-head .head-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 46%;
  filter: saturate(1.05) contrast(1.04);
}
.page-head .head-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11,10,9,.72) 0%, rgba(11,10,9,.26) 34%, rgba(11,10,9,.66) 72%, rgba(11,10,9,.86) 92%, var(--ink) 100%),
    linear-gradient(to right, rgba(11,10,9,.82), rgba(11,10,9,.40) 56%, rgba(11,10,9,.08) 92%);
}
/* Over photograph the 9 px mono labels need the lighter sand: measured 2.57:1
   in --sand-faint on the canyon band, 7:1 in --sand-dim. */
.page-head.has-media .trip-meta-row dt { color: var(--sand-dim); }
.page-head h1 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .94; margin: 0 0 18px; max-width: 18ch;
}
.page-head p { max-width: 56ch; color: var(--sand-dim); font-size: 1.05rem; margin: 0; }
.page-head .eyebrow { max-width: none; }
.page-body { padding-block: clamp(48px, 7vw, 96px); }
.empty {
  border: 1px dashed rgba(236,227,212,.2); border-radius: 3px;
  padding: clamp(28px, 5vw, 56px); background: rgba(236,227,212,.02);
}
.empty .mono { color: var(--ember); }
.empty h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2rem); margin: 12px 0 12px; }
.empty p { color: var(--sand-dim); max-width: 62ch; margin: 0 0 12px; font-size: 15px; }
.empty ul { color: var(--sand-dim); font-size: 14.5px; max-width: 62ch; padding-left: 18px; }
.empty li { margin-bottom: 7px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 24px; }
.slot { border: var(--rule); border-radius: 2px; padding: 14px 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-faint); display: flex; justify-content: space-between; gap: 8px; }
.slot b { color: var(--sand-dim); font-weight: 400; }


/* ---------- trip index (homepage) ---------------------------------------- */

.trip-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(20px, 3vw, 40px); align-items: start;
}
.trip-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  text-decoration: none; border: var(--rule); border-radius: 3px; overflow: hidden;
  background: linear-gradient(150deg, rgba(236,227,212,.05), transparent 60%);
  transition: border-color .35s ease, transform .35s ease, background .35s ease;
}
.trip-card:hover { border-color: rgba(236,227,212,.3); transform: translateY(-3px); background: linear-gradient(150deg, rgba(212,96,58,.12), transparent 60%); }
.trip-media { position: relative; min-height: 260px; overflow: hidden; }
.trip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.trip-card:hover .trip-media img { transform: scale(1.05); }
.trip-flag {
  position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase; color: #140e0a; background: var(--ember);
  padding: 5px 9px; border-radius: 2px;
}
.trip-body { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.trip-body .mono { color: var(--sand-faint); }
.trip-body h3 {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-transform: uppercase; letter-spacing: .01em; line-height: 1; margin: 0; color: var(--sand);
}
.trip-body p { margin: 0; font-size: 14px; color: var(--sand-dim); line-height: 1.6; }
.trip-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-faint); margin-top: 2px; }
.trip-body .go { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand-dim); display: flex; align-items: center; gap: 8px; }
.trip-card:hover .go { color: var(--ember); }
.trip-body .go i { display: block; width: 16px; height: 1px; background: currentColor; transition: width .3s; }
.trip-card:hover .go i { width: 28px; }

.trip-side { display: flex; flex-direction: column; gap: 18px; }
.trip-side .count { margin-top: 0; }
.trip-side-note { border: var(--rule); border-radius: 2px; padding: 18px; }
.trip-side-note h4 {
  margin: 0 0 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sand-faint); font-weight: 400;
}
.trip-side-note ul { margin: 0 0 12px; padding-left: 16px; font-size: 13px; color: var(--sand-dim); line-height: 1.55; }
.trip-side-note li { margin-bottom: 6px; }

.grp-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember); margin: 30px 0 12px; font-weight: 400;
}
.grp-label:first-of-type { margin-top: 0; }

.trip-more {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  margin-top: 20px; padding-top: 16px; border-top: var(--rule);
}
.trip-more .mono { color: var(--sand-faint); }
.trip-more a {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--sand-dim);
}
.trip-more a:hover { color: var(--ember); }
.trip-more a i { display: block; width: 18px; height: 1px; background: currentColor; transition: width .3s; }
.trip-more a:hover i { width: 30px; }

/* ---------- trip sheet page ---------------------------------------------- */

.trip-head { padding-bottom: clamp(24px, 3.5vw, 42px); }
.trip-head + .brief { padding-top: clamp(30px, 4vw, 58px); }
.trip-head h1 { max-width: 22ch; }
.trip-lede { max-width: 54ch; margin: 0 0 26px !important; color: var(--sand-dim) !important; font-size: clamp(1rem, 1.3vw, 1.12rem) !important; }
.trip-meta-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 26px;
}
.trip-meta-row > div { padding: 12px 14px 12px 0; border-right: 1px solid var(--line-soft); }
.trip-meta-row > div:last-child { border-right: 0; }
.trip-meta-row dt { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand-faint); margin-bottom: 5px; }
.trip-meta-row dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; color: var(--sand); }
.trip-live { display: flex; flex-wrap: wrap; gap: 26px 40px; align-items: flex-start; }
.trip-live .fig { border: 0; padding: 0; gap: 5px; }

@media (max-width: 1040px) {
  .trip-grid { grid-template-columns: minmax(0, 1fr); }
  .trip-meta-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .trip-card { grid-template-columns: minmax(0, 1fr); }
  .trip-media { min-height: 210px; aspect-ratio: 16 / 10; }
  .trip-meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-live { gap: 16px 26px; }
}

.report-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  border-top: var(--rule); padding-top: 18px;
}
.brief-copy .h3 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); letter-spacing: .04em; }
.report-nav a { text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--sand-dim); }
.report-nav a:hover { color: var(--ember); }
.report-nav .mono { color: var(--sand-faint); font-size: 9px; max-width: 60ch; text-align: right; }


/* ---------- banner gallery (club photographs) ---------------------------- */

.gal--banner { gap: 26px 16px; }
.gal--banner figure { margin: 0; background: none; overflow: visible; cursor: zoom-in; }
/* the parent .gal has position-based rules (nth-child) for the 4:3 grid, so
   these banner frames need to win outright, not just by source order */
/* natural ratio per file: panoramas, banners and the odd portrait all sit in
   the same grid without a fixed aspect box cropping them */
.gal .gal--banner figure img {
  aspect-ratio: auto !important; width: 100%; height: auto !important; border-radius: 2px;
}
.gal--mosaic { align-items: start; }
.gal--mosaic figure.tall img { border-radius: 2px; }
.gal--mosaic figure.solo { max-width: 419px; justify-self: center; }
.gal--banner figure:hover img { transform: none; filter: brightness(1.05); }
.gal--banner figcaption {
  position: static; background: none; padding: 10px 2px 0;
  display: flex; gap: 14px; align-items: baseline; justify-content: flex-start !important;
  font-family: var(--body); font-size: 13.5px; line-height: 1.45;
  letter-spacing: 0; text-transform: none; color: var(--sand-dim);
}
.gal--banner figcaption b {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  color: var(--ember); font-weight: 400; flex: 0 0 auto;
}
/* --------------------------------------------------- points on the way */
.points { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line-soft); }
.pt-lede { max-width: 62ch; color: var(--sand-dim); }
.pt-onx {
  margin: 26px 0 34px; padding: 20px 22px; border: 1px solid var(--line);
  border-left: 2px solid var(--ember); background: var(--ink-2);
}
.pt-onx h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--sand); }
.pt-onx p { margin: 0 0 14px; color: var(--sand-dim); max-width: 70ch; }
.pt-onx a.btn { margin-right: 10px; }
.pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.pt {
  padding: 18px 0 16px; border-top: 1px solid var(--line-soft);
  display: grid; gap: 6px;
}
.pt-h { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.pt-h h3 { margin: 0; font-size: 17px; letter-spacing: .01em; color: var(--sand); }
.pt-kind {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember); white-space: nowrap;
}
.pt-note { margin: 0; color: var(--sand-dim); font-size: 14.5px; line-height: 1.55; }
.pt-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--sand-faint);
}
.pt-coord { color: var(--sand-dim); }
.pt-meta a { color: var(--sand-dim); border-bottom: 1px solid var(--line); }
.pt-meta a:hover { color: var(--ember-lit); border-color: var(--ember); }
.pt-withheld .pt-coord { color: var(--sand-faint); font-style: italic; }
.pt-orders { margin: 34px 0 0; }
@media (max-width: 860px) {
  .pt-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pt-h { flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 860px) {
  .gal--banner figure { grid-column: span 6 !important; }
  .gal--banner figcaption { font-size: 12.5px; }
}


/* ---------- field films --------------------------------------------------- */

.film { padding-block: clamp(64px, 9vw, 120px); background: var(--ink-2); border-block: var(--rule); }
.film-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.film-player { position: relative; border: var(--rule); border-radius: 3px; overflow: hidden; background: #000; }
.film-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.film-meta .mono { color: var(--ember); display: block; margin-bottom: 10px; }
.film-meta h3, .film-meta h2.film-title {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  text-transform: uppercase; letter-spacing: .01em; line-height: 1; margin: 0 0 12px;
}
.film-meta p { color: var(--sand-dim); font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; }
.film-chapters { list-style: none; margin: 16px 0 0; padding: 0; border-top: var(--rule); }
.film-chapters li { border-bottom: var(--line-soft); }
.film-chapters button {
  width: 100%; display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: baseline;
  background: none; border: 0; padding: 9px 2px; cursor: pointer; text-align: left;
  font-family: var(--body); font-size: 13.5px; color: var(--sand-dim);
  transition: color .25s, padding-left .25s, background .25s;
}
.film-chapters button:hover { color: var(--sand); background: rgba(236,227,212,.04); padding-left: 8px; }
.film-chapters .t { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--sand-faint); }
.film-chapters button:hover .t { color: var(--ember); }

@media (max-width: 1040px) { .film-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .film-chapters button { font-size: 12.5px; grid-template-columns: 52px 1fr; } }

/* ---------- responsive --------------------------------------------------- */

@media (max-width: 1040px) {
  .brief-grid, .route-grid, .join-grid, .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .camp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .head-cond { display: none; }
  .nav-toggle { display: block; flex: 0 0 auto; }
  .site-head { gap: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-emblem { width: 104px; height: 104px; margin-bottom: 20px;
                  grid-column: 1; grid-row: auto; align-self: start; }
  /* One column: every child has to let go of its desktop placement, or the
     `grid-column: 2` items conjure an implicit 0 px first track and the eyebrow
     lands on top of the emblem. */
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-inner .hero-slogan,
  .hero-inner .eyebrow,
  .hero-inner h1.hero-lede,
  .hero-inner .hero-cta { grid-column: 1; }
  /* Four live figures, two across from here down. */
  .hero-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-figs .fig:nth-child(2n) { border-right: 0; }
  .hero-figs .fig:nth-child(n+3) { border-top: 1px solid rgba(236,227,212,.12); }
  .brand-txt { min-width: 0; overflow: hidden; }
  .brand-name { font-size: 13.5px; letter-spacing: .055em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .brand-sub { font-size: 8px; letter-spacing: .16em; white-space: nowrap; overflow: hidden; }
  .site-head.is-open .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 14px var(--gutter) 22px; background: rgba(11,10,9,.98);
    border-bottom: var(--rule);
  }
  .site-head.is-open .nav a { font-size: 17px; padding: 10px 0; width: 100%; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal figure:nth-child(n) { grid-column: span 1; }
  .gal figure:nth-child(1) { grid-column: span 2; }
  .count-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { min-height: 92svh; }
  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.7rem); max-width: 20ch; }
  .hero h1.hero-lede { font-size: 15px; max-width: 40ch; }
  .hero-sub { font-size: 15px; }
  .hero-slogan { margin-bottom: 16px; }
  .eyebrow { font-size: 9px; letter-spacing: .18em; }
  .hero-media--landscape { display: none; }
  .hero-media--portrait { display: block; }
  .hero-media img { animation-duration: 30s; }
  .hero-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig { padding: 16px 12px 20px; }
  .fig:nth-child(3) { border-right: 1px solid rgba(236,227,212,.12); }
  .fig:nth-child(2n) { border-right: 0; }
  .fig:nth-child(n+3) { border-top: 1px solid rgba(236,227,212,.12); }
  /* One line is the point, so the coordinate scales with the phone rather than
     wrapping: measured to hold slack from 620 down to 320 px. */
  .hero-figs .fig-v--coord { font-size: clamp(.82rem, 4.1vw, 1.15rem); }
  .sec-head { flex-wrap: wrap; gap: 10px; }
  .camp-grid, .next-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .wp-btn { grid-template-columns: 54px 1fr; }
  .wp-leg { display: none; }
  .count-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .count-cell b { font-size: 21px; }
  .gal figcaption { font-size: 8.5px; padding: 28px 10px 10px; }
  .gal figcaption span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img, .band img { transform: none !important; }
  .tape-track { animation: none; }
}

/* ---------- members portal ----------------------------------------------- */

/* `hidden` has to win. The portal toggles the sign-in and the app with the
   attribute, but an author rule like `.auth-grid { display: grid }` beats the UA
   `[hidden] { display: none }` — so a signed-in member kept seeing the sign-in
   form on top of the roster and concluded the page was stuck. */
[hidden] { display: none !important; }

.portal { padding-block: clamp(36px, 6vw, 76px); }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
/* The sign-up path, said out loud. Nothing on this page explained that an officer
   has to issue the code first, and a member who cannot find that out assumes the
   site is broken. */
.how { margin: 0 0 clamp(20px, 3vw, 34px); border: var(--rule); border-radius: 3px;
  padding: clamp(18px, 2.4vw, 28px); background: rgba(236,227,212,.03); }
.how h2 { margin: 0 0 16px; }
.how-list { list-style: none; counter-reset: how; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
/* Position the counter, do not grid it: a grid <li> turns the bare text into an
   anonymous item and the sentence ends up one word per line in a 24 px column. */
.how-list li { counter-increment: how; position: relative; padding-left: 34px;
  font-size: 13.5px; color: var(--sand-dim); line-height: 1.55; }
.how-list li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 0; top: 3px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ember); }
.how-list b { display: block; color: var(--sand); font-weight: 500; margin-bottom: 5px; }
.card {
  border: var(--rule); border-radius: 3px; padding: clamp(20px, 2.6vw, 32px);
  background: linear-gradient(160deg, rgba(236,227,212,.045), transparent 70%);
  display: flex; flex-direction: column; gap: 14px;
}
.card h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin: 0; letter-spacing: .01em; color: var(--sand); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sand-faint); }
.field input, .field select {
  background: rgba(11,10,9,.6); border: var(--rule); border-radius: 2px; padding: 11px 13px;
  color: var(--sand); font-family: var(--body); font-size: 15px; width: 100%;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 2px rgba(212,96,58,.18);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* The invite row is two fields now that the day count is fixed copy, and its
   first label is long enough ("Member name or callsign (i.e. Traildog)") to wrap
   inside a half-width column and drop its input below its neighbour. Give the
   name most of the width on one row, and stack the pair on anything narrower
   than a laptop. */
#invite .field-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 900px) { #invite .field-row { grid-template-columns: 1fr; } }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
/* The invite form's checkbox styling (also used by "Free in"): a real checkbox
   sitting inline with its label, not a 100%-wide text field. */
.field--inline input[type="checkbox"] {
  width: 16px; height: 16px; flex: 0 0 auto; padding: 0; accent-color: var(--ember);
}
/* The fixed validity rule under the invite fields: body type, not the mono
   label style, and no control — 30 days is the house rule, not a choice. */
.invite-note { margin: 14px 0 18px; color: var(--sand-dim); }
.field input:disabled { opacity: .45; cursor: not-allowed; }
.tiny { font-size: 12.5px; color: var(--sand-faint); line-height: 1.55; margin: 0; }
.dim { opacity: .7; }
.notice { border: 1px solid rgba(236,227,212,.25); border-radius: 2px; padding: 12px 14px;
  margin: 0 0 18px; font-size: 14px; color: var(--sand); background: rgba(236,227,212,.05); }
.notice[data-kind="good"] { border-color: #4d7a52; background: rgba(77,122,82,.12); }
.notice[data-kind="bad"] { border-color: #a1443a; background: rgba(161,68,58,.14); }
.app-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 16px; border-bottom: var(--rule); margin-bottom: 18px; flex-wrap: wrap; }
.app-who { font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sand-faint); }
.app-who b { color: var(--sand); font-weight: 500; }
.pill { display: inline-block; margin-left: 8px; padding: 2px 7px; border: 1px solid rgba(236,227,212,.25);
  border-radius: 999px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-dim); }
.tabs [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 2px;
  margin-right: 20px; cursor: pointer; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sand-faint); }
.tabs [role="tab"][aria-selected="true"] { color: var(--sand); border-bottom-color: var(--ember); }
.tabs [role="tab"]:hover { color: var(--sand); }
.panel { padding-top: 22px; }
#panel-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); align-items: start; }
.btn--tiny { padding: 6px 10px; font-size: 9.5px; letter-spacing: .12em; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cal-nav { display: flex; gap: 6px; }
/* Nine months at once — three across, three down — so a member can mark a whole
   season without six clicks of the arrow. Moved out of the members portal onto its
   own gated page (/ebo/members/ops/) on 2026-11-16: the calendar is a planning
   surface, not a profile field. Each block keeps its own seven-column day grid; the
   cells shrink rather than the type. */
.cal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }

/* Each month is a framed panel: hairline border, a warm wash at the top, the label
   sitting on a rule. The frame is what makes nine of them read as a grid of
   instruments rather than a wall of dots. */
.cal-block { min-width: 0; border: 1px solid rgba(236,227,212,.15); border-radius: 5px;
  padding: 11px 12px 13px;
  background: linear-gradient(180deg, rgba(236,227,212,.05), rgba(236,227,212,.012) 45%, transparent);
  box-shadow: inset 0 1px 0 rgba(236,227,212,.06), 0 1px 2px rgba(0,0,0,.35); }
.cal-bh { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember); margin: 0 0 9px; padding-bottom: 7px;
  border-bottom: 1px solid rgba(236,227,212,.12); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-family: var(--mono); font-size: 7.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--sand-faint); text-align: center; padding-bottom: 2px; }
.cal-day { aspect-ratio: 1 / 1; border: 1px solid rgba(236,227,212,.10); border-radius: 3px;
  background: rgba(11,10,9,.5); color: var(--sand-dim); font-family: var(--mono); font-size: 9.5px;
  cursor: pointer; padding: 4px 2px 5px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s; }
.cal-n { line-height: 1; }
/* The company row: one dot per OTHER member who answered this date — green free,
   amber maybe, red out. It is always in the DOM, empty when nobody has answered, so
   every cell in a month sits on the same baseline and the numbers do not jitter as
   dots arrive. Your own answer is the cell's fill, never a dot. */
.cal-dots { display: flex; align-items: center; justify-content: center; gap: 2px;
  min-height: 5px; max-width: 100%; flex-wrap: wrap; }
.cal-dot { display: inline-block; width: 4.5px; height: 4.5px; border-radius: 50%;
  flex: 0 0 auto; vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(11,10,9,.6); }
.cal-dot.is-yes { background: #93d89a; }
.cal-dot.is-maybe { background: #e6c25f; }
.cal-dot.is-no { background: #d9695c; }
.cal-more { font-family: var(--mono); font-size: 7px; line-height: 1; color: var(--sand-dim); }
.cal-day:hover { border-color: rgba(236,227,212,.45); color: var(--sand); transform: translateY(-1px); }
.cal-day:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
.cal-day.is-maybe { background: rgba(180,150,60,.24); border-color: #8d7638; color: #f0e7cd;
  box-shadow: inset 0 0 0 1px rgba(240,231,205,.10); }
.cal-day.is-no { background: rgba(161,68,58,.30); border-color: #a1443a; color: #f4e2df;
  box-shadow: inset 0 0 0 1px rgba(244,226,223,.10); }

/* A GREEN DAY IS THE POINT OF THE PAGE. The cell takes the contour tile, so a run of
   free days reads as a strip of map — "ready for an adventure". The tile is one
   64-unit SVG (tools/ebo/make_topo_tile.py) drawn at cell size; it strokes with
   currentColor, so retint it here, never in the file. */
.cal-day.is-yes {
  background-color: rgba(77,122,82,.46);
  background-image: url("topo.svg?v=59a1cd3955");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-color: #86b78b;
  color: #f0f8ee;
  text-shadow: 0 1px 2px rgba(6,12,8,.85);
  box-shadow: inset 0 0 0 1px rgba(232,240,230,.22), 0 0 10px rgba(77,122,82,.25);
}
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 15px; }
.cal-help { margin: 0 0 15px; line-height: 1.9; }

/* Legend chips. The green one wears the same contours, so the key teaches the
   meaning of the tile rather than describing it. */
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 46px;
  padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(236,227,212,.20);
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sand-dim); margin: 0 3px; }
.key-yes { background-color: rgba(77,122,82,.46); background-image: url("topo.svg?v=59a1cd3955");
  background-size: 100% 100%; background-repeat: no-repeat;
  border-color: #86b78b; color: #f0f8ee; text-shadow: 0 1px 2px rgba(6,12,8,.8); }
.key-maybe { background: rgba(180,150,60,.26); border-color: #8d7638; color: #f0e7cd; }
.key-no { background: rgba(161,68,58,.30); border-color: #a1443a; color: #f4e2df; }
.key-clear { background: rgba(11,10,9,.5); }
.dir { display: flex; flex-direction: column; }
.dir-row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,.9fr);
  gap: 14px; padding: 14px 0; border-bottom: var(--line-soft); align-items: center; }
.dir-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.dir-main b { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 15px;
  letter-spacing: .02em; color: var(--sand); }
.dir-rig { font-size: 12.5px; color: var(--sand-faint); }
.dir-contact { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.dir-contact a { color: var(--sand-dim); text-decoration: none; }
.dir-contact a:hover { color: var(--ember); }
.dir-avail { font-size: 12px; color: var(--sand-dim); }
.invite-out { font-size: 13px; color: var(--sand-dim); margin: 0; }
.invite-code { display: inline-block; margin-top: 4px; font-family: var(--mono); font-size: 16px;
  letter-spacing: .14em; padding: 8px 12px; border: 1px dashed var(--ember); border-radius: 2px;
  color: var(--sand); user-select: all; }
@media (max-width: 900px) {
  .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-grid, #panel-details { grid-template-columns: minmax(0, 1fr); }
  .how-list { grid-template-columns: minmax(0, 1fr); }
  .cal { grid-template-columns: minmax(0, 1fr); }
  .dir-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  /* Phone cells are ~37 px: shrink the company dots so five of them plus a "+N"
     still fit on one line instead of wrapping the row. */
  .cal-dot { width: 4px; height: 4px; }
  .cal-dots { gap: 1.5px; }
  .cal-more { font-size: 6.5px; }
}
