/* Mirakle's Marathon — Run for Cancer Care. Self-hosted assets only (strict CSP). */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("/assets/fonts/poppins-800.woff2") format("woff2"); }

:root {
  --pink: #ff66a3;
  --pink-600: #e0457f;
  --pink-200: #ffc2da;
  --pink-50: #fff1f7;
  --purple: #8a4cbf;
  --purple-700: #6e37a0;
  --plum: #2a1640;
  --ink: #2d1b3d;
  --muted: #6b5a7c;
  --line: #f0d9e6;
  --bg: #fff8fb;
  --surface: #fff;
  --field: #fffbfd;
  --green: #1f7a4a;
  --green-bg: #e4f5ec;
  --red: #b3261e;
  --red-bg: #fdeceb;
  --amber-bg: #fff1cc;
  --amber-text: #5a3d00;
  --focus: #8a4cbf;

  --grad: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  --grad-deep: linear-gradient(135deg, var(--pink-600) 0%, var(--purple-700) 100%);
  --shadow-sm: 0 1px 2px rgba(42, 22, 64, .06), 0 2px 8px rgba(42, 22, 64, .05);
  --shadow: 0 2px 6px rgba(42, 22, 64, .06), 0 18px 48px rgba(138, 76, 191, .14);
  --shadow-pink: 0 12px 28px rgba(224, 69, 127, .32);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 12px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: clip;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(255, 102, 163, .10), transparent 60%),
    radial-gradient(800px 600px at 0% 40%, rgba(138, 76, 191, .08), transparent 60%),
    var(--bg);
  color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.55;
}
body.admin { background: #faf6fb; }
main { flex: 1; padding-block: 28px 56px; outline: none; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
body.admin .wrap { max-width: 1480px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--purple-700); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 50; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 8px; }
.wrap-anywhere, .alert { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.mono, .ref { font-family: var(--mono); font-size: .92em; }
.ref { letter-spacing: .04em; }
.nowrap { white-space: nowrap; }

/* full-width bands inside the centred <main> */
.bleed { margin-inline: calc(50% - 50vw); width: 100vw; }

/* ------------------------------------------------------------ header */

.env-banner { background: var(--grad); color: #fff; text-align: center; font-weight: 700; font-size: .82rem; padding: 6px 16px; letter-spacing: .02em; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { display: block; height: 46px; width: auto; }
.site-nav { display: none; gap: 4px; }
.site-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.site-nav a:hover { background: var(--pink-50); color: var(--pink-600); }
.header-cta {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--grad-deep); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
  box-shadow: 0 6px 16px rgba(224, 69, 127, .28);
}
.header-cta:hover { filter: brightness(1.07); }
@media (min-width: 820px) { .site-nav { display: flex; } .brand-logo { height: 52px; } }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; opacity: .8; }
.btn-pay { background: var(--grad-deep); color: #fff; box-shadow: var(--shadow-pink); letter-spacing: .01em; }
.btn-pay:hover { filter: brightness(1.07); box-shadow: 0 16px 34px rgba(138, 76, 191, .38); }
.btn-block { width: 100%; min-height: 58px; font-size: 1.12rem; }
.btn-secondary { background: var(--purple-700); color: #fff; }
.btn-secondary:hover { background: var(--purple); }
.btn-ghost { background: #fff; color: var(--pink-600); border-color: var(--pink-200); }
.btn-ghost:hover { background: var(--pink-50); border-color: var(--pink); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255, 255, 255, .24); }
.btn-white { background: #fff; color: var(--pink-600); box-shadow: 0 10px 24px rgba(42, 22, 64, .18); }
.btn-white:hover { color: var(--purple-700); }
.is-busy::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-button { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; color: var(--purple-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
.actions { display: grid; gap: 12px; margin-top: 22px; }
.actions form { margin: 0; }
.actions .btn { width: 100%; }
@media (min-width: 600px) { .actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative; margin-top: -28px; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(42, 22, 64, .94) 0%, rgba(42, 22, 64, .82) 38%, rgba(224, 69, 127, .55) 100%),
    url("/assets/hero.jpg") center 42% / cover no-repeat,
    var(--plum);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1160px; margin-inline: auto; padding: 64px 20px 150px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ff0a0; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 240, 160, .6); } 100% { box-shadow: 0 0 0 10px rgba(95, 240, 160, 0); } }
.hero-title {
  margin: 0; color: #fff; font-weight: 900; line-height: .98; letter-spacing: -.03em;
  font-size: clamp(2.6rem, 8.5vw, 5.2rem); max-width: 12ch; text-wrap: balance;
}
.hero-tagline { margin: 18px 0 0; font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: rgba(255, 255, 255, .92); }
.hero-tagline span { color: var(--pink-200); }
.hero-sub { margin: 10px 0 0; max-width: 38em; color: rgba(255, 255, 255, .78); }
.hero-facts {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px;
}
.hero-facts li {
  padding: 12px 16px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
}
.hero-facts strong { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.hero-facts span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .75); font-weight: 600; }
@media (min-width: 640px) { .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
@media (min-width: 900px) { .hero-inner { padding: 88px 20px 170px; } }

/* ------------------------------------------------------------ register grid */

.register {
  position: relative; z-index: 2; margin-top: -110px;
  display: grid; gap: 20px; align-items: start;
}
@media (min-width: 960px) {
  .register { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: -130px; }
  .summary { position: sticky; top: calc(var(--header-h) + 20px); }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 24px 18px; min-width: 0;
}
@media (min-width: 600px) { .card { padding: 36px 40px; } }
.card.narrow, .status-card { max-width: 660px; margin-inline: auto; }
.lede { color: var(--muted); }

.form-card { position: relative; overflow: hidden; }
.form-card::before, .card.narrow::before, .status-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad);
}
.card.narrow, .status-card { position: relative; overflow: hidden; }
.form-title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 6px; }

/* steps */
.steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 16px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 2px; background: var(--line);
}
.step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: .9rem; }
.steps .is-current { color: var(--purple-700); }
.steps .is-current .step-num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 5px rgba(255, 102, 163, .18); }
.steps .is-done { color: var(--green); }
.steps .is-done .step-num { background: var(--green); border-color: var(--green); color: #fff; font-size: 0; }
.steps .is-done .step-num::before { content: ""; width: 12px; height: 7px; margin-top: -3px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.steps .is-done:not(:last-child)::after { background: var(--green); }

/* ------------------------------------------------------------ fields */

.form-section {
  display: flex; align-items: center; gap: 12px;
  margin: 30px 0 16px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 1.05rem; color: var(--ink); letter-spacing: 0;
}
#reg-form > .form-section:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
.form-section-num {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 10px;
  background: var(--pink-50); color: var(--pink-600); font-size: .9rem; font-weight: 800;
}

.field { margin-bottom: 18px; min-width: 0; }
.field > label, .filters label, .tshirt-other label, .choice-group legend {
  display: block; margin-bottom: 7px; font-weight: 600; font-size: .92rem; color: var(--ink);
}
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="password"], input[type="search"], select {
  display: block; width: 100%; min-height: 50px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  appearance: none; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input::placeholder { color: #a898b4; }
input:hover, select:hover { border-color: var(--pink-200); }
input:focus, input:focus-visible, select:focus, select:focus-visible {
  outline: none; border-color: var(--pink); background: #fff; box-shadow: 0 0 0 4px rgba(255, 102, 163, .16);
}
@media (max-width: 480px) { input, select { font-size: 16px !important; } }
select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px;
}
[aria-invalid="true"]:not(fieldset) { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }

.input-prefix { display: flex; }
.input-prefix span {
  display: flex; align-items: center; padding: 0 14px; font-weight: 700; color: var(--pink-600);
  background: var(--pink-50); border: 1.5px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.input-prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0; flex: 1; }
.input-prefix:focus-within span { border-color: var(--pink); }

.field-hint { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }
.field-error { color: var(--red); font-weight: 600; font-size: .88rem; margin: 6px 0 0; }
.field-error:empty { display: none; }

/* radio cards */
fieldset.choice-group { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.choice-group legend { padding: 0; }
.choice-group input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.choice-card {
  position: relative; display: flex; flex-direction: column; gap: 2px; cursor: pointer;
  padding: 16px 16px 16px 48px; border-radius: var(--r);
  background: var(--field); border: 1.5px solid var(--line);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .15s ease;
}
.choice-card::before {
  content: ""; position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #cdb8dc; background: #fff; transition: border .15s ease;
}
.choice-card:hover { border-color: var(--pink-200); transform: translateY(-1px); }
.choice-title { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.choice-sub { font-size: .82rem; color: var(--muted); }
.choice-card:has(input:checked) { border-color: var(--pink); background: var(--pink-50); box-shadow: 0 0 0 3px rgba(255, 102, 163, .15); }
.choice-card:has(input:checked)::before { border: 6px solid var(--pink-600); }
.choice-card:has(input:checked) .choice-title { color: var(--pink-600); }
.choice-card:has(input:focus-visible), .size-chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip span {
  display: grid; place-items: center; min-width: 58px; min-height: 46px; padding: 0 16px; cursor: pointer;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--field); font-weight: 700; color: var(--ink);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.size-chip:hover span { border-color: var(--pink-200); }
.size-chip input:checked + span { background: var(--grad-deep); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(224, 69, 127, .28); }
.tshirt-other { display: none; margin-top: 12px; max-width: 320px; }
.choice-group:has(input[value="Other"]:checked) .tshirt-other { display: block; }
@supports not selector(:has(*)) { .tshirt-other { display: block; } }
.choice-group[aria-invalid="true"] .choice-card, .choice-group[aria-invalid="true"] .size-chip span { border-color: var(--red); }

.field-check {
  display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; align-items: start;
  margin-top: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--field); border: 1.5px solid var(--line);
}
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--pink-600); }
.field-check label { font-weight: 500; font-size: .92rem; cursor: pointer; color: var(--ink); }
.field-check .field-error { grid-column: 2; margin: 0; }
.field-check:has(input:checked) { border-color: var(--pink); background: var(--pink-50); }

#reg-form .btn-block { margin-top: 20px; }
.trust {
  list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  color: var(--muted); font-size: .84rem; font-weight: 500;
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.trust-lock { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1Zm2 0h8V8a4 4 0 1 0-8 0v2Z'/%3E%3C/svg%3E"); }
.trust-card { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm1 4h16V7H4v2Zm0 3v5h16v-5H4Zm2 2h5v2H6v-2Z'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------ bib summary */

.summary { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.summary-head {
  position: relative; padding: 30px 22px 22px; color: #fff; text-align: center;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .22), transparent 55%),
    var(--grad-deep);
}
.summary-head::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .6) 0 12px, transparent 12px 24px);
}
.bib-holes { position: absolute; inset: 12px 14px auto 14px; display: flex; justify-content: space-between; }
.bib-holes span { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.summary-kicker { margin: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; opacity: .85; }
.summary-name {
  margin: 8px 0 4px; font-weight: 900; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.01em;
  overflow-wrap: anywhere; min-height: 1.15em;
}
.summary-name.is-empty { opacity: .55; }
.summary-event { margin: 0; font-size: .82rem; font-weight: 600; opacity: .85; }
.summary-body { padding: 18px 22px 22px; }
.summary-list { margin: 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-list dt { color: var(--muted); font-size: .88rem; }
.summary-list dd { margin: 0; font-weight: 700; font-size: .9rem; text-align: right; overflow-wrap: anywhere; }
.summary-list dd.is-empty { color: #b7a6c4; font-weight: 500; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; }
.summary-total span { font-weight: 600; }
.summary-total strong {
  font-size: 2rem; font-weight: 900;
  background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.summary-perks { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.summary-perks li { position: relative; padding-left: 24px; margin: 6px 0; }
.summary-perks li::before {
  content: ""; position: absolute; left: 3px; top: .45em; width: 10px; height: 6px;
  border-left: 2.5px solid var(--pink-600); border-bottom: 2.5px solid var(--pink-600); transform: rotate(-45deg);
}
@media (max-width: 959px) { .summary { order: -1; } .summary-perks, .summary-body .summary-list { display: none; } .summary-total { margin: 0; } }

/* ------------------------------------------------------------ info sections */

.info-section { margin-top: 88px; text-align: center; }
.kicker { margin: 0 0 8px; color: var(--pink-600); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; }
.section-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; }
.section-sub { color: var(--muted); max-width: 38em; margin: 12px auto 32px; }

.categories { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: left; }
.categories li {
  position: relative; overflow: hidden; padding: 24px 22px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.categories li::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--grad); opacity: .08;
}
.categories li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-num {
  display: block; font-size: 3.2rem; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cat-num small { font-size: 1.1rem; margin-left: 4px; letter-spacing: 0; }
.cat-name { display: block; margin-top: 12px; font-weight: 800; font-size: 1.15rem; }
.cat-who { display: block; color: var(--muted); font-size: .9rem; }

.route-section { display: grid; gap: 28px; text-align: left; align-items: start; }
.route-section .section-sub { margin-left: 0; margin-bottom: 20px; }
@media (min-width: 900px) { .route-section { grid-template-columns: 1fr 1.2fr; gap: 56px; } .route-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.route-stat { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.route-stat strong { font-size: 3.6rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.route-stat span { color: var(--muted); font-weight: 600; }

.route { list-style: none; margin: 0; padding: 0; counter-reset: leg; position: relative; }
.route::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: linear-gradient(var(--pink), var(--purple)); }
.route li { counter-increment: leg; position: relative; padding: 14px 18px 14px 60px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.route li::before {
  content: counter(leg); position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--pink); color: var(--pink-600); font-weight: 800; font-size: .82rem;
}
.route li:first-child::before, .route .route-finish::before { background: var(--grad-deep); border-color: #fff; color: #fff; box-shadow: 0 0 0 3px var(--pink-200); }
.route strong { display: block; font-size: 1rem; }
.route span { color: var(--muted); font-size: .92rem; }

.prize-band { margin-top: 88px; background: var(--grad-deep); color: #fff; position: relative; overflow: hidden; }
.prize-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 120%, rgba(255, 255, 255, .18), transparent 60%),
              radial-gradient(500px 260px at 0% -20%, rgba(255, 255, 255, .14), transparent 60%);
}
.prize-inner { position: relative; max-width: 1160px; margin-inline: auto; padding: 44px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.prize-inner > div { flex: 1 1 320px; }
.prize-inner h2 { color: #fff; font-size: clamp(1.6rem, 4.4vw, 2.4rem); margin: 0 0 4px; }
.prize-inner p { margin: 0; color: rgba(255, 255, 255, .85); }
.trophy {
  width: 64px; height: 64px; flex: none; border-radius: 20px; background: rgba(255, 255, 255, .16);
  position: relative;
}
.trophy::after {
  content: ""; position: absolute; inset: 14px; background: #ffd66b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v2h3a1 1 0 0 1 1 1v2a5 5 0 0 1-4.6 5A5 5 0 0 1 13 15.9V19h3v2H8v-2h3v-3.1A5 5 0 0 1 7.6 13 5 5 0 0 1 3 8V6a1 1 0 0 1 1-1h3V3Zm10 4v3.9A3 3 0 0 0 19 8V7h-2ZM5 7v1a3 3 0 0 0 2 2.9V7H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v2h3a1 1 0 0 1 1 1v2a5 5 0 0 1-4.6 5A5 5 0 0 1 13 15.9V19h3v2H8v-2h3v-3.1A5 5 0 0 1 7.6 13 5 5 0 0 1 3 8V6a1 1 0 0 1 1-1h3V3Zm10 4v3.9A3 3 0 0 0 19 8V7h-2ZM5 7v1a3 3 0 0 0 2 2.9V7H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sponsors { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.sponsor {
  min-height: 140px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sponsor:hover { transform: translateY(-4px); border-color: var(--pink-200); box-shadow: var(--shadow); }
.sponsor img { width: 150px; }
.sponsor-mark { display: grid; place-items: center; min-width: 60px; height: 60px; padding: 0 12px; border-radius: 18px; background: var(--grad); color: #fff; font-weight: 900; letter-spacing: .02em; }
.sponsor-name { font-weight: 700; font-size: .88rem; line-height: 1.3; }
.become-sponsor {
  margin-top: 22px; padding: 26px 24px; border-radius: var(--r-lg); text-align: center;
  background: linear-gradient(135deg, var(--pink-50), #f4ecfb); border: 1px dashed var(--pink-200);
}
.become-sponsor h3 { margin: 0 0 4px; color: var(--purple-700); }
.become-sponsor p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--plum); color: rgba(255, 255, 255, .78); font-size: .9rem; padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 12px; }
.footer-logo img { display: block; height: 40px; width: auto; }
.footer-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-weight: 600; }
.ribbon {
  width: 14px; height: 18px; flex: none; background: var(--pink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 2c-3 0-5 2.2-5 5 0 2.1 1 4.2 2.6 6.4L3 24l3.2 3 5.8-8.6 5.8 8.6L21 24l-6.6-10.6C16 11.2 17 9.1 17 7c0-2.8-2-5-5-5Zm0 3c1.2 0 2 .9 2 2 0 1.2-.7 2.6-2 4.3C10.7 9.6 10 8.2 10 7c0-1.1.8-2 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 2c-3 0-5 2.2-5 5 0 2.1 1 4.2 2.6 6.4L3 24l3.2 3 5.8-8.6 5.8 8.6L21 24l-6.6-10.6C16 11.2 17 9.1 17 7c0-2.8-2-5-5-5Zm0 3c1.2 0 2 .9 2 2 0 1.2-.7 2.6-2 4.3C10.7 9.6 10 8.2 10 7c0-1.1.8-2 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--pink-200); }
.footer-copy { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }
body.admin .site-footer { padding: 20px 0; }
body.admin .footer-copy { border: 0; padding: 0; }

/* ------------------------------------------------------------ alerts & status */

.alert { border-radius: var(--r-sm); border-left: 5px solid; padding: 12px 16px; margin: 0 0 20px; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert ul { margin: 0; padding-left: 20px; }
.alert a { font-weight: 600; color: inherit; }
.alert-title { font-size: 1rem; margin: 0 0 6px; }
.alert-error { background: var(--red-bg); border-color: var(--red); }
.alert-info { background: #f3ebfb; border-color: var(--purple); }
.debug-box pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; margin: 0; max-height: 320px; overflow: auto; }
.note { background: #f3ebfb; border-left: 4px solid var(--purple); border-radius: var(--r-sm); padding: 12px 16px; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.badge::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: rgba(255, 255, 255, .25) center / 12px no-repeat; }
.badge-ok { background: var(--green); color: #fff; }
.badge-ok::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E"); }
.badge-err { background: var(--red); color: #fff; }
.badge-err::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.badge-wait { background: var(--amber-bg); color: var(--amber-text); }
.badge-wait::before { width: 16px; height: 16px; background: none; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 1s linear infinite; }

.status-paid::before { background: linear-gradient(90deg, #1f7a4a, #4cc38a); }
.status-pending::before { background: linear-gradient(90deg, #d99a00, #ffd166); }
.status-failed::before, .status-link_error::before { background: linear-gradient(90deg, #8f1d17, #e0564d); }
.status-paid h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }

.receipt { margin: 18px 0; padding: 18px; border-radius: var(--r); background: var(--field); border: 1px solid var(--line); }
.receipt-ref {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 12px; padding: 18px 12px;
  border-radius: var(--r); text-align: center; color: #fff; background: var(--grad-deep); box-shadow: var(--shadow-pink);
}
.receipt-ref span { font-weight: 700; text-transform: uppercase; font-size: .74rem; letter-spacing: .14em; opacity: .85; }
.receipt-ref strong { font-size: clamp(1.7rem, 8vw, 2.4rem); font-weight: 900; letter-spacing: .06em; overflow-wrap: anywhere; font-family: var(--mono); }
.receipt-list { margin: 0; }
.receipt-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.receipt-list div:last-child { border-bottom: 0; }
.receipt-list dt { color: var(--muted); }
.receipt-list dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.autorefresh { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-text); font-weight: 600; }
.fine-print { color: var(--muted); font-size: .86rem; margin: 12px 0 0; text-align: center; }

/* ------------------------------------------------------------ admin */

.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.admin-head h1 { margin: 0; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.admin-nav a[aria-current="page"] { text-decoration-thickness: 3px; text-decoration-color: var(--pink); }
.stats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; border-top: 4px solid var(--line); box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: 1.8rem; font-weight: 800; }
.stat-label { text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.stat-sub { font-size: .85rem; color: var(--muted); }
.stat-paid { border-top-color: var(--green); }
.stat-failed, .stat-link_error { border-top-color: var(--red); }
.stat-pending { border-top-color: #e0a100; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-bottom: 10px; }
.filters .field { margin: 0; flex: 1 1 220px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--pink-50); font-weight: 700; white-space: nowrap; position: sticky; top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.data-table tbody tr:hover { background: #fffafd; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.admin-table { min-width: 1180px; }
.admin-table td:nth-child(2) { min-width: 170px; }
.admin-table td:nth-child(3) { min-width: 190px; }
.admin-table td:nth-child(4) { min-width: 200px; }
.runner-link { font-weight: 700; text-decoration: none; }
.runner-link:hover { text-decoration: underline; }
.compact-table { min-width: 900px; font-size: .84rem; }
.data-table pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .76rem; max-width: 460px; max-height: 300px; overflow: auto; margin: 6px 0 0; }
.data-table summary { cursor: pointer; min-height: 32px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .78rem; white-space: nowrap; }
.pill-paid { background: var(--green-bg); color: #17603a; }
.pill-pending { background: var(--amber-bg); color: var(--amber-text); }
.pill-failed, .pill-link_error { background: var(--red-bg); color: var(--red); }
.pager { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 14px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; }
.check-group { margin-top: 22px; }
.checks { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.check { display: grid; gap: 2px 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check dt { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.check dd { margin: 0; font-family: var(--mono); font-size: .88rem; }
@media (min-width: 700px) { .check { grid-template-columns: 260px 1fr; } }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot-ok { background: var(--green); }
.dot-err { background: var(--red); }

/* ------------------------------------------------------------ motion & print */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .env-banner, .skip-link, .no-print, .btn, .actions, .fine-print, .steps, .hero, .summary, .info-section, .prize-band { display: none !important; }
  body { background: #fff; color: #000; }
  main { padding: 0; }
  .card { box-shadow: none; border: 1px solid #000; }
  .card::before { display: none; }
  .receipt { background: none; }
  .receipt-ref { background: none; color: #000; border: 2px dashed #000; box-shadow: none; }
  .badge-ok { border: 1px solid #000; background: #fff; color: #000; }
  .note { background: none; border: 1px solid #000; }
}

/* institution dropdown: full row (long names); "Other" reveals a text box */
.field-row .inst-field { grid-column: 1 / -1; }
.inst-other { display: none; margin-top: 12px; }
.inst-other label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .92rem; }
.inst-field:has(option[value="Other"]:checked) .inst-other { display: block; }
@supports not selector(:has(*)) { .inst-other { display: block; } }

/* dates: hero pills + registrations-closed card */
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero-pills .hero-eyebrow { margin: 0; }
.hero-urgent { background: #ffd66b; color: var(--plum); border-color: #ffd66b; }
.hero-closed { background: rgba(255, 255, 255, .9); color: var(--red); border-color: transparent; }
.closed-card { max-width: 720px; margin-inline: auto; text-align: center; position: relative; overflow: hidden; }
.closed-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad); }
.closed-icon {
  display: block; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--grad-deep); position: relative;
}
.closed-icon::after {
  content: ""; position: absolute; inset: 16px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7Zm-2 8h14v10H5V10Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7Zm-2 8h14v10H5V10Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.closed-date { display: inline-flex; flex-direction: column; gap: 2px; margin: 8px 0 18px; padding: 16px 24px; border-radius: var(--r); background: var(--pink-50); border: 1px solid var(--line); }
.closed-date strong { font-size: 1.3rem; color: var(--pink-600); }
.closed-date span { color: var(--muted); font-size: .9rem; }

@media (min-width: 960px) { .register.register-closed { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ admin dashboard */

.kpis { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi {
  position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--line); }
.kpi-paid::before { background: var(--green); }
.kpi-money::before { background: var(--grad); }
.kpi-pending::before { background: #e0a100; }
.kpi-problem::before { background: var(--red); }
.kpi-label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kpi strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1.2; letter-spacing: -.02em; margin: 4px 0 2px; }
.kpi-money strong { background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-sub { font-size: .82rem; color: var(--muted); }

.breakdowns { display: grid; gap: 14px; margin-bottom: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.breakdowns .panel { margin-bottom: 0; }
.panel h2 { font-size: 1rem; margin: 0 0 12px; }
.panel h2 small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.panel-sub { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--line); }
.bar { display: grid; grid-template-columns: 64px 1fr 36px; align-items: center; gap: 10px; margin: 8px 0; font-size: .88rem; }
.bar-wide { grid-template-columns: minmax(0, 1.3fr) 1fr 36px; }
.bar-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar strong { text-align: right; }
.bar progress { width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--pink-50); appearance: none; -webkit-appearance: none; }
.bar progress::-webkit-progress-bar { background: var(--pink-50); border-radius: 999px; }
.bar progress::-webkit-progress-value { background: var(--grad-deep); border-radius: 999px; }
.bar progress::-moz-progress-bar { background: var(--grad-deep); border-radius: 999px; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 8px; }
.toolbar .filters { flex: 1 1 520px; margin: 0; }
.filters .field-narrow { flex: 0 1 180px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar-actions .btn, .toolbar .btn { min-height: 46px; padding: 10px 18px; font-size: .9rem; }

.detail-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 8px; }
.detail-grid .panel { margin-bottom: 0; }
.detail-grid + .panel { margin-top: 16px; }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.panel form { margin-top: 14px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 6px 0 10px 14px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); }
.timeline time { font-size: .78rem; color: var(--muted); }
.pill-creating { background: #eee; color: #555; }

.receipt-heading { margin: 16px 0 2px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--pink-600); }
.receipt-ref + .receipt-heading { margin-top: 6px; }
.receipt-amount { font-size: 1.15rem; color: var(--green); }

/* ------------------------------------------------------------ real logos, route map, photo band */

.sponsors { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.sponsor { min-height: 150px; padding: 20px; }
.sponsor img { width: auto; max-width: 100%; max-height: 96px; object-fit: contain; }
.sponsor:first-child img { max-height: 60px; }

.route-map { grid-column: 1 / -1; margin: 8px 0 0; }
.route-map img {
  display: block; width: 100%; height: auto; border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.route-map figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-weight: 600; font-size: .9rem; }

.prize-band {
  background:
    linear-gradient(110deg, rgba(224, 69, 127, .94) 0%, rgba(110, 55, 160, .88) 55%, rgba(110, 55, 160, .62) 100%),
    url("/assets/band.jpg") center 30% / cover no-repeat,
    var(--purple-700);
}
.prize-inner { padding: 64px 20px; }

/* ------------------------------------------------------------ race countdown */

.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; } }

.countdown-card {
  padding: 24px 24px 20px; border-radius: var(--r-lg); color: #fff; text-align: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 20px 50px rgba(20, 8, 35, .35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.countdown-title {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em;
}
.countdown-title .ribbon { background: var(--pink-200); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cd-unit {
  padding: 14px 4px 10px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 240, 247, .9));
  box-shadow: 0 8px 20px rgba(20, 8, 35, .25), inset 0 -3px 0 rgba(224, 69, 127, .15);
}
.cd-unit strong {
  display: block; font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 900; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd-unit span { display: block; margin-top: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.countdown-when { margin: 16px 0 0; font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .88); line-height: 1.5; }
.countdown-close {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: rgba(255, 214, 107, .18); border: 1px solid rgba(255, 214, 107, .5); color: #fff4d6;
}
.countdown-close strong { color: #ffd66b; font-variant-numeric: tabular-nums; }
.countdown-done .countdown-title { font-size: 1.4rem; letter-spacing: .02em; text-transform: none; }
@media (max-width: 999px) { .countdown-card { max-width: 480px; } }
@media print { .countdown-card { display: none !important; } }
.countdown-closing .countdown-title { color: #ffe08a; }
.countdown-closing .countdown-title .ribbon { background: #ffd66b; }
.countdown-cta { margin: 14px 0 0; }
.countdown-cta .btn { width: 100%; min-height: 46px; }
