/* marathonrecovery.com — "Mile markers" athletic-editorial. Light, warm paper, sky + ink + one hot sunrise accent.
   Fonts: Big Shoulders Display (display, OFL) + Instrument Sans (body, OFL), both self-hosted. */

@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-display-v24-latin-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-v4-latin-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f4ec;
  --paper-2: #efeadf;
  --paper-3: #e4ddcd;
  --ink: #0f1419;
  --ink-2: #353d47;
  --ink-3: #5c6670;          /* 5.6:1 on paper */
  --sky: #3aa0ff;            /* display accent, large text only */
  --sky-deep: #0b5fbf;       /* 6.1:1 on paper: text + buttons */
  --sky-deeper: #084a94;
  --sky-tint: #dcecff;
  --sky-ink: #0a2a4a;        /* dark sky panel */
  --sun: #ff6a3d;            /* hot accent, numerals + rules */
  --sun-deep: #b8401a;       /* 5.2:1 on paper: small text */
  --sun-tint: #ffe3d7;
  --white: #ffffff;
  --line: rgba(15, 20, 25, .14);
  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1180px;
  --gut: 20px;
  --r: 14px;
  --shadow: 0 1px 0 rgba(15,20,25,.06), 0 12px 32px -16px rgba(15,20,25,.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--sky-deeper); }
b, strong { font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.is-hidden { display: none !important; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* scroll progress = the route line */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; background: transparent; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--sun); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- type ---------- */
.mk {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun-deep);
  padding: 4px 10px 3px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  margin: 0 0 14px;
  line-height: 1.2;
}
.mk--light { color: #ffb79b; }
.race .mk--light { color: #fff; }   /* the race section's orange wash sits behind this tag: white, not peach */
.eyebrow { font-weight: 600; color: var(--ink-2); margin: 0 0 18px; font-size: 15px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eyebrow .mk { margin: 0; background: var(--paper); }   /* solid pill: the hero's orange glow sat behind this tag (3.8:1); on paper it is 5.0:1 */
.h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 13.5vw, 108px);
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 0 0 22px;
  display: block;
}
.h1__l { display: block; overflow: hidden; padding-bottom: .04em; }
.h1__l > span { display: block; }
.h1__l--sky { color: var(--sky-deep); }
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6.6vw, 68px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 0 0 14px;
}
.h2 em { font-style: normal; color: var(--sky-deep); }
.sub { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 56ch; margin: 0 0 26px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 64ch; margin: 0; }
.sec__head { margin: 0 0 28px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.15;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .2s, color .2s, border-color .2s;
  box-shadow: 0 0 0 0 rgba(15,20,25,0);
  -webkit-tap-highlight-color: transparent;
}
.btn i { font-style: normal; font-weight: 700; transition: transform .35s var(--spring); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(15,20,25,.5); color: var(--fg); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--big { min-height: 56px; padding: 14px 24px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn--sky { --bg: var(--sky-deep); --fg: #fff; --bd: var(--sky-deep); }
.btn--sky:hover { --bg: var(--sky-deeper); }
.btn--sun { --bg: var(--sun); --fg: var(--ink); --bd: var(--sun); }
.btn--sun:hover { --bg: #ff7e57; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--onsky { --fg: #fff; --bd: rgba(255,255,255,.7); }
.btn--onsky:hover { --bg: #fff; --fg: var(--sky-ink); --bd: #fff; }
.btn--onink { --fg: var(--paper); --bd: rgba(247,244,236,.7); }
.btn--onink:hover { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--hdr { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--bar { min-height: 46px; padding: 10px 14px; font-size: 15px; }

/* ---------- segmented + chips ---------- */
.seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.seg__btn {
  border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; font-size: 14px;
  padding: 8px 14px; min-height: 36px; border-radius: 999px; cursor: pointer; transition: background-color .25s, color .25s, transform .3s var(--spring);
}
.seg__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg__btn:hover:not([aria-pressed="true"]) { background: rgba(15,20,25,.07); }
.seg__loc { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--sky-deep); cursor: pointer; transition: background-color .25s, transform .3s var(--spring); }
.seg__loc svg { width: 20px; height: 20px; }
.seg__loc:hover { background: var(--sky-tint); transform: rotate(45deg); }
.seg__loc.is-busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px;
  padding: 9px 14px; min-height: 42px; border-radius: 999px; cursor: pointer;
  transition: background-color .22s, color .22s, border-color .22s, transform .3s var(--spring);
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.chip.is-tba { border-style: dashed; cursor: default; }
.chip.is-tba:hover { transform: none; }
.chip--small[aria-pressed="true"] { background: var(--sky-deep); border-color: var(--sky-deep); }
.plan .chip[aria-pressed="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px;
  padding: 12px var(--gut);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .hdr { background: rgba(247,244,236,.92); } }
.wordmark { grid-column: 1; display: inline-flex; flex-direction: column; line-height: .9; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 22px; letter-spacing: .01em; }
.wordmark__b { color: var(--sky-deep); }
.hdr__by { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.hdr__by a { color: var(--ink); }
.seg--hdr { display: none; }
.btn--hdr { grid-column: 2; grid-row: 1; }
@media (min-width: 760px) {
  .hdr { grid-template-columns: auto 1fr auto auto; }
  .hdr__by { grid-column: 2; grid-row: 1; }
  .seg--hdr { display: inline-flex; grid-column: 3; }
  .btn--hdr { grid-column: 4; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 40px 0 28px; overflow: hidden; }
.hero__sky {
  position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(58,160,255,.45), transparent 70%),
    radial-gradient(45% 40% at 15% 20%, rgba(255,106,61,.28), transparent 70%),
    linear-gradient(180deg, var(--sky-tint) 0%, var(--paper) 85%);
  animation: skyDrift 18s var(--ease) infinite alternate;
}
@keyframes skyDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); } }
.hero__in { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; display: grid; gap: 28px; }
.hero__copy { max-width: 840px; min-width: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.hero__disc { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); max-width: 64ch; margin: 0; }
.hero__disc b { color: var(--ink); }
.hero__fine { width: min(var(--wrap), 100% - 2 * var(--gut)); margin: 26px auto 0; padding: 12px 14px; border-left: 3px solid var(--sun); background: rgba(255,255,255,.55); font-size: 14px; color: var(--ink-2); border-radius: 0 10px 10px 0; }
.hero__fine b { color: var(--ink); }

/* the bib */
.bib {
  position: relative; align-self: start;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow: 8px 8px 0 var(--sun);
  max-width: 340px;
  transform: rotate(-1.5deg);
  transition: transform .5s var(--spring), box-shadow .5s var(--ease);
}
.bib:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 10px 12px 0 var(--sun); }
.bib::before, .bib::after { content: ""; position: absolute; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.bib::before { left: 12px; } .bib::after { right: 12px; }
.bib__k { margin: 0 0 4px; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bib__n { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.bib__num { font-family: var(--display); font-weight: 900; font-size: 104px; line-height: .85; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bib__unit { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; color: var(--sun-deep); }
.bib__e { margin: 10px 0 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; }
.bib__d { margin: 2px 0 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.bib__ticks { display: flex; justify-content: space-between; margin: 0 0 10px; height: 10px; }
.bib__ticks i { width: 2px; background: var(--ink); height: 6px; align-self: flex-end; }
.bib__ticks i:nth-child(5n+1) { height: 10px; background: var(--sun); }
.bib__link { display: block; text-align: center; font-weight: 700; font-size: 14px; }
.bib.is-today .bib__unit::after { content: ""; }

@media (min-width: 900px) {
  .hero { padding: 52px 0 36px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 40px; }
  .bib { justify-self: end; }
}

/* ---------- entrance choreography ---------- */
.in { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.h1__l.in { transform: none; opacity: 1; animation: none; }
.h1__l.in > span { transform: translateY(110%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
[data-i="1"] { --d: 60; } [data-i="2"] { --d: 140; } [data-i="3"] { --d: 220; } [data-i="4"] { --d: 300; } [data-i="5"] { --d: 420; } [data-i="6"] { --d: 520; } [data-i="7"] { --d: 640; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- sections ---------- */
section.wrap { padding: 64px 0; }
.sec__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; padding-top: 24px; border-top: 1.5px solid var(--line); }
.sec__cta-t { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; }

/* pain grid */
.pain__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.pcard {
  position: relative; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .4s var(--spring), box-shadow .4s var(--ease), border-color .3s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(15,20,25,.3); }
.pcard p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.pcard__t { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: .95; text-transform: uppercase; }
.pcard__opt { padding-left: 12px; border-left: 3px solid var(--sky); color: var(--ink-3) !important; font-size: 14.5px !important; }
.pcard__go { margin-top: auto; align-self: flex-start; border: 0; background: transparent; color: var(--sky-deep); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; padding: 6px 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; min-height: 36px; }
.pcard__go:hover { color: var(--sky-deeper); }
.pcard__go::after { content: " →"; }
@media (min-width: 640px) { .pain__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pain__grid { grid-template-columns: repeat(3, 1fr); } .pcard:nth-child(7) { grid-column: span 1; } }

/* ---------- planner ---------- */
.plan { background: var(--sky-ink); color: #f1f6fb; padding: 64px 0 72px; position: relative; }
.plan .h2 em { color: var(--sky); }
.plan .lede { color: #c7d7e8; }
.plan .lede em { font-style: italic; color: #fff; }
.planner { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 22px 18px; display: grid; gap: 22px; }
.pf { border: 0; margin: 0; padding: 0; min-width: 0; }
.pf__l { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 10px; padding: 0; color: #fff; }
.pf__hint { font-family: var(--body); font-weight: 500; font-size: 13px; text-transform: none; letter-spacing: 0; color: #b9cbe0; }
.pf__row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 10px; }
.pf__date input {
  font: inherit; font-weight: 600; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid transparent; border-radius: 12px;
  padding: 10px 12px; min-height: 46px; width: 100%; max-width: 220px;
}
.pf__date input:focus { outline: 3px solid var(--sun); outline-offset: 2px; }
.pf__help { margin: 0; font-size: 14px; color: #b9cbe0; }
.pf__status { margin: 0; font-size: 14px; color: #ffb79b; min-height: 1em; }
.plan .chip { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.plan .chip:hover { border-color: #fff; }
.plan .seg { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.plan .seg__btn { color: #dbe7f3; }
.plan .seg__btn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.plan .seg__btn:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.1); }
.plan .seg__loc { color: #fff; }
.plan .seg__loc:hover { background: rgba(255,255,255,.15); }
.pf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pf__err { margin: 0; font-weight: 600; color: #ffb79b; }
.pf__err:empty { display: none; }

.tl { margin-top: 26px; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 22px 18px 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); animation: pop .7s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.tl__head { display: grid; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.tl__count { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.tl__num { font-family: var(--display); font-weight: 900; font-size: 84px; line-height: .85; color: var(--sun-deep); font-variant-numeric: tabular-nums; }
.tl__unit { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--ink-2); }
.tl__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: .95; text-transform: uppercase; }
.tl__sub { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.tl__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 860px) {
  .tl { padding: 28px 28px 22px; }
  .tl__head { grid-template-columns: auto 1fr auto; gap: 24px; }
}
.tl__list { list-style: none; margin: 0; padding: 0; position: relative; }
.tl__list::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--ink); opacity: .18; }
.td { position: relative; padding: 16px 0 16px 38px; border-bottom: 1px solid var(--line); }
.td:last-child { border-bottom: 0; }
.td::before { content: ""; position: absolute; left: 5px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.td--today::before { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 5px var(--sun-tint); }
.td--race::before { background: var(--ink); }
.td__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 6px; }
.td__when { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; }
.td__date { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.td__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-deep); border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 8px 1px; }
.td__items { margin: 0; padding: 0 0 0 18px; font-size: 15.5px; color: var(--ink-2); }
.td__items li { margin: 0 0 4px; }
.td__opt { margin: 10px 0 0; padding: 12px 14px; background: var(--sky-tint); border-radius: 12px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.td__opt b { color: var(--ink); }
.td__opt .btn { justify-self: start; }
.td__opt--sun { background: var(--sun-tint); }
/* athlete / anti-doping note: sits directly above every hydration button, in both states */
.ath-inline { margin: 2px 0 10px; padding: 10px 12px; border-left: 3px solid var(--sun-deep); background: var(--sun-tint); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.45; color: var(--ink-2) !important; }
.ath-inline b { color: var(--ink); }
.td__opt .ath-inline { margin: 0; background: rgba(255,255,255,.7); }
.q__a .ath-inline { margin: 10px 0 12px; max-width: 70ch; }
.tl__fine { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.tl, .td, .td__opt, .tl__actions { min-width: 0; }
.tl .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .tl__actions .btn, .td__opt .btn { width: 100%; justify-self: stretch; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* ---------- options ---------- */
.opts__grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .opts__grid { grid-template-columns: 1fr 1fr; } }
.ocard { background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 22px 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ocard p { margin: 0; color: var(--ink-2); }
.ocard__t { margin: 0; font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: .95; }
.ocard__fine { font-size: 14.5px; color: var(--ink-3) !important; padding-left: 12px; border-left: 3px solid var(--sun); }
.ocard .btn { align-self: flex-start; margin-top: 8px; }
.ocard__art { height: 110px; margin: -6px 0 2px; }
.ocard__art svg { width: 100%; height: 100%; }
.ocard__wave { stroke: var(--sky-deep); stroke-width: 6; stroke-linecap: round; opacity: .9; stroke-dasharray: 10 14; animation: waveflow 2.4s linear infinite; }
.ocard__wave.w2 { stroke: var(--sky); animation-duration: 3s; }
.ocard__wave.w3 { stroke: var(--sun); animation-duration: 3.6s; opacity: .8; }
@keyframes waveflow { to { stroke-dashoffset: -48; } }
.ocard__drop { fill: var(--sky-deep); transform-origin: 100px 70px; animation: dropsway 4s var(--ease) infinite alternate; }
.ocard__drop-hi { stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .7; }
@keyframes dropsway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

.note { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: var(--sky-tint); border: 1.5px solid rgba(11,95,191,.25); }
.note p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.note__t { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: var(--sky-deeper); }
.note--red { background: var(--sun-tint); border-color: rgba(184,64,26,.3); }
.note--red .note__t { color: var(--sun-deep); }

/* ---------- race week ---------- */
.race { background: var(--sky-deeper); color: #fff; padding: 64px 0 56px; background-image: radial-gradient(70% 60% at 100% 0%, rgba(255,106,61,.3), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(58,160,255,.22), transparent 60%); }
.race .h2 em { color: #ffd3c2; }
.race__grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .race__grid { grid-template-columns: 1fr 1fr; } }
.rcard { position: relative; background: rgba(4,26,58,.58); border: 1px solid rgba(255,255,255,.3); border-radius: 18px; padding: 22px 22px 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rcard.is-active { background: rgba(4,26,58,.72); border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.rcard p { margin: 0 0 10px; color: #fff; font-size: 15.5px; }
.rcard__k { font-size: 12.5px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffd3c2 !important; margin: 0 0 6px !important; }
.rcard__t { margin: 0 0 4px; font-family: var(--display); font-weight: 900; font-size: 36px; text-transform: uppercase; line-height: .95; }
.rcard__d { font-weight: 600; }
.rcard__n { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px !important; }
.rcard__n span:first-child { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .85; color: #fff; font-variant-numeric: tabular-nums; }
.rcard__n span:last-child { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; color: #ffd3c2; }
.rcard__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.rcard .btn--primary { --bg: #fff; --fg: var(--sky-deeper); --bd: #fff; }
.rcard .btn--primary:hover { --bg: var(--paper); }
.race__fine { margin: 18px 0 0; font-size: 13.5px; color: #fff; }

/* ---------- locations ---------- */
.locs__grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .locs__grid { grid-template-columns: 1fr 1fr; } }
.loc { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 22px; cursor: pointer; transition: border-color .3s, transform .4s var(--spring), box-shadow .4s var(--ease); }
.loc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.loc.is-active { border-color: var(--ink); box-shadow: 6px 6px 0 var(--sun); }
.loc__k { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-deep); }
.loc__own { color: var(--ink-3); letter-spacing: 0; text-transform: none; font-weight: 600; }
.loc__addr { margin: 0; font-family: var(--display); font-weight: 900; font-size: 40px; line-height: .95; text-transform: uppercase; }
.loc__sub { margin: 4px 0 14px; color: var(--ink-2); font-size: 15px; }
.loc__facts { margin: 0 0 16px; display: grid; gap: 6px; }
.loc__facts div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 15px; }
.loc__facts dt { font-weight: 700; color: var(--ink-3); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; align-self: baseline; }
.loc__facts dd { margin: 0; }
.loc__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.locs__note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ---------- faq ---------- */
.faq__list { display: grid; gap: 10px; }
.q { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 18px; }
.q[open] { border-color: var(--ink); }
.q summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; position: relative; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--sun); transition: transform .35s var(--spring); }
.q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.q__a { padding: 0 0 18px; }
.q__a p { margin: 0 0 12px; color: var(--ink-2); }

/* ---------- closing ---------- */
.close { background: var(--ink); color: var(--paper); padding: 72px 0; background-image: radial-gradient(50% 60% at 90% 20%, rgba(58,160,255,.35), transparent 60%); }
.close__in { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.close__grid { display: grid; gap: 36px; }
.close__copy { min-width: 0; }
.close__lede { margin: 0 0 20px; color: #d3dbe3; max-width: 46ch; font-size: 17px; }
@media (min-width: 960px) { .close__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; gap: 48px; } }
.close__h { margin: 0 0 24px; font-family: var(--display); font-weight: 900; font-size: clamp(52px, 11vw, 120px); line-height: .88; text-transform: uppercase; }
.close__h span { display: block; }
.close__b { color: var(--sun); }
.close__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.close__disc { margin: 0; font-size: 13.5px; color: #a9b3bd; }

/* ---------- footer ---------- */
.ftr { background: var(--paper-2); border-top: 1px solid var(--line); padding: 40px 0 120px; }
.ftr__in { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.ftr__cols { display: grid; gap: 24px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
@media (min-width: 820px) { .ftr__cols { grid-template-columns: 1fr 1fr; gap: 40px; } .ftr { padding-bottom: 48px; } }
.ftr__h { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; }
.ftr__fine { color: var(--ink-3); }
.ftr__brand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ftr__brand a { color: var(--ink); }

/* ---------- sticky bar (mobile) ---------- */
.bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
  padding: 10px 8px 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .55s var(--spring);
}
.bar.is-on { transform: none; }
.bar__t { margin: 0; display: grid; gap: 1px; font-weight: 700; font-size: 15px; line-height: 1.15; min-width: 0; }
.bar__k { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #c3ccd5; }
.btn--bar i { display: none; }
.bar .btn--bar { --bg: var(--sun); --fg: var(--ink); --bd: var(--sun); }
.bar__x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.bar__x svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .bar { display: none; } }


/* ---------- lead form (dialog + inline in the closing section) ---------- */
[hidden] { display: none !important; }
html.lf-open { overflow: hidden; }
.lfd { padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.65); overscroll-behavior: contain; }
.lfd::backdrop { background: rgba(10,42,74,.68); }
.lfd__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.lfd__by { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lfd__x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.lfd__x:hover { background: var(--paper-3); }
.lfd__x svg { width: 20px; height: 20px; }
.lfd__body { padding: 16px 20px 22px; }
.close__form { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 22px 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); min-width: 0; }

.lf { display: grid; gap: 14px; min-width: 0; }
.lf__h { margin: 0; font-family: var(--display); font-weight: 900; font-size: 36px; line-height: .95; text-transform: uppercase; }
.lf__sub { margin: 0; color: var(--ink-2); font-size: 16px; }
.lf__seg { justify-self: start; }
.lf__facts-d { border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); }
.lf__facts-d > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 14.5px; color: var(--sky-deep); }
.lf__facts-d[open] > summary { min-height: 40px; border-bottom: 1px solid var(--line); }
.lf__facts-d .lf__facts { border: 0; border-radius: 0 0 12px 12px; }
.lf__facts { margin: 0; display: grid; gap: 6px; padding: 12px 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; font-size: 14.5px; }
.lf__facts div { display: grid; grid-template-columns: 66px 1fr; gap: 8px; }
.lf__facts dt { font-weight: 700; color: var(--ink-3); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; align-self: baseline; }
.lf__facts dd { margin: 0; overflow-wrap: anywhere; }
.lf__field { margin: 0 0 14px; }
.lf__field label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.lf input[type="text"], .lf input[type="tel"], .lf input[type="email"], .lf select { display: block; width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--ink-3); border-radius: 12px; }
.lf input:focus, .lf select:focus { outline: 3px solid var(--sun); outline-offset: 2px; }
.lf [aria-invalid="true"] { border-color: #b00020; outline: 2px solid #b00020; outline-offset: 1px; }
.lf__err { margin: 4px 0 0; color: #b00020; font-weight: 600; font-size: 14px; }
.lf__hint { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); }
.lf__consent label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 500; font-size: 14.5px; margin: 0; }
.lf__consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sky-deep); }
.lf__status { margin: 0 0 12px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.lf__status:empty { display: none; }
.lf__status[data-state="error"] { color: #b00020; }
.lf__status[data-state="success"] { color: #0a6b2d; font-size: 17px; }
.lf__status:focus { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.lf__submit { width: 100%; }
.lf__submit[disabled] { opacity: .65; cursor: not-allowed; }
.lf__nomed { margin-top: 10px; font-weight: 600; color: var(--ink-2); }
.lf__ath { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--sun-deep); background: var(--sun-tint); border-radius: 0 10px 10px 0; font-size: 14px; }
.lf__ath p { margin: 0; color: var(--ink-2); }
.lf__ath b { color: var(--ink); }
.lf__help { padding: 12px 14px; border-radius: 12px; background: var(--sun-tint); border: 1.5px solid rgba(184,64,26,.4); font-size: 15px; }
.lf__after { padding: 14px 16px; border-radius: 12px; background: #e6f4ea; border: 1.5px solid rgba(10,107,45,.4); font-size: 16px; }
.lf__help p, .lf__after p { margin: 0; color: var(--ink); }
.lf__alt { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.lf__muted { color: var(--ink-3); font-weight: 400; }
.lf__fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.lf__fine--disc strong { color: var(--ink); }
.lf__pending { display: grid; gap: 12px; }
.lf__pending > p { margin: 0; color: var(--ink-2); }
.lf__actions { display: grid; gap: 10px; }
.lf__actions .btn { width: 100%; white-space: normal; text-align: center; }
.lf.is-done .lf__facts-d { display: none; }
@media (max-width: 420px) { .lf__h { font-size: 32px; } .lfd__body { padding: 14px 16px 20px; } .close__form { padding: 18px 16px; } }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; padding: 60px var(--gut); }
.lost__in { max-width: 720px; }
.lost__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .h1__l.in > span, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .hero__sky, .ocard__wave, .ocard__drop, .seg__loc.is-busy svg { animation: none; }
  .tl { animation: none; }
  .btn, .btn i, .chip, .seg__btn, .seg__loc, .pcard, .loc, .bib, .bar, .q summary::after { transition: none; }
  .btn:hover, .pcard:hover, .loc:hover, .bib:hover, .chip:hover { transform: none; }
  .bib { transform: none; }
  .progress span { transition: none; }
}
