/* Marathon Ballot — core styles */
:root {
  --bg: #f2efe9;
  --bg-2: #e9e5dc;
  --ink: #141414;
  --ink-soft: #2a2a2a;
  --ink-mute: #6b6b6b;
  --ink-faint: #a9a49a;
  --line: #1414141a;
  --line-strong: #14141433;
  --ocean: #e6e2da;
  --accent: oklch(68% 0.19 45); /* bib orange */
  --accent-ink: #1a0f06;
  --accent-soft: oklch(68% 0.19 45 / 0.12);
  --radius: 2px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #0e0e0e;
  --bg-2: #161616;
  --ink: #eceae3;
  --ink-soft: #d2cfc5;
  --ink-mute: #8a8678;
  --ink-faint: #55524a;
  --line: #eceae31a;
  --line-strong: #eceae333;
  --ocean: #1a1a1a;
  --accent: oklch(72% 0.19 45);
  --accent-ink: #1a0f06;
  --accent-soft: oklch(72% 0.19 45 / 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* Layout */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.rule { height: 1px; background: var(--line-strong); }
.rule-soft { height: 1px; background: var(--line); }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--line-strong);
}
.logo {
  font-weight: 700; letter-spacing: -0.01em; font-size: 18px;
  display: flex; align-items: center; gap: 8px;
}
.logo .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent); }
.nav-meta { font-size: 12px; font-family: var(--mono); color: var(--ink-mute); letter-spacing: 0.02em; }

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr minmax(380px, 0.9fr);
  align-items: center;
  gap: 56px;
  padding: 56px 0;
}

.hero-left, .hero-right {
  transition: opacity 320ms ease, transform 420ms ease;
}
.hero-left {
  display: flex; flex-direction: column; gap: 16px; padding-right: 24px;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
h1.headline {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.95; letter-spacing: -0.03em; font-weight: 700;
  margin: 0; text-wrap: balance;
}
h1.headline em { font-style: normal; color: var(--accent); }
.subhead {
  font-size: 17px; color: var(--ink-soft); max-width: 38ch;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 1px solid var(--ink);
  font-size: 13px; letter-spacing: 0.01em; font-weight: 500;
  border-radius: var(--radius); transition: all 160ms ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

.hero-right {
  display: flex; flex-direction: column; gap: 16px; padding-left: 32px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.hero-right.switching { animation: ip-swap 360ms ease; }
@keyframes ip-swap {
  0%   { opacity: 0.35; transform: translateY(6px); }
  100% { opacity: 1;    transform: translateY(0); }
}
.ip-facts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-top: 6px;
  border-top: 1px solid var(--line);
}
.ip-cell {
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.ip-cell:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.ip-cell:nth-child(even) { padding-left: 14px; }
.ip-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.ip-v { font-size: 14px; margin-top: 3px; font-weight: 500; }
.ip-v.accent { color: var(--accent); }
.ip-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.ip-actions .btn { padding: 14px 22px; font-size: 13px; letter-spacing: 0.02em; }
.ip-actions .btn svg { width: 14px; height: 14px; }
.next-up-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.next-up-name {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 2px;
}
.next-up-date { font-size: 13px; color: var(--ink-mute); font-family: var(--mono); }
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin-top: 12px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 16px 0;
}
.cd-unit { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.cd-num {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

/* Globe stage */
.globe-stage {
  position: relative;
  width: clamp(340px, 44vw, 560px);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.globe-stage.dragging { cursor: grabbing; }
.globe-stage.pinned { transform: none; }

/* Whirl */
.whirl {
  position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.whirl svg { display: block; overflow: visible; }
.ring {
  fill: none; stroke: var(--ink); stroke-width: 0.6;
  stroke-dasharray: 2 6; opacity: 0.18;
  transform-box: fill-box; transform-origin: center;
}
.ring.solid { stroke-dasharray: none; opacity: 0.08; stroke-width: 0.5; }
.ring.r1 { animation: spin 18s linear infinite; }
.ring.r2 { animation: spin 32s linear infinite reverse; stroke-dasharray: 1 10; opacity: 0.22; }
.ring.r3 { animation: spin 60s linear infinite; stroke-dasharray: 0.5 14; opacity: 0.14; }
.ring.r4 { animation: spin 9s linear infinite reverse; stroke-dasharray: 3 4; opacity: 0.1; stroke-width: 0.4; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit1 { to { transform: rotate(360deg); } }
.orbit {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: translate(-50%, -50%);
}
.orbit .dot {
  position: absolute; left: 0; top: 0; width: 2px; height: 2px;
  background: var(--ink); border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0.55;
}
.orbit .dot.small { width: 1.2px; height: 1.2px; opacity: 0.35; }
.orbit .dot.tiny { width: 0.8px; height: 0.8px; opacity: 0.22; }

/* Globe itself */
.globe {
  position: relative;
  width: var(--globe-size, 360px);
  height: var(--globe-size, 360px);
}
.globe svg { display: block; }
.ocean { fill: var(--ocean); }
.sphere-outline { fill: none; stroke: var(--ink); stroke-width: 0.9; opacity: 0.85; }
.graticule { fill: none; stroke: var(--ink); stroke-width: 0.35; opacity: 0.18; }
.land { fill: var(--ink); stroke: var(--bg); stroke-width: 0.25; stroke-linejoin: round; }
.marker-hit { fill: transparent; cursor: pointer; }
.marker-ring {
  fill: none; stroke: var(--accent); stroke-width: 1;
  transform-box: fill-box; transform-origin: center;
  animation: pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.marker-dot { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; pointer-events: none; }
.marker-core { fill: var(--accent); pointer-events: none; }
.marker-label {
  font-family: var(--mono); font-size: 8.5px; fill: var(--ink);
  letter-spacing: 0.04em; text-transform: uppercase;
  pointer-events: none; opacity: 0.88;
}
.marker-label-bg {
  fill: var(--bg); pointer-events: none;
}
@keyframes pulse {
  0%   { transform: scale(0.5); opacity: 0.9; }
  80%  { transform: scale(3); opacity: 0; }
  100% { transform: scale(3); opacity: 0; }
}
.marker.active .marker-dot { fill: var(--accent); stroke: var(--ink); }
.marker.active .marker-core { fill: var(--bg); }

/* Detail panel (slides in on click) — occupies its own grid column when open */
.detail-panel {
  display: none;
  opacity: 0;
  transform: translateX(40px);
  transition: transform 520ms cubic-bezier(.2,.7,.2,1), opacity 320ms ease;
  padding: 28px 0 28px 36px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.hero-inner.open .detail-panel {
  display: block;
}
.detail-panel.open {
  transform: translateX(0);
  opacity: 1;
}
.detail-close {
  position: absolute; top: 0; right: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--mono); font-size: 14px;
}
.detail-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.d-sponsor { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.d-name { font-size: 44px; font-weight: 700; letter-spacing: -0.025em; margin: 6px 0 2px; line-height: 1; }
.d-meta { font-size: 13px; color: var(--ink-mute); font-family: var(--mono); }
.d-bell {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.02em;
}
.d-bell:hover { border-color: var(--accent); color: var(--accent); }
.d-bell svg { width: 12px; height: 12px; }

.d-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.d-cell {
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.d-cell:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.d-cell:nth-child(even) { padding-left: 16px; }
.d-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.d-v { font-size: 15px; margin-top: 4px; color: var(--ink); font-weight: 500; }
.d-v.accent { color: var(--accent); }

.d-prose { margin-top: 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 52ch; }
.d-prose strong { color: var(--ink); font-weight: 600; }
.d-actions { margin-top: 22px; display: flex; gap: 10px; }

/* SECTIONS */
section { padding: 96px 0; border-top: 1px solid var(--line-strong); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
}
.section-title { font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.section-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

/* Schedule list */
.schedule { border-top: 1px solid var(--line-strong); }
.sch-row {
  display: grid;
  grid-template-columns: 72px 1.6fr 1fr 1fr 1fr 88px 44px;
  gap: 24px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
  transition: background 180ms ease, padding-left 220ms ease;
  position: relative;
}
.sch-row::before {
  content: ""; position: absolute; left: -8px; top: 50%; height: 0;
  width: 2px; background: var(--accent); transform: translateY(-50%);
  transition: height 220ms ease;
}
.sch-row:hover { background: var(--bg-2); padding-left: 16px; }
.sch-row:hover::before { height: 70%; }
.sch-row.active { background: var(--bg-2); padding-left: 16px; }
.sch-row.active::before { height: 70%; }
.sch-idx { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.08em; }
.sch-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.sch-city { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 2px; }
.sch-date { font-family: var(--mono); font-size: 13px; }
.sch-date .day { color: var(--ink-mute); font-size: 11px; display: block; }
.sch-entry { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.sch-odds { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.sch-days {
  font-family: var(--mono); font-size: 12px; text-align: right; color: var(--ink-soft);
}
.sch-days .n { color: var(--ink); font-size: 15px; font-weight: 500; }
.sch-bell {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  transition: all 160ms ease;
  justify-self: end;
}
.sch-bell:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.sch-bell svg { width: 12px; height: 12px; }
.sch-header {
  display: grid; grid-template-columns: 72px 1.6fr 1fr 1fr 1fr 88px 44px;
  gap: 24px; padding: 12px 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  border-bottom: 1px solid var(--line-strong);
}

/* Odds grid */
.odds-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.odds-card {
  background: var(--bg); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.odds-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.odds-card .v { font-size: 44px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.odds-card .v .pct { color: var(--accent); }
.odds-card .t { font-size: 13px; color: var(--ink-soft); }

/* Entry routes */
.routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.route { background: var(--bg); padding: 24px; }
.route .n { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.14em; }
.route h3 { margin: 6px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.route p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* FOOTER */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1fr auto auto; gap: 48px;
  align-items: end;
  font-size: 12px; color: var(--ink-mute);
  font-family: var(--mono); letter-spacing: 0.04em;
}
footer .brand { font-family: var(--font); font-size: 22px; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }

/* MODAL (alert signup) */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.32);
  display: none; align-items: center; justify-content: center;
  z-index: 100; backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(440px, 92vw);
  background: var(--bg); border: 1px solid var(--ink);
  padding: 28px 28px 24px;
  position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px;
  display: grid; place-items: center; font-family: var(--mono);
}
.modal-close:hover { color: var(--accent); }
.modal h3 { margin: 0 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.modal .m-sub { font-size: 12px; font-family: var(--mono); color: var(--ink-mute); letter-spacing: 0.04em; text-transform: uppercase; }
.modal label.email-row { display: block; margin-top: 18px; }
.modal label.email-row .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.modal input[type=email] {
  width: 100%; padding: 10px 0; margin-top: 6px;
  font: inherit; font-size: 15px; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  color: var(--ink); outline: none;
}
.modal input[type=email]:focus { border-bottom-color: var(--accent); }
.modal .notify { margin-top: 18px; }
.modal .notify .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.chk {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line-strong);
  font-size: 13px; cursor: pointer; user-select: none;
  transition: all 140ms ease;
}
.chk:hover { border-color: var(--ink); }
.chk input { accent-color: var(--accent); margin: 0; }
.chk.on { border-color: var(--ink); background: var(--bg-2); }
.modal .m-actions { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.modal .m-actions .fine { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.04em; }

.modal .success { text-align: center; padding: 18px 0; }
.modal .success .check {
  width: 42px; height: 42px; border: 1.5px solid var(--accent);
  border-radius: 50%; display: inline-grid; place-items: center;
  color: var(--accent); font-size: 18px; margin-bottom: 10px;
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  width: 280px; background: var(--bg); border: 1px solid var(--ink);
  padding: 16px; display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; display: flex; align-items: center; justify-content: space-between; }
.tweaks-panel .close { font-family: var(--mono); cursor: pointer; color: var(--ink-mute); }
.tw-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tw-row .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); display: flex; justify-content: space-between; }
.tw-row input[type=range] { width: 100%; accent-color: var(--accent); }
.tw-swatches { display: flex; gap: 6px; }
.tw-swatches button {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong);
}
.tw-swatches button.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.tw-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; }
.tw-seg button { padding: 6px; letter-spacing: 0.08em; }
.tw-seg button.on { background: var(--ink); color: var(--bg); }

/* Variant B — Ticker */
html[data-variant="ticker"] .subhead { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; line-height: 1.6; }
html[data-variant="ticker"] h1.headline { font-size: clamp(40px, 5.2vw, 74px); letter-spacing: -0.035em; }
html[data-variant="ticker"] .cd-num { font-family: var(--mono); font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.02em; }
html[data-variant="ticker"] .cd-lbl { color: var(--accent); }
html[data-variant="ticker"] .section-title { font-family: var(--mono); font-weight: 400; letter-spacing: -0.01em; font-size: clamp(22px, 2.4vw, 34px); text-transform: uppercase; }
html[data-variant="ticker"] .sch-name { font-family: var(--mono); font-weight: 400; font-size: 17px; letter-spacing: 0; text-transform: uppercase; }
html[data-variant="ticker"] .d-name { font-family: var(--mono); font-weight: 400; font-size: 34px; letter-spacing: -0.02em; text-transform: uppercase; }
html[data-variant="ticker"] .odds-card .v { font-family: var(--mono); font-weight: 400; letter-spacing: -0.02em; }
html[data-variant="ticker"] .next-up-name { font-family: var(--mono); font-weight: 400; font-size: 22px; text-transform: uppercase; }

/* Responsive */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }

  .wrap { padding: 0 20px; }

  .nav { flex-wrap: wrap; gap: 8px 16px; padding: 14px 0; }
  .logo { font-size: 16px; }
  .nav-links { order: 3; width: 100%; gap: 18px; font-size: 12px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-meta { font-size: 10px; letter-spacing: 0.04em; }

  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 48px; }
  .globe-stage { width: min(100%, 400px); justify-self: center; }
  .hero-left { padding-right: 0; }
  .hero-right { border-left: 0; padding-left: 0; }

  .next-up-name { font-size: 26px; }
  .countdown { padding: 14px 0; }
  .cd-num { font-size: clamp(28px, 8vw, 40px); }

  .ip-actions { gap: 10px; }
  .ip-actions .btn { padding: 14px 20px; font-size: 14px; flex: 1 1 auto; justify-content: center; }

  .section-head { flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
  section { padding: 64px 0; }

  .sch-header { display: none; }
  .sch-row { grid-template-columns: 1fr auto 36px; gap: 12px; padding: 16px 4px; align-items: center; }
  .sch-row:hover, .sch-row.active { padding-left: 4px; }
  .sch-row::before { display: none; }
  .sch-row > .sch-idx,
  .sch-row > .sch-entry,
  .sch-row > .sch-odds,
  .sch-row > .sch-days { display: none; }
  .sch-name { font-size: 16px; }
  .sch-date { font-size: 11px; text-align: right; }
  .sch-date .day { font-size: 9px; }

  .routes { grid-template-columns: 1fr 1fr; }
  .odds-grid { grid-template-columns: 1fr; }
  .odds-card { padding: 22px 20px; }
  .odds-card .v { font-size: 36px; }

  footer { grid-template-columns: 1fr; gap: 18px; text-align: left; padding: 48px 0 32px; }
  footer > *:last-child { text-align: left; }

  .detail-panel { width: 100%; transform: translateY(20px); padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
  .detail-panel.open { transform: translateY(0); }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .nav-meta { display: none; }
  .hero-inner { padding: 16px 0 32px; gap: 20px; }
  .next-up-name { font-size: 22px; }
  .next-up-date { font-size: 12px; }
  .cd-num { font-size: clamp(24px, 7.5vw, 32px); }
  .ip-actions { flex-direction: column; }
  .ip-actions .btn { width: 100%; }
  .routes { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(22px, 6vw, 30px); }
  .sch-name { font-size: 15px; }
  .sch-city { font-size: 10px; }
}
