/*
 * Stilul platformei Geko (după modelul vizual FALKO, cu numele și logo-ul Geko).
 * Fontul Montserrat e găzduit de noi (licența SIL OFL, în fonts/), nu de Google:
 * nu trimitem adresele IP ale vizitatorilor către alte servicii (regula 6).
 */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.b1799e9f3c0b.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B1220;
  --navy-2: #12203A;
  --navy-line: #1C2840;
  --navy-text: #C9D3E3;
  --navy-muted: #8FA0BC;
  --cyan: #00D4FF;
  --orange: #F76A36;
  --orange-dark: #E0551F;
  --ink: #0B1220;
  --ink-quiet: #4A5872;
  --line: #DDE3EC;
  --line-strong: #CBD3DF;
  /* „verde” era culoarea de accent a primei versiuni; acum e turcoazul închis (contrast 5:1 pe alb). */
  --green: #0E7C98;
  --green-dark: #075A6E;
  --green-tint: #E3F8FD;
  --surface: #F3F6FA;
  --bg: #FFFFFF;
  --radius: 10px;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand svg { color: var(--green); }

.site-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 12px;
  /* Titlurile care conțin o adresă de e-mail se rupeau în afara ecranului pe telefon
     („pauldragan100@gmai”) — verificarea din 08.11.2026. */
  overflow-wrap: anywhere;
}

.lead { color: var(--ink-quiet); margin: 0 0 24px; }

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.event-date {
  width: 64px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-date .day { font-weight: 700; font-size: 1.75rem; line-height: 1; }
.event-date .month { font-weight: 600; font-size: 0.75rem; letter-spacing: 1px; }

.event-name { margin: 0; font-weight: 600; font-size: 1.05rem; }
.event-meta { margin: 4px 0 0; color: var(--ink-quiet); font-size: 0.9rem; }

.site-footer {
  padding: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-quiet);
  font-size: 0.875rem;
  text-align: center;
}
.site-footer p { margin: 0; }

/* Antet: legătura spre cont */
.site-header { justify-content: space-between; gap: 12px; }
.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 500;
  text-decoration: none;
}

h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.muted { color: var(--ink-quiet); }
.plain-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }

/* Mesaje */
.messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.message { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--green-tint); color: var(--green-dark); }
.message--error { background: #FBE9E2; color: #9A3412; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--surface); margin-bottom: 20px; }
.notice p { margin: 0 0 10px; }

/* Formulare */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}
.field--error input { border-color: #9A3412; }
.help { margin: 0; color: var(--ink-quiet); font-size: 0.875rem; }
.help ul { margin: 4px 0 0; padding-left: 18px; }
.error { margin: 0; color: #9A3412; font-size: 0.875rem; font-weight: 500; }
.form-error { padding: 12px 14px; border-radius: 10px; background: #FBE9E2; color: #9A3412; }
.form-error p { margin: 0; }
.form-footer { margin: 14px 0 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--green-dark); color: #FFFFFF; }
.button--secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.button--secondary:hover { background: var(--surface); color: var(--ink); }
.logout { margin-top: 32px; }

/* ---------------------------------------------------------------------------
 * T05 — lista curselor și pagina cursei (după prototip, telefon întâi)
 * ------------------------------------------------------------------------- */


/* Filtre: legături simple, cel puțin 44 px înălțime */
.filters { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 20px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.anchor-target { scroll-margin-top: 12px; }
nav#categorii { margin-bottom: 14px; }
/* Cel puțin un ecran de înalt, ca pagina să se poată opri la începutul clasamentului și când sunt puțini concurenți. */
.results-block { min-height: 100vh; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { border-color: var(--green); color: var(--ink); }
.chip--small { padding: 0 14px; }
.chip--on, .chip--on:hover { background: var(--green); border-color: var(--green); color: #FFFFFF; }

/* Cartonașul unei ediții */
.event-card--link { color: var(--ink); text-decoration: none; }
.event-card--link:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.event-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-name { display: block; line-height: 1.25; }
.event-meta { display: block; margin: 0; }
.event-date .year { font-size: 0.7rem; font-weight: 600; margin-top: 2px; }
.event-date .month { text-transform: uppercase; }
.event-list--past .event-date { background: var(--surface); color: var(--ink-quiet); }
.badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-quiet);
}
.badge--open { background: var(--green-tint); color: var(--green-dark); }
.empty { padding: 16px; border-radius: var(--radius); background: var(--surface); }

/* Pagina cursei */
.back { margin: -8px 0 12px; }
.back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}
.hero {
  background: var(--green);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero h1 { margin: 0; font-size: 2rem; }
.hero p { margin: 0; }
.hero-date { font-size: 0.82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.race-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.race {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.race-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.race-name { margin: 0; font-size: 1rem; font-weight: 600; }
.race-meta, .race-detail { margin: 0; font-size: 0.9rem; color: var(--ink-quiet); }
.race-state--open { color: var(--green-dark); font-weight: 500; }
.race-state--full { color: #9A3412; font-weight: 500; }
.places { font-size: 0.82rem; font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.places--few { color: #9A3412; }

.text-block { margin: 0; line-height: 1.55; }
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}

/* Butonul de înscriere rămâne la îndemână pe telefon */
.cta {
  position: sticky;
  bottom: 0;
  margin: 28px -20px -40px;
  padding: 16px 20px 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.cta:empty { display: none; }
.cta-note { margin: 0; font-weight: 500; }
.button--block { display: flex; width: 100%; min-height: 52px; font-size: 1rem; }

/* ---------------------------------------------------------------------------
 * T06 — formularul de înscriere și confirmarea
 * ------------------------------------------------------------------------- */

.form--wide { max-width: 560px; gap: 8px; }
.form-section { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.form-section h2 { margin: 18px 0 2px; font-size: 1.1rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

.choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.choices legend { font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.choice, .check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 400;
}
.check { border-color: var(--line); background: var(--surface); }
.choice input, .check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--green); }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.choice--race span { display: flex; flex-direction: column; gap: 2px; }
.choice--race small { color: var(--ink-quiet); font-size: 0.85rem; }
.field--error .choice, .field--error .check { border-color: #9A3412; }

.doc-text { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.doc-text summary { min-height: 44px; display: flex; align-items: center; font-weight: 500; color: var(--green); cursor: pointer; }
.doc-text div { max-height: 260px; overflow-y: auto; font-size: 0.9rem; color: var(--ink-quiet); }

.cta--form { margin-top: 12px; }

.done { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.done-icon {
  width: 56px; height: 56px; border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-tint); color: var(--green-dark);
}
.summary { margin: 8px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; }
.summary dt { color: var(--ink-quiet); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .code { font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

[hidden] { display: none !important; }

/* Câmpul-capcană pentru roboți din formularul de înscriere: nu se vede și nu primește focus. */
.capcana { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------------------
 * T09 — Înscrierile mele, paginile legale, subsolul
 * ------------------------------------------------------------------------- */

.header-nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.my-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.my-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); text-decoration: none;
}
.my-item:hover { background: var(--surface); color: var(--ink); }
.my-item-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.my-item .badge { flex-shrink: 0; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-quiet); }

.legal { max-width: 65ch; }
.legal h2 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; }

/* ---------------------------------------------------------------------------
 * Check-in în ziua cursei (SCR-040): butoane mari, lista ușor de citit în picioare.
 * ------------------------------------------------------------------------- */
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checkin-search { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.checkin-search input[type="search"] { font-size: 1.1rem; min-height: 52px; }
.checkin-count { margin: 0 0 8px; font-size: 0.9rem; }
.checkin-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checkin-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
}
.checkin-item--cancelled { background: var(--surface); }
.checkin-item--cancelled .checkin-who strong { text-decoration: line-through; }
.checkin-main { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; color: var(--ink); text-decoration: none; flex: 1; }
.checkin-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.checkin-who .muted { font-size: 0.85rem; }
.checkin-bib {
  min-width: 3.2em; padding: 6px 4px; border-radius: 8px; background: var(--surface);
  text-align: center; font-weight: 700; font-variant-numeric: tabular-nums;
}
.checkin-bib--large { display: inline-block; font-size: 2rem; padding: 6px 18px; margin: 0 0 12px; }
.checkin-action { flex-shrink: 0; }
.checkin-action .button { min-height: 48px; padding: 0 14px; }
/* Textul mai lung („Lipsește acordul părintelui”, DEC-113) trece pe două rânduri, fără să acopere numele. */
.checkin-action .button--wrap { max-width: 9.5rem; padding: 6px 12px; white-space: normal; line-height: 1.2; text-align: center; }
.badge--done { background: var(--green-tint); color: var(--green-dark); }
.badge--warn { background: #FFF4D6; color: #7A4B00; }
.badge--cancelled { background: #FBE9E2; color: #9A3412; }
.checkin-box { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.checkin-box h2 { margin-top: 0; font-size: 1.1rem; }
.checkin-box .badge { display: inline-block; font-size: 0.9rem; margin: 0 0 12px; }
.checkin-lists { margin: 8px 0 24px; }
.checkin-lists summary { min-height: 44px; display: flex; align-items: center; font-weight: 500; color: var(--green); cursor: pointer; }
.checkin-lists a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------------------
 * Rezultate: tabelul echipei (SCR-054) și clasamentul public (SCR-005).
 * ------------------------------------------------------------------------- */
.results-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 0.92rem; }
.results-table th, .results-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.results-table th { color: var(--ink-quiet); font-weight: 600; font-size: 0.82rem; }
.results-table td:nth-child(1), .results-table td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.results-table a { display: inline-flex; align-items: center; min-height: 44px; }
/* Orice „Arată mai mult” (details) e ușor de apăsat pe telefon: cel puțin 44 px. */
details > summary { min-height: 44px; padding: 10px 0; box-sizing: border-box; cursor: pointer; }
.row-warn { background: #FFF4D6; }
.warn { color: #7A4B00; }
.results-races { list-style: none; margin: 0 0 24px; padding: 0; }
.results-races h3 { margin: 0 0 6px; }
.results-meta { margin: 0 0 12px; }
.results-list { list-style: none; margin: 0 0 24px; padding: 0; }
.result-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-height: 52px; }
.result-item--other { color: var(--ink-quiet); }
.result-rank { min-width: 2.4em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.result-of { display: block; font-size: 0.7rem; font-weight: 500; color: var(--ink-quiet); white-space: nowrap; }
.workbench-regula h2 { margin: 0 0 8px; font-size: 1.05rem; }
.workbench-regula p { margin: 0 0 6px; }
.workbench-regula p:last-child { margin-bottom: 0; }
.old-text { margin: 0 0 16px; }
.old-text summary { cursor: pointer; font-weight: 700; }
.old-text__body { width: 100%; margin-top: 8px; font-family: inherit; font-size: 0.9rem; }
.results-hint { margin: 10px 0 18px; padding: 12px 14px; border-left: 4px solid var(--cyan); background: rgba(0, 174, 239, 0.08); border-radius: 6px; }
.results-hint p { margin: 0 0 6px; font-size: 0.92rem; line-height: 1.45; }
.results-hint p:last-child { margin-bottom: 0; }
.result-who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.result-who .muted { font-size: 0.85rem; }
.result-time { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.import-columns .field { max-width: 320px; }

/* Clasamentul campionatului (T17) */
.table-scroll { overflow-x: auto; }
.row-qualified { background: var(--green-tint); }
.row-muted { color: var(--ink-quiet); }
.champ-table h2 { font-size: 1.05rem; margin: 20px 0 6px; }
.inline-form { display: inline; }

/* Foto-video */
.clip-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; font-size: 0.9rem; }
.clip-grid img { width: 100%; height: auto; border-radius: 6px; display: block; }
.clip-grid p { margin: 4px 0 6px; }
.pick-row { display: flex; gap: 8px; }
.pick-row .button { flex: 1; min-height: 44px; padding: 10px 6px; font-size: 0.85rem; }
.film video { width: 100%; max-height: 60vh; background: #000; border-radius: 8px; }
.film .button-row button { min-height: 44px; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.strip-item { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 0.8rem; cursor: pointer; }
.strip-item img { width: 100%; height: auto; border-radius: 4px; }
.case-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 16px; }
.case-meta dt { color: var(--ink-quiet); }
.case-meta dd { margin: 0; }
.conflict { color: #9A3412; font-weight: 500; }
.photo-box { position: relative; display: inline-block; max-width: 100%; }
.photo-box img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.photo-mark { position: absolute; border: 3px solid #E0A800; border-radius: 4px; box-shadow: 0 0 0 1px #000; }

/* Mesajele Feibot Workbench (Data Push) */
.push-preview { white-space: pre-wrap; word-break: break-all; font-size: 0.85rem; max-height: 8rem; overflow: auto; background: var(--surface); padding: 0.5rem; border-radius: 4px; }
.push-preview--full { max-height: none; }

/* Cursa de repetiție (T16) */
.rehearsal-band { background: #FFF4CC; color: #4A3B00; border: 2px dashed #8A6D00; border-radius: 6px; padding: 0.75rem 1rem; margin: 0 0 1rem; }

/* ---------------------------------------------------------------------------
 * Calendarul sportiv (/calendar/)
 * ------------------------------------------------------------------------- */
.county-filter { display: flex; flex-direction: column; gap: 6px; }
.county-filter label { font-weight: 500; font-size: 0.95rem; }
.county-filter-row { display: flex; gap: 8px; }
.county-filter select {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}
.calendar-count { margin: 0 0 8px; color: var(--ink-quiet); font-size: 0.9rem; }
.calendar-count a { display: inline-flex; align-items: center; min-height: 44px; }
.calendar-month { margin: 24px 0 10px; font-size: 1.05rem; color: var(--ink-quiet); }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.event-card--own { border-color: var(--green); }
.event-date--unknown { background: var(--surface); color: var(--ink-quiet); }
.calendar-note { margin-top: 32px; padding: 16px; border-radius: var(--radius); background: var(--surface); }
.calendar-note h2 { margin-top: 0; }
.calendar-note p { margin: 0 0 10px; }
.calendar-note p:last-child { margin-bottom: 0; }
.calendar-facts dd { font-weight: 500; }
.calendar-link { margin: 0 0 12px; }
.calendar-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ===========================================================================
 * Aspectul Geko (modelul FALKO): antet și subsol bleumarin, accente
 * turcoaz și portocaliu, titluri groase, carduri cu insignă.
 * Turcoazul (#00D4FF) apare doar pe fond închis sau ca fond cu text bleumarin.
 * ======================================================================== */
body { background: var(--bg); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; }
h1 { font-weight: 900; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .dark :focus-visible { outline-color: var(--cyan); }

/* Antet */
.site-header {
  position: relative;
  background: var(--navy);
  color: #FFFFFF;
  border-bottom: 1px solid var(--navy-line);
  padding: 8px 16px;
  gap: 12px 24px;
}
.site-header .brand { color: #FFFFFF; min-height: 44px; gap: 10px; }
.brand-mark { flex-shrink: 0; }
.brand-word { font-weight: 900; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-word small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--navy-muted); margin-top: -2px; }
.nav-main { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-main a, .nav-mobile a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 6px;
}
.nav-main a:hover, .nav-mobile a:hover { color: var(--cyan); }
.nav-main a[aria-current="page"] { color: var(--cyan); }
.nav-main .nav-outline { border: 1px solid #3A4A66; padding: 0 16px; }
.nav-main .nav-account, .nav-mobile .nav-account { background: var(--cyan); color: var(--navy); font-weight: 800; padding: 0 16px; }
.nav-main .nav-account:hover, .nav-mobile .nav-account:hover { background: #7BE8FF; color: var(--navy); }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile > summary {
  list-style: none; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; cursor: pointer;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile[open] > summary { background: var(--navy-2); }
.nav-mobile ul {
  list-style: none; margin: 0; padding: 8px 16px 16px; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: var(--navy); border-bottom: 1px solid var(--navy-line); display: flex; flex-direction: column; gap: 2px;
}
.nav-mobile ul a { width: 100%; font-size: 1.05rem; }
@media (max-width: 899px) {
  .nav-main { display: none; }
  .nav-mobile { display: block; }
}

/* Banda de sus a paginilor (titlul pe fond bleumarin, cu chevronii) */
.dark { background: var(--navy); color: #FFFFFF; }
.dark a { color: #FFFFFF; }
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #FFFFFF; }
.page-hero .chevrons { position: absolute; right: -40px; top: 0; height: 100%; width: auto; pointer-events: none; }
.page-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 28px 20px 32px; display: flex; flex-direction: column; gap: 10px; }
.page-hero h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; color: #FFFFFF; }
.page-hero p { margin: 0; color: var(--navy-text); font-weight: 600; }
.page-hero .back { margin: 0 0 4px; }
.page-hero .back a { color: var(--navy-text); }
.page-hero .back a:hover { color: var(--cyan); }
.eyebrow { margin: 0; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan) !important; }
.pill {
  align-self: flex-start; display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 4px; background: var(--cyan); color: var(--navy); text-transform: uppercase;
}
.pill--orange { background: var(--orange); color: var(--navy); }
.pill--light { background: #FFFFFF; color: var(--navy); }
.pill--muted { background: var(--surface); color: var(--ink-quiet); }

/* Conținutul */
.site-main { max-width: 760px; }
.site-main--wide { max-width: 1240px; }
.site-main--flush { padding-top: 0; }

/* Butoane: principal portocaliu cu text bleumarin, ca în model */
.button {
  border-radius: 6px; border: 0; background: var(--orange); color: var(--navy); font-weight: 800;
  min-height: 48px; padding: 0 22px;
}
.button:hover { background: var(--orange-dark); color: var(--navy); }
.button--secondary { background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); font-weight: 700; }
.button--secondary:hover { background: var(--surface); color: var(--ink); }
.button--dark { background: var(--navy); color: #FFFFFF; }
.button--dark:hover { background: var(--navy-2); color: #FFFFFF; }
.button--cyan { background: var(--cyan); color: var(--navy); }
.button--cyan:hover { background: #7BE8FF; color: var(--navy); }
.button--ghost { background: transparent; color: #FFFFFF; border: 1px solid #3A4A66; font-weight: 700; }
.button--ghost:hover { background: var(--navy-2); color: #FFFFFF; }
.button--block { min-height: 54px; font-size: 1.05rem; }

/* Formulare */
.field input, .field select, .field textarea, .county-filter select { border-radius: 6px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.choice, .check { border-radius: 8px; }
.choice input, .check input { accent-color: var(--navy); }
.choice:has(input:checked) { border: 2px solid var(--navy); background: var(--surface); padding: 11px 13px; }
.chip { border-radius: 6px; font-weight: 700; }
.chip:hover { border-color: var(--navy); }
.chip--on, .chip--on:hover { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.message { background: var(--green-tint); color: var(--green-dark); border-radius: 8px; font-weight: 600; }
.badge { border-radius: 4px; font-weight: 800; letter-spacing: 0.02em; }
.badge--open { background: var(--green-tint); color: var(--green-dark); }
.empty, .notice, .calendar-note { border-radius: var(--radius); }

/* Prima pagină */
.home-hero { position: relative; overflow: hidden; background: var(--navy); color: #FFFFFF; }
.home-hero .chevrons { position: absolute; right: -60px; top: 0; height: 100%; width: auto; opacity: 0.9; pointer-events: none; }
.home-hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 20px 104px;
  display: flex; flex-wrap: wrap; gap: 36px; align-items: center;
}
.home-hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.home-hero h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 3.8rem); line-height: 1.04; letter-spacing: -0.02em; color: #FFFFFF; }
.home-hero h1 span { color: var(--cyan); }
.home-hero .lead { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--navy-text); max-width: 560px; }
.next-card {
  flex: 1 1 340px; min-width: 0; min-height: 280px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--navy-line);
  position: relative; overflow: hidden; color: #FFFFFF; text-decoration: none; display: block;
}
.next-card:hover { border-color: var(--cyan); color: #FFFFFF; }
.next-card svg { position: absolute; left: 0; right: 0; bottom: 0; top: 38%; width: 100%; height: 62%; }
.next-card-text { position: absolute; left: 20px; top: 18px; right: 20px; display: flex; flex-direction: column; gap: 2px; }
.next-card-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--navy-muted); text-transform: uppercase; }
.next-card-name { font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.next-card-date { font-size: 0.95rem; color: var(--navy-text); font-weight: 600; }
.next-card .pill { position: absolute; right: 18px; bottom: 18px; }

.home-search-wrap { width: 100%; max-width: 1200px; margin: -48px auto 0; padding: 0 20px; position: relative; }
.home-search {
  background: #FFFFFF; border-radius: 10px; box-shadow: 0 12px 32px rgba(11, 18, 32, 0.18); padding: 16px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.home-search .field { flex: 1 1 160px; min-width: 0; }
.home-search .field--grow { flex: 2 1 260px; }
.home-search label { font-size: 0.82rem; font-weight: 700; }
.home-search .button { flex: 0 0 auto; }
@media (max-width: 599px) { .home-search .button { flex: 1 1 100%; } }

.section { width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 20px 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.section h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.section .filters { margin: 0 0 20px; }

.race-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.race-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #FFFFFF; height: 100%; display: flex; flex-direction: column; }
.race-card:hover { border-color: var(--navy); box-shadow: 0 8px 24px rgba(11, 18, 32, 0.10); }
.race-card-top { height: 128px; background: var(--navy); position: relative; }
.race-card-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.race-card-top .pill { position: absolute; left: 14px; top: 14px; }
.race-card-date-big { position: absolute; right: 16px; top: 12px; text-align: right; color: #FFFFFF; line-height: 1; }
.race-card-date-big strong { display: block; font-size: 2.2rem; font-weight: 900; }
.race-card-date-big span { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; }
.race-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.race-card-date { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--ink-quiet); }
.race-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.race-card h3 a { color: var(--ink); text-decoration: none; }
.race-card h3 a::after { content: ""; position: absolute; inset: 0; }
.race-card { position: relative; }
.race-card-meta { margin: 0; color: var(--ink-quiet); font-size: 0.92rem; }
.race-card-cta { margin-top: auto; padding-top: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.race-cards--past .race-card-top { background: var(--navy-2); }

.products { background: var(--surface); margin-top: 48px; }
.products-inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.product { background: #FFFFFF; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--cyan); }
.product--timing { border-top-color: var(--orange); }
.product--live { background: var(--navy); color: #FFFFFF; border-top-color: var(--navy); }
.product h3 { margin: 0; font-size: 1.1rem; font-weight: 900; letter-spacing: 0.02em; }
.product h3 span { color: var(--green); }
.product--timing h3 span { color: #B4471F; }
.product--live h3 span { color: var(--cyan); }
.product p { margin: 0; color: var(--ink-quiet); }
.product--live p { color: var(--navy-text); }

/* Pagina cursei */
.edition-hero .pill { margin-bottom: 2px; }
.profile-strip { height: 76px; background: var(--surface); position: relative; }
.profile-strip svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.profile-strip span { position: absolute; left: 20px; top: 8px; font-size: 0.8rem; font-weight: 800; color: var(--ink-quiet); }
.race { border-radius: 8px; border: 2px solid var(--line); }
.race-name { font-weight: 800; }
.places { color: var(--green-dark); font-weight: 800; }
.cta { background: #FFFFFF; }

/* Rezultate publice: podiumul */
.podium { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.podium li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line); border-top: 4px solid var(--cyan); }
.podium li:nth-child(2) { border-top-color: var(--orange); }
.podium li:nth-child(3) { border-top-color: var(--navy); }
.podium-place { font-size: 2rem; font-weight: 900; line-height: 1; min-width: 1.2em; }
.podium-who { display: flex; flex-direction: column; min-width: 0; }
.podium-who strong { font-size: 1.05rem; }
.podium-who span { font-size: 0.85rem; color: var(--ink-quiet); font-weight: 600; font-variant-numeric: tabular-nums; }
.page-hero .chips { margin-top: 8px; }
.page-hero .chip { background: transparent; color: #FFFFFF; border-color: #3A4A66; }
.page-hero .chip:hover { border-color: var(--cyan); color: #FFFFFF; }
.page-hero .chip--on, .page-hero .chip--on:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.result-rank { font-weight: 900; }
.result-time { font-weight: 800; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--navy-text); }
.live-dot::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--cyan); }

/* Înscrierea mea */
.bib-tag { display: inline-block; background: #FFFFFF; color: var(--navy); font-weight: 900; font-size: 1.4rem; padding: 2px 12px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; margin: 16px 0; }
.stat-tile { background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 12px 4px; display: flex; flex-direction: column; border-top: 4px solid var(--cyan); }
.stat-tile:nth-child(2) { border-top-color: var(--orange); }
.stat-tile:nth-child(3) { border-top-color: var(--navy); }
.stat-tile strong { font-size: 1.3rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat-tile span { font-size: 0.78rem; color: var(--ink-quiet); font-weight: 600; }
/* „Locul X din N”: N sub număr, mai mic (Paul, 07.11.2026). */
.stat-tile .stat-of { display: block; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }

/* Check-in: tema închisă, ca în model (se citește bine în soare și pe întuneric) */
body.theme-dark { background: var(--navy); color: #FFFFFF; }
body.theme-dark .site-main a:not(.button) { color: #FFFFFF; }
body.theme-dark .muted, body.theme-dark .help, body.theme-dark .checkin-who .muted { color: var(--navy-text); }
body.theme-dark .checkin-item, body.theme-dark .checkin-box { background: var(--navy-2); border-color: var(--navy-line); }
body.theme-dark .checkin-main { color: #FFFFFF; }
body.theme-dark .checkin-bib { background: var(--navy); color: #FFFFFF; border-bottom: 3px solid var(--cyan); }
body.theme-dark .field input, body.theme-dark .field select { background: var(--navy-2); color: #FFFFFF; border: 2px solid var(--cyan); }
body.theme-dark .field label { color: var(--navy-text); }
body.theme-dark .button--secondary { background: transparent; color: #FFFFFF; border-color: #3A4A66; }
body.theme-dark .button--secondary:hover { background: var(--navy-2); }
body.theme-dark .summary, body.theme-dark .summary div { border-color: var(--navy-line); }
body.theme-dark .summary dt { color: var(--navy-text); }
body.theme-dark .site-footer { border-top-color: var(--navy-line); }
body.theme-dark .rehearsal-band { color: #4A3B00; }
body.theme-dark .rehearsal-band strong { color: #4A3B00; }
body.theme-dark .checkin-lists summary { color: var(--cyan); }
body.theme-dark .badge { background: var(--navy); color: var(--navy-text); }
body.theme-dark .badge--done { background: var(--green-tint); color: var(--green-dark); }
body.theme-dark .badge--warn { background: var(--orange); color: var(--navy); }
body.theme-dark .badge--cancelled { background: #FBE9E2; color: #9A3412; }
body.theme-dark .message { background: var(--green-tint); color: var(--green-dark); }
.kit-progress { margin: 0 0 16px; }
.kit-progress-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.kit-progress-bar { height: 8px; border-radius: 4px; background: var(--navy-2); overflow: hidden; }
.kit-progress-bar span { display: block; height: 8px; background: var(--cyan); }
body.theme-dark .checkin-bib--large { background: var(--navy); }

/* Subsol */
.site-footer { background: var(--navy); color: var(--navy-text); border-top: 0; text-align: left; padding: 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { color: #FFFFFF; font-size: 1.2rem; font-weight: 900; letter-spacing: 0.02em; }
.footer-brand span { font-size: 0.875rem; }
.footer-nav { margin: 0 0 0 auto; justify-content: flex-start; }
.footer-nav a { color: var(--navy-text); }
.footer-nav a:hover { color: var(--cyan); }
.hero { background: var(--navy); border-radius: var(--radius); }
.hero .hero-date { color: var(--cyan); }
.hero p { color: var(--navy-text); }
.hero h1 { color: #FFFFFF; }
@media (max-width: 599px) { .button--block-mobile { width: 100%; } }
body.theme-dark .lead { color: var(--navy-text); }

/* ---------------------------------------------------------------------------
 * Ecranul ghidat „Concurs nou” (organizatori, telefon întâi)
 * ------------------------------------------------------------------------- */

.org-pasi {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  counter-reset: none;
}
.org-pas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-quiet);
  font-size: 0.8rem;
  text-align: center;
}
.org-pas-nr {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.org-pas--gata .org-pas-nr { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.org-pas--acum { background: var(--navy); color: #FFFFFF; font-weight: 600; }
.org-pas--acum .org-pas-nr { border-color: #FFFFFF; color: var(--ink); }
.org-pas--acum.org-pas--gata .org-pas-nr { color: #FFFFFF; }

.org-sectiune { padding: 8px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.org-sectiune h2 { font-size: 1.15rem; }
.org-proba {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.org-proba > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.org-proba .muted { font-size: 0.875rem; }
.org-proba .button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; }
.org-lipsa { color: #9A3412; font-weight: 600; }

.org-lista-verificare { list-style: none; margin: 0 0 16px; padding: 0; }
.org-lista-verificare li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.org-lista-verificare li > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.org-lista-verificare small { color: var(--ink-quiet); font-size: 0.85rem; }
.org-lista-verificare a { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.org-semn {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink-quiet);
}
.org-gata .org-semn { background: var(--green); color: #FFFFFF; }
.org-lipseste .org-semn { background: #9A3412; color: #FFFFFF; }

.org-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.org-card:hover { border-color: var(--green); }
.org-card .badge { margin-top: 4px; }

.org-categorie { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.org-categorie legend { font-weight: 600; padding: 0 6px; }
.org-sau { margin-top: -6px; }
.org-panou { margin-top: 24px; font-size: 0.9rem; }
.button[disabled] { background: var(--surface); border-color: var(--line-strong); color: var(--ink-quiet); cursor: not-allowed; }

@media (max-width: 420px) {
  .org-pas-text { font-size: 0.72rem; }
  .org-proba { flex-direction: column; align-items: stretch; }
}

/* Tabelul de categorii al probei (ecranul ghidat): pe telefon, două rânduri pe categorie. */
.cat-tabel { display: flex; flex-direction: column; gap: 8px; }
.cat-rand {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: end;
}
.cat-rand--eroare { border-color: #9A3412; }
.cat-camp { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-camp label { font-size: 0.8rem; color: var(--ink-quiet); }
.cat-camp input, .cat-camp select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}
.cat-nume { grid-column: 1 / -1; }
.cat-bifa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9rem;
  cursor: pointer;
}
.cat-bifa input { width: 22px; height: 22px; margin: 0; }
.cat-scoate { grid-column: span 2; }
.cat-erori { grid-column: 1 / -1; }
.cat-rand:has(.cat-scoate input:checked) { opacity: 0.55; background: var(--surface); }

/* Câmpurile de dată și oră nu ies din ecran pe telefon. */
.field input[type="datetime-local"], .field input[type="date"], .field input[type="time"] { width: 100%; min-width: 0; max-width: 100%; }


/* Traseul probei (DEC-037): cifrele, desenele locale (fără hărți de la terți), alimentările */
.route-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.route-facts > div { background: var(--surface); border-radius: var(--radius); padding: 10px 12px; }
.route-facts__wide { grid-column: 1 / -1; }
.route-facts dt { margin: 0; font-size: 0.8rem; color: var(--ink-quiet); }
.route-facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.route-waves { margin: 0 0 16px; padding-left: 20px; }
.route-graphs { display: grid; gap: 16px; margin: 0 0 20px; }
.route-graphs figure { margin: 0; }
.route-graphs figcaption { margin-top: 6px; font-size: 0.85rem; color: var(--ink-quiet); }
.route-map svg { display: block; width: 100%; max-width: 320px; height: auto; background: var(--surface); border-radius: var(--radius); }
.route-profile svg { display: block; width: 100%; max-width: 560px; height: auto; }
.route-map__halo { fill: none; stroke: #FFFFFF; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.route-map__line { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.route-map__start { fill: var(--green); stroke: #fff; stroke-width: 2; }
.route-map__finish { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.route-profile__line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.route-profile__axis { stroke: var(--line-strong); stroke-width: 1; }
.route-profile text { font-size: 12px; fill: var(--ink-quiet); }
.route-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.route-dot--start { background: var(--green); }
.route-dot--finish { background: var(--orange); }
.route-aid td:first-child { width: 4.5em; }
.route-others a { display: inline-flex; align-items: center; min-height: 44px; }
.race-route-link { margin: 2px 0 0; }
.race-route-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (min-width: 640px) { .route-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) { .route-graphs { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } }

/* Traseele, lotul 2 (DEC-038): titlu cu culoare, semne, legendă, variante, pagina cu toate traseele */
.route-title { display: flex; align-items: center; gap: 12px; }
.route-title h1 { margin: 0; }
.route-title .hero-meta { margin: 4px 0 0; }
.route-title__band { flex: none; width: 12px; align-self: stretch; min-height: 40px; border-radius: 3px; }
.route-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.route-icon { flex: none; vertical-align: middle; }
.route-legend { list-style: none; margin: -8px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 0.85rem; color: var(--ink-quiet); }
.route-legend li { display: flex; align-items: center; gap: 6px; }
.route-legend .route-swatch { margin-right: 0; }
.route-map--image img, .route-profile--image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.route-profile__pin { stroke-width: 1; stroke-dasharray: 3 2; }
.route-profile__pin--aid { stroke: #C2410C; }
.route-profile__pin--cutoff { stroke: #5B3CC4; }
.route-profile text.route-profile__label { font-size: 10px; font-weight: 700; fill: var(--ink); }
.route-downloads { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.route-downloads .muted { margin: 0; }
.route-downloads__main { color: #FFFFFF; }
.route-downloads .button, .route-card .button { justify-content: center; text-align: center; }
/* Harta reală sub traseu (DEC-038, partea a doua): imagine păstrată la noi, traseul și semnele desenate deasupra */
.route-map__halo, .route-map__line { vector-effect: non-scaling-stroke; }
.route-map--real svg { max-width: 720px; background: #E9EEE4; }
.route-map--big svg { max-width: 1200px; }
.route-map__credit { font-size: 0.75rem; }
.route-map__credit a { color: inherit; }
.route-map__open { margin: 10px 0 0; }
.route-map__open .button { width: 100%; justify-content: center; }
@media (min-width: 720px) { .route-graphs.route-graphs--real { grid-template-columns: minmax(0, 1fr); } .route-map__open .button { width: auto; } }
.route-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.route-links .button { justify-content: center; }
.route-note { background: #FFF6E5; border-radius: var(--radius); padding: 12px; margin: 0 0 16px; }
.route-point { display: inline-flex; align-items: flex-start; gap: 8px; }
.route-points td:first-child { width: 3.5em; }
.route-card { margin: 0 0 32px; }
.route-card__title { margin: 0 0 8px; padding: 10px 14px; border-radius: var(--radius); color: #FFFFFF; font-size: 1.25rem; }
.route-card__facts { margin: 0 0 16px; color: var(--ink-quiet); font-weight: 600; }
.race-name .route-swatch { vertical-align: 1px; }
.category-race { margin: 16px 0 6px; font-size: 1rem; }
.category-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.category-list li { background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 0.88rem; }

/* „Contul meu” (Paul, 03.11.2026: variantele A, B și C împreună) */
.account-head h1 { margin: 0; }
.account-head .muted { margin: 4px 0 20px; }
.account-next { background: var(--navy); color: #FFFFFF; border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.account-next h2 { margin: 4px 0; color: #FFFFFF; font-size: 1.4rem; }
.account-next__eyebrow { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.account-next__meta { margin: 0 0 14px; color: var(--navy-text); }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.account-stats div { background: var(--navy-2); border-radius: 8px; padding: 10px 6px; text-align: center; }
.account-stats dt { font-size: 0.75rem; color: var(--navy-text); }
.account-stats dd { margin: 0; font-size: 1.4rem; font-weight: 800; order: -1; }
.account-stats div { display: flex; flex-direction: column; }
.account-stages { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 0.75rem; color: var(--navy-muted); }
.account-stages li { border-top: 5px solid var(--navy-line); padding-top: 6px; }
.account-stages li[aria-current] { border-top-color: var(--cyan); color: #FFFFFF; font-weight: 700; }
.account-next__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); font-weight: 700; }
.account-next__link:hover { color: #FFFFFF; }
.account-todo { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 24px; }
.account-todo h2 { margin: 0 0 6px; font-size: 1.1rem; }
.account-todo ul { list-style: none; margin: 0; padding: 0; }
.account-todo li + li { border-top: 1px solid var(--line); }
.account-todo a { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; color: var(--ink); text-decoration: none; }
.account-todo__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.account-todo__dot--urgent { background: var(--orange); }
.account-flow h2, .account-box h2 { font-size: 1.2rem; margin: 0 0 8px; }
.account-flow h3 { font-size: 0.95rem; color: var(--ink-quiet); margin: 16px 0 8px; }
.account-flow { margin: 0 0 24px; }
.account-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.account-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.account-link:hover { border-color: var(--ink); }
.account-link--main { background: var(--orange); border-color: var(--orange); }
.account-link--main:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.account-link__text { display: flex; flex-direction: column; padding: 8px 0; }
.account-link__for { font-size: 0.85rem; font-weight: 400; color: var(--ink-quiet); }
.account-next__following { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--navy-line); color: var(--navy-text); }
.account-next__following a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); font-weight: 700; }
.account-link__soon { font-size: 0.8rem; font-weight: 600; color: var(--ink-quiet); background: #EEF2F7; border-radius: 999px; padding: 2px 10px; }
.account-box { margin: 0 0 24px; }
.account-box--quiet { background: #F3F6FA; border-radius: var(--radius); padding: 16px; }
.logout { margin: 8px 0 0; }

/* „Organizează o cursă”: ce primește organizatorul */
.offer-grid { display: grid; gap: 12px; margin: 0 0 24px; }
.offer-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.offer-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.offer-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 720px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Taxa pe perioade (DEC-042) */
.fee-schedule { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; color: var(--ink-quiet); }
.fee-schedule li { display: flex; justify-content: space-between; gap: 12px; max-width: 360px; padding: 4px 8px; border-radius: 6px; }
.fee-schedule__now { background: #E6FAFF; color: var(--ink); }
.fee-schedule strong { white-space: nowrap; }
.race-main { flex: 1 1 auto; }
/* Pe telefon, „locuri libere” trece sub probă, ca taxele să aibă toată lățimea */
@media (max-width: 560px) {
  .race { flex-direction: column; gap: 8px; }
  .fee-schedule li { max-width: none; }
}

/* Înscrierea la start (DEC-041): numărul se vede mare, ca să-l scrie pe tricou fără greșeală */
.onsite-done { border: 2px solid var(--cyan); border-radius: var(--radius); padding: 16px; margin: 0 0 24px; }
.onsite-done__name { margin: 0; font-weight: 700; }
.onsite-done__label { margin: 12px 0 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.onsite-done__number { margin: 0; font-size: 4rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.onsite-done__problem { font-weight: 700; color: var(--orange); }

/* Numerele de concurs (DEC-041) */
.numbers-steps { margin: 0 0 24px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.numbers-table { width: 100%; border-collapse: collapse; margin: 12px 0 0; }
.numbers-table th, .numbers-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }

/* Plata cash la masa de kituri (DEC-043), lizibilă pe fondul închis al check-in-ului */
body.theme-dark .cash-box { background: var(--navy-2); color: #FFFFFF; border: 2px solid var(--orange); }
body.theme-dark .cash-box strong { color: #FFFFFF; }
.cash-box p { margin: 0 0 12px; }

/* Panoul pe concurs (DEC-044): bara cu zonele, concursul ales și filele, în culorile site-ului */
.panel-bar { background: var(--navy); color: #FFFFFF; padding: 12px max(16px, env(safe-area-inset-left, 0px)) 0; }
.panel-bar__row { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.panel-bar__brand { display: inline-flex; align-items: center; gap: 8px; color: #FFFFFF; text-decoration: none; font-weight: 800; }
.panel-bar__brand svg { width: 32px; height: 32px; }
.panel-areas { display: flex; gap: 4px; flex-wrap: wrap; }
.panel-areas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--navy-text); font-weight: 700; text-decoration: none; }
.panel-areas a:hover { color: #FFFFFF; }
.panel-areas a[aria-current] { background: var(--navy-2); color: var(--cyan); }
.panel-switch { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 0.85rem; color: var(--navy-text); }
.panel-switch select { min-height: 44px; max-width: 380px; border: 2px solid var(--cyan); border-radius: 8px; background: var(--navy); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 0.95rem; padding: 0 10px; }
.panel-bar__account { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy-text); font-weight: 600; }
.panel-tabs { max-width: 1200px; margin: 10px auto 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.panel-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 8px; font-size: 0.94rem; border-radius: 8px 8px 0 0; color: #FFFFFF; font-weight: 700; text-decoration: none; white-space: nowrap; }
.panel-tabs a:hover { background: var(--navy-2); }
.panel-tabs a[aria-current] { background: var(--surface); color: var(--ink); }
/* Umbra de la margine: mai sunt file în acea parte (panel.js) */
.panel-areas--more-start { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px); mask-image: linear-gradient(to right, transparent 0, #000 56px); }
.panel-areas--more-end { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 56px); mask-image: linear-gradient(to left, transparent 0, #000 56px); }
.panel-areas--more-start.panel-areas--more-end { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
.panel-tabs--more-start { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px); mask-image: linear-gradient(to right, transparent 0, #000 32px); }
.panel-tabs--more-end { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 32px); mask-image: linear-gradient(to left, transparent 0, #000 32px); }
.panel-tabs--more-start.panel-tabs--more-end { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); }
body.in-panel { background: var(--surface); }
body.in-panel .site-main { background: transparent; }
body.in-panel.theme-dark { background: var(--navy); }
body.in-panel.theme-dark .panel-tabs a[aria-current] { background: var(--navy); color: var(--cyan); border-bottom: 3px solid var(--cyan); }
/* Pe telefon (Paul, 06.11.2026): sigla și zonele pe primul rând, apoi concursul ales și „Contul meu”, apoi filele */
@media (max-width: 719px) {
  .panel-bar { padding-top: 8px; }
  .panel-bar__row { flex-wrap: wrap; gap: 6px 8px; }
  .panel-bar__brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .panel-areas { order: 1; flex: 1 1 calc(100% - 48px); min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .panel-areas a { flex: none; padding: 0 10px; }
  .panel-switch { order: 2; margin-left: 0; flex: 1 1 200px; min-width: 0; }
  .panel-bar__account { order: 3; display: inline-flex; margin-left: auto; font-size: 0.9rem; white-space: nowrap; }
  .panel-switch label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .panel-switch select { flex: 1; max-width: none; min-width: 0; width: 100%; text-overflow: ellipsis; }
  .panel-tabs { margin-top: 6px; }
}
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; }
.panel-head h1 { margin: 0; }
.panel-cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .panel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel-card__head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.panel-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.panel-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-quiet); }
.panel-facts dd { margin: 0; font-weight: 600; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Panoul nou, etapa 2 (DEC-044): Înscrieri, Comunicare, Documente */
.reg-filters { margin: 0 0 14px; }
.reg-count { display: inline-block; min-width: 1.6em; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 0.85em; text-align: center; }
.chip--on .reg-count { background: #FFFFFF; color: var(--navy); }
.reg-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 12px; }
.reg-search .field { flex: 1 1 240px; min-width: 0; }
.reg-search select, .reg-search input { max-width: 100%; width: 100%; }
.reg-search .button { min-height: 48px; }
.reg-total { margin: 0 0 10px; }
.reg-table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reg-table th { text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-quiet); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.reg-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg-table tr:last-child td { border-bottom: 0; }
.reg-table .reg-bib { font-weight: 800; font-variant-numeric: tabular-nums; }
.reg-name a { font-weight: 700; color: var(--ink); }
.reg-name .muted, .reg-error { display: block; font-size: 0.85rem; }
@media (max-width: 719px) {
  .reg-table, .reg-table tbody, .reg-table tr, .reg-table td { display: block; }
  .reg-table { border: 0; background: transparent; }
  .reg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reg-table tr { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
  .reg-table td { border: 0; padding: 2px 0; }
  .reg-table td::before { content: attr(data-label) ": "; color: var(--ink-quiet); font-size: 0.8rem; }
  .reg-table td.reg-bib, .reg-table td.reg-name { grid-row: span 1; }
  .reg-table td.reg-bib::before, .reg-table td.reg-name::before { content: none; }
  .reg-table td:not(.reg-bib):not(.reg-name) { grid-column: 1 / -1; }
}
.reg-pages { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.reg-title { display: flex; align-items: center; gap: 16px; margin: 0 0 8px; }
.reg-title h1 { margin: 0; }
.reg-title .lead { margin: 4px 0 0; }
.reg-bignum { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 72px; padding: 0 10px; border-radius: 12px; background: var(--navy); color: #FFFFFF; font-size: 1.8rem; font-weight: 800; border-bottom: 4px solid var(--cyan); }
.reg-actions { margin: 12px 0 18px; }
.reg-section { margin: 0 0 14px; }
.reg-section h2 { margin: 0; font-size: 1.1rem; }
.reg-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.reg-list .muted { display: block; font-size: 0.85rem; }
.button--danger { background: #9A3412; color: #FFFFFF; }
.button--danger:hover { background: #7C2D12; color: #FFFFFF; }
.doc-text summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.doc-text > div { padding: 8px 12px; border-left: 3px solid var(--line-strong); max-height: 320px; overflow: auto; }
.panel-card__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.panel-facts dd { overflow-wrap: anywhere; }
body.in-panel:not(.theme-dark) .notice { background: var(--bg); border: 1px solid var(--line); }
.panel-head + .help { margin: -6px 0 16px; }
.panel-card__head--row h2 { flex: 1 1 200px; }

/* Panoul nou, etapa 3 (DEC-044): zona „Organizația” */
.reg-list--plain { list-style: none; padding-left: 0; }
.invite-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.invite-row:last-child { border-bottom: 0; }
.invite-row .muted { display: block; font-size: 0.85rem; }
.danger-zone { margin-top: 28px; border-color: #F3C8B8; }
.journal-line { display: block; font-size: 0.9rem; overflow-wrap: anywhere; }
.org-pick { margin: 0; font-size: 1.15rem; }
.org-pick a { display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.panel-facts__wide { grid-column: 1 / -1; }
.panel-bar__account { margin-left: auto; }
.panel-switch ~ .panel-bar__account { margin-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Perioadele de taxă în formularul probei (din prima) */
.fee-rows { display: flex; flex-direction: column; gap: 12px; }
.fee-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; background: var(--bg); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fee-row__tag { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-quiet); }

/* Pagini simple centrate: „Pagina nu există” */
.closed-page { max-width: 560px; margin: 48px auto; text-align: center; }
.closed-page h1 { margin-bottom: 12px; }

/* Lista publică a înscrișilor */
.entries { margin: 24px 0; }
.entries h2 { margin-bottom: 10px; }

/* Acordurile din formular: textul care se deschide și PDF-ul pe același rând */
.doc-row { display: flex; align-items: flex-start; gap: 8px; }
.doc-row .doc-text { flex: 1 1 auto; min-width: 0; }
.doc-row__pdf { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 64px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.doc-row__only-pdf { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Pașii formularului de înscriere: numerotați de CSS, ca un pas ascuns (părintele, la adulți) să nu lase gol */
.form--steps { counter-reset: pas; }
.form--steps .form-section:not([hidden]) h2.step::before { counter-increment: pas; content: counter(pas) ". "; }

/* Pozele fotografului invitat (DEC-049) */
.photo-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-grid li { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; min-width: 0; }
.photo-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); background: var(--line); display: block; }
.photo-grid__name { overflow-wrap: anywhere; }

/* Ce face fiecare rol (Echipa → Invită, Schimbă rolul) */
.roles-help { margin: -6px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 0.9rem; color: var(--ink-quiet); }
.roles-help__title { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.roles-help ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* Câmpurile de fișier: destul de mari pentru deget, oriunde ar fi (Paul, 06.11.2026) */
input[type="file"] { min-height: 44px; max-width: 100%; padding: 8px; font: inherit; box-sizing: border-box; }

/* Mesajele către înscriși (R3): previzualizarea textului, cu rândurile păstrate. */
.email-preview {
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  margin: 0;
}

/* Punctajul pe echipe (Paul, 08.11.2026): tabla de scor pe pagina de rezultate și în panou. */
.team-board { margin: 0 0 28px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.team-board--provisional { border-style: dashed; border-color: var(--line-strong); }
.team-board h2 { margin: 0 0 8px; font-size: 1.1rem; }
.team-score { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--navy); color: #FFFFFF; }
.team-score__names { font-weight: 700; color: var(--navy-text); overflow-wrap: anywhere; }
.team-score__points { font-size: 2rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.team-score__points strong { color: var(--cyan); }
.team-board__meta { margin: 0 0 12px; font-size: 0.88rem; }
.team-table th[scope="row"] { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.team-table td { font-variant-numeric: tabular-nums; }
.team-table__total th, .team-table__total td { border-top: 2px solid var(--line-strong); }
.team-note { margin: 8px 0; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); font-size: 0.92rem; }
.team-board__races { margin: 18px 0 6px; font-size: 1rem; }
.team-race { border-bottom: 1px solid var(--line); }
.team-race summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.team-race__name { font-weight: 600; }
.team-race__score { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-quiet); }
.team-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.team-row__order { max-width: 110px; }
.points-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.points-grid .field { margin: 0; }
.team-assign { list-style: none; margin: 0 0 12px; padding: 0; }
.team-assign li { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.team-assign select { min-height: 44px; max-width: 360px; }
.team-max { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-quiet); }
.team-detail td:nth-child(2) { white-space: normal; }
.team-detail .team-points { text-align: right; font-variant-numeric: tabular-nums; }
.team-detail th:last-child { text-align: right; }
.team-group__races { color: var(--ink-quiet); font-size: 0.88rem; text-align: right; }
.team-group summary { flex-direction: column; align-items: flex-start; gap: 2px; }
.team-group summary .team-group__races { text-align: left; }

/* Publicarea: cei fără timp, împărțiți după kit (DEC-069) */
.missing-group h2 { font-size: 1.1rem; margin: 0 0 8px; }
.failed-clips { list-style: none; margin: 8px 0 0; padding: 0; }
.failed-clips li { padding: 10px 0; border-top: 1px solid rgba(92, 57, 0, 0.2); }
.failed-clips__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.notice--warn, body.in-panel:not(.theme-dark) .notice--warn { background: #FFF4D6; color: #5C3900; border-color: #E8C26B; }
.missing-list { margin: 0 0 12px; padding-left: 20px; }
.missing-list--actions { list-style: none; padding: 0; }
.missing-list--actions li { padding: 12px 0; border-top: 1px solid var(--line); }
.missing-list--actions li:first-child { border-top: 0; }
.missing-name { display: block; margin-bottom: 8px; }
.missing-name small { display: block; }
.missing-list--actions .button { min-height: 44px; }

/* Filmul de la sosire pe YouTube (DEC-070) */
.result-item .result-time { display: flex; flex-direction: column; align-items: flex-end; }
.result-film { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; justify-content: flex-end; font-size: 0.85rem; font-weight: 700; color: var(--green-dark); }
.film-player { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 12px 0; }
.film-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-player .button { min-height: 48px; }
.film-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.film-nav .button { min-height: 44px; }
.film-icon { margin-right: 8px; }

/* Previzualizarea paginii publice a unei ciorne, pentru echipă (QA 20) */
.preview-banner { background: #FFF4D6; color: #5C3900; border-bottom: 2px solid #E8C26B; padding: 12px 16px; text-align: center; font-size: 0.95rem; }
.preview-banner a { color: inherit; display: inline-block; min-height: 44px; line-height: 44px; margin-left: 8px; }

/* Anularea unei invitații se confirmă (QA 38) */
.invite-cancel summary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.invite-cancel summary::-webkit-details-marker { display: none; }
.invite-cancel .help { margin: 4px 0 8px; }
