/* WhichMarathon: shared styles. Palette and type follow the approved v2 mockups. */
:root {
  --blue: #2555ED;
  --lime: #E7FF4B;
  --orange: #FF5638;
  --cream: #F7F2E8;
  --ink: #171717;
  --muted: #5E5A52;
  --line: #DDD3C1;
  --sand: #D8CFBE;
  --on-blue: #DCE4FF;
  --white: #FFFFFF;
  --edge: rgba(23, 23, 23, 0.13);
  --radius: 6px;    /* big panels */
  --r-card: 6px;    /* cards, answers, steps */
  --r-sm: 5px;      /* small controls */
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.45;
  /* Room for the phone's status bar / notch when a viewer draws the page edge to edge (0 in normal browsers). */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: var(--ink); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 4px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.8px; text-decoration: none; }
.logo-bib { position: relative; width: 28px; height: 21px; border-radius: 4px; border: 1.5px solid var(--ink); background: var(--lime); transform: rotate(-6deg); flex-shrink: 0; }
.logo-bib::before, .logo-bib::after,
.bib::before, .bib::after { content: ""; position: absolute; width: var(--pin, 3px); height: var(--pin, 3px); border-radius: 999px; background: var(--ink); top: var(--pin-inset, 2px); }
.logo-bib::before, .bib::before { left: var(--pin-inset, 2px); box-shadow: 0 calc(var(--bib-h, 21px) - 2 * var(--pin-inset, 2px) - var(--pin, 3px) - 2 * var(--bw, 1.5px)) 0 var(--ink); }
.logo-bib::after, .bib::after { right: var(--pin-inset, 2px); box-shadow: 0 calc(var(--bib-h, 21px) - 2 * var(--pin-inset, 2px) - var(--pin, 3px) - 2 * var(--bw, 1.5px)) 0 var(--ink); }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .hide-sm { display: none; }
@media (min-width: 768px) { .nav .hide-sm { display: inline; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; background: var(--white); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 400px) { .logo { font-size: 19px; gap: 8px; } .btn-small { padding: 0 14px; font-size: 14px; } }
.btn-ghost { background: transparent; }
.btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: default; }
.btn svg { width: 18px; height: 18px; }

/* Blue hero panel */
.panel-blue { position: relative; overflow: hidden; isolation: isolate; color: var(--cream); border-radius: var(--radius); padding: 28px 20px;
  background: radial-gradient(120% 140% at 0% 0%, #3A6BFF 0%, var(--blue) 45%, #1B3FC4 100%); }
.panel-blue::before { content: ""; position: absolute; inset: -10% -30% -10% 20%; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cg opacity='.10'%3E%3Crect x='120' y='60' width='900' height='400' rx='200'/%3E%3Crect x='160' y='100' width='820' height='320' rx='160'/%3E%3Crect x='200' y='140' width='740' height='240' rx='120'/%3E%3Crect x='240' y='180' width='660' height='160' rx='80'/%3E%3C/g%3E%3C/svg%3E") no-repeat right center / contain; animation: lanes 40s linear infinite alternate; }
@keyframes lanes { from { transform: translateX(0); } to { transform: translateX(-8%); } }
@media (prefers-reduced-motion: reduce) { .panel-blue::before { animation: none; } }
.panel-blue p { color: var(--on-blue); }
@media (min-width: 768px) { .panel-blue { padding: 36px 40px; } }
.kicker { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--orange); }
h1, h2, h3 { margin: 0; letter-spacing: -0.04em; line-height: 1.02; }
.h-hero { font-size: clamp(38px, 7vw, 60px); font-weight: 700; }
.h-q { font-size: clamp(36px, 7vw, 56px); font-weight: 700; }
.h-section { font-size: 28px; font-weight: 700; }

/* The bib that sits inside a headline */
.bib { --pin: 5px; --pin-inset: 4px; --bib-h: 42px; --bw: 2px; position: relative; display: inline-flex; align-items: center; justify-content: center; height: var(--bib-h); padding: 0 16px; border-radius: 6px; border: 2px solid var(--ink); background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: 0.48em; font-weight: 700; letter-spacing: -0.04em; transform: rotate(-4deg); vertical-align: 0.12em; margin: 0 2px; }
@media (min-width: 768px) { .bib { --pin: 6px; --pin-inset: 6px; --bib-h: 60px; --bw: 2.5px; padding: 0 20px; border-width: 2.5px; border-radius: 8px; } }

/* Cards */
.card { background: var(--white); border: 1px solid var(--edge); border-radius: var(--r-card); padding: var(--r-card) 20px; }
.card-row { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.card-row .grow { flex: 1; min-width: 0; }
.card-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.card-sub { font-size: 13.5px; color: var(--muted); }
.lime { background: var(--lime); }
.orange { background: var(--orange); }
.ink { background: var(--ink); color: var(--cream); }
.ink .card-sub { color: #D9D4CA; }
.orange .card-sub, .lime .card-sub { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.step { padding: 16px 14px; min-height: 96px; border-radius: var(--r-card); border: 1px solid var(--edge); background: var(--white); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.step b { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.step span { font-size: 14px; font-weight: 600; line-height: 1.25; }
.step.ink { background: var(--ink); color: var(--cream); }
.step.ink b { color: var(--lime); }
@media (min-width: 768px) { .steps { gap: 14px; } .step { padding: 22px 22px; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; } .step span { font-size: 18px; letter-spacing: -0.02em; } .step b { font-size: 13px; } }

.photo { border-radius: var(--radius); background: var(--sand); min-height: 140px; padding: 14px; font-family: var(--mono); font-size: 11px; color: #4A453D; display: flex; align-items: flex-end; }
.photo strong { font-family: 'Geist', sans-serif; font-size: clamp(36px, 8vw, 64px); letter-spacing: -0.04em; color: var(--ink); opacity: 0.18; line-height: 1; }

.hero-row { display: grid; gap: 10px; }
.hero-row .panel-blue, .hero-row .photo { border-radius: 6px; }
.hero-row .panel-blue { padding: 18px 18px; gap: 10px !important; }
.hero-row .h-hero { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.04; }
.hero-row .bib { --bib-h: 32px; padding: 0 12px; border-width: 2px; --bw: 2px; --pin: 4px; --pin-inset: 4px; border-radius: 5px; }
.hero-row p { font-size: 15px !important; }
.hero-row .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.photo-img { padding: 0; overflow: hidden; min-height: 160px; position: relative; }
.photo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
@media (min-width: 900px) { .hero-row { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; } .hero-row .panel-blue { padding: 32px 32px; min-height: 300px; justify-content: center; } .hero-row .photo { min-height: 300px; } }
.small-print { font-size: 12px; line-height: 1.45; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 0 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; }

/* Quiz */
.quiz-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--edge); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; flex-shrink: 0; }
.counter { --pin: 3px; --pin-inset: 3px; --bib-h: 40px; position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--orange); transform: rotate(-3deg); }
.counter::before, .counter::after { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 999px; background: var(--ink); top: 3px; box-shadow: 0 28px 0 var(--ink); }
.counter::before { left: 3px; } .counter::after { right: 3px; }
.counter b { font-family: var(--mono); font-size: 22px; letter-spacing: -1px; line-height: 1; }
.counter span { font-size: 12px; font-weight: 600; }
.track { position: relative; height: 30px; margin: 0 18px 0 10px; }
.track-line { position: absolute; left: 0; right: 0; top: 14px; border-top: 2px dashed #B9AE99; }
.track-done { position: absolute; left: 0; top: 14px; height: 2px; background: var(--blue); transition: width .45s ease; }
.track-runner { position: absolute; top: 4px; width: 22px; height: 22px; margin-left: -11px; border-radius: 999px; border: 2px solid var(--ink); background: var(--lime); transition: left .45s ease; }
.track-flag { position: absolute; right: -16px; top: 1px; }
.track-labels { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--muted); }
.options { display: flex; flex-direction: column; gap: 8px; }
.options.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--edge); background: var(--white); cursor: pointer; transition: transform .15s ease, background .15s ease; min-height: 64px; }
.opt:hover { transform: translateY(-1px); }
.opt.wild { border-style: dashed; background: transparent; }
.opt.orange { background: var(--orange); }
.opt[aria-pressed="true"] { background: var(--lime); border: 2px solid var(--ink); transform: scale(0.98); }
.opt .t { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; display: block; }
.opt .s { font-size: 13px; color: #4A453D; display: block; }
.opt .big { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.opt .big b { font-size: 46px; letter-spacing: -2px; line-height: 1; color: var(--blue); }
.opt .big i { font-family: var(--mono); font-style: normal; font-size: 13px; font-weight: 700; color: var(--blue); }
.opt.orange .big b, .opt.orange .big i, .opt[aria-pressed="true"] .big b, .opt[aria-pressed="true"] .big i { color: var(--ink); }
.opt .mark { flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; border: 1.5px solid rgba(23,23,23,.35); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.opt[aria-pressed="true"] .mark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.month { height: 52px; border-radius: var(--r-sm); border: 1px solid var(--edge); background: var(--white); font-size: 16px; font-weight: 600; cursor: pointer; }
.month[aria-pressed="true"] { background: var(--lime); border: 2px solid var(--ink); }
.quiz-shell { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; min-height: 100vh; }
.finish { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.finish .bib-big { --pin: 7px; --pin-inset: 8px; --bib-h: 120px; position: relative; width: 260px; padding: 26px 16px 22px; border-radius: 10px; border: 2.5px solid var(--ink); background: var(--lime); color: var(--ink); transform: rotate(-4deg); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: drop .5s ease both; }
.finish .bib-big b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.finish .bib-big span { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
@keyframes drop { from { transform: translateY(-30px) rotate(-12deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }

/* Result */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-card); border: 1px solid var(--edge); background: var(--white); overflow: hidden; }
.fact { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact .k { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.fact .v { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fact:nth-child(odd) { border-right: 0; } .fact { border-right: 1px solid var(--line); } .fact:nth-child(4n) { border-right: 0; } }
.why { display: flex; gap: 12px; align-items: flex-start; }
.why .n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--orange); font-family: var(--mono); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.why p { margin: 0; font-size: 16px; }
.notice { border-radius: var(--r-card); padding: 14px 16px; border: 1px solid var(--edge); font-size: 14.5px; }
.badge { display: inline-flex; padding: 6px 12px; border-radius: 999px; border: 0; background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.badge.orange { background: var(--orange); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.two-col { display: grid; gap: 12px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; } }
.signup { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.signup p { margin: 0; color: #D9D4CA; }
.signup label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.signup input { height: 52px; border-radius: 999px; border: none; background: var(--cream); padding: 0 20px; font: inherit; font-size: 16px; color: var(--ink); }
.prose { max-width: 680px; }
.prose h1 { font-size: 44px; margin: 24px 0 16px; }
.prose h2 { font-size: 24px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 16.5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* Guides */
.guide-grid { display: grid; gap: 8px; }
.guide-card { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: var(--r-card); border: 1px solid var(--edge); background: var(--white); text-decoration: none; }
.guide-card:hover { background: var(--lime); }
.guide-card .tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--blue); text-transform: uppercase; }
.guide-card .card-title { font-size: 16px; line-height: 1.2; }
.guide-card .card-sub { font-size: 13px; line-height: 1.35; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; }
.section-head a { font-size: 14px; font-weight: 600; }
.article { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.article h2 { font-size: 26px; margin-top: 18px; }
.article h3 { font-size: 19px; margin-top: 6px; letter-spacing: -0.02em; }
.article p, .article li { font-size: 17px; line-height: 1.6; margin: 0; }
.article ul, .article ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article .meta { font-family: var(--mono); font-size: 12px; color: var(--on-blue); }
.tip { border-radius: var(--r-card); border: 1px solid var(--edge); background: var(--lime); padding: 16px 18px; font-size: 16px; }
.race-item { border-radius: var(--r-card); border: 1px solid var(--edge); background: var(--white); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.race-item .row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pill { display: inline-flex; padding: 2px 8px; border-radius: 999px; border: 0; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink); }
.pill.open { background: var(--lime); }
.pill.closed { background: var(--orange); }
.sources { font-size: 13px; color: var(--muted); }
.sources a { color: var(--muted); }

/* Home: entries closing soon */
:root { --go: #1FA055; --wait: #F2A516; --stop: #E0312B; }

/* Home: scrolling city ticker */
.ticker { overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--edge); background: #EEF4B8; padding: 6px 0; }
.ticker-track { display: flex; align-items: center; gap: 14px; width: max-content; padding-left: 18px; animation: ticker 90s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-size: 13.5px; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 6px; height: 6px; border-radius: 999px; background: var(--ink); flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; } .ticker-track { animation: none; } }

[hidden] { display: none !important; }

/* Faint lane-line texture on white boxes */
.card:not(.lime):not(.orange):not(.ink), .step:not(.ink), .guide-card, .countdown, .facts, .calc, .opt:not(.orange):not(.wild) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='240' viewBox='0 0 420 240' fill='none' stroke='%23171717' stroke-width='1.5'%3E%3Cg opacity='.07'%3E%3Crect x='120' y='40' width='420' height='200' rx='100'/%3E%3Crect x='150' y='70' width='360' height='140' rx='70'/%3E%3Crect x='180' y='100' width='300' height='80' rx='40'/%3E%3C/g%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right -40px bottom -60px; background-size: 340px auto; }
/* Everything clickable and white turns lime on hover */
a.card, .guide-card, .opt { transition: background-color .15s ease, transform .15s ease; }
a.card:not(.lime):not(.orange):hover, .guide-card:hover, .opt:not([aria-pressed="true"]):hover { background-color: var(--lime); }
a.card.lime:hover, a.card.orange:hover { transform: translateY(-2px); }

/* Full-width page bands */
.band { padding-block: 8px 28px; }
.band-white { background: var(--white); padding-block: 22px; }
.band-white .guide-card, .band-white a.card:not(.lime):not(.orange) { background-color: var(--cream); }
.band-white .guide-card:hover, .band-white a.card:not(.lime):not(.orange):hover { background-color: var(--lime); }
.band + .band:not(.band-white) { padding-top: 28px; }
main > .band:last-child { padding-bottom: 8px; }
.btn:not(.btn-lime):not(.btn-ink) { border-color: var(--edge); }

/* How it works: a flow, not buttons */
.flow { list-style: none; margin: 0; padding: 6px 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.flow li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.flow li b { width: 30px; height: 30px; border-radius: 999px; background: var(--blue); color: var(--cream); font-family: var(--mono); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow li:last-child b { background: var(--lime); color: var(--ink); }
.flow-sep { color: var(--muted); }
.flow-arrow { transform: rotate(90deg); margin-left: 4px; }
@media (min-width: 768px) {
  .flow { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 6px; gap: 12px; }
  .flow li { font-size: 18px; }
  .flow-sep { flex: 1; justify-content: center; }
  .flow-arrow { transform: none; margin: 0; }
}

/* Race stickers */
.sticker-stage { border-radius: var(--r-card); border: 1px solid var(--edge); overflow: hidden; padding: 12px;
  background: linear-gradient(160deg, #2F3A4A, #6B5B4B 55%, #C08A5B); }
.sticker-stage canvas { display: block; width: 100%; height: auto; }
.sticker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.small-link { font-size: 14px; font-weight: 600; }
.entry-note { display: flex; gap: 12px; align-items: flex-start; background: var(--white); }
.entry-note .light { margin-top: 6px; }

/* Entries closing soon: countdown cards */
.deadlines { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.countdown-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.countdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.countdown { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: var(--r-card); border: 1px solid var(--edge); background-color: var(--white); text-decoration: none; transition: background-color .15s ease; }
.countdown:hover { background-color: var(--lime); }
.countdown-big { display: flex; align-items: baseline; gap: 6px; min-height: 0; }
.countdown-big b { font-family: var(--mono); font-size: 32px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; }
.countdown-big i { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.countdown-name { font-size: 14px; font-weight: 500; line-height: 1.25; }
.countdown-sub { font-size: 12px; color: var(--muted); margin-top: -2px; }
.countdown.stop .countdown-big { color: var(--stop); }
.countdown.wait .countdown-big { color: #C98A0E; }
.countdown.new .countdown-big { color: var(--blue); align-items: center; }
.countdown.new .countdown-big i { font-size: 20px; letter-spacing: 0; }
.countdown.go .countdown-big { color: var(--go); }
.countdown.soon .countdown-big { color: var(--muted); }

/* How it works: race track */
.howtrack { padding: 8px 4px 4px; }
.ht-line { position: relative; height: 36px; margin-right: 6px; }
.ht-line::before { content: ""; position: absolute; left: 0; right: 30px; top: 17px; border-top: 2px dashed #B9AE99; }
.ht-done { position: absolute; left: 0; width: 18%; top: 16px; height: 3px; background: var(--blue); border-radius: 2px; }
.ht-mark { position: absolute; top: 2px; width: 32px; height: 32px; border-radius: 999px; font-family: var(--mono); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.ht-mark.one { left: 0; background: var(--blue); color: var(--cream); }
.ht-mark.two { left: calc(50% - 16px); background: var(--cream); border: 2px solid var(--blue); color: var(--blue); }
.ht-flag { position: absolute; right: 0; top: 0; }
.ht-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ht-steps li { display: flex; flex-direction: column; gap: 2px; }
.ht-steps li:nth-child(2) { align-items: center; text-align: center; }
.ht-steps li:nth-child(3) { align-items: flex-end; text-align: right; }
.ht-steps small { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.ht-steps span { font-size: 12.5px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
@media (min-width: 768px) { .ht-steps span { font-size: 15px; white-space: nowrap; } }

@media (max-width: 899px) { .countdown.new .countdown-big i { font-size: 15px; } .countdown-big b { font-size: 27px; } }

/* News roundups */
.news-list { display: grid; gap: 12px; }
.news-item { display: flex; gap: 16px; align-items: stretch; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--edge); background: var(--white); }
.news-item .tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--blue); text-transform: uppercase; }
.news-item h2.card-title { margin: 0; font-size: 17px; line-height: 1.25; }
.news-item p { margin: 0; font-size: 15px; line-height: 1.65; max-width: 680px; }
.news-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.news-stat { flex-shrink: 0; width: 132px; border-radius: var(--r-card); padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.news-stat b { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.news-stat small { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }
.news-stat.lime { background: var(--lime); color: var(--ink); }
.news-stat.blue { background: var(--blue); color: var(--cream); }
.news-stat.orange { background: var(--orange); color: var(--ink); }
.news-stat.ink { background: var(--ink); color: var(--lime); }
@media (max-width: 599px) { .news-item { flex-direction: column; gap: 12px; } .news-stat { width: auto; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 10px 12px; } }
.news-item h2 a { color: inherit; text-decoration: none; }
.news-item h2 a:hover { text-decoration: underline; }
.news-src { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.news-src:hover { text-decoration: underline; }
.news-src svg { width: 14px; height: 14px; }

/* Home link + logo hover */
.nav-home { font-weight: 600; }
.logo-bib { transition: transform .2s ease; }
.logo:hover .logo-bib { transform: rotate(6deg) scale(1.08); }
/* On phones the logo is the way home, so the Home link goes and the quiz button always fits. */
@media (max-width: 520px) { .nav-home { display: none; } .nav { gap: 14px; } .logo { min-width: 0; } }

/* Inner-page banners: stronger ombre + bigger running track, to match the home hero */
.panel-blue:not(.hero-row > .panel-blue) { background: radial-gradient(90% 180% at 0% 0%, #4D7DFF 0%, var(--blue) 42%, #1534B8 100%); }
.panel-blue:not(.hero-row > .panel-blue)::before { inset: -35% -10% -35% 30%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cg opacity='.16'%3E%3Crect x='120' y='60' width='900' height='400' rx='200'/%3E%3Crect x='160' y='100' width='820' height='320' rx='160'/%3E%3Crect x='200' y='140' width='740' height='240' rx='120'/%3E%3Crect x='240' y='180' width='660' height='160' rx='80'/%3E%3C/g%3E%3C/svg%3E") no-repeat right center / auto 100%; }

/* Checklist sign-up: shared fields + slide-up card */
.su-row { display: flex; gap: 8px; flex-wrap: wrap; }
.su-row input { flex: 1 1 200px; min-width: 0; height: 48px; border-radius: 999px; border: none; background: var(--cream); padding: 0 18px; font: inherit; font-size: 16px; color: var(--ink); }
.su-row .btn { min-height: 48px; padding: 0 22px; font-size: 15px; border: 0; }
.su-consent { display: flex; gap: 8px; align-items: flex-start; font-family: inherit !important; font-size: 12.5px !important; font-weight: 400 !important; letter-spacing: 0 !important; line-height: 1.4; color: #D9D4CA; }
.su-consent input { margin-top: 2px; accent-color: var(--lime); }
.su-consent a { color: inherit; }
.su-err { color: var(--orange) !important; font-size: 13px; }
.su-pop { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.28); transform: translateY(120%); transition: transform .35s ease; }
.su-pop.in { transform: none; }
.su-pop form { display: flex; flex-direction: column; gap: 10px; }
.su-pop h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; padding-right: 28px; }
.su-pop p { margin: 0; color: #D9D4CA; font-size: 14px; }
.su-pop .kicker { color: var(--lime); font-size: 11px; }
.su-x { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--cream); font-size: 24px; line-height: 1; cursor: pointer; }
@media (min-width: 640px) { .su-pop { left: auto; right: 20px; bottom: 20px; width: 400px; } }
@media (prefers-reduced-motion: reduce) { .su-pop { transition: none; } }

/* 'Plan for 2028': race too late for 2027 */
.notice.plan28 { display: flex; flex-direction: column; gap: 8px; background: var(--white); }
.tag28 { align-self: flex-start; display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.tag28.sm { padding: 1px 7px; font-size: 10px; vertical-align: 1px; }
.plan28-rows { display: grid; gap: 6px; margin: 8px 0 4px; }
.plan28-rows span { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.plan28-rows b { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--muted, #555); padding-top: 2px; }
.foot-contact { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.foot-contact a { color: var(--ink); font-weight: 600; }

/* Phones: draw the whole running track inside blue panels (no lanes running off the edge),
   and let the footer links wrap so the page never scrolls sideways */
@media (max-width: 767px) {
  .panel-blue::before, .panel-blue:not(.hero-row > .panel-blue)::before { inset: 10px 6px 10px 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cg opacity='.14'%3E%3Crect x='20' y='20' width='860' height='480' rx='240'/%3E%3Crect x='70' y='70' width='760' height='380' rx='190'/%3E%3Crect x='120' y='120' width='660' height='280' rx='140'/%3E%3Crect x='170' y='170' width='560' height='180' rx='90'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
    animation: none; }
  .site-footer nav { flex-wrap: wrap; row-gap: 8px; }
}
html, body { overflow-x: clip; }
