/* OHM race — public pages: resultados en vivo (/), inscripción (/inscripcion/), privacidad, 404.
   Builds on /assets/app.css (tokens, buttons, forms). Monochrome + one cyan accent (+ one functional colour
   per participant state). Mobile-first. */

html { scroll-padding-top: 84px; } /* sticky header */
main:focus { outline: none; }
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Header fits two nav links next to the brand on 360–400px phones */
.brand { min-height: 44px; }
/* logo.png is a dark mark on transparent: force it white on the dark UI (works for any source colour). */
.brand img, .hero-mark, .notfound-mark { filter: brightness(0) invert(1); }
@media (max-width: 420px) {
  .site-header .container { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1.2rem; letter-spacing: 0.06em; }
  .nav { gap: 2px; flex-wrap: nowrap; }
  .nav a { padding: 0 9px; font-size: 0.95rem; letter-spacing: 0.04em; }
}
@media (max-width: 350px) {
  .site-header .container { padding: 0 12px; }
  .brand-name { font-size: 1.05rem; }
  .nav a { padding: 0 7px; font-size: 0.875rem; }
}

/* Footer */
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer-brand {
  margin: 0; font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted); font-size: 0.95rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -10px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.footer-links a[aria-current="page"] { color: var(--text); }

/* Shared bits */
/* Note: app.css `.section` resets horizontal padding, so never combine it with `.container`. */
.page-pad { padding-top: 40px; padding-bottom: 40px; }
.field .hint { color: var(--muted); }
.notice-title {
  margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--text);
}
.notice > p:last-child { margin-bottom: 0; }
.page-loading { display: flex; align-items: center; gap: 12px; color: var(--muted); min-height: 40vh; }
.btn .spinner { width: 20px; height: 20px; border-width: 3px; }
.btn-primary .spinner { border-color: rgba(0, 22, 32, 0.25); border-top-color: var(--accent-ink); }

/* ---------- Hero (/inscripcion/) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 44px 0 40px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(25, 195, 255, 0.13), transparent 60%),
    linear-gradient(180deg, #111 0%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
}
.hero-mark {
  position: absolute; z-index: -1; right: -48px; bottom: -36px; width: 220px; height: auto;
  opacity: 0.07; pointer-events: none; user-select: none;
}
@media (max-width: 767px) { .hero-mark { display: none; } }
@media (min-width: 900px) { .hero-mark { width: 300px; right: 5%; top: 50%; bottom: auto; transform: translateY(-50%); } .hero { padding: 64px 0 56px; } }
.hero-title { max-width: 16ch; overflow-wrap: anywhere; margin-bottom: 0.25em; }
.hero-desc { max-width: 62ch; white-space: pre-line; color: var(--muted); font-size: 1.0625rem; margin: 18px 0 0; }
.hero-cta { margin-top: 24px; }
@media (max-width: 479px) { .hero-cta { display: flex; width: 100%; } }

.event-meta { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 22px 0 0; }
@media (min-width: 640px) { .event-meta { display: flex; flex-wrap: wrap; gap: 14px 44px; } }
.event-meta-item { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; }
.event-meta dt {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.event-meta dd {
  margin: 2px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; line-height: 1.15;
  text-transform: uppercase; letter-spacing: 0.02em; overflow-wrap: anywhere;
}

.page-body > * + * { margin-top: 32px; }
.status-notice:focus { outline: none; }

/* ---------- Category cards ---------- */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cats-section h2 { margin-bottom: 16px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 116px;
  padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.12s, background-color 0.12s, box-shadow 0.12s;
}
.cat-name {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--text);
}
.cat-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-sub { font-size: 0.8125rem; color: var(--muted); }
.cat-spots { display: block; margin-top: auto; font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.cat-spots.is-low { color: var(--accent); }
.cat-spots.is-full { font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.cat-card.is-full { background: transparent; }
.cat-card.is-full .cat-name { color: var(--muted); }

/* Radio-card variant inside the form */
.cat-option { position: relative; display: block; cursor: pointer; height: 100%; -webkit-tap-highlight-color: transparent; }
.cat-option input[type="radio"] {
  -webkit-appearance: none; appearance: none;
  position: absolute; z-index: 1; top: 18px; right: 18px; width: 24px; height: 24px; margin: 0;
  border: 2px solid var(--text); border-radius: 50%; background: transparent; cursor: inherit;
  transition: border-color 0.12s, background-color 0.12s, box-shadow 0.12s;
}
.cat-option input[type="radio"]:checked {
  border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface);
}
.cat-option input[type="radio"]:focus-visible { outline: none; }
.cat-option input[type="radio"]:disabled { border-color: var(--line-strong); background: var(--surface-3); }
.cat-option .cat-card { padding-right: 56px; }
.cat-option:hover .cat-card { border-color: var(--line-strong); }
.cat-option:hover input:not(:checked):not(:disabled) { border-color: var(--text); }
.cat-option input:checked + .cat-card {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 75%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cat-option input:focus-visible + .cat-card { outline: 3px solid var(--accent); outline-offset: 2px; }
.cat-option input:disabled { cursor: not-allowed; }
.cat-option:has(input:disabled) { cursor: not-allowed; }
.cat-option:hover input:disabled + .cat-card { border-color: var(--line-strong); }
.cat-option input[aria-invalid="true"]:not(:disabled) { border-color: var(--err); }
.cat-option input[aria-invalid="true"] + .cat-card { border-color: var(--err); }

/* ---------- Registration form ---------- */
.form-section { max-width: none; }
.form-head, .reg-form > .field, .choose-hint, .reg-details { max-width: 760px; }
.form-section:focus { outline: none; }
.form-head { margin-bottom: 24px; }
.form-head h2 { margin-bottom: 6px; }
.form-head p { margin: 0; }
.reg-form fieldset { padding: 18px 16px 20px; }
.reg-form legend { font-size: 1.05rem; color: var(--text); }
.cat-fieldset { border: 0; padding: 0 !important; }
.cat-fieldset > legend {
  padding: 0; margin-bottom: 12px; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--muted);
}
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.fieldset-hint { margin: -2px 0 14px; }
.field .optional { color: var(--muted); font-weight: 400; }
.field .error-text { margin-top: 0; font-weight: 500; }
.field .error-text::before { content: "! "; content: "! " / ""; font-weight: 700; }
.check input[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }
.consent-box .error-text { padding-left: 34px; }
.choose-hint {
  padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  color: var(--muted); text-align: center;
}
.consent-box { display: grid; gap: 10px; padding: 4px 0; }
.consent-box .check span { color: #d4d4d4; }
.consent-box .check .dim { color: var(--muted); }
.consent-box .check a { color: var(--text); font-weight: 600; }
.consent-box .check a:hover { color: var(--accent); }
.submit-row > .form-alert:empty { display: none; }
.form-alert p {
  margin: 0; padding: 12px 14px; border: 1px solid var(--err); border-left-width: 4px; border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, 0.08); color: var(--text); font-weight: 500;
}
.submit-btn { width: 100%; }
@media (min-width: 560px) { .submit-btn { width: auto; min-width: 260px; } }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Success screen ---------- */
.success {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 28px 20px 32px; border: 1px solid var(--accent); border-radius: var(--radius);
  background:
    radial-gradient(70% 45% at 50% 32%, rgba(25, 195, 255, 0.16), transparent 70%),
    var(--surface);
}
.success-title { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.success-title:focus { outline: none; }
.success-title:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.success-label { font-size: 1.25rem; letter-spacing: 0.2em; color: #d4d4d4; font-weight: 600; }
.success-bib { display: block; text-shadow: 0 0 48px rgba(25, 195, 255, 0.35); letter-spacing: 0; }
.success-name {
  margin: 14px 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1.1;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.success-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; }
.success-tags .badge { font-size: 0.8rem; min-height: 30px; padding: 3px 12px; color: var(--text); border-color: var(--line-strong); }
.success-tags .badge-accent { color: var(--accent); border-color: var(--accent); }
.success-msg { color: #d4d4d4; margin-bottom: 22px; text-wrap: balance; }
.success .btn { background: transparent; border-color: var(--text); }
.success .btn:hover { background: var(--surface-2); }
.success-event { margin: 0 auto 18px; padding: 14px 0 0; border-top: 1px solid var(--line); max-width: 420px; }
.success-event p { margin: 0; }
.success-event-name { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); font-size: 1.05rem; }
.success-event-meta { color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.success-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.success-check { display: inline-block; flex: none; }

/* ---------- Resultados en vivo (/) ---------- */
/* Audience: families on their phones. Calm, high contrast, big tabular times. Black/white/greys + one cyan accent;
   the six participant states each have one functional colour, used only on small chips and thin bars. */
:root {
  --st-waiting: #a3a3a3;   /* PENDIENTE */
  --st-running: #19c3ff;   /* EN COMPETENCIA (brand cyan) */
  --st-finished: #3ddc97;  /* FINALIZADO */
  --st-dns: #b69cff;       /* NO PRESENTADO */
  --st-dnf: #fbbf24;       /* RETIRADO */
  --st-dsq: #ff7a7a;       /* DESCALIFICADO */
}
.st-waiting { --st: var(--st-waiting); }
.st-running { --st: var(--st-running); }
.st-finished { --st: var(--st-finished); }
.st-DNS { --st: var(--st-dns); }
.st-DNF { --st: var(--st-dnf); }
.st-DSQ { --st: var(--st-dsq); }

.lv-wide { max-width: 1320px; }
.page-live .site-footer { margin-top: 72px; }
.lv-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--st); border-radius: 999px;
  white-space: nowrap; font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--st);
}
.lv-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* Header: logo · event · live pill. Phones: logo + pill on top, event below. */
.lv-head {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 120% at 100% 0%, rgba(25, 195, 255, 0.1), transparent 65%), #0d0d0d;
}
.lv-head-in {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand eyebrow live" "brand title live" "meta meta meta";
  align-items: center; gap: 0 12px; padding-top: 12px; padding-bottom: 12px;
}
@media (max-width: 759px) {
  .lv-event { display: contents; }
  .lv-eyebrow { grid-area: eyebrow; align-self: end; font-size: 0.75rem; }
  .lv-title { grid-area: title; align-self: start; }
  .lv-meta { grid-area: meta; margin-top: 8px !important; }
  .lv-d-long { display: none; }
}
@media (min-width: 760px) { .lv-d-short { display: none; } }
@media (min-width: 760px) {
  .lv-head-in { grid-template-columns: auto 1fr auto; grid-template-areas: "brand event live"; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
}
.lv-logo { grid-area: brand; height: 34px; width: auto; filter: brightness(0) invert(1); }
@media (min-width: 760px) { .lv-logo { height: 46px; } }
.lv-event { grid-area: event; min-width: 0; }
.lv-eyebrow {
  margin: 0 0 2px; font-family: var(--font-head); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.lv-title { margin: 0; font-size: clamp(1.5rem, 6.2vw, 3rem); line-height: 0.95; overflow-wrap: anywhere; }
.lv-meta { margin: 4px 0 0; color: #e5e5e5; font-size: 0.9375rem; line-height: 1.4; }
@media (min-width: 760px) { .lv-meta { font-size: 1.0625rem; } }
.lv-meta-part { display: inline; }
.lv-sep { margin: 0 0.5em; color: var(--muted); }
.lv-live {
  grid-area: live; justify-self: end; display: inline-flex; align-items: center; gap: 9px;
  min-height: 30px; margin: 0; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.lv-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.lv-live[data-state="on"] { color: var(--text); border-color: rgba(25, 195, 255, 0.6); }
.lv-live[data-state="on"] .lv-live-dot { background: var(--accent); animation: lv-pulse 1.8s ease-in-out infinite; }
.lv-live[data-state="off"] { color: var(--st-dnf); border-color: rgba(251, 191, 36, 0.6); }
.lv-live[data-state="off"] .lv-live-dot { background: var(--st-dnf); }
@keyframes lv-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(25, 195, 255, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(25, 195, 255, 0); } }

/* General pause banner: solid white, sticky, impossible to miss */
.lv-pause { position: sticky; top: 0; z-index: 30; background: var(--text); color: var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.lv-pause-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 14px; padding-bottom: 14px; }
.lv-pause-icon { width: 20px; height: 24px; flex: none; background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%); }
.lv-pause-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; }
.lv-pause-sub { margin: 0; font-weight: 600; font-size: 0.9375rem; flex-basis: 100%; }
@media (min-width: 760px) { .lv-pause-sub { flex-basis: auto; } }

/* Category tabs: all four visible at once (2×2 on phones, one row from tablet) */
.lv-kicker { margin: 16px 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: #d4d4d4; }
.lv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
@media (min-width: 760px) { .lv-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; } }
.lv-tab {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px;
  min-height: 52px; padding: 7px 10px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--muted); font: inherit; -webkit-tap-highlight-color: transparent;
  /* Selection and results change together; only the press release fades. */
  transition: opacity 160ms ease-out;
}
.lv-tab:hover { border-color: var(--text); }
.lv-tab:active { opacity: 0.82; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .lv-tab, .lv-tab:active { transition: none; transition-duration: 0s !important; }
}
.lv-tab-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.02; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text); }
@media (min-width: 1100px) { .lv-tab-name { font-size: 1.35rem; } .lv-tab { min-height: 72px; padding: 12px 16px; } }
.lv-tab-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: #bdbdbd; font-variant-numeric: tabular-nums; }
.lv-tab-sub.is-live { color: var(--accent); }
.lv-tab-sub.is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lv-tab[aria-selected="true"] { background: var(--text); border-color: var(--text); }
.lv-tab[aria-selected="true"] .lv-tab-name { color: var(--bg); }
.lv-tab[aria-selected="true"] .lv-tab-sub { color: #3a3a3a; }
.lv-tab[aria-selected="true"] .lv-tab-sub.is-live { color: #00597a; }
.lv-tab:focus-visible { outline-offset: 3px; }

/* Search: visible label, text button to clear (no icon-only controls) */
.lv-tools { margin: 10px 0 0; max-width: 560px; }
@media (min-width: 760px) { .lv-tools { margin-top: 14px; } }
.lv-search-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.lv-search-row { display: flex; gap: 8px; }
.lv-search-row input { flex: 1; min-width: 0; min-height: 46px; font-size: 1.0625rem; background: #111; border: 2px solid #8a8a8a; color: var(--text); }
.lv-search-row input::placeholder { color: #9a9a9a; }
.lv-search-row input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(25, 195, 255, 0.25); }
.lv-search-row input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.lv-clear { flex: none; min-height: 46px; }
.lv-count { margin: 8px 0 0; color: #e5e5e5; font-size: 0.9375rem; }
.lv-count:empty { display: none; }
#panel:focus { outline: none; }

/* Quick jump to the three sections (text buttons with the count; no icons) */
/* Phones: one slim line of text links (not cards, so they never read as tabs) */
.lv-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 2px 0 12px; }
.lv-jump-lead { font-size: 0.875rem; color: var(--muted); }
.lv-jump-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0; background: none; border: 0;
  color: var(--text); font: 600 0.875rem/1.2 var(--font-body); cursor: pointer; -webkit-tap-highlight-color: transparent;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
}
.lv-jump-btn:hover { text-decoration-color: var(--accent); }
.lv-jump-btn[hidden] { display: none; }
.lv-jump-name { font: inherit; }
.lv-jump-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-jump-n::before { content: "("; } .lv-jump-n::after { content: ")"; }
@media (min-width: 1100px) { .lv-jump { display: none; } }
[id^="blk-"] { scroll-margin-top: 16px; }
.is-paused [id^="blk-"] { scroll-margin-top: 96px; }

/* Sections, in reading order: Clasificación → En competencia → Próximas rondas */
.lv-grid { display: grid; gap: 40px; }
@media (min-width: 1100px) { #panel { margin-top: 28px; } }
@media (min-width: 1100px) { .lv-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.lv-side { display: grid; gap: 48px; align-content: start; min-width: 0; }
.lv-blk { min-width: 0; }
.lv-blk-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-bottom: 10px;
  background: linear-gradient(var(--st, var(--line-strong)), var(--st, var(--line-strong))) left bottom / 56px 3px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 100% 1px no-repeat;
}
.lv-blk-title { margin: 0; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1; }
.lv-help { margin: 8px 0 12px; color: #d4d4d4; font-size: 0.9375rem; }
.lv-empty { margin: 0; padding: 20px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: #d4d4d4; font-size: 0.9375rem; line-height: 1.55; }

/* Names */
.lv-who, .c-who { min-width: 0; }
.lv-nm { display: block; font-weight: 600; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.lv-mem { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.35; color: #c7c7c7; overflow-wrap: anywhere; }
.lv-tag { display: inline-block; margin-top: 6px; padding: 1px 9px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: #e5e5e5; }

/* 1. Clasificación */
.lv-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 8px; margin-top: -8px; }
.lv-table .w-pos { width: 56px; }
.lv-table .w-bib { width: 64px; }
.lv-table .w-time { width: 104px; }
@media (min-width: 600px) { .lv-table .w-pos { width: 72px; } .lv-table .w-bib { width: 80px; } .lv-table .w-time { width: 140px; } }
.lv-table th {
  padding: 0 10px 2px; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #c7c7c7;
}
.lv-table td { padding: 14px 10px; vertical-align: middle; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lv-table td:first-child { border-left: 1px solid var(--line); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.lv-table td:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding-right: 14px; }
.lv-table th:last-child { padding-right: 14px; }
.lv-table .c-pos, .lv-table .c-bib { text-align: center; }
.lv-table .c-time { text-align: right; }
.lv-table td.c-pos { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1; color: #e5e5e5; font-variant-numeric: tabular-nums; }
.lv-table td.c-bib { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #bdbdbd; font-variant-numeric: tabular-nums; }
.lv-table td.c-time { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Podium: bigger, quietly highlighted; only the winner gets the accent */
.lv-r.is-p1 td, .lv-r.is-p2 td, .lv-r.is-p3 td { padding-top: 18px; padding-bottom: 18px; border-color: var(--line-strong); }
.lv-r.is-p1 td { background: #0e1d24; border-color: rgba(25, 195, 255, 0.45); }
.lv-r.is-p1 td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.lv-r.is-p2 td:first-child, .lv-r.is-p3 td:first-child { box-shadow: inset 4px 0 0 #e5e5e5; }
.lv-r.is-p1 td.c-pos { font-size: 2.6rem; color: var(--accent); }
.lv-r.is-p2 td.c-pos, .lv-r.is-p3 td.c-pos { font-size: 2.2rem; color: var(--text); }
.lv-r.is-p1 td.c-time { font-size: 1.9rem; color: var(--accent); }
.lv-r.is-p2 td.c-time, .lv-r.is-p3 td.c-time { font-size: 1.7rem; }
.lv-r.is-p1 .lv-nm, .lv-r.is-p2 .lv-nm, .lv-r.is-p3 .lv-nm { font-size: 1.0625rem; }
@media (max-width: 599px) {
  .lv-table td { padding: 12px 6px; }
  .lv-table th { padding: 0 6px 2px; font-size: 0.875rem; letter-spacing: 0.03em; }
  .lv-table td.c-time { font-size: 1.3rem; }
  .lv-r.is-p1 td.c-time { font-size: 1.6rem; }
  .lv-r.is-p2 td.c-time, .lv-r.is-p3 td.c-time { font-size: 1.45rem; }
  .lv-r.is-p1 td.c-pos { font-size: 2.2rem; }
  .lv-r.is-p2 td.c-pos, .lv-r.is-p3 td.c-pos { font-size: 1.9rem; }
  .lv-nm { font-size: 0.9375rem; }
}

/* Row lists (en competencia, próximas rondas, fuera) */
.lv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lv-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px 12px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.lv-bib { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1; text-align: center; color: #bdbdbd; font-variant-numeric: tabular-nums; }
/* 2. En competencia (grouped by ronda: one header "Ronda 2 · Salió a las 18:57", then name + running time) */
.lv-heat-run { box-shadow: inset 3px 0 0 var(--st-running); }
.lv-heat-run .lv-heat-t { color: #e5e5e5; font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0; text-transform: none; }
.lv-run-list { padding: 0; grid-template-columns: 1fr !important; }
.lv-row-run { background: none; border: 0; border-radius: 0; padding: 12px 14px 12px 8px; }
.lv-row-run + .lv-row-run { border-top: 1px solid var(--line); }
.lv-sub { display: block; margin-top: 4px; font-size: 0.875rem; color: #d4d4d4; }
.lv-sub:empty { display: none; }
.is-paused .lv-heat-run { box-shadow: inset 3px 0 0 var(--muted); }
.lv-clock { min-width: 4.6ch; text-align: right; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 1100px) { .lv-clock { font-size: 2.1rem; } }
.lv-row-run.is-paused .lv-clock { color: #d4d4d4; }
.lv-row-run.is-paused .lv-clock::before {
  content: ""; display: inline-block; width: 0.4em; height: 0.6em; margin-right: 0.35em; vertical-align: 0.08em;
  background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%);
}
/* 3. Próximas rondas */
.lv-heats { display: grid; gap: 12px; }
.lv-heat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lv-heat-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lv-heat-n { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; }
.lv-heat-t { font-variant-numeric: tabular-nums; }
.lv-heat-t:empty { display: none; }
.lv-heat-id { display: flex; flex-direction: column; gap: 2px; }
.lv-heat-c { font-size: 0.875rem; color: #c7c7c7; }
.lv-heat-when { display: flex; align-items: baseline; gap: 8px; margin-left: auto; }
.lv-heat-lead { font-size: 0.875rem; font-weight: 600; color: #d4d4d4; }
.lv-heat-lead:empty { display: none; }
.lv-heat-time { font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.lv-heat-time.is-tbd { font-family: var(--font-body); font-weight: 600; font-size: 0.875rem; color: #d4d4d4; }
.lv-heat-list { list-style: none; margin: 0; padding: 6px 0; display: grid; }
@media (min-width: 560px) and (max-width: 1099px), (min-width: 1400px) { .lv-heat-list { grid-template-columns: 1fr 1fr; } }
.lv-row-next { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 7px 14px 7px 8px; background: none; border: 0; border-radius: 0; }
.lv-row-next .lv-bib { font-size: 1.1rem; }
.lv-row-next .lv-nm { font-weight: 500; font-size: 0.9375rem; }
.lv-row-next .lv-mem { font-size: 0.8125rem; }
.lv-row-next .lv-tag { margin-top: 3px; }
.lv-more { width: 100%; margin-top: 12px; background: transparent; border-style: dashed; color: var(--text); }
/* No presentado · Retirado · Descalificado: apart, muted, never with times */
.lv-blk-out { margin-top: 56px; }
.lv-blk-out .lv-blk-title { font-size: clamp(1.5rem, 5.4vw, 1.9rem); color: #e5e5e5; }
.lv-list-out { grid-template-columns: 1fr; }
@media (min-width: 900px) { .lv-list-out { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1400px) { .lv-list-out { grid-template-columns: 1fr 1fr 1fr; } }
.lv-row-out { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.lv-row-out .lv-nm { color: #d4d4d4; }

/* Search with no hits in this category */
.lv-nomatch { padding: 28px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.lv-nomatch-title { margin: 0 0 6px; color: var(--text); font-weight: 600; font-size: 1.0625rem; }
.lv-nomatch .muted { color: #d4d4d4; margin: 0; }
.lv-nomatch .chips { justify-content: center; margin-top: 12px; }
.lv-nomatch .chip { color: var(--text); border-color: var(--text); }

/* Not yet public / no connection */
#notice:empty { display: none; }
.lv-notice {
  max-width: 600px; margin: 48px auto 0; padding: 48px 24px 44px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.lv-notice-title { margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.lv-notice-text { max-width: 40ch; margin: 0 auto 20px; color: #e5e5e5; font-size: 1.0625rem; text-wrap: pretty; }
.lv-notice-text:last-child { margin-bottom: 0; }

/* TV / big screens */
@media (min-width: 1680px) {
  html { font-size: 112.5%; }
  .lv-wide { max-width: 1600px; }
}

/* Inscripción: readable small labels for families (overrides shared badge size on this page only) */
.cat-meta .badge { font-size: 0.8125rem; }
.event-meta dt { font-size: 0.875rem; }

/* ---------- Privacidad ---------- */
.policy { max-width: 780px; padding-top: 36px; padding-bottom: 8px; }
.policy-title { font-size: clamp(2.1rem, 7vw, 3.5rem); max-width: 18ch; }
.policy .lead { margin-bottom: 8px; }
.policy section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy h2 { font-size: clamp(1.45rem, 4.5vw, 1.85rem); margin-bottom: 14px; }
.policy p, .policy li { color: #d4d4d4; max-width: 70ch; }
.policy strong { color: var(--text); }
.policy ul { margin: 0 0 1em; padding-left: 1.25em; }
.policy li + li { margin-top: 8px; }
.policy li::marker { color: var(--accent); }
.resp-list { display: grid; gap: 12px; margin: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.resp-list > div { display: grid; gap: 2px; }
@media (min-width: 560px) { .resp-list > div { grid-template-columns: 140px 1fr; gap: 16px; } }
.resp-list dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.resp-list dd { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
#responsable > .notice { margin-bottom: 12px; }
.policy-version { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; padding: 72px 0; min-height: 60vh; }
.notfound-mark { position: absolute; z-index: -1; right: -40px; bottom: -30px; width: 240px; height: auto; opacity: 0.06; pointer-events: none; }
.notfound-title { max-width: 14ch; }
.notfound-actions { margin-top: 24px; }

/* ---------- Print ---------- */
@media print {
  body { display: block; }
  .lv-tabs, .lv-kicker, .lv-tools, .lv-live, .lv-pause, .lv-more, .lv-blk-run, .lv-blk-next, .lv-help,
  .hero::before, .hero-mark, .notfound-mark, .skip-link { display: none !important; }
  .lv-head { background: none; border: 0; }
  .lv-logo { filter: none; }
  .lv-grid { display: block; }
  .lv-table td { background: none !important; border-color: #bbb !important; box-shadow: none !important; }
  .lv-r td.c-pos, .lv-r td.c-time, .lv-nm { color: #000 !important; }
  .lv-table tr, .lv-row { break-inside: avoid; }
  .hero { background: none; border: 0; padding: 0 0 12px; }
  .badge { border-color: #999; color: #000; background: none; }
  .policy p, .policy li { color: #000; }
  .resp-list { background: none; border-color: #bbb; }
}
