/* ============================================================
   kevinaubol.com — "The Route"
   WPA / national-park poster art direction
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --paper:      #F3E9D2;
  --paper-2:    #EADFC4;   /* slightly deeper band */
  --card:       #FBF4E2;   /* card fill */
  --ink:        #2C2417;
  --ink-soft:   #4A4030;
  --rust:       #C2562B;
  --rust-dark:  #9E4220;
  --pine:       #2E5D43;
  --pine-dark:  #1F4632;
  --gold:       #E3A92B;
  --dusk:       #38647A;
  --dusk-dark:  #2A4D5F;
  --snow:       #F3E9D2;

  /* type */
  --display: 'Alfa Slab One', Georgia, serif;
  --label:   'Oswald', 'Helvetica Neue', sans-serif;
  --body:    'Bitter', Georgia, serif;

  /* structure */
  --line: 6px;            /* heavy outline weight */
  --line-thin: 4px;
  --radius: 0px;          /* posters are hard-edged */
  --maxw: 1180px;
  --shadow: 8px 8px 0 rgba(44, 36, 23, 0.85);

  /* route spine */
  --spine-color: var(--rust);
  --spine-w: 9px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  /* faint paper grain */
  background-image:
    radial-gradient(rgba(44,36,23,0.035) 1px, transparent 1px);
  background-size: 4px 4px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--rust-dark); text-underline-offset: 3px; }

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--display);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  font-size: 14px;
}
.label { font-family: var(--label); text-transform: uppercase; letter-spacing: 2px; }

/* ============================================================
   Top nav — transit-roundel style
   ============================================================ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px;
  background: rgba(243, 233, 210, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--line) solid var(--ink);
  transform: translateY(-110%);
  transition: transform .35s ease;
}
.topnav.show { transform: translateY(0); }
.topnav .roundel {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rust); color: var(--paper);
  border: var(--line-thin) solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 20px;
  flex: none;
}
.topnav .brand { font-family: var(--label); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 15px; }
.topnav .brand-tag {
  margin-left: 14px; padding-left: 14px; border-left: 2px solid rgba(44,36,23,.35);
  font-family: var(--label); text-transform: uppercase; letter-spacing: 2px;
  font-size: 12px; color: var(--ink-soft);
}
@media (max-width: 720px) { .topnav .brand-tag { display: none; } }

/* ============================================================
   MAP MENU — the "choose a trail" overlay nav
   ============================================================ */
.map-btn {
  position: fixed; top: 14px; right: 16px; z-index: 130;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  background: var(--paper); color: var(--ink);
  border: var(--line-thin) solid var(--ink);
  box-shadow: 4px 4px 0 rgba(44,36,23,.35);
  font-family: var(--label); text-transform: uppercase; letter-spacing: 2px;
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.map-btn-ico { width: 20px; height: 20px; color: var(--rust); flex: none; }
.map-btn:hover, .map-btn:focus-visible {
  background: var(--gold); outline: none;
  transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(44,36,23,.45);
}
.map-btn[aria-expanded="true"] { background: var(--rust); color: var(--paper); }
.map-btn[aria-expanded="true"] .map-btn-ico { color: var(--paper); }
@media (max-width: 720px) { .map-btn-label { display: none; } .map-btn { padding: 9px; } }

.trailmap {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; overflow-y: auto;
}
.trailmap[hidden] { display: none; }
.trailmap-scrim { position: fixed; inset: 0; background: rgba(44,36,23,.62); }
.trailmap-sheet {
  position: relative; z-index: 1;
  width: 100%; max-width: 1040px;
  background: var(--paper); border: var(--line) solid var(--ink);
  box-shadow: var(--shadow); padding: 30px 30px 26px;
}
.trailmap.is-open .trailmap-scrim { animation: tmFade .25s ease; }
.trailmap.is-open .trailmap-sheet { animation: tmIn .3s cubic-bezier(.2,.7,.3,1); }
@keyframes tmFade { from { opacity: 0; } }
@keyframes tmIn { from { opacity: 0; transform: translateY(-14px) scale(.985); } }
@media (prefers-reduced-motion: reduce) {
  .trailmap.is-open .trailmap-scrim, .trailmap.is-open .trailmap-sheet { animation: none; }
}
body.tm-open { overflow: hidden; }

.trailmap-close {
  position: absolute; top: 10px; right: 12px;
  width: 40px; height: 40px; line-height: 1; font-size: 18px;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); cursor: pointer;
}
.trailmap-close:hover, .trailmap-close:focus-visible { background: var(--rust); color: var(--paper); outline: none; }

.trailmap-head { display: flex; align-items: center; gap: 16px; padding-right: 44px; }
.trailmap-compass svg { width: 60px; height: 60px; display: block; }
.trailmap-head h2 { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); line-height: 1; }
.trailmap-sub { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

.trailmap-fork { width: 100%; height: 60px; margin: 8px 0 -4px; display: block; }
@media (max-width: 760px) { .trailmap-fork { display: none; } }

.trailmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 6px; }
@media (max-width: 760px) { .trailmap-grid { grid-template-columns: 1fr; gap: 18px; } }

.tm-bio   { --tm: var(--pine); }
.tm-sig   { --tm: var(--dusk); }
.tm-place { --tm: var(--rust); }

.tm-trailhead {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 11px; align-items: center; text-decoration: none;
  color: var(--paper); background: var(--tm);
  border: var(--line-thin) solid var(--ink); padding: 11px 14px;
  box-shadow: 5px 5px 0 rgba(44,36,23,.28); transition: transform .12s ease, box-shadow .12s ease;
}
.tm-badge { grid-row: 1 / span 2; width: 44px; height: 44px; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.tm-badge svg { width: 30px; height: 30px; }
.tm-name { font-family: var(--display); font-size: 22px; letter-spacing: 1px; line-height: 1; }
.tm-tag { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; opacity: .92; margin-top: 2px; }
.tm-trailhead:hover, .tm-trailhead:focus-visible { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(44,36,23,.4); outline: none; }

.tm-stops { list-style: none; position: relative; margin: 0 0 0 17px; padding: 8px 0 0 22px; border-left: 4px dashed var(--tm); }
.tm-stops li { position: relative; }
.tm-stops li::before { content: ''; position: absolute; left: -28px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 3px solid var(--tm); }
.tm-stops a { display: block; text-decoration: none; color: var(--ink); padding: 6px 8px; border: 3px solid transparent; }
.tm-stops a:hover, .tm-stops a:focus-visible { border-color: var(--ink); background: var(--card); outline: none; }
.tm-stop-name { display: block; font-family: var(--label); font-weight: 600; letter-spacing: .5px; font-size: 15px; }
.tm-stop-desc { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; }

.trailmap-foot { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; margin-top: 26px; padding-top: 16px; border-top: 3px solid var(--ink); }
.trailmap-foot a { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--ink); text-decoration: none; padding: 6px 12px; border: 3px solid transparent; }
.trailmap-foot a:hover, .trailmap-foot a:focus-visible { border-color: var(--ink); background: var(--gold); outline: none; }

/* ============================================================
   JUNCTION + LEG DIVIDERS — the three themed trails on the home route
   ============================================================ */
.junction {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 22px auto 0; padding: 26px 22px 6px;
  text-align: center;
}
.junction-eyebrow { font-family: var(--label); text-transform: uppercase; letter-spacing: 3px; font-size: 13px; color: var(--rust); }
.junction-title { font-family: var(--display); font-size: clamp(30px, 5vw, 48px); text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; line-height: 1; }
.junction-sub { max-width: 640px; margin: 12px auto 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.junction-signs { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }
.jsign {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  min-width: 210px; padding: 14px 34px 14px 20px; text-decoration: none;
  color: var(--paper); background: var(--jc);
  border: var(--line-thin) solid var(--ink); box-shadow: 5px 5px 0 rgba(44,36,23,.3);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  transition: transform .12s ease;
}
.jsign:hover, .jsign:focus-visible { transform: translateX(5px); outline: none; }
.jsign-name { font-family: var(--display); font-size: 22px; letter-spacing: 1px; line-height: 1; }
.jsign-tag { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; opacity: .92; }
.jsign-bio   { --jc: var(--pine); }
.jsign-sig   { --jc: var(--dusk); }
.jsign-place { --jc: var(--rust); }

.leg-divider {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 54px auto 10px; padding: 0 22px;
  scroll-margin-top: 84px;
}
.leg-inner {
  display: flex; align-items: center; gap: 18px;
  background: var(--lc); color: var(--paper);
  border: var(--line) solid var(--ink); box-shadow: var(--shadow);
  padding: 18px 22px;
}
.leg-marker { width: 56px; height: 56px; flex: none; background: var(--paper); border: var(--line-thin) solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.leg-marker svg { width: 38px; height: 38px; }
.leg-eyebrow { font-family: var(--label); text-transform: uppercase; letter-spacing: 2.5px; font-size: 12px; opacity: .9; }
.leg-title { font-family: var(--display); font-size: clamp(28px, 5vw, 44px); text-transform: uppercase; letter-spacing: 2px; line-height: 1; }
.leg-sub { font-family: var(--body); font-size: 15px; opacity: .95; margin-top: 5px; max-width: 660px; line-height: 1.45; }
.leg-place  { --lc: var(--rust); }
.leg-bio    { --lc: var(--pine); }
.leg-sig    { --lc: var(--dusk); }
.leg-summit { --lc: var(--gold); }
.leg-summit .leg-inner { color: var(--ink); }
.leg-summit .leg-sub { color: var(--ink-soft); }
@media (max-width: 560px) {
  .leg-inner { gap: 14px; padding: 14px 16px; }
  .leg-marker { width: 46px; height: 46px; }
  .leg-marker svg { width: 30px; height: 30px; }
}

/* ============================================================
   HERO — the poster
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 22px 0;
}
.hero-frame { border: var(--line) solid var(--ink); background: var(--paper); }

/* volcano easter egg */
.volcano, .volcano-hit { cursor: pointer; }
.volcano:focus-visible { outline: none; }
.volcano:focus-visible .volcano-glow { opacity: .35; }
.volcano-glow { fill: #FF7A1A; opacity: 0; transition: opacity .15s ease; }
.volcano.erupting .volcano-glow { opacity: .95; animation: volGlow .22s ease-in-out infinite alternate; }
@keyframes volGlow { from { opacity: .5; } to { opacity: 1; } }
.volcano-crater-shadow { fill: #1B3340; opacity: 0; transition: opacity .15s ease; }
.volcano.erupting .volcano-crater-shadow { opacity: 1; }
.hero-frame.shake { animation: heroShake .5s ease-in-out 3; }
@keyframes heroShake {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -1px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-frame.shake { animation: none; }
}

/* banner easter eggs: avalanche, birds, sun, trail, trees */
.avalanche, .peak-hit,
.hero-birds, .bird-hit,
.hero-sun, .sun-hit,
.hero-trail, .trail-hit,
.hero-tree { cursor: pointer; }
.avalanche:focus-visible, .hero-birds:focus-visible, .hero-sun:focus-visible,
.hero-trail:focus-visible, .hero-tree:focus-visible { outline: none; }
.peak-snow { transition: opacity .15s ease; }

/* sun: a smiley behind the rays, a flare that bursts and retracts */
.sun-face { opacity: 0; transition: opacity .25s ease; }
.hero-sun.beaming .sun-face { opacity: 1; }
.sun-ring { transition: opacity .2s ease; }
.hero-sun.beaming .sun-ring { opacity: 0; }
.sun-flare { opacity: 0; transform-box: fill-box; transform-origin: center; }
.hero-sun.beaming .sun-flare { animation: sunFlare 1.5s ease-out; }
@keyframes sunFlare {
  0%   { opacity: 0; transform: scale(.2) rotate(0deg); }
  22%  { opacity: 1; transform: scale(1.16) rotate(8deg); }
  60%  { opacity: 1; transform: scale(1) rotate(13deg); }
  100% { opacity: 0; transform: scale(1.06) rotate(20deg); }
}

/* trail: dashes march upward while a hiker climbs */
.hero-trail.lit .trail-line { animation: trailMarch .55s linear infinite; }
@keyframes trailMarch { to { stroke-dashoffset: -18; } }

/* trees: a quick sway from the base, and a critter that hops out */
.hero-tree { transform-box: fill-box; transform-origin: bottom center; }
.hero-tree.rustle { animation: treeRustle .6s ease-in-out; }
@keyframes treeRustle {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(2.6deg); }
  50% { transform: rotate(-2deg); }
  80% { transform: rotate(1deg); }
}
.critter-inner { transform-box: fill-box; animation: critterPeek 2.4s ease-in-out forwards; }
@keyframes critterPeek {
  0%   { transform: translate(0, 10px) scale(.2); opacity: 0; }
  12%  { transform: translate(0, 0) scale(1); opacity: 1; }
  30%  { transform: translate(calc(var(--dir) * 14px), -11px) scale(1); opacity: 1; }
  42%  { transform: translate(calc(var(--dir) * 24px), 0) scale(1); opacity: 1; }
  72%  { transform: translate(calc(var(--dir) * 24px), 0) scale(1); opacity: 1; }
  86%  { transform: translate(calc(var(--dir) * 12px), -11px) scale(1); opacity: 1; }
  100% { transform: translate(0, 8px) scale(.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sun.beaming .sun-flare { animation: none; opacity: 1; transform: scale(1); }
  .hero-trail.lit .trail-line { animation: none; }
  .hero-tree.rustle { animation: none; }
}

.hero-frame svg { width: 100%; height: auto; }
.hero-title {
  border: var(--line) solid var(--ink); border-top: none;
  background: var(--paper);
  text-align: center; padding: 26px 16px 20px;
}
.hero-title h1 {
  font-family: var(--display);
  font-size: clamp(46px, 9vw, 104px);
  letter-spacing: 3px; line-height: .95;
  text-transform: uppercase;
}
.hero-byline {
  border: var(--line) solid var(--ink); border-top: none;
  background: var(--rust); color: var(--paper);
  text-align: center; padding: 13px;
  font-family: var(--label); font-weight: 600;
  letter-spacing: clamp(2px, 0.6vw, 6px); text-transform: uppercase;
  font-size: clamp(13px, 2vw, 20px);
}

.scroll-cue {
  text-align: center; padding: 22px 0 4px;
  font-family: var(--label); text-transform: uppercase; letter-spacing: 3px;
  font-size: 13px; color: var(--ink-soft);
}
.scroll-cue .chev {
  display: block; margin: 8px auto 0; width: 22px; height: 22px;
  border-right: var(--line-thin) solid var(--rust);
  border-bottom: var(--line-thin) solid var(--rust);
  transform: rotate(45deg);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: rotate(45deg) translate(0,0);} 50%{ transform: rotate(45deg) translate(4px,4px);} }
@media (prefers-reduced-motion: reduce){ .scroll-cue .chev { animation: none; } }

/* ============================================================
   ROUTE — the scrolling spine + stops
   ============================================================ */
.route {
  position: relative;
  max-width: var(--maxw);
  margin: 10px auto 0;
  padding: 0 22px;
}
/* the spine SVG sits behind the stops, full container height */
.route-spine {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  overflow: visible;
}
.route-spine .trail-bg { fill: none; stroke: rgba(44,36,23,0.14); stroke-width: var(--spine-w); stroke-linecap: round; }
.route-spine .trail-fg {
  fill: none; stroke: var(--spine-color); stroke-width: var(--spine-w);
  stroke-linecap: round; stroke-dasharray: 2 20;
}
.route-spine .traveler { fill: var(--pine); stroke: var(--ink); stroke-width: 4; }

/* each stop — left rail (trail + badge) with content to the right */
.stop {
  position: relative; z-index: 1;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: clamp(18px, 3vw, 44px);
  align-items: start;
}
.stop > :not(.station) { grid-column: 2; }
.station {
  grid-column: 1; justify-self: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--paper); border: var(--line) solid var(--ink);
  display: grid; place-items: center;
  margin: 0;
  position: relative; z-index: 2;
  transition: transform .4s ease, background .4s ease;
}
.station svg { width: 28px; height: 28px; }
.stop.active .station { background: var(--gold); transform: scale(1.1); }
.stop-eyebrow { color: var(--rust-dark); margin-bottom: 8px; text-align: left; }
.stop h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(30px, 5vw, 52px); letter-spacing: 1px;
  text-align: left; line-height: 1; margin-bottom: 8px;
}
.stop .kicker { text-align: left; max-width: 640px; color: var(--ink-soft); font-size: 17px; }
@media (max-width: 600px) {
  .stop { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .station { width: 40px; height: 40px; }
  .station svg { width: 22px; height: 22px; }
}

/* reveal-on-scroll for stop content — only hidden when JS is live (html.js),
   so a script failure never leaves content stuck invisible. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Poster cards (projects, guides)
   ============================================================ */
.poster-card {
  background: var(--card);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  width: min(720px, 100%);
  margin-top: 8px;
}
.poster-card .card-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; color: var(--paper);
  border-bottom: var(--line) solid var(--ink);
}
.poster-card .card-head h3 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 34px); letter-spacing: 1px; line-height: 1;
}
.poster-card .card-head .tag {
  margin-left: auto; font-family: var(--label); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; font-size: 12px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); padding: 4px 10px; white-space: nowrap;
}
.poster-card .card-body { padding: 22px; }
.poster-card .card-body p { margin-bottom: 14px; }
.poster-card .card-body p:last-of-type { margin-bottom: 0; }
.head-rust { background: var(--rust); }
.head-pine { background: var(--pine); }
.head-dusk { background: var(--dusk); }
.head-gold { background: var(--gold); }
.head-ink  { background: var(--ink); }
.head-dusk-dark { background: var(--dusk-dark); }
.head-gold h3, .head-gold .tag-flip { color: var(--ink); }

/* chunky button */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--label); font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; font-size: 15px; text-decoration: none;
  background: var(--gold); color: var(--ink);
  border: var(--line-thin) solid var(--ink);
  padding: 11px 20px; margin-top: 6px;
  box-shadow: 5px 5px 0 rgba(44,36,23,0.85);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover, .btn:focus-visible { transform: translate(2px,2px); box-shadow: 3px 3px 0 rgba(44,36,23,0.85); outline: none; }
.btn.btn-rust { background: var(--rust); color: var(--paper); }
.btn.btn-ghost { background: var(--paper); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* meta chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 11px; font-weight: 500;
  border: 3px solid var(--ink); padding: 4px 9px; background: var(--paper);
}

/* ============================================================
   PLACES — interactive map
   ============================================================ */
.map-wrap {
  width: min(960px, 100%);
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.map-stage {
  border: var(--line) solid var(--ink);
  background: var(--dusk);
  box-shadow: var(--shadow);
  position: relative;
}
.map-stage svg { width: 100%; height: auto; display: block; }
/* map land — real projected US states */
.us-states .us-state {
  fill: var(--pine); stroke: rgba(20,16,8,0.45); stroke-width: 0.8;
  stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.us-states .us-state.lived { fill: #E8C879; }   /* WA / OR / PA — home (pale gold) */
.us-coast { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.us-land { fill: var(--pine); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
/* journey legs — inactive legs sit back, the active leg leads */
.route-leg {
  fill: none; stroke: var(--gold); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.24; transition: opacity .45s ease, stroke-width .45s ease;
}
.route-leg.active {
  opacity: 1; stroke-width: 6;
  filter: drop-shadow(0 0 2px rgba(20,16,8,0.6));
}
.pin { cursor: pointer; }
.pin .pin-body { fill: var(--rust); stroke: var(--ink); stroke-width: 4; transition: fill .2s ease; }
.pin .pin-dot { fill: var(--paper); }
.pin.active .pin-body, .pin:hover .pin-body { fill: var(--gold); }
.pin text {
  font-family: var(--label); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; font-size: 15px; fill: var(--paper);
  paint-order: stroke; stroke: var(--ink); stroke-width: 4px;
}
.pin .pin-ring {
  fill: none; stroke: var(--rust); stroke-width: 3; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.pin.active .pin-ring { opacity: 1; animation: pinpulse 1.8s ease-out infinite; }
@keyframes pinpulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin.active .pin-ring { animation: none; opacity: .6; transform: scale(1.4); } }

/* map furniture */
.graticule line { stroke: rgba(243, 233, 210, 0.10); stroke-width: 1.5; }
.leap-label text {
  font-family: var(--label); font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; font-size: 14px; fill: var(--paper);
  paint-order: stroke; stroke: var(--dusk-dark); stroke-width: 5px;
}
.compass circle { fill: rgba(243, 233, 210, 0.06); stroke: var(--paper); stroke-width: 2.5; }
.compass .compass-inner { stroke-width: 1.5; stroke: rgba(243, 233, 210, 0.5); fill: none; }
.compass .needle-n { fill: var(--rust); stroke: var(--ink); stroke-width: 1.5; }
.compass .needle-s, .compass .needle-e, .compass .needle-w { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.compass text { fill: var(--paper); font-family: var(--label); font-weight: 700; font-size: 16px; }
.map-legend text { fill: var(--paper); font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.map-legend .legend-route { stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }
.map-legend .legend-pin { fill: var(--rust); stroke: var(--ink); stroke-width: 2.5; }
.map-num {
  font-family: var(--display); fill: var(--paper); font-size: 16px;
  text-anchor: middle; paint-order: stroke; stroke: var(--ink); stroke-width: 3px;
}

/* place detail panel */
.place-panel {
  border: var(--line) solid var(--ink);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  min-height: 150px;
}
.place-panel .pp-step {
  font-family: var(--label); font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; font-size: 12px; color: var(--rust-dark);
}
.place-panel .pp-city { font-family: var(--display); text-transform: uppercase; font-size: 26px; line-height: 1; margin: 4px 0 2px; }
.place-panel .pp-years { font-family: var(--label); letter-spacing: 1px; color: var(--ink-soft); font-size: 14px; text-transform: uppercase; }
.place-panel .pp-role { margin-top: 12px; }
.place-dots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.place-dots button {
  font-family: var(--label); font-weight: 600; font-size: 13px;
  width: 34px; height: 34px; border: 3px solid var(--ink); background: var(--paper);
  cursor: pointer; color: var(--ink);
}
.place-dots button.active { background: var(--rust); color: var(--paper); }
@media (min-width: 760px) {
  .map-wrap { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

/* ============================================================
   Field guides grid (Base Camp)
   ============================================================ */
.guide-grid {
  width: min(820px, 100%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px;
}
@media (max-width: 560px){ .guide-grid { grid-template-columns: 1fr; } }
.project-grid {
  width: min(900px, 100%); margin-top: 8px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 760px){ .project-grid { grid-template-columns: 1fr; } }
.guide {
  border: var(--line) solid var(--ink); background: var(--card);
  box-shadow: var(--shadow); padding: 18px;
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.guide:hover, .guide:focus-visible { transform: translate(2px,2px); box-shadow: 5px 5px 0 rgba(44,36,23,0.7); outline: none; }
.guide .g-ico { width: 40px; height: 40px; }
.guide h4 { font-family: var(--display); text-transform: uppercase; font-size: 19px; line-height: 1.05; }
.guide p { font-size: 15px; color: var(--ink-soft); }
.guide .g-count { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--rust-dark); margin-top: auto; }
.difficulty { display: inline-flex; gap: 6px; align-items: center; }

/* ============================================================
   Research & CV
   ============================================================ */
.research-wrap { width: min(780px, 100%); margin-top: 8px; }
.pub-list { list-style: none; border: var(--line) solid var(--ink); background: var(--card); box-shadow: var(--shadow); }
.pub-list li { padding: 16px 20px; border-bottom: 3px solid rgba(44,36,23,0.18); }
.pub-list li:last-child { border-bottom: none; }
.pub-list .pub-title { font-family: var(--body); font-weight: 700; }
.pub-list a.pub-title { text-decoration: none; color: var(--ink); }
.pub-list a.pub-title:hover { color: var(--rust-dark); text-decoration: underline; }
.pub-list .pub-meta { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.pub-list .pub-topic {
  display: inline-block; font-family: var(--label); text-transform: uppercase;
  letter-spacing: 1px; font-size: 11px; border: 2px solid var(--ink);
  padding: 1px 7px; margin-right: 6px;
}
.metrics-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.metric {
  border: var(--line-thin) solid var(--ink); background: var(--paper);
  padding: 12px 18px; text-align: center; min-width: 110px;
}
.metric .m-num { font-family: var(--display); font-size: 30px; line-height: 1; }
.metric .m-lab { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; color: var(--ink-soft); margin-top: 4px; }

/* profile link buttons */
.profiles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ============================================================
   Journey's End — footer
   ============================================================ */
.journeys-end {
  margin-top: 40px;
  background: var(--ink); color: var(--paper);
  border-top: var(--line) solid var(--ink);
}
.je-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 22px 30px; text-align: center; }
.je-inner h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px,5vw,52px); letter-spacing: 1px; }
.je-inner p { color: #d8ccae; max-width: 540px; margin: 12px auto 24px; }
.je-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.je-links a {
  font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  font-size: 14px; text-decoration: none; color: var(--ink);
  background: var(--gold); border: var(--line-thin) solid var(--paper);
  padding: 11px 18px;
  transition: transform .12s ease;
}
.je-links a:hover, .je-links a:focus-visible { transform: translateY(-3px); outline: none; }
.je-stripes {
  height: 26px;
  background: repeating-linear-gradient(90deg,
    var(--rust) 0 70px, var(--gold) 70px 140px,
    var(--pine) 140px 210px, var(--dusk) 210px 280px);
}
.je-fine { text-align: center; font-family: var(--label); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: #9a8e72; padding: 18px; }

/* All stops stay centered so the spine reads as one clean vertical
   winding trail through the station badges. (The .left/.right classes
   remain in markup for optional future use but no longer offset.) */

/* ============================================================
   BASE CAMP — Field guide pages (base-camp.html)
   ============================================================ */
.fg-body { background: var(--paper); }

.fg-topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px;
  background: rgba(243, 233, 210, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: var(--line) solid var(--ink);
}
.fg-back {
  font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink);
  border: 3px solid var(--ink); padding: 7px 13px; background: var(--paper);
  transition: background .15s ease;
}
.fg-back:hover, .fg-back:focus-visible { background: var(--gold); outline: none; }
.fg-brand { margin-left: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.fg-brand .roundel {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--rust); color: var(--paper); border: var(--line-thin) solid var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-size: 18px;
}
.fg-brand span:last-child { font-family: var(--label); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; }
@media (max-width: 540px){ .fg-brand span:last-child { display: none; } }

/* guide hero band */
.fg-hero { color: var(--paper); border-bottom: var(--line) solid var(--ink); }
.fg-hero.head-gold { color: var(--ink); }
.fg-hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px 34px; }
.fg-hero .eyebrow { opacity: .85; margin-bottom: 10px; }
.fg-hero h1 { font-size: clamp(40px, 8vw, 76px); display: flex; align-items: center; gap: 18px; }
.fg-hero-ico { width: clamp(40px, 7vw, 60px); height: clamp(40px, 7vw, 60px); flex: none; background: var(--paper); border: var(--line-thin) solid var(--ink); border-radius: 50%; padding: 6px; }
.fg-hero.head-gold .fg-hero-ico { background: var(--card); }
.fg-hero-blurb { max-width: 620px; margin-top: 14px; font-size: 18px; line-height: 1.5; }
.fg-hero.head-gold .fg-hero-blurb { color: var(--ink-soft); }

.fg-wrap { max-width: 880px; margin: 0 auto; padding: 28px 22px 60px; }

.fg-allguides {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 13px; font-weight: 600; color: var(--rust-dark); text-decoration: none;
}
.fg-allguides:hover { text-decoration: underline; }

.fg-index-grid { width: 100%; }

/* legend + filter */
.fg-legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 12px 16px; margin-bottom: 16px;
  border: var(--line-thin) solid var(--ink); background: var(--card);
}
.legend-lead, .fg-pill span { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 600; }
.legend-lead { color: var(--ink-soft); }
.legend-item { display: inline-flex; align-items: center; }
.diff { display: inline-flex; align-items: center; gap: 7px; }
.diff-ico { width: 16px; height: 16px; flex: none; }
.diff-label { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.diff-na { color: var(--ink-soft); font-weight: 700; }

.fg-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.fg-pill {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 7px 13px;
}
.fg-pill.active { background: var(--ink); color: var(--paper); }
.fg-pill.active .diff-ico [stroke] { stroke: var(--paper); }

/* entries */
.fg-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.fg-entry {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 16px; align-items: start;
  border: var(--line) solid var(--ink); background: var(--card);
  box-shadow: 6px 6px 0 rgba(44,36,23,0.8);
  padding: 18px 20px;
}
.fg-mark { padding-top: 4px; }
.fg-mark .diff-ico { width: 20px; height: 20px; }
.fg-tags { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.fg-type {
  font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 11px; font-weight: 600; color: var(--paper);
  background: var(--pine); border: 2px solid var(--ink); padding: 2px 8px;
}
.fg-by { font-family: var(--body); font-style: italic; color: var(--ink-soft); font-size: 15px; }
.fg-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(18px, 2.6vw, 23px); line-height: 1.05; letter-spacing: .5px; }
.fg-note { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.fg-act { align-self: center; }
.fg-go { padding: 9px 15px; font-size: 13px; }
.fg-noplace { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; color: var(--ink-soft); white-space: nowrap; }

@media (max-width: 560px) {
  .fg-entry { grid-template-columns: 24px 1fr; }
  .fg-act { grid-column: 2; margin-top: 4px; }
}

/* empty state */
.fg-empty {
  border: var(--line) dashed var(--ink); background: var(--card);
  padding: 48px 24px; text-align: center; color: var(--ink-soft);
}
.fg-empty-ico { width: 54px; height: 54px; margin: 0 auto 14px; }
.fg-empty p { font-size: 18px; max-width: 420px; margin: 0 auto; }

/* slim footer */
.fg-foot { margin-top: 30px; }
.fg-foot .je-fine a { color: var(--rust-dark); }

/* ============================================================
   Site map (trail guide) — sitemap.html
   ============================================================ */
.tg-group { margin-bottom: 30px; }
.tg-group > h2 {
  font-family: var(--label); text-transform: uppercase; letter-spacing: 2px;
  font-size: 14px; color: var(--rust-dark);
  border-bottom: 3px solid var(--ink); padding-bottom: 6px; margin-bottom: 6px;
}
.tg-stop {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start;
  padding: 12px 2px; border-bottom: 2px solid rgba(44, 36, 23, 0.12);
  text-decoration: none; color: var(--ink);
}
.tg-stop:last-child { border-bottom: none; }
.tg-marker { width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--ink); background: var(--gold); margin-top: 3px; }
.tg-stop[data-ext] .tg-marker { background: var(--rust); }
.tg-name { font-family: var(--display); text-transform: uppercase; font-size: 18px; letter-spacing: .5px; line-height: 1.05; }
.tg-desc { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
a.tg-stop:hover .tg-name { color: var(--rust-dark); }
.tg-go { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--rust-dark); white-space: nowrap; align-self: center; }
.tg-flat { color: var(--ink-soft); }

/* ============================================================
   Lexicon — lexicon.html
   ============================================================ */
.lex-section { margin-bottom: 34px; }
.lex-section > h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(22px, 4vw, 30px); letter-spacing: 1px;
  border-bottom: var(--line-thin) solid var(--ink); padding-bottom: 8px; margin-bottom: 4px;
}
.lex { padding: 15px 0; border-bottom: 2px solid rgba(44, 36, 23, 0.12); }
.lex:last-child { border-bottom: none; }
.lex-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lex .term { font-family: var(--display); text-transform: uppercase; font-size: 19px; letter-spacing: .5px; }
.lex-tag { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 10px; border: 2px solid var(--ink); padding: 1px 6px; color: var(--paper); }
.lex-tag.bio { background: var(--pine); }
.lex-tag.sig { background: var(--rust); }
.lex-def { margin-top: 6px; font-size: 16px; line-height: 1.55; }

/* ============================================================
   Anatomy of a Stride — stride.html
   ============================================================ */
.stride-wrap { max-width: 1000px; margin: 0 auto; padding: 28px 22px 60px; }
.stride-stage { display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 780px) { .stride-stage { grid-template-columns: 1fr; } }
.stride-panel { border: var(--line) solid var(--ink); background: var(--card); box-shadow: var(--shadow); padding: 6px; }
.stride-panel.fig { background: #E6EDF0; }
.stride-panel svg { width: 100%; height: auto; display: block; }
.stride-ground { stroke: var(--ink); stroke-width: 5; }
.stride-fig .earth { fill: var(--paper-2); }
.stride-fig .earth-hatch line { stroke: rgba(44,36,23,.38); stroke-width: 2; }
#contactShadow { fill: var(--ink); opacity: 0; }
#runner { will-change: transform; }
/* limbs = colored round-cap capsules over a fatter ink keyline */
.stride-fig .seg-ink, .stride-fig [class^="thigh"], .stride-fig [class^="shank"],
.stride-fig [class^="foot"], .stride-fig [class^="arm"] { fill: none; stroke-linecap: round; }
.stride-fig .seg-ink { stroke: var(--ink); }
#nl-thigh-i,#fl-thigh-i { stroke-width: 27; }
#nl-shank-i,#fl-shank-i { stroke-width: 21; }
#nl-foot-i,#fl-foot-i  { stroke-width: 17; }
.thigh-near { stroke: var(--dusk);      stroke-width: 22; }
.shank-near { stroke: var(--pine);      stroke-width: 16; }
.foot-near  { stroke: var(--rust);      stroke-width: 12; }
.thigh-far  { stroke: var(--dusk-dark); stroke-width: 22; }
.shank-far  { stroke: var(--pine-dark); stroke-width: 16; }
.foot-far   { stroke: var(--rust);      stroke-width: 12; }
.arm-near { stroke: var(--ink); stroke-width: 13; }
.arm-far  { stroke: var(--ink); stroke-width: 12; }
.fist-near { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.fist-far  { fill: var(--ink); stroke: none; }
.stride-fig .far { opacity: .5; }
#torso { fill: var(--dusk-dark); stroke: var(--ink); stroke-width: 4.5; stroke-linejoin: round; }
#waist { stroke: rgba(243,233,210,.45); stroke-width: 2.5; stroke-linecap: round; }
#head  { fill: var(--paper); stroke: var(--ink); stroke-width: 4.5; }
#face  { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.grf-ink  { fill: var(--ink); stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.grf-gold { fill: var(--gold); stroke: none; }
.scope-axis { stroke: var(--ink); stroke-width: 3; }
.scope-stance { fill: rgba(44, 36, 23, .08); }
.scope-curve { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.scope-grf { stroke: var(--gold); stroke-width: 5; }
.scope-hip { stroke: var(--dusk); }
.scope-knee { stroke: var(--pine); }
.scope-ankle { stroke: var(--rust); }
.scope-marker { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 4; }
.scope-dot { fill: var(--gold); stroke: var(--ink); stroke-width: 2.5; }
.scope-label { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; fill: var(--ink-soft); }
.scope-event { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 10px; fill: var(--ink); }
.stride-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.stride-legend span { display: inline-flex; align-items: center; gap: 7px; }
.stride-legend .sig-btn {
  cursor: pointer; background: none; border: 3px solid transparent; padding: 4px 9px;
  font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px;
  color: var(--ink); display: inline-flex; align-items: center; gap: 7px;
}
.stride-legend .sig-btn:hover { background: var(--paper); }
.stride-legend .sig-btn.active { border-color: var(--ink); background: var(--paper); }
.stride-legend i { width: 20px; height: 5px; border-radius: 3px; }
.stride-tracknote { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; color: var(--ink-soft); margin-top: 8px; }
.stride-controls { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stride-range { flex: 1; min-width: 220px; accent-color: var(--rust); height: 8px; cursor: pointer; }
.stride-phase { font-family: var(--label); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 14px; border: 3px solid var(--ink); padding: 6px 14px; white-space: nowrap; }
.stride-phase.stance { background: var(--pine); color: var(--paper); }
.stride-phase.swing { background: var(--dusk); color: var(--paper); }
.stride-readouts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stride-read { border: var(--line-thin) solid var(--ink); background: var(--paper); padding: 8px 12px; text-align: center; min-width: 74px; }
.stride-read .r-num { font-family: var(--display); font-size: 20px; line-height: 1; }
.stride-read .r-lab { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 10px; color: var(--ink-soft); margin-top: 4px; }

/* ============================================================
   The Coach's Trailhead — coach.html
   ============================================================ */
/* index cards reuse .guide / .guide-grid */
.th-grid { margin-top: 4px; }
.th-card .g-count { color: var(--dusk-dark); }
.th-card-soon { opacity: .82; }
.th-card-soon h4 { color: var(--ink-soft); }
.th-soon { color: var(--rust-dark) !important; }
.th-foot-note { margin-top: 26px; font-size: 14px; font-style: italic; color: var(--ink-soft); max-width: 640px; }

/* hero: a question, not a poster shout */
.th-hero .th-q {
  font-family: var(--display); text-transform: none; letter-spacing: .3px;
  font-size: clamp(26px, 4.6vw, 42px); line-height: 1.12; max-width: 14ch;
}
.fg-hero.head-dusk-dark { color: var(--paper); }

/* the honest answer */
.th-answer {
  background: rgba(46, 93, 67, 0.10);
  border: var(--line-thin) solid var(--pine);
  box-shadow: 6px 6px 0 rgba(44,36,23,0.12);
  padding: 18px 20px; margin-bottom: 22px;
}
.th-answer-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.th-answer-label, .th-col-label, .th-tuesday-label {
  font-family: var(--label); text-transform: uppercase; letter-spacing: 2px;
  font-size: 12px; font-weight: 600;
}
.th-answer-label { color: var(--pine); }
.th-conf {
  margin-left: auto; color: var(--paper);
  font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 11px; font-weight: 600; padding: 3px 12px;
  border: 2px solid var(--ink); border-radius: 20px;
}
.th-answer-text { font-size: 18px; line-height: 1.55; }

/* heard vs evidence */
.th-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.th-heard, .th-evidence { border: 3px solid var(--ink); padding: 14px 16px 16px; }
.th-heard { background: rgba(227, 169, 43, 0.16); }
.th-evidence { background: rgba(46, 93, 67, 0.12); }
.th-heard .th-col-label { color: var(--rust-dark); }
.th-evidence .th-col-label { color: var(--pine-dark); }
.th-split ul { list-style: none; margin-top: 10px; }
.th-split li { font-size: 15.5px; line-height: 1.4; padding: 5px 0 5px 18px; position: relative; }
.th-split li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; background: var(--ink); }
.th-evidence li::before { background: var(--pine); }
@media (max-width: 600px){ .th-split { grid-template-columns: 1fr; } }

/* the interactive applicability tool */
.th-tool {
  background: rgba(56, 100, 122, 0.12);
  border: var(--line-thin) solid var(--dusk);
  box-shadow: 6px 6px 0 rgba(44,36,23,0.14);
  padding: 18px 20px; margin-bottom: 26px;
}
.th-tool-head { display: flex; align-items: center; gap: 12px; }
.th-tool-head h3 {
  font-family: var(--display); text-transform: uppercase; font-size: 20px;
  letter-spacing: .5px; color: var(--dusk-dark);
}
.th-live {
  font-family: var(--label); font-weight: 600; letter-spacing: 1.5px; font-size: 10px;
  background: var(--pine); color: var(--paper); padding: 2px 9px; border: 2px solid var(--ink);
  border-radius: 12px;
}
.th-tool-lead { margin: 8px 0 14px; font-size: 15px; color: var(--ink-soft); }
.th-chips { display: flex; flex-direction: column; gap: 8px; }
.th-chip {
  display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer;
  font-family: var(--body); font-size: 15.5px; color: var(--ink);
  background: var(--card); border: 3px solid var(--ink); padding: 10px 14px;
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}
.th-chip:hover, .th-chip:focus-visible { transform: translate(1px,1px); outline: none; box-shadow: 3px 3px 0 rgba(44,36,23,0.5); }
.th-chip-box {
  flex: none; width: 20px; height: 20px; border: 3px solid var(--ink); background: var(--paper);
  position: relative; border-radius: 4px;
}
.th-chip.on .th-chip-box { background: var(--ink); }
.th-chip.on .th-chip-box::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.th-chip-label { line-height: 1.3; }
/* alignment colouring: green when the habit matches good practice, rust when it doesn't */
.th-chip.aligned    { border-color: var(--pine); background: rgba(46,93,67,0.10); }
.th-chip.aligned .th-chip-box { border-color: var(--pine); }
.th-chip.aligned.on .th-chip-box { background: var(--pine); }
.th-chip.misaligned { border-color: var(--rust); background: rgba(194,86,43,0.10); }
.th-chip.misaligned .th-chip-box { border-color: var(--rust); }
.th-chip.misaligned.on .th-chip-box { background: var(--rust); }

.th-result { margin-top: 14px; border-top: 2px dashed rgba(44,36,23,0.25); padding-top: 12px; }
.th-verdict { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; font-size: 16px; }
.th-result-good .th-verdict { color: var(--pine-dark); }
.th-result-mid .th-verdict  { color: var(--dusk-dark); }
.th-result-bad .th-verdict  { color: var(--rust-dark); }
.th-warns { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.th-warns li { font-size: 15px; line-height: 1.4; padding-left: 24px; position: relative; }
.th-warns li::before {
  content: "!"; position: absolute; left: 0; top: 0;
  width: 17px; height: 17px; background: var(--rust); color: var(--paper);
  font-family: var(--label); font-weight: 700; font-size: 12px; text-align: center; line-height: 17px;
  border-radius: 50%;
}

/* the trail of sources */
.th-trail { margin-bottom: 26px; }
.th-trail-head { display: flex; align-items: baseline; gap: 12px; border-bottom: var(--line-thin) solid var(--ink); padding-bottom: 6px; }
.th-trail-head h3 { font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: .5px; }
.th-trail-sub { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; color: var(--ink-soft); margin-left: auto; }
.th-trail-legend { margin: 12px 0 4px; }
.th-steps { list-style: none; }
.th-step {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: start; gap: 12px;
  padding: 16px 0; border-bottom: 2px solid rgba(44,36,23,0.12);
}
.th-step:last-child { border-bottom: none; }
.th-step-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-size: 15px; display: grid; place-items: center;
}
.th-step-mark { padding-top: 3px; }
.th-step-mark .diff-ico { width: 20px; height: 20px; }
.th-step-body h4 { font-family: var(--display); text-transform: uppercase; font-size: 16px; line-height: 1.15; letter-spacing: .3px; }
.th-step-by { font-family: var(--body); font-style: italic; color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.th-step-note { font-size: 15px; line-height: 1.45; margin-top: 5px; }
.th-go { font-size: 13px; padding: 8px 14px; letter-spacing: 1px; white-space: nowrap; }
@media (max-width: 600px){
  .th-step { grid-template-columns: auto 1fr; }
  .th-step-mark { grid-row: 1; grid-column: 2; }
  .th-step-body { grid-column: 1 / -1; }
  .th-step-act { grid-column: 1 / -1; }
}

/* the Tuesday move */
.th-tuesday {
  background: var(--rust); color: var(--paper);
  border: var(--line-thin) solid var(--ink); box-shadow: var(--shadow);
  padding: 18px 22px;
}
.th-tuesday-label { color: var(--paper); opacity: .9; display: block; margin-bottom: 6px; }
.th-tuesday p { font-size: 18px; line-height: 1.5; font-weight: 500; }

/* ============================================================
   Résumé — resume.html
   ============================================================ */
.cv-hero .cv-tagline { font-family: var(--label); text-transform: uppercase; letter-spacing: 2px; font-size: clamp(12px, 1.8vw, 15px); margin-top: 12px; color: var(--paper); opacity: .92; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cv-wrap { max-width: 960px; }
.cv-summary { font-size: 18px; line-height: 1.6; max-width: 720px; margin: 4px 0 26px; }

/* lens filter */
.cv-filter { position: sticky; top: 0; z-index: 20; background: rgba(243,233,210,0.96); backdrop-filter: blur(4px); border-top: var(--line-thin) solid var(--ink); border-bottom: var(--line-thin) solid var(--ink); padding: 12px 0; margin-bottom: 26px; }
.cv-filter-lead { font-family: var(--label); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.cv-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-lens { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--card); border: 3px solid var(--ink); padding: 7px 14px; transition: transform .1s ease, box-shadow .1s ease; }
.cv-lens:hover, .cv-lens:focus-visible { transform: translate(1px,1px); box-shadow: 3px 3px 0 rgba(44,36,23,0.5); outline: none; }
.cv-lens-dot { width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--lens, var(--ink)); border-radius: 50%; flex: none; }
.cv-lens.active { background: var(--ink); color: var(--paper); }
.cv-lens.active .cv-lens-dot { border-color: var(--paper); }

/* dim / highlight states driven by the lens */
.cv-dim { opacity: .3; transition: opacity .18s ease; }
.cv-hit { transition: opacity .18s ease; }
.cv-bullet.cv-hit { position: relative; }
.cv-bullet.cv-hit::marker { color: var(--rust); }
.cv-skillgroup.cv-hit h4, .cv-project.cv-hit h4 { color: var(--rust-dark); }
.cv-exp-dim { opacity: .45; }

/* experience timeline */
.cv-h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 4vw, 30px); letter-spacing: 1px; border-bottom: var(--line-thin) solid var(--ink); padding-bottom: 8px; margin-bottom: 18px; }
.cv-section { margin-bottom: 34px; }
.cv-timeline { position: relative; padding-left: 30px; }
.cv-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; background: rgba(44,36,23,0.18); }
.cv-exp { position: relative; padding: 0 0 24px; }
.cv-exp:last-child { padding-bottom: 0; }
.cv-dot { position: absolute; left: -30px; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); }
.cv-current .cv-dot { background: var(--rust); }
.cv-exp-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cv-org { font-family: var(--display); text-transform: uppercase; font-size: 20px; letter-spacing: .3px; }
.cv-now { font-family: var(--label); font-size: 10px; font-weight: 600; letter-spacing: 1px; background: var(--rust); color: var(--paper); padding: 2px 8px; border: 2px solid var(--ink); border-radius: 10px; margin-left: 8px; vertical-align: middle; }
.cv-loc { font-family: var(--body); font-style: italic; color: var(--ink-soft); font-size: 15px; margin-left: auto; }
.cv-roles { margin: 4px 0 8px; }
.cv-role { display: flex; gap: 10px; align-items: baseline; }
.cv-role-title { font-family: var(--label); text-transform: uppercase; letter-spacing: .5px; font-size: 14px; font-weight: 600; color: var(--pine-dark); }
.cv-role-years { font-family: var(--label); font-size: 13px; color: var(--ink-soft); margin-left: auto; white-space: nowrap; }
.cv-bullets { list-style: none; }
.cv-bullet { font-size: 15.5px; line-height: 1.45; padding: 4px 0 4px 18px; position: relative; }
.cv-bullet::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; background: var(--pine); }
.cv-ph .cv-bullet { font-style: italic; color: var(--ink-soft); }
.cv-ph .cv-bullet::before { background: var(--rust); border-radius: 50%; }

/* education + skills two-col */
.cv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px){ .cv-two { grid-template-columns: 1fr; } }
.cv-edu { padding: 8px 0; border-bottom: 2px solid rgba(44,36,23,0.12); }
.cv-edu:last-child { border-bottom: none; }
.cv-edu-deg { display: block; font-family: var(--label); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; font-size: 15px; }
.cv-edu-school { font-size: 14px; color: var(--ink-soft); }
.cv-skillgroup { margin-bottom: 14px; }
.cv-skillgroup h4 { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; color: var(--dusk-dark); margin-bottom: 6px; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-chip { font-family: var(--body); font-size: 13.5px; background: var(--card); border: 2px solid var(--ink); padding: 3px 10px; }

/* projects */
.cv-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px){ .cv-projects { grid-template-columns: 1fr; } }
.cv-project { border: 3px solid var(--ink); background: var(--card); padding: 14px 16px; }
.cv-project h4 { font-family: var(--display); text-transform: uppercase; font-size: 15px; line-height: 1.1; margin-bottom: 6px; }
.cv-project p { font-size: 14.5px; line-height: 1.45; }

/* publications */
.cv-pubs { list-style: decimal; padding-left: 22px; }
.cv-pubs li { font-size: 15px; line-height: 1.5; padding: 7px 0; border-bottom: 2px solid rgba(44,36,23,0.1); }
.cv-pubs li:last-child { border-bottom: none; }
.cv-pubs a { color: var(--ink); text-decoration: none; }
.cv-pubs a:hover { color: var(--rust-dark); text-decoration: underline; }
.cv-venue { display: block; font-style: italic; color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }
.cv-allpubs { margin-top: 16px; }

/* ============================================================
   CONNECTIONS (cx-*) — interactive infrastructure stories
   Standalone page (connections.html). Real MapLibre maps in a
   poster frame; everything else reuses the site's tokens.
   ============================================================ */
.cx-wrap { max-width: var(--maxw); margin: 0 auto; padding: 30px 22px 10px; }

/* intro */
.cx-intro { max-width: 820px; margin: 6px auto 40px; }
.cx-lede { font-family: var(--display); text-transform: uppercase; letter-spacing: 1px; font-size: clamp(26px, 5vw, 40px); line-height: 1; color: var(--rust-dark); margin-bottom: 14px; }
.cx-intro-body { font-size: 18px; line-height: 1.6; }

/* selector cards */
.cx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
@media (max-width: 760px){ .cx-cards { grid-template-columns: 1fr; } }
.cx-card {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--ink);
  background: var(--card); border: var(--line-thin) solid var(--ink);
  box-shadow: var(--shadow); padding: 16px 18px 18px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cx-card:hover, .cx-card:focus-visible { transform: translate(3px,3px); box-shadow: 4px 4px 0 rgba(44,36,23,.85); outline: none; }
.cx-card-num { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--pine); }
.cx-card-title { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; font-size: 16px; line-height: 1.15; margin-top: 6px; }
.cx-card-where { font-size: 14px; color: var(--ink-soft); }
.cx-card-lesson { margin-top: 8px; align-self: flex-start; font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 600; background: var(--gold); border: 2px solid var(--ink); padding: 3px 9px; }

/* story block */
.cx-story { max-width: var(--maxw); margin: 0 auto; padding: 30px 0 46px; border-top: var(--line-thin) solid var(--ink); }
.cx-story-head h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(26px, 5vw, 42px); line-height: 1.02; margin: 4px 0 6px; }
.cx-sub { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; color: var(--dusk-dark); }

/* phase stepper */
.cx-stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; padding: 0; }
.cx-stepper li {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; font-weight: 600;
  color: var(--ink-soft); background: var(--paper-2); border: 2px solid var(--ink);
  padding: 5px 11px 5px 5px;
}
.cx-stepper li b {
  display: grid; place-items: center; width: 21px; height: 21px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; font-size: 12px;
}
.cx-stepper li.is-done { color: var(--ink); }
.cx-stepper li.is-done b { background: var(--pine); color: var(--paper); }
.cx-stepper li.is-active { color: var(--ink); background: var(--gold); }
.cx-stepper li.is-active b { background: var(--rust); color: var(--paper); }

/* stage: map + panel */
.cx-stage { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px){ .cx-stage { grid-template-columns: 1fr; } }
.cx-map {
  position: relative; min-height: 460px;
  border: var(--line) solid var(--ink); box-shadow: var(--shadow);
  background: #eef2f0; overflow: hidden;
}
@media (max-width: 860px){ .cx-map { min-height: 64vh; } }
.cx-map .maplibregl-canvas { outline: none; }
.cx-map-fallback {
  position: absolute; inset: 0; z-index: 0;   /* sits BEHIND the map canvas; only seen if no map renders */
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 28px; font-size: 15px; color: var(--ink-soft); background: var(--paper);
}
.cx-map.is-ready .cx-map-fallback { display: none; }
.cx-map.is-failed { min-height: 0; }
.cx-map.is-failed .cx-map-fallback { position: static; }

/* panel */
.cx-panel {
  background: var(--card); border: var(--line-thin) solid var(--ink); box-shadow: var(--shadow);
  padding: 20px 22px; align-self: start;
}
.cx-panel p { font-size: 16.5px; line-height: 1.62; margin-bottom: 12px; }
.cx-panel p:last-child { margin-bottom: 0; }
.cx-prompt { font-weight: 500; }
.cx-draw { font-style: italic; color: var(--ink-soft); }
.cx-note { font-size: 14px !important; color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: 12px; }
.cx-tag { font-family: var(--label); text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 600; color: var(--rust-dark); margin-bottom: 10px !important; }
.cx-rtitle { font-family: var(--display); text-transform: uppercase; font-size: 22px; line-height: 1.05; margin-bottom: 4px; }
.cx-status { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12.5px; color: var(--dusk-dark); margin-bottom: 12px !important; }
.cx-planned { display: inline-block; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); padding: 1px 7px; letter-spacing: 1px; }
.cx-stat { font-family: var(--display); color: var(--rust); line-height: .9; display: flex; align-items: baseline; gap: 8px; }
.cx-stat b { font-size: clamp(52px, 11vw, 76px); }
.cx-stat-unit { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 18px; color: var(--ink); }
.cx-stat-label { font-family: var(--label); text-transform: uppercase; letter-spacing: .5px; font-size: 14px !important; font-weight: 600; margin: 6px 0 14px !important; }

/* controls bar */
.cx-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.cx-controls .btn { margin-top: 0; font-size: 13px; letter-spacing: 1.5px; padding: 9px 15px; box-shadow: 4px 4px 0 rgba(44,36,23,.85); }
.cx-controls .cx-next { margin-left: auto; }
.cx-draw-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-draw-tools[hidden] { display: none; }
.cx-len { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12.5px; color: var(--ink-soft); }
.cx-toggle[hidden] { display: none; }

/* map markers (DOM) — raster basemap has no glyphs, so labels live here */
.cx-pin { display: flex; align-items: center; gap: 7px; pointer-events: none; transform: translateX(4px); }
.cx-pin-flip { flex-direction: row-reverse; transform: translateX(-4px); }
.cx-pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); background: var(--rust); box-shadow: 1px 1px 0 rgba(44,36,23,.6); flex: none; }
.cx-pin-pine .cx-pin-dot { background: var(--pine); }
.cx-pin-dusk .cx-pin-dot { background: var(--dusk); }
.cx-pin-label { font-family: var(--label); text-transform: uppercase; letter-spacing: .5px; font-size: 11px; font-weight: 600; line-height: 1.15; color: var(--ink); background: rgba(243,233,210,.92); border: 2px solid var(--ink); padding: 2px 7px; max-width: 150px; }
.cx-traveler { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); box-shadow: 0 0 0 4px rgba(227,169,43,.35); }

/* closing */
.cx-close { max-width: 820px; margin: 10px auto 0; padding: 34px 0 20px; border-top: var(--line-thin) solid var(--ink); }
.cx-close h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(24px, 4.5vw, 36px); line-height: 1.05; margin: 6px 0 18px; }
.cx-takeaways { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: tk; }
.cx-takeaways li { position: relative; padding: 14px 16px 14px 56px; background: var(--card); border: 3px solid var(--ink); font-size: 16px; line-height: 1.55; counter-increment: tk; }
.cx-takeaways li::before { content: counter(tk); position: absolute; left: 14px; top: 12px; font-family: var(--display); font-size: 26px; color: var(--rust); line-height: 1; }
.cx-close-foot { margin-top: 20px; font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; color: var(--dusk-dark); }

/* maplibre controls + attribution, nudged toward the palette */
.cx-map .maplibregl-ctrl-group { border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(44,36,23,.7); border-radius: 0; }
.cx-map .maplibregl-ctrl-group button { border-radius: 0; }
.cx-map .maplibregl-ctrl-attrib { font-size: 10px; }

@media (prefers-reduced-motion: reduce) {
  .cx-card, .cx-controls .btn { transition: none; }
  .cx-traveler { box-shadow: none; }
}

/* ============================================================
   COMMON GROUND (cg-*) — public land / third places / right to roam
   Standalone page (commonground.html). One MapLibre map (the
   Schuylkill), one SVG choropleth, one SVG roam switcher.
   ============================================================ */
.cg-wrap { max-width: var(--maxw); margin: 0 auto; padding: 30px 22px 10px; }

/* intro */
.cg-intro { max-width: 820px; margin: 6px auto 36px; }
.cg-lede { font-family: var(--display); text-transform: uppercase; letter-spacing: 1px; font-size: clamp(24px, 4.6vw, 38px); line-height: 1.04; color: var(--rust-dark); margin-bottom: 14px; }
.cg-intro-body { font-size: 18px; line-height: 1.62; }

/* section shell */
.cg-section { padding: 34px 0 14px; border-top: var(--line-thin) solid var(--ink); }
.cg-section:first-of-type { border-top: none; }
.cg-section-head { max-width: 820px; margin: 0 auto; }
.cg-section-head .eyebrow { color: var(--rust-dark); margin-bottom: 8px; }
.cg-section-head h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(26px, 5vw, 42px); line-height: 1.02; margin-bottom: 14px; }
.cg-copy { max-width: 820px; margin: 0 auto; }
.cg-copy p { font-size: 17.5px; line-height: 1.66; margin-bottom: 14px; }
.cg-copy p:last-child { margin-bottom: 0; }
.cg-copy-after { margin-top: 24px; }
.cg-section-text { padding-bottom: 30px; }

/* pull quote */
.cg-pull {
  max-width: 820px; margin: 20px auto; padding: 6px 0 8px 22px;
  border-left: var(--line) solid var(--rust);
  font-family: var(--body); font-weight: 500; font-style: italic;
  font-size: clamp(19px, 3vw, 25px); line-height: 1.4; color: var(--ink);
}

/* shared map frame */
.cg-map {
  position: relative; min-height: 460px;
  border: var(--line) solid var(--ink); box-shadow: var(--shadow);
  background: #eef2f0; overflow: hidden;
}
@media (max-width: 860px){ .cg-map { min-height: 64vh; } }
.cg-map .maplibregl-canvas { outline: none; }
.cg-map-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 28px; font-size: 15px; color: var(--ink-soft); background: var(--paper);
}
.cg-map.is-ready .cg-map-fallback { display: none; }
.cg-map.is-failed { min-height: 0; }
.cg-map.is-failed .cg-map-fallback { position: static; }
.cg-map .maplibregl-ctrl-group { border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(44,36,23,.7); border-radius: 0; }
.cg-map .maplibregl-ctrl-group button { border-radius: 0; }
.cg-map .maplibregl-ctrl-attrib { font-size: 10px; }

/* ---- Part 01: Schuylkill map + stats ---- */
.cg-srt-stage { max-width: 1040px; margin: 22px auto 0; display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px){ .cg-srt-stage { grid-template-columns: 1fr; } }
.cg-srt-side { display: flex; flex-direction: column; gap: 16px; }
.cg-srt-note { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.cg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cg-stat { border: var(--line-thin) solid var(--ink); background: var(--paper); padding: 12px 8px; text-align: center; }
.cg-stat-num { display: block; font-family: var(--display); font-size: clamp(22px, 4vw, 30px); color: var(--rust); line-height: 1; }
.cg-stat-lab { display: block; font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; color: var(--ink-soft); margin-top: 5px; }
.cg-srt-controls .btn { margin-top: 0; font-size: 13px; }

/* ---- Part 03: federal land choropleth ---- */
.cg-choro-stage { max-width: 1040px; margin: 22px auto 0; display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px){ .cg-choro-stage { grid-template-columns: 1fr; } }
.cg-choro-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 10px; }
.cg-choro-group { display: flex; align-items: center; gap: 8px; }
.cg-choro-glabel { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.cg-choro-toggle { display: inline-flex; border: 3px solid var(--ink); box-shadow: 3px 3px 0 rgba(44,36,23,.6); }
.cg-choro-caveat { margin-top: 11px; font-size: 12px; line-height: 1.5; font-style: italic; color: var(--ink-soft); }
.cg-mode { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; font-weight: 600; padding: 8px 14px; background: var(--card); color: var(--ink); border: none; border-right: 3px solid var(--ink); cursor: pointer; }
.cg-mode:last-child { border-right: none; }
.cg-mode.is-active { background: var(--ink); color: var(--paper); }
.cg-choro-frame { border: var(--line) solid var(--ink); box-shadow: var(--shadow); background: var(--dusk); }
.cg-choro-frame svg { width: 100%; height: auto; display: block; }
.cg-state { stroke: rgba(20,16,8,0.5); stroke-width: 0.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .25s ease; }
.cg-state.cg-q0 { fill: #E9E0C6; }
.cg-state.cg-q1 { fill: #CBD6A6; }
.cg-state.cg-q2 { fill: #9FC07C; }
.cg-state.cg-q3 { fill: #6BA45F; }
.cg-state.cg-q4 { fill: #3E8049; }
.cg-state.cg-q5 { fill: #235034; }
.cg-state.cg-nodata { fill: #AEA88E; }
.cg-state.is-active { stroke: var(--gold); stroke-width: 2.6; }
.cg-state:focus { outline: none; }
.cg-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.cg-legend-lead { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; color: var(--ink-soft); }
.cg-legend-swatch { width: 26px; height: 15px; border: 2px solid var(--ink); display: inline-block; }
.cg-legend-swatch.cg-q0 { background: #E9E0C6; }
.cg-legend-swatch.cg-q1 { background: #CBD6A6; }
.cg-legend-swatch.cg-q2 { background: #9FC07C; }
.cg-legend-swatch.cg-q3 { background: #6BA45F; }
.cg-legend-swatch.cg-q4 { background: #3E8049; }
.cg-legend-swatch.cg-q5 { background: #235034; }
.cg-fed-card { background: var(--card); border: var(--line-thin) solid var(--ink); box-shadow: var(--shadow); padding: 18px 20px; align-self: start; min-height: 200px; }
.cg-tag { font-family: var(--label); text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 600; color: var(--rust-dark); margin-bottom: 10px; }
.cg-fed-hint { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.cg-fed-compare { margin-top: 12px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.cg-fed-name { font-family: var(--display); text-transform: uppercase; font-size: 24px; line-height: 1.05; margin-bottom: 10px; }
.cg-fed-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.cg-fed-big b { font-family: var(--display); font-size: clamp(34px, 7vw, 46px); color: var(--rust); line-height: .9; }
.cg-fed-big span { font-family: var(--label); text-transform: uppercase; letter-spacing: .5px; font-size: 11.5px; color: var(--ink-soft); max-width: 150px; line-height: 1.2; }
.cg-fed-rows { list-style: none; }
.cg-fed-rows li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 2px solid rgba(44,36,23,0.12); }
.cg-fed-rows li:last-child { border-bottom: none; }
.cg-fed-rows li span { font-family: var(--label); text-transform: uppercase; letter-spacing: .5px; font-size: 11px; color: var(--ink-soft); }
.cg-fed-rows li b { font-family: var(--body); font-size: 14px; white-space: nowrap; }
.cg-fed-rows li.is-sel { background: rgba(227,169,43,0.18); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.cg-fed-rows li.is-sel span { color: var(--ink); }

/* ---- Part 04: right to roam ---- */
.cg-roam-stage { max-width: 1040px; margin: 22px auto 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px){ .cg-roam-stage { grid-template-columns: 1fr; } }
.cg-roam-scene { border: var(--line) solid var(--ink); box-shadow: var(--shadow); overflow: hidden; background: #CFE0E6; }
.cg-roam-scene svg { width: 100%; height: auto; display: block; }
.cg-zone { stroke: var(--ink); stroke-width: 2; fill: #D5CBB2; transition: fill .4s ease; }
.cg-zone.is-open { fill: #5E9E63; }
.cg-zone.is-closed { fill: #D5CBB2; }
.cg-zone-labels text { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: rgba(243,233,210,0.85); stroke-width: 4px; }
.cg-roam-panel { }
.cg-roam-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cg-roam-btn { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; font-weight: 600; padding: 8px 12px; border: 3px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.cg-roam-btn:hover, .cg-roam-btn:focus-visible { transform: translate(1px,1px); box-shadow: 3px 3px 0 rgba(44,36,23,.4); outline: none; }
.cg-roam-btn.is-active { background: var(--pine); color: var(--paper); }
.cg-roam-readout { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cg-roam-pct { font-family: var(--display); font-size: clamp(40px, 9vw, 60px); color: var(--pine); line-height: .9; }
.cg-roam-pct-lab { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--ink-soft); max-width: 130px; line-height: 1.2; }
.cg-roam-title { font-family: var(--display); text-transform: uppercase; font-size: 22px; line-height: 1.05; margin-bottom: 2px; }
.cg-roam-law { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--dusk-dark); margin-bottom: 10px; }
.cg-roam-desc { font-size: 15.5px; line-height: 1.55; }
.cg-roam-fine { margin-top: 12px; font-size: 12.5px; font-style: italic; color: var(--ink-soft); }

/* closing */
.cg-close { max-width: 820px; margin: 10px auto 0; padding: 34px 0 20px; border-top: var(--line-thin) solid var(--ink); }
.cg-close h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(24px, 4.5vw, 36px); line-height: 1.05; margin: 6px 0 18px; }
.cg-takeaways { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: tk; }
.cg-takeaways li { position: relative; padding: 14px 16px 14px 56px; background: var(--card); border: 3px solid var(--ink); font-size: 16px; line-height: 1.55; counter-increment: tk; }
.cg-takeaways li::before { content: counter(tk); position: absolute; left: 14px; top: 12px; font-family: var(--display); font-size: 26px; color: var(--rust); line-height: 1; }
.cg-close-foot { margin-top: 22px; font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: clamp(18px, 3vw, 24px); color: var(--pine-dark); }

/* honest-footnote aside */
.cg-aside { max-width: 820px; margin: 20px auto; background: rgba(194,86,43,0.08); border-left: var(--line) solid var(--rust); padding: 16px 20px; }
.cg-aside-label { font-family: var(--label); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: var(--rust-dark); margin-bottom: 8px; }
.cg-aside p:not(.cg-aside-label) { font-size: 16.5px; line-height: 1.62; margin-bottom: 0; }

/* resources grid */
.cg-res-grid { max-width: 1040px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px){ .cg-res-grid { grid-template-columns: 1fr; } }
.cg-res-group { border: 3px solid var(--ink); background: var(--card); box-shadow: 6px 6px 0 rgba(44,36,23,0.18); padding: 16px 18px; }
.cg-res-group h3 { font-family: var(--display); text-transform: uppercase; font-size: 18px; letter-spacing: .5px; line-height: 1.05; margin-bottom: 12px; color: var(--pine-dark); }
.cg-res-group ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.cg-res-group li { font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.cg-res-group a { font-weight: 700; color: var(--rust-dark); text-decoration: none; }
.cg-res-group a:hover, .cg-res-group a:focus-visible { text-decoration: underline; }
.cg-res-sources { max-width: 1040px; margin: 18px auto 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); border-top: 2px solid rgba(44,36,23,0.18); padding-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .cg-state, .cg-zone, .cg-roam-btn { transition: none; }
}

/* ============================================================
   The Long Run — running-science timeline (the-long-run.html)
   ============================================================ */
.tl-intro { max-width: 760px; margin: 0 auto; padding: 34px 22px 4px; }
.tl-lede { font-size: 20px; line-height: 1.55; }
.tl-lede strong { color: var(--rust-dark); }

.tl-scrolly {
  max-width: 1120px; margin: 6px auto 0; padding: 0 22px 50px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.tl-steps { grid-column: 1; grid-row: 1; list-style: none; display: flex; flex-direction: column; }
.tl-rail {
  grid-column: 2; grid-row: 1; position: sticky; top: 78px; align-self: start;
  display: flex; flex-direction: column; gap: 14px; --tc: var(--pine);
}

/* thread filter chips */
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--label); text-transform: uppercase; letter-spacing: 1px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 3px solid var(--ink); padding: 6px 10px;
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}
.tl-chip:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 rgba(44, 36, 23, 0.4); }
.tl-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tl-chip-dot { flex: none; width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--tc, var(--paper)); }
.tl-chip.on { background: var(--tc); color: var(--tct, var(--paper)); }
.tl-chip.on .tl-chip-dot { background: var(--paper); }
.tl-chip:not(.on) { opacity: .72; }
.tl-chip.tl-chip-all.on { background: var(--ink); color: var(--paper); }

/* sticky graphic */
.tl-graphic {
  border: var(--line) solid var(--ink); border-top: 10px solid var(--tc);
  background: var(--card); box-shadow: var(--shadow); padding: 14px 14px 12px;
}
.tl-svg { width: 100%; height: auto; display: block; transition: opacity .15s ease; }
.tl-svg text, .tl-inline-graphic text { font-family: var(--label); fill: var(--ink); }
.tl-caption { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); min-height: 3.2em; }
.tl-caption strong { font-family: var(--label); color: var(--ink); }

/* mini-map */
.tl-minimap { border: 3px solid var(--ink); background: var(--card); padding: 8px 8px 4px; }
.tl-minimap svg { width: 100%; height: auto; display: block; }
.tl-minimap .mm-dot { cursor: pointer; }
.tl-minimap .mm-dot:focus-visible { outline: none; }
.tl-minimap .mm-dot:focus-visible .mm-square,
.tl-minimap .mm-dot:hover .mm-square { stroke: var(--gold); stroke-width: 3; }

/* steps */
.tl-step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
html.js .tl-step { opacity: .5; transition: opacity .35s ease; }
html.js .tl-step.is-active { opacity: 1; }
.tl-step.tl-off { opacity: .12 !important; }
.tl-step-card {
  border: var(--line) solid var(--ink); border-left: 12px solid var(--tc, var(--pine));
  background: var(--card); box-shadow: var(--shadow); padding: 20px 22px; width: min(560px, 100%);
}
.tl-step-eyebrow { font-family: var(--label); text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px; font-weight: 600; color: var(--tc, var(--pine)); margin-bottom: 8px; }
.tl-step-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.03; letter-spacing: .5px; margin-bottom: 6px; }
.tl-step-who { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.tl-step-dek { font-size: 17px; line-height: 1.55; }
.tl-step .th-split { margin-top: 16px; margin-bottom: 0; }
.tl-src-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.tl-src-cite { font-size: 13.5px; font-style: italic; color: var(--ink-soft); }
.btn.tl-src { margin-top: 0; font-size: 12px; padding: 8px 14px; }

/* inline graphics: only shown in the mobile stacked layout */
.tl-inline-graphic { display: none; margin-top: 16px; border: var(--line-thin) solid var(--ink); border-top: 8px solid var(--tc, var(--pine)); background: var(--card); padding: 10px; }
.tl-inline-graphic svg { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  html.js .tl-step { transition: none; }
  .tl-svg, .tl-chip { transition: none; }
}

@media (max-width: 760px) {
  .tl-scrolly { grid-template-columns: 1fr; }
  .tl-rail {
    grid-column: 1; grid-row: 1; position: sticky; top: 62px; z-index: 15;
    flex-direction: row; flex-wrap: wrap; gap: 8px;
    background: rgba(243, 233, 210, 0.94); backdrop-filter: blur(6px);
    margin: 0 -22px; padding: 8px 22px;
  }
  .tl-graphic, .tl-minimap { display: none; }
  .tl-inline-graphic { display: block; }
  .tl-steps { grid-column: 1; grid-row: 2; }
  .tl-step { min-height: auto; margin-bottom: 30px; justify-content: flex-start; }
  html.js .tl-step { opacity: 1; }
  .tl-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tl-chip { white-space: nowrap; }
}
