/* База: скидання, типографіка, фокус, іконки. Кольори й шрифти — лише з токенів (01-tokens.css). */

* { box-sizing: border-box; }

/* Прокрутка має залишатися помітною і для таблиць, і для навігації. */
html { scrollbar-color: var(--muted) var(--ground); scrollbar-width: auto; }
@media (forced-colors: active) { html { scrollbar-color: auto; } }

/* Класи на кшталт .form-row { display: flex } перебивають браузерне
   [hidden] { display: none }, тому приховане лишалося видимим. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 14px/1.5 var(--ui); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }

/* Стани не перемикаються миттєво — коротка плавність робить інтерфейс відчутним */
a, button, .btn, .seg a, .team-head, tbody tr, .teams-box label, .link-btn, input, select {
  transition: background-color .16s ease, color .16s ease,
              border-color .16s ease, opacity .16s ease;
}
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Мікропідпис: усе службове набирається однаково — дрібно, врозрядку, тихо */
th, .panel-head .sub, .managers-bar .sub, .field label,
.form-row > label, .teams-picker-head > label {
  font-size: var(--micro-size); letter-spacing: var(--micro-track); text-transform: uppercase;
  font-weight: 600; color: var(--micro-color);
}

/* Усе числове — моноширинним, щоб колонки читалися як показники приладу */
.mono, .dur, td.num, .team-head .level-time, .rank {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- іконки */
.ico {
  width: 15px; height: 15px; flex: none;
  vertical-align: -2px; stroke-width: 2;
}
.ico-award { width: 17px; height: 17px; }
.banner .ico { vertical-align: -3px; margin-right: 4px; }
.btn .ico, button .ico { width: 14px; height: 14px; }
