/* ════════════════════════════════════════════════════════════════════════════
   SCHEDULE PAGE
   Page-specific styles for the match schedule / Spielplan page.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Two-column layout ── */
.spielplan-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto 1fr;
  gap: 16px;
  align-items: start;
}

/* Season filter: left column, top row */
.spielplan-layout__filter {
  grid-column: 1;
  grid-row: 1;
}

/* Schedule: left column, second row */
.spielplan-layout__left {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

/* Table: right column, spans both rows */
.spielplan-layout__right {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 64px;
  min-width: 0;
}

/* No standings data — schedule expands to full width */
.spielplan-layout--no-table {
  grid-template-columns: 1fr;
}

.spielplan-layout--no-table .spielplan-layout__filter,
.spielplan-layout--no-table .spielplan-layout__left {
  grid-column: 1;
}

.spielplan-layout--no-table .spielplan-layout__right {
  display: none;
}

@media (max-width: 900px) {
  .spielplan-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Mobile order: table first, season filter second, schedule last */
  .spielplan-layout__right {
    position: static;
    order: -1;
    width: -webkit-fill-available;
  }

  .spielplan-layout__filter {
    order: -2;
  }

  .spielplan-layout__left {
    order: 1;
  }
}

/* ── Table sidebar header ── */
.table-card__sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.table-card__sidebar-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ── Table maximize button ── */
.table-maximize-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.14s,
    color 0.14s,
    border-color 0.14s;
}

.table-maximize-btn:hover {
  background: var(--ink-faint);
  color: var(--ink);
}

@media (max-width: 900px) {
  .table-maximize-btn {
    display: none;
  }
}

/* ── Table popover ── */
.schedule-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.schedule-backdrop.is-visible {
  display: block;
}

.table-popover {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 999;
  width: min(900px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  background: var(--card);
  border-radius: var(--r);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  flex-direction: column;
  opacity: 0;
  transition:
    opacity 0.18s,
    transform 0.18s;
}

.table-popover.is-open {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.table-popover__inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: inherit;
}

.table-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.table-popover__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.table-popover__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.14s,
    color 0.14s;
}

.table-popover__close:hover {
  background: var(--ink-faint);
  color: var(--ink);
}

.table-popover .table-scroll-wrap {
  overflow-y: auto;
  overflow-x: auto;
  flex: 1;
}

.table-popover .table-legend {
  flex-shrink: 0;
}

/* ── Compact sidebar standings table ──
   Only active on desktop (≥901px) where the table lives in the 340px sidebar.
   On mobile the class has no effect — the global viewport breakpoints handle
   column visibility identically to the homepage. */
@media (min-width: 901px) {
  .table-card--sidebar .st-points,
  .table-card--sidebar .st-games,
  .table-card--sidebar .st-win,
  .table-card--sidebar .st-loss,
  .table-card--sidebar .st-gd {
    display: table-cell !important;
  }

  /* The sidebar is a fixed ~340px column no matter how wide the viewport
     gets, so the fluid-table thresholds that reveal T+/T- (st-gf/st-ga)
     at ≥500/768px real viewport don't apply here — there's never enough
     room for them alongside Sp/S/L/±/Pkt without clipping Pkt off the
     right edge. Keep them hidden in the sidebar; ± already covers the
     goal-difference story compactly. */
  .table-card--sidebar .st-gf,
  .table-card--sidebar .st-ga,
  .table-card--sidebar .st-ot,
  .table-card--sidebar .st-gpg {
    display: none !important;
  }

  .table-card--sidebar .st-team-long {
    display: none;
  }

  .table-card--sidebar .st-team-short {
    display: inline;
  }

  .table-card--sidebar .league-table th,
  .table-card--sidebar .league-table td {
    padding: 9px 8px;
  }

  .table-card--sidebar .st-logo {
    padding: 6px 4px 6px 10px !important;
  }

  .table-card--sidebar .st-team-logo {
    width: 22px;
    height: 22px;
  }

  .table-card--sidebar .table-legend {
    flex-direction: column;
    gap: 5px;
    padding: 10px 14px;
  }
}

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

.section-header__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.section-header__line {
  height: 1px;
  flex: 1;
  background: var(--border);
}

/* ── Season filter ── */
.season-filter {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  flex-wrap: wrap;
}

.season-filter__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  flex-shrink: 0;
}

.season-filter__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.season-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.season-pill:hover {
  color: var(--ink);
  background: var(--ink-faint);
}

.season-pill.is-active {
  color: var(--ink);
  border-color: rgba(240, 180, 41, 0.85);
  background: rgba(240, 180, 41, 0.15);
}

/* ── Schedule card ── */
.schedule-card {
  overflow: hidden;
  padding: 0;
  gap: 0;
}

.schedule-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.schedule-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.schedule-card__meta {
  font-size: 0.72rem;
  color: var(--ink-dim);
}

/* ── Phase groups ── */
.phase-group {
  position: relative;
}

.phase-group + .phase-group {
  border-top: 1px solid var(--border);
}

.phase-group__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0;
}

.phase-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  cursor: pointer;
}

.phase-group__header-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.phase-group__badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}

.phase-group__count {
  font-size: 0.68rem;
  color: var(--ink-dim);
  font-weight: 500;
}

.phase-group__chevron {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a8a8a8;
  transition:
    transform 0.16s,
    color 0.16s;
  flex-shrink: 0;
}

.phase-group__header:hover .phase-group__chevron {
  color: var(--ink);
}

.phase-group.is-collapsed .phase-group__chevron {
  transform: rotate(180deg);
}

.phase-group__body[hidden] {
  display: none;
}

/* Phase colour variants */
.phase--vorbereitung .phase-group__bar {
  background: var(--gold);
}

.phase--vorbereitung .phase-group__badge {
  background: var(--phase-pre-bg);
  color: var(--phase-pre);
}

.phase--meisterschaft .phase-group__bar {
  background: var(--navy);
}

.phase--meisterschaft .phase-group__badge {
  background: var(--phase-ms-bg);
  color: var(--phase-ms);
}

.phase--preplayoffs .phase-group__bar {
  background: #1a3a6b;
}

.phase--preplayoffs .phase-group__badge {
  background: var(--phase-pp-bg);
  color: var(--phase-pp);
}

.phase--playoffs .phase-group__bar {
  background: var(--green);
}

.phase--playoffs .phase-group__badge {
  background: var(--phase-pl-bg);
  color: var(--phase-pl);
}

/* ── Schedule table ── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar {
  display: none;
}

table.sched {
  width: 100%;
  min-width: 650px;
  table-layout: fixed;
  border-collapse: collapse;
}

table.sched th:nth-child(1),
table.sched td:nth-child(1) {
  width: 120px;
}

table.sched th:nth-child(2),
table.sched td:nth-child(2) {
  width: -webkit-fit-content;
}

table.sched th:nth-child(3),
table.sched td:nth-child(3) {
  width: 100px;
}

table.sched th:nth-child(4),
table.sched td:nth-child(4) {
  width: 140px;
}

table.sched th:nth-child(5),
table.sched td:nth-child(5) {
  width: -webkit-fill-available;
}

table.sched th {
  padding: 9px 14px;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(21, 21, 21, 0.025);
  border-bottom: 1px solid var(--border);
}

table.sched th:nth-child(3),
table.sched th:nth-child(4) {
  text-align: center;
}

table.sched td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.sched tr:last-child td {
  border-bottom: none;
}

table.sched tbody tr {
  transition: background 0.12s;
}

table.sched tbody tr:hover {
  background: rgba(21, 21, 21, 0.025);
}

table.sched td:first-child,
table.sched th:first-child {
  padding-left: 20px;
}

@media (max-width: 640px) {
  table.sched td:first-child,
  table.sched th:first-child {
    padding-left: 0px;
  }
  /*
  .td-actions {
    padding-top: 20px;
  } */
}

/* ── Date column ── */
.td-date {
  white-space: nowrap;
  min-width: 110px;
}

.date-day {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.date-time {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: block;
  margin-top: 2px;
}

/* ── Matchup column ── */
.td-matchup {
  min-width: 200px;
}

.game-promo-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  margin-left: -8px;
}

@media (max-width: 640px) {
  .game-promo-label {
    margin-left: 0;
  }
}

.matchup-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 500;
}

.team-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
  border: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}

.team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
}

.team-name--home {
  font-weight: 700;
}

.vs-sep {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 29px;
}

/* ── Score column ── */
.td-score {
  text-align: center;
  white-space: nowrap;
  min-width: 80px;
}

.score-val {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  vertical-align: middle;
}

.score-pending {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-dim);
}

/* ── Result badge ── */
.result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  margin-left: 6px;
  vertical-align: middle;
}

.result--w {
  background: rgba(26, 107, 58, 0.12);
  color: var(--green);
}

.result--d {
  background: rgba(240, 180, 41, 0.14);
  color: #8a6500;
}

.result--l {
  background: rgba(180, 30, 30, 0.09);
  color: #b01a1a;
}

/* ── Venue column ── */
.td-venue {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: normal;
  min-width: 120px;
}

/* ── Actions column ── */
.td-actions {
  min-width: 280px;
}

.actions-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.act-btn {
  align-items: center;
  display: flex;
  height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--border);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.14s,
    color 0.14s,
    border-color 0.14s;
}

.act-btn:hover {
  background: var(--ink-faint);
  color: var(--ink);
}

.act-btn--tickets {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.act-btn--tickets:hover {
  background: #e0a820;
  border-color: #e0a820;
}

.act-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  flex-shrink: 0;
  transition:
    background 0.14s,
    color 0.14s,
    border-color 0.14s;
}

.act-icon svg {
  width: 15px;
  height: 15px;
}

.act-icon:hover {
  background: var(--ink-faint);
  color: var(--ink);
}

/* ══════════════════════════════════════
   RESPONSIVE - SCHEDULE
   ══════════════════════════════════════ */
@media (max-width: 640px) {
  .season-filter {
    padding: 10px 14px;
  }

  .schedule-card__head {
    padding: 12px 14px;
  }

  .phase-group__header {
    padding: 8px 14px 8px 16px;
  }

  table.sched {
    min-width: 0;
  }

  table.sched thead {
    display: none;
  }

  table.sched tbody {
    display: flex;
    flex-direction: column;
  }

  table.sched tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 14px;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  table.sched tr:last-child {
    border-bottom: none;
  }

  table.sched td {
    padding: 0;
    border: none;
    width: 100%;
  }

  .td-date {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .date-day {
    font-size: 0.9rem;
    font-weight: 700;
    display: inline;
  }

  .date-time {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-dim);
    display: inline;
    margin-top: 0;
  }

  .td-venue {
    order: 2;
    font-size: 0.76rem;
    color: var(--ink-soft);
    text-align: center;
  }

  .td-matchup {
    order: 3;
  }

  .td-score {
    display: none;
  }

  .td-actions {
    order: 4;
  }

  .matchup-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    grid-auto-flow: column;
  }

  .matchup-wrap .team-line:first-child {
    justify-content: flex-end;
    text-align: center;
  }

  .matchup-wrap .team-line:last-child {
    justify-content: flex-end;
    text-align: center;
    flex-direction: row-reverse;
  }

  .vs-sep {
    display: none;
  }

  .team-line {
    font-size: 0.82rem;
  }

  .matchup-wrap::after {
    grid-column: 2;
    content: attr(data-score);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-align: center;
    white-space: nowrap;
  }

  .actions-wrap {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    display: flex;
    padding-top: 10px;
  }
}

/* ── Playoff round sub-group header ── */
.playoff-round-header-row td {
  padding: 9px 20px;
  background: rgba(21, 21, 21, 0.04);
  border-bottom: 1px solid var(--border);
  border-top: 2px solid var(--border);
  vertical-align: middle;
}

.playoff-round-header-row:first-child td {
  border-top: none;
}

.playoff-round__title {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ── Series score badge ── */
.series-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 10px;
}

.series-badge--win {
  background: rgba(26, 107, 58, 0.12);
  color: var(--green);
}

.series-badge--loss {
  background: rgba(180, 30, 30, 0.09);
  color: #b01a1a;
}

.series-badge--neutral {
  background: rgba(21, 21, 21, 0.07);
  color: var(--ink-dim);
}

@media (max-width: 640px) {
  .playoff-round-header-row {
    display: table-row;
  }

  .playoff-round-header-row td {
    display: table-cell;
    padding: 7px 14px;
    width: 100%;
  }
}

/* ══════════════════════════════════════
   LEAGUE TABLE (shared with home)
   ══════════════════════════════════════ */
.table-card {
  overflow: hidden;
  padding: 0;
}

.table-scroll-wrap {
  overflow-x: auto;
  scrollbar-width: none;
}

.table-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.table-fade {
  position: relative;
}

.league-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 280px;
}

.league-table th {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.league-table th:first-child,
.league-table th.st-logo-th,
.league-table th.st-team-th {
  text-align: left;
}

.league-table td {
  padding: 12px 16px;
  font-size: 0.82rem;
  text-align: center;
  border-bottom: 1px solid #f5f5f5;
}

.st-rank {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink-dim);
  text-align: center !important;
  width: 32px;
  position: relative;
}

.rank-home-playoff .st-rank {
  box-shadow: inset 3px 0 0 #1a6b3a;
}

.rank-away-playoff .st-rank {
  box-shadow: inset 3px 0 0 #2563eb;
}

.rank-pre-playoff .st-rank {
  box-shadow: inset 3px 0 0 #f0b429;
}

.st-logo {
  width: 36px;
  padding: 8px 4px 8px 16px !important;
}

.st-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.st-team {
  text-align: left !important;
  font-weight: 600;
}

.st-team-long {
  display: inline;
}

.st-team-short {
  display: none;
  font-size: 0.78rem;
}

.league-table tr.is-us,
.league-table tr.is-allied {
  background: rgba(15, 30, 60, 0.04);
}

.league-table tr.is-us td,
.league-table tr.is-allied td {
  font-weight: 700;
}

.league-table tr.is-us .st-team,
.league-table tr.is-allied .st-team {
  color: var(--navy);
}

.st-points {
  font-weight: 800;
  color: var(--ink);
}

.league-table tr.is-us .st-points,
.league-table tr.is-allied .st-points {
  font-weight: 800;
}

.st-gd-value {
  font-weight: 400;
}

.league-table tr.is-us .st-gd,
.league-table tr.is-us .st-gd-value,
.league-table tr.is-allied .st-gd,
.league-table tr.is-allied .st-gd-value {
  font-weight: 700;
}

/* Responsive column visibility */
.st-points,
.st-games,
.st-win,
.st-loss,
.st-gd,
.st-gf,
.st-ga,
.st-ot,
.st-gpg {
  display: none;
}

@media (min-width: 320px) {
  .st-points {
    display: table-cell;
  }
}

@media (min-width: 340px) {
  .st-games {
    display: table-cell;
  }
}

@media (min-width: 360px) {
  .st-win,
  .st-loss {
    display: table-cell;
  }
}

@media (min-width: 375px) {
  .st-gd {
    display: table-cell;
  }
}

/* Switch to abbreviated names below 768px to free room for more stat columns */
@media (max-width: 768px) {
  .st-team-long {
    display: none;
  }

  .st-team-short {
    display: inline;
  }
}

/* T+/T- appear earlier on mobile now that short names give back the column space */
@media (min-width: 500px) {
  .st-gf,
  .st-ga {
    display: table-cell;
  }
}

@media (min-width: 768px) {
  .st-gf,
  .st-ga {
    display: table-cell;
  }
}

@media (min-width: 992px) {
  .st-ot {
    display: table-cell;
  }
}

@media (min-width: 1200px) {
  .st-gpg {
    display: table-cell;
  }
}

@media (max-width: 430px) {
  .league-table th,
  .league-table td {
    padding: 10px 8px;
    font-size: 0.74rem;
  }

  .st-logo {
    padding: 8px 4px 8px 8px !important;
  }

  .st-team-logo {
    width: 22px;
    height: 22px;
  }
}

/* ── Panels ── */
.table-panel--hidden {
  display: none;
}

/* ── Qualification legend ── */
.table-legend {
  display: flex;
  gap: 20px;
  padding: 12px 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .table-legend {
    flex-direction: column;
    gap: 5px;
    padding: 12px 16px;
  }
}

.table-legend__item {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-legend__item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.table-legend__item--green::before {
  background: #1a6b3a;
}
.table-legend__item--blue::before {
  background: #2563eb;
}
.table-legend__item--amber::before {
  background: #f0b429;
}
