/* Cleveland Marathon hub. Layered over style.css and races.css, which supply
   the warm cream / ink-navy tokens and the Instrument Serif display type.
   Nothing here redefines a token: the light and dark palettes both come from
   races.css so this section cannot drift from the rest of the race pages. */

/* Wide media breaks out of main's 880px column. The flythrough, the
   elevation profile and the plan map are all landscape and all lose their
   point at phone-column width, so they get the viewport instead.

   NOT plain 100vw: that unit includes the vertical scrollbar, so on any
   machine with classic scrollbars (Windows, most corporate laptops) a
   100vw breakout sits half a scrollbar off-center and overflows right.
   A one-line script in each page's head measures the real scrollbar into
   --sbw; without JS the 0px fallback is exactly the old behavior. (A pure
   CSS @property calc(100vw - 100%) trick was tried first: where the
   registration is not honored the tokens substitute at point of use and
   100% resolves against the wrong box, which is far worse than the
   scrollbar shift it was fixing.) */
:root { --sbw: 0px; }

/* Full-bleed media deliberately meets the viewport edge. Guard against
   sub-pixel rounding turning that treatment into a page-wide horizontal
   scrollbar, especially in mobile Safari. */
html, body { max-width: 100%; overflow-x: clip; }

.fly-wrap, .plan-svg, .elev-wrap, .hero-photo {
  width: calc(100vw - var(--sbw, 0px));
  max-width: calc(100vw - var(--sbw, 0px));
  margin-left: calc(50% - 50vw + var(--sbw, 0px) / 2);
  margin-right: calc(50% - 50vw + var(--sbw, 0px) / 2);
}
.fly-wrap, .elev-wrap { padding: 0 clamp(14px, 4vw, 48px); }
.hero-photo img { border-radius: 0 !important; max-height: 62vh; object-fit: cover; }

/* ---- Cleveland editorial hero ---- */
.cle-banner {
  position: relative;
  width: calc(100vw - var(--sbw, 0px));
  max-width: calc(100vw - var(--sbw, 0px));
  margin: 26px calc(50% - 50vw + var(--sbw, 0px) / 2) 0;
  aspect-ratio: 2.6 / 1;
  max-height: 68vh;
  overflow: hidden;
  background: #142534;
  line-height: 1;
}
.cle-banner img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  object-position: center 53%;
  filter: saturate(.91) contrast(1.035);
}
.cle-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 18, 27, .08), transparent 42%),
    linear-gradient(0deg, rgba(7, 18, 27, .72), transparent 42%);
}
.cle-banner figcaption {
  position: absolute; z-index: 1; left: clamp(20px, 5vw, 76px);
  bottom: clamp(18px, 3.2vw, 48px); color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .7);
}
.cle-banner figcaption span {
  display: block; font: 400 clamp(30px, 4vw, 62px)/.95 "Instrument Serif", Georgia, serif;
  letter-spacing: -.018em;
}
.cle-banner figcaption small {
  display: block; margin-top: 8px; font-size: clamp(10px, 1vw, 13px);
  line-height: 1.3; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

.kicker {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 6px; font-weight: 600;
}

.cle-hero { padding-bottom: 8px; }

/* ---------------------------------------------------------------- hubnav */

.hubnav {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin: 30px 0 8px; padding: 8px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.hubnav a {
  font-size: 14px; padding: 7px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.hubnav a:hover { background: var(--surface); text-decoration: none; }
.hubnav a.on { background: var(--pill-bg); color: var(--pill-fg); font-weight: 600; }

/* ------------------------------------------------------------ flythrough */

.fly-head { max-width: 720px; margin: 0 auto 16px; text-align: center; }
.fly-head p { color: var(--ink-2); }
.course-status {
  display: inline-flex; align-items: center; gap: 9px; margin: 2px auto 4px;
  padding: 7px 11px 7px 8px; border: 1px solid var(--border);
  border-radius: 999px; background: color-mix(in srgb, var(--surface) 86%, transparent);
  font-size: 12px; line-height: 1.35; color: var(--muted) !important;
}
.course-status span {
  border-radius: 999px; padding: 4px 7px; background: var(--pill-bg);
  color: var(--pill-fg); font-size: 9.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}

.fly-stage { position: relative; }

.fly {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 74vh;
  border-radius: 22px;
  overflow: hidden;
  background: #0d1118;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 22px 70px rgba(6, 14, 20, .28), 0 3px 14px rgba(6, 14, 20, .18);
  isolation: isolate;
}
.fly-tall .fly { aspect-ratio: 2 / 1; max-height: 82vh; }
.fly-canvas { display: block; width: 100%; height: 100%; }

.fly-course-chip {
  position: absolute; z-index: 2; top: 14px; left: 50%;
  transform: translateX(-50%); max-width: 42%;
  padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; background: rgba(8, 15, 21, .58);
  color: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); pointer-events: none;
  font-size: 10px; line-height: 1; letter-spacing: .11em;
  text-transform: uppercase; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.fly-course-chip b { color: #fff; font-weight: 700; }
.fly-course-chip i {
  display: inline-block; width: 6px; height: 6px; margin-right: 7px;
  border-radius: 50%; background: #efbc58; box-shadow: 0 0 0 3px rgba(239,188,88,.16);
}

/* The overlay and the beat card are both display:flex/block from the rules
   below, which outrank the user agent's [hidden] { display: none }. Without
   this the "Building Cleveland" spinner never goes away and sits opaque on
   top of the finished scene. */
.fly [hidden], .fly-stage > [hidden] { display: none !important; }

.fly-cred {
  font-size: 12px; color: var(--muted); text-align: center;
  margin: 10px auto 0; max-width: 700px;
}

/* HUD. Sits over the canvas, never intercepts a pointer. */
.fly-hud {
  position: absolute; top: 14px; left: 16px; pointer-events: none;
  display: flex; gap: 18px; color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
  font-variant-numeric: tabular-nums;
}
.fly-hud b { display: block; font-size: 30px; line-height: 1; font-weight: 600; }
.fly-hud span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }

/* picture-in-picture course map */
.fly-map {
  position: absolute; top: 14px; right: 14px; width: clamp(150px, 22%, 230px);
  background: rgba(10, 13, 19, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px; padding: 6px 6px 4px;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  pointer-events: none;
}
.fly-map-canvas { width: 100%; display: block; }
.fly-map-mile {
  text-align: center; font-size: 10px; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85); padding: 3px 0 2px;
  font-variant-numeric: tabular-nums;
}

.fly-beat {
  position: absolute; left: 16px; bottom: 108px; max-width: min(420px, 62%);
  z-index: 2;
  background: rgba(12, 14, 18, 0.76);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 12px 15px; color: #f4f1ea;
  pointer-events: none;
}
.fly-beat h4 {
  margin: 0 0 4px; font-size: 18px; color: #fff;
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
}
.fly-beat p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #ddd8cd; }
.fly-beat.in { animation: flyBeatIn 520ms ease-out; }
@keyframes flyBeatIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fly-beat.in { animation: none; }
}

.fly-loading {
  position: absolute; inset: 0; display: flex; gap: 10px;
  align-items: center; justify-content: center;
  color: #cfd6e2; font-size: 14px; background: #0d1118; text-align: center;
  padding: 0 24px;
}
.fly-loading span {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24); border-top-color: #e8c887;
  animation: flySpin 900ms linear infinite;
}
@keyframes flySpin { to { transform: rotate(360deg); } }
.fly-loading.fly-failed { background: #14181f; }
.fly-loading.fly-failed span { display: none; }

/* controls */
.fly-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 14px;
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px;
  align-items: center;
  background: linear-gradient(to top, rgba(6, 11, 16, .95) 0%, rgba(6, 11, 16, .68) 58%, transparent 100%);
}
.fly-play {
  grid-row: 1 / 3;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 15px; cursor: pointer; line-height: 1;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.fly-play:hover { background: rgba(255, 255, 255, 0.22); }

.fly-track {
  position: relative; height: 22px; cursor: pointer; touch-action: none;
}
.fly-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px;
  border-radius: 2px; background: rgba(255, 255, 255, 0.24);
}
.fly-fill {
  position: absolute; left: 0; top: 9px; height: 4px; border-radius: 2px;
  background: var(--gold);
}
.fly-knob {
  position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transform: translateX(-7px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.fly-ticks { position: absolute; inset: 0; pointer-events: none; }
.fly-ticks i {
  position: absolute; top: 0; font-style: normal; font-size: 9.5px;
  color: rgba(255, 255, 255, 0.55); transform: translateX(-50%);
}
.fly-ticks i::after {
  content: ""; position: absolute; left: 50%; top: 12px; width: 1px;
  height: 7px; background: rgba(255, 255, 255, 0.4);
}
.fly-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.fly-opts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.fly-seg {
  display: flex; border-radius: 999px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.fly-seg button {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.72);
  min-height: 36px; font-size: 11.5px; letter-spacing: 0.03em;
  padding: 8px 12px; cursor: pointer;
}
.fly-seg button.on { background: rgba(255, 255, 255, 0.9); color: #14161b; font-weight: 600; }
.fly-seg button:focus-visible, .fly-play:focus-visible {
  outline: 2px solid #f2c14e; outline-offset: -3px;
}

@media (max-width: 700px) {
  main, main > * { min-width: 0; }
  main > .races-hero:has(.crumbs) { width: 100%; max-width: 100%; }
  .crumbs { overflow-wrap: anywhere; }
  .dist-pills { max-width: 100%; gap: 7px; }
  .dist-pill { padding: 6px 13px; font-size: 14px; }
  .register-cta {
    display: block; width: 100%; max-width: 100%; padding: 15px 20px;
    border-radius: 28px; font-size: 17px; line-height: 1.3;
  }
  .cle-banner { aspect-ratio: 4 / 3; max-height: none; }
  .cle-banner img { object-position: 42% center; }
  .cle-banner figcaption { left: 18px; right: 18px; bottom: 18px; }
  .cle-banner figcaption small { max-width: 290px; }
  .course-status { border-radius: 14px; align-items: flex-start; text-align: left; }
  /* Give the image its own 4:3 frame and put controls below it. Four control
     groups hidden in a sideways scroller made route and camera choices look
     absent on phones. */
  .fly, .fly-tall .fly { aspect-ratio: auto; max-height: none; }
  .fly-canvas { height: auto; aspect-ratio: 4 / 3; }
  .fly-hud b { font-size: 22px; }
  .fly-map { width: 32%; min-width: 108px; top: 10px; right: 10px; }
  .fly-course-chip { top: 52px; left: 10px; transform: none; max-width: 47%; }
  .fly-aid { display: none; }
  /* Below the canvas on a phone, not over it. */
  .fly-beat {
    position: static; max-width: none; margin: 10px 0 0;
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--gold); color: var(--ink);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .fly-beat h4 { color: var(--ink); font-size: 19px; }
  .fly-beat p { color: var(--ink-2); font-size: 14px; }
  .fly-opts {
    gap: 6px; flex-wrap: wrap; overflow: visible; padding: 2px 0;
  }
  .fly-bar {
    position: relative; grid-template-columns: 48px minmax(0, 1fr);
    background: #081119; padding: 12px;
  }
  .fly-track, .fly-opts { min-width: 0; }
  .fly-seg { flex: 0 0 auto; }
  .fly-seg button { min-height: 40px; padding: 8px 10px; font-size: 11px; }
}

/* ------------------------------------------------------------- elevation */

/* These are server-rendered fallbacks as well as live views. Author-level
   display rules on SVGs can outrank the browser's default [hidden] rule, so
   the synchronized course variants need an explicit, scoped guarantee. */
.course-viz[hidden], .plan-course-layer[hidden] { display: none !important; }
.course-viz-label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 18px 0 4px;
  color: var(--ink);
}
.course-viz-label strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 400;
}
.course-viz-label span {
  color: var(--muted); font-size: 12px; letter-spacing: 0.045em;
  text-transform: uppercase; font-variant-numeric: tabular-nums;
}

/* top/bottom only: the margin SHORTHAND here silently clobbered the
   breakout rule's negative side margins (same specificity, later in the
   file), leaving the profile full-viewport wide but pinned to the column's
   left edge -- off-center on every screen and overflowing right. */
.elev-wrap { margin-top: 24px; margin-bottom: 8px; }
.elev-svg {
  width: 100%; height: clamp(210px, 26vw, 320px); display: block;
  touch-action: none;
}
.elev-grid { stroke: var(--grid); stroke-width: 1; }
.elev-ylab, .elev-xlab { font-size: 11px; fill: var(--muted); }
.ef0 { stop-color: var(--series); stop-opacity: 0.34; }
.ef1 { stop-color: var(--series); stop-opacity: 0.03; }
.elev-line { fill: none; stroke: var(--series); stroke-width: 2; }
.elev-tick { stroke: var(--baseline); stroke-width: 1; }
.elev-tick.big { stroke: var(--ink-2); stroke-width: 1.4; }
.elev-zone { fill: var(--gold); opacity: 0.13; }
.elev-note { font-size: 12px; fill: var(--gold-ink); font-weight: 600; }
.elev-cursor { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 3; }
.elev-hit { cursor: crosshair; }

.gr.up2  { fill: var(--series); }
.gr.up1  { fill: var(--gold); }
.gr.flat { fill: var(--baseline); }
.gr.dn1  { fill: #7fa87c; }
.gr.dn2  { fill: #4d8452; }

.elev-legend {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 12px; color: var(--muted); margin: 4px 0 16px;
}
.elev-legend .sw {
  display: inline-block; width: 16px; height: 7px; border-radius: 2px;
  margin-right: 5px; vertical-align: middle;
}
.elev-legend .sw.up2 { background: var(--series); }
.elev-legend .sw.up1 { background: var(--gold); }
.elev-legend .sw.flat { background: var(--baseline); }
.elev-legend .sw.dn1 { background: #7fa87c; }
.elev-legend .sw.dn2 { background: #4d8452; }
.elev-read { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }

.climb-list { max-width: 720px; color: var(--ink-2); padding-left: 20px; }
.climb-list b { color: var(--ink); }

/* -------------------------------------------------------------- plan map */

.plan-svg {
  height: auto; display: block; margin-top: 20px; margin-bottom: 10px;
  background: var(--surface);
}
.course-map-sync .course-viz-label { margin-top: 8px; }
/* Water gets its own token rather than borrowing --series: the races.css
   series colour is an ink navy that reads as grey at 16% on cream, and a
   lake that looks like a parking lot defeats the point of drawing it. */
:root { --pm-water: #9fc0d8; --pm-green: #93ac7c; }
@media (prefers-color-scheme: dark) {
  :root { --pm-water: #24435e; --pm-green: #3d5334; }
}
.pm-water { fill: var(--pm-water); opacity: 0.75; }
.pm-green { fill: var(--pm-green); opacity: 0.55; }
.pm-road { fill: none; stroke: var(--baseline); stroke-width: 1.2; opacity: 0.75; }
.pm-course-halo { fill: none; stroke: var(--page); stroke-width: 8; stroke-linejoin: round; }
.pm-course { fill: none; stroke: var(--gold-ink); stroke-width: 3.4; stroke-linejoin: round; }
.pm-climb { fill: none; stroke: var(--series); stroke-width: 5; stroke-linecap: round; }
.pm-water-stop { fill: var(--series); opacity: 0.85; }
.pm-gel { fill: var(--gold); stroke: var(--page); stroke-width: 1.5; }
.pm-legend {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px;
  color: var(--muted); margin: 4px 0 10px;
}
.pm-legend .sw {
  display: inline-block; width: 16px; height: 5px; border-radius: 2px;
  margin-right: 6px; vertical-align: middle;
}
.pm-legend .sw.dot { width: 10px; height: 10px; border-radius: 50%; }
.aid-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.aid-table th { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--baseline); }
.aid-table td { padding: 10px; border-bottom: 1px solid var(--grid); font-size: 14.5px; }
.aid-table .mi { font-variant-numeric: tabular-nums; color: var(--muted);
  font-weight: 600; white-space: nowrap; }
.pm-mile { fill: var(--pill-bg); }
.pm-mile-t { fill: var(--pill-fg); font-size: 12px; font-weight: 700; }
.pm-start { fill: var(--series); stroke: var(--page); stroke-width: 3; }
.pm-lab {
  font-family: "Instrument Serif", Georgia, serif; font-size: 22px;
  fill: var(--ink-2); letter-spacing: 0.02em;
}
.pm-lab-water { fill: var(--series); opacity: 0.65; letter-spacing: 0.3em; font-size: 20px; }

/* ---------------------------------------------------------------- tables */

.mile-table, .cheer-table, .hotel-table, .turn-table, .sched-table {
  width: 100%; border-collapse: collapse; margin-top: 14px;
}
.mile-table th, .cheer-table th, .hotel-table th, .turn-table th, .sched-table th {
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--baseline);
}
.mile-table td, .cheer-table td, .hotel-table td, .turn-table td, .sched-table td {
  padding: 12px 10px; border-bottom: 1px solid var(--grid);
  font-size: 14.5px; vertical-align: top;
}
.mile-table .mi, .cheer-table .mi, .hotel-table .mi, .turn-table .mi, .sched-table .mi {
  font-variant-numeric: tabular-nums; color: var(--muted);
  font-weight: 600; white-space: nowrap;
}
.mile-table p { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; }
.mile-table .turns {
  display: block; margin-top: 6px; font-size: 12px; color: var(--muted);
}
.mile-table .net { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mile-table .net.up { color: var(--series); }
.mile-table .net.dn { color: #3f7a46; }
.mile-table .net.flat { color: var(--muted); }
.spark-td { width: 118px; }
.spark { width: 112px; height: 30px; display: block; }
.spark path { fill: none; stroke: var(--series); stroke-width: 1.8; }
.cheer-table .sub, .hotel-table .sub, .sched-table .sub {
  display: block; font-size: 12.5px; color: var(--muted); font-weight: 400;
}
.hotel-table .dist { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.turn-details summary {
  cursor: pointer; font-size: 15px; color: var(--ink-2); padding: 10px 0;
}
.turn-table td { padding: 7px 10px; font-size: 13.5px; }

/* ----------------------------------------------------------------- cards */

/* .hub-cards / .hub-card now live in races.css: the state and city
   pages carry deep_guide_block() and only load style.css and
   races.css, so the card would have been unstyled there. */

.zone-grid, .wk-grid, .plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin-top: 18px;
}
.zone, .wk-card, .plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.zone h3, .wk-card h3, .plan h3 {
  margin: 0 0 4px; font-size: 21px;
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
}
.zone-walk, .wk-where {
  margin: 0 0 8px; font-size: 12px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--gold-ink); font-weight: 600;
}
.zone p, .wk-card p, .plan p { font-size: 14.5px; color: var(--ink-2); }
.plan { grid-column: span 1; }
.plan-who { font-size: 13.5px; color: var(--muted); font-style: italic; }
.plan-stops { margin: 12px 0 0; padding-left: 0; list-style: none; counter-reset: s; }
.plan-stops li {
  position: relative; padding: 0 0 14px 0; border-left: 2px solid var(--grid);
  margin-left: 8px; padding-left: 16px;
}
.plan-stops li:last-child { border-left-color: transparent; padding-bottom: 0; }
.plan-stops li::before {
  content: ""; position: absolute; left: -6px; top: 5px; width: 10px;
  height: 10px; border-radius: 50%; background: var(--gold);
  border: 2px solid var(--surface);
}
.plan-stops .pm {
  display: block; font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1px;
}
.plan-stops b { font-size: 15px; }
.plan-stops p { margin: 3px 0 0; font-size: 13.5px; }

.tip-list, .garage-list { max-width: 760px; color: var(--ink-2); padding-left: 20px; }
.tip-list li, .garage-list li { margin-bottom: 10px; }
.tip-list b { color: var(--ink); }
.garage-list { list-style: none; padding-left: 0; }
.garage-list li {
  padding: 9px 0; border-bottom: 1px solid var(--grid); color: var(--ink);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.garage-list .sub { color: var(--muted); font-size: 13px; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 24px 0 8px; text-align: left; }
.fact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.fact-card .k { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.fact-card .v { font-size: 16.5px; color: var(--ink); font-weight: 550; }
.fact-card .v .sub { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }

.dist-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 4px; }
.dist-pill { background: var(--pill-bg); color: var(--pill-fg); border-radius: 999px; padding: 6px 16px; font-size: 14.5px; font-weight: 600; }
.dist-pill.fee { background: var(--gold); color: var(--on-gold); }
.register-cta { display: inline-block; background: var(--gold); color: var(--on-gold); padding: 18px 54px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none; margin-top: 20px; text-align: center; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14); }
.register-cta:hover { text-decoration: none; opacity: 0.92; }
.register-cta .cta-sub { display: block; font-size: 12.5px; font-weight: 400; opacity: 0.78; margin-top: 2px; }

.crumbs { font-size: 13px; margin: 0 0 8px; }
section { margin: 44px 0; }
section h2 { margin-top: 0; }
.prose { max-width: 720px; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.pace-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.pace-table th, .pace-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--grid); font-size: 14.5px; }
.pace-table th { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.pace-table td { font-variant-numeric: tabular-nums; }
.race-photo { margin: 30px 0 0; }
.race-photo img { width: 100%; height: auto; border-radius: 14px; display: block; }
.race-photo figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: left; }

/* Every hub without commissioned editorial photography gets an honest,
   race-specific portrait made from its own USGS atlas and route geometry. */
.geo-hero {
  margin: 30px 0 0;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  border-radius: 22px;
  overflow: hidden;
  background: #101a20;
  box-shadow: 0 24px 70px rgba(11, 20, 25, .18);
}
.geo-hero-map { position: relative; width: 100%; height: clamp(330px, 42vw, 450px); overflow: hidden; }
.geo-hero-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 17, 23, .82) 0%, rgba(8, 17, 23, .28) 48%, rgba(8, 17, 23, .06) 72%),
              linear-gradient(0deg, rgba(8, 17, 23, .36), transparent 52%);
  pointer-events: none;
}
.geo-hero image {
  filter: saturate(.78) contrast(1.1) brightness(.74);
}
.geo-hero-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.geo-hero-route path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.geo-route-halo { stroke: rgba(7, 14, 19, .78); stroke-width: 8; }
.geo-route-line { stroke: #f2b34b; stroke-width: 3.25; }
.geo-route-start, .geo-route-finish { stroke: #fff; stroke-width: 2; }
.geo-route-start { fill: #2a9d8f; }
.geo-route-finish { fill: #d04a38; }
.geo-hero-label {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 4vw, 52px);
  bottom: clamp(20px, 4vw, 48px);
  max-width: min(430px, 70%);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}
.geo-hero-label span, .geo-hero-label small { display: block; }
.geo-hero-label span {
  margin-bottom: 5px;
  color: #f5c66e;
  font: 700 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.geo-hero-label strong { font: 700 clamp(25px, 4vw, 48px)/.98 var(--display-font); }
.geo-hero-label small { margin-top: 9px; font: 600 12px/1.35 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .025em; }
.geo-hero figcaption { padding: 9px 14px 11px; color: #b9c3c8; background: #101a20; font-size: 11.5px; line-height: 1.45; }
@media (max-width: 620px) {
  .geo-hero { border-radius: 15px; }
  .geo-hero-map { height: 360px; }
  .geo-hero-label { max-width: 82%; }
}

/* Wide tables must scroll inside their own box rather than widening the page. */
@media (max-width: 620px) {
  .mile-table, .cheer-table, .turn-table, .sched-table, .hotel-table, .aid-table {
    display: block; overflow-x: auto; white-space: normal;
  }
  .spark-td { display: none; }
  .hubnav { gap: 4px; }
  .hubnav a { font-size: 13px; padding: 6px 11px; }
}

/* A course we know to be wrong flags itself. Warm rather than alarming:
   this is a note about our data, not a warning about the race. */
.fly-flag {
  border-left: 3px solid var(--series);
  padding-left: 12px;
  margin-top: 10px;
  text-align: left;
}
.fly-flag b { color: var(--series); }
