/* ─────────────────────────────────────────────────────────────────────────
   Football Intelligence — UEFA Nations League hub (#nations-league)

   Mobile-first. Everything below works at 360px with a 16px page gutter and
   no horizontal scroll: the group tables are a 6-column grid whose only
   flexible column is the team name, and the fixture card is a
   1fr / auto / 1fr grid with minmax(0, …) on both name columns so they
   ellipse instead of pushing the row wide.

   Tokens only (static/css/design-system.css): --accent, --surface-1..3,
   --border, --text-primary/secondary/tertiary, --radius-*, --warn,
   --system-red. Single accent — no second brand colour is introduced.

   DENSITY NOTE (2026-09-25 owner review): the previous pass explained itself
   instead of showing the football — per-tier rule lists, a sentence of zone
   label on every legend row, four verbose knockout cards, and a two-line
   apology under 86 of 96 fixture cards. The rewrite pushes all of that into
   `title` attributes and leans on chips, tints and a hero. If a style below
   makes text bigger, it needs a reason.

   Companion module: static/js/pages/nations-league.js
   ───────────────────────────────────────────────────────────────────────── */

.nlh-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

/* The UA sheet's `[hidden] { display: none }` is a plain type-less rule, so
   ANY author `display` here outranks it — `.nlh-section { display: flex }` and
   `.nlh-model { display: block }` both would. One scoped rule makes the
   attribute authoritative for everything on this page, present and future,
   instead of chasing it per component. */
.nlh-page [hidden],
.nlh-page[hidden] { display: none !important; }


/* ── Hero: the next match, or whatever is in play ───────────────────────── */
/* Imagery is API-sourced only. For a national-team fixture the endpoints we
   own return exactly two kinds of image — the competition badge and the two
   apifootball crests — so the badge doubles as the backdrop wash. No local
   file, no gradient pretending to be a photograph. */

.nlh-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 150% at 12% -30%, var(--accent-soft) 0%, transparent 62%),
    var(--surface-1);
}

.nlh-hero__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nlh-hero__wash-img {
  position: absolute;
  top: 50%;
  right: -14%;
  width: 62%;
  max-width: 320px;
  transform: translateY(-50%);
  opacity: 0.07;
  filter: grayscale(1) contrast(0.9);
  object-fit: contain;
}

.nlh-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 18px;
}

.nlh-hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}
.nlh-hero__badge { display: inline-flex; flex: 0 0 auto; }
.nlh-hero__badge:empty { display: none; }
.nlh-hero__badge-img { height: 26px; width: auto; object-fit: contain; display: block; }

.nlh-hero__comp {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.nlh-hero__ctx {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.nlh-hero__ctx:empty { display: none; }
.nlh-hero__ctx::before { content: "· "; }

.nlh-hero__body { min-width: 0; }
.nlh-hero__none { margin: 0; font-size: 0.85rem; color: var(--text-tertiary); }

.nlh-hmatch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
}

.nlh-hmatch__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}
.nlh-hmatch__name {
  min-width: 0;
  max-width: 100%;
  font-size: clamp(0.92rem, 3.6vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.nlh-crest--hero {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}
span.nlh-crest--hero {
  font-size: 0.88rem;
  border-radius: 50%;
}

.nlh-hmatch__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  min-width: 72px;
}
.nlh-hmatch__when {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
}
.nlh-hmatch__vs {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-tertiary);
  line-height: 1;
}
.nlh-hmatch__cd {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.nlh-hmatch__cd:empty { display: none; }

.nlh-hmatch__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill, 999px);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.nlh-hmatch__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: nlh-pulse 1.6s ease-in-out infinite;
}
.nlh-hmatch__score {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 1.3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.1;
}

@keyframes nlh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* An in-play hero earns a visual difference of its own, not another label. */
.nlh-hmatch--live .nlh-hmatch__mid {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.nlh-hmatch__model {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider, var(--border));
}

/* One short line, above every piece of prediction content on the page. */
.nlh-ymyl {
  margin: -8px 0 0;
  padding: 0 2px;
  line-height: var(--leading-normal, 1.45);
}


/* ── Sections ──────────────────────────────────────────────────────────── */

.nlh-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nlh-section--strip { gap: 8px; }

.nlh-section__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
}

.nlh-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nlh-section__title--sm { font-size: 0.82rem; }
.nlh-section__title::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
}
.nlh-section__aside { min-width: 0; }
.nlh-section__aside:empty { display: none; }

.nlh-note   { margin: 0; line-height: var(--leading-normal, 1.45); }
.nlh-empty  { margin: 0; padding: 14px 2px; }

.nlh-note--warn {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--warn, #ffb800);
  background: var(--warn-tint, rgba(255, 184, 0, 0.14));
  color: var(--text-secondary);
}

.nlh-skel {
  height: 120px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 200% 100%;
  animation: nlh-shimmer 1.3s ease-in-out infinite;
}
@keyframes nlh-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .nlh-skel { animation: none; }
  .nlh-hmatch__live::before { animation: none; }
}


/* ── Standings: League A/B/C/D blocks, each holding its own groups ─────── */

.nlh-leagues {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nlh-league { display: flex; flex-direction: column; gap: 10px; }

.nlh-league__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--divider, var(--border));
}
.nlh-league__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

/* The zone key, once per tier. Each chip carries the full 2026/27 rule in a
   title attribute — the rule is never printed into the page. */
.nlh-key {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
}
.nlh-key__item {
  padding: 1px 7px;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid var(--border);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  cursor: help;
  white-space: nowrap;
}
.nlh-key__item--up   { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.nlh-key__item--po   { border-color: var(--warn, #ffb800); color: var(--warn, #ffb800); }
.nlh-key__item--risk { border-color: var(--system-red, #ff2f54); color: var(--system-red, #ff2f54); }

/* League D has 2 groups of 3, League C has 4 groups plus a ranking table —
   auto-fill handles every tier without a fixed 4x4 assumption. */
.nlh-league__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.nlh-table {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.nlh-table--meta { border-style: dashed; }

.nlh-table__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.nlh-table__label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nlh-table__cols {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.nlh-table__cols span { width: 26px; text-align: center; }

.nlh-table__list { list-style: none; margin: 0; padding: 4px 0; }

/* 20 + 18 + 1fr + 26*3 + gaps(5*6=30) = 146px of fixed width — at 360px
   viewport minus 32px gutters that leaves ~182px for the country name. */
.nlh-row {
  display: grid;
  grid-template-columns: 20px 18px minmax(0, 1fr) 26px 26px 26px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
}
.nlh-row[title] { cursor: help; }
.nlh-row__pos {
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.nlh-row__name {
  min-width: 0;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nlh-row__num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
.nlh-row__pts { font-weight: 700; color: var(--text-primary); }

/* Zone tint, derived from tier + position (never from the provider string). */
.nlh-row--up { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.nlh-row--po { background: var(--warn-tint, rgba(255, 184, 0, 0.14)); box-shadow: inset 2px 0 0 var(--warn, #ffb800); }
/* League A third and fourth: the cross-group ranking decides, so the outcome
   is genuinely undecided. Deliberately not a flat relegation red — in 2026/27
   no position anywhere in the competition is a straight relegation. */
.nlh-row--risk {
  background: rgba(255, 47, 84, 0.07);
  box-shadow: inset 2px 0 0 var(--system-red, #ff2f54);
}


/* ── Crests ────────────────────────────────────────────────────────────── */

.nlh-crest { object-fit: contain; flex: 0 0 auto; border-radius: 2px; }
.nlh-crest--ph {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-tertiary);
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1;
}


/* ── Recent results strip (top of Fixtures — not a destination) ─────────── */

.nlh-results {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}

.nlh-res {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 120ms ease-out, background 120ms ease-out;
}
.nlh-res:hover,
.nlh-res:focus-visible { border-color: var(--accent); background: var(--surface-2); }

.nlh-res__side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.76rem;
  color: var(--text-secondary);
}
.nlh-res__side--away { justify-content: flex-end; }
.nlh-res__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nlh-res__side--away .nlh-res__name { text-align: right; }
.nlh-res__score {
  padding: 0 4px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-primary);
}


/* ── Fixtures ──────────────────────────────────────────────────────────── */

.nlh-fixtures { display: flex; flex-direction: column; gap: 16px; }

.nlh-fxday { display: flex; flex-direction: column; gap: 6px; }
.nlh-fxday__date {
  padding: 0 2px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.nlh-fxcard {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.nlh-fx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
  transition: background 120ms ease-out;
}
.nlh-fx:hover,
.nlh-fx:focus-visible { background: var(--surface-2); }

.nlh-fx__team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
}
.nlh-fx__team--away { justify-content: flex-end; }
.nlh-fx__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nlh-fx__team--away .nlh-fx__name { text-align: right; }

.nlh-fx__mid {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 56px;
  white-space: nowrap;
}
.nlh-fx__time {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
/* The tier sits in the middle column instead of a chip row of its own: the
   day heading already carries the date, so one 8px label is the whole of the
   metadata a fixture card needs. */
.nlh-fx__tier {
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.nlh-fx__live {
  padding: 2px 7px;
  border-radius: var(--radius-pill, 999px);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}


/* ── Model read (probabilities + expected goals only — YMYL) ───────────── */
/* Rendered ONLY for a fixture the model holds ratings for on both sides. An
   unrated fixture has no .nlh-model content at all — no bar, no badge, no
   apology — so there is deliberately no "baseline" variant styled here. */

.nlh-model {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--divider, var(--border));
  background: var(--surface-2);
}

.nlh-mbar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface-3);
}
.nlh-mbar__seg { display: block; height: 100%; }
.nlh-mbar__seg--h { background: var(--accent); }
.nlh-mbar__seg--d { background: var(--accent-muted, #0fa57b); opacity: 0.55; }
.nlh-mbar__seg--a { background: var(--text-tertiary); }

.nlh-mlegend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}
.nlh-mlegend__h { color: var(--accent); }
.nlh-mlegend__d { color: var(--text-secondary); }
.nlh-mlegend__a { color: var(--text-tertiary); }

.nlh-mmeta {
  margin-top: 5px;
  font-size: 0.66rem;
  letter-spacing: 0.01em;
  color: var(--text-tertiary);
}

.nlh-hmatch__model .nlh-mbar { height: 8px; border-radius: 4px; }
.nlh-hmatch__model .nlh-mlegend { font-size: 0.74rem; }
.nlh-hmatch__model .nlh-mmeta { font-size: 0.7rem; }


/* ── Footer: the guides live here, as plain text ────────────────────────── */

.nlh-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--divider, var(--border));
}
.nlh-foot p { margin: 0; line-height: var(--leading-normal, 1.45); }
.nlh-foot a { color: var(--text-secondary); }
.nlh-foot a:hover { color: var(--accent); }

.nlh-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.74rem;
}
.nlh-foot__links a { text-decoration: underline; text-underline-offset: 2px; }


/* ── "Show more fixtures" fold ─────────────────────────────────────────── */

.nlh-fxmore {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nlh-more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 20px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius-pill, 999px);
  background: var(--surface-2);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease-out, color 120ms ease-out;
}
.nlh-more:hover,
.nlh-more:focus-visible { border-color: var(--accent); color: var(--accent); }


/* ── Sub-tabs: Groups | Bracket | Fixtures ─────────────────────────────── */
/* Same shape as .pf-tabs / .td-tabs (anchor tabs in a scrollable strip), with
   the touch-target and focus-ring minimums this page is held to. */

.nlh-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--divider, var(--border));
}
.nlh-tabs::-webkit-scrollbar { display: none; }

.nlh-tabs__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 120ms ease-out;
}
.nlh-tabs__btn::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: background 120ms ease-out;
}
.nlh-tabs__btn:hover { color: var(--text-secondary); }
.nlh-tabs__btn--active { color: var(--text-primary); }
.nlh-tabs__btn--active::after { background: var(--accent); }

/* Visible focus on every interactive element this page owns. */
.nlh-tabs__btn:focus-visible,
.nlh-more:focus-visible,
.nlh-panel:focus-visible,
.nlh-res:focus-visible,
.nlh-fx:focus-visible,
.nlh-hmatch:focus-visible,
.nlh-foot a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.nlh-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.nlh-panel:focus { outline: none; }


/* ── Bracket: eight compact slots + four steps ──────────────────────────── */
/* Deliberately NO connector lines. A connector is a claim about a pairing,
   and the quarter-final draw is drawn, not derivable. A provisional occupant
   is marked by the dashed rail and a title, never by a sentence per card. */

.nlh-slots {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nlh-slot {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  min-width: 0;
}
/* A provisional occupant must never read as a qualifier. */
.nlh-slot--prov {
  border-left-style: dashed;
  border-left-color: var(--warn, #ffb800);
  cursor: help;
}

.nlh-slot__seed {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nlh-slot__team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.nlh-slot__name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nlh-slot__name--open { font-weight: 500; color: var(--text-tertiary); }
.nlh-slot__pts {
  flex: 0 0 auto;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* The onward structure as a tight progression, not four essays. Every step's
   format and qualification rule lives in its title attribute. */
.nlh-path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nlh-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px 10px 30px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 0;
  cursor: help;
}
.nlh-step__n {
  position: absolute;
  left: 8px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}
.nlh-step__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nlh-step__window {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.66rem;
  color: var(--accent);
  white-space: nowrap;
}
.nlh-step__ties {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}


/* ── Wider viewports ───────────────────────────────────────────────────── */

@media (min-width: 560px) {
  .nlh-league__grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .nlh-results      { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .nlh-slots        { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nlh-path         { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nlh-hero__inner  { padding: 22px 22px 24px; }
  .nlh-hmatch__mid  { min-width: 110px; }
}

@media (min-width: 880px) {
  .nlh-hero__inner { padding: 28px 28px 30px; }
  .nlh-crest--hero { width: 64px; height: 64px; }
  .nlh-hero__wash-img { width: 46%; opacity: 0.09; }
}
