/* Application components, built on the Statswish design system tokens.
 * Requires statswish.css to be loaded first. */

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

/* ---- Shell + chrome --------------------------------------------------- */

.shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  background: var(--shell);
  border-left: 1px solid var(--edge);
  border-right: 1px solid var(--edge);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--bd);
  background: var(--shell);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  flex: none;
  padding: 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--ink);
}

.brand:hover { color: var(--ink) }

.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}

.brand-word {
  font-size: 21px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ghost-btn {
  border: 1px solid var(--bd2);
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  border-radius: 3px;
  flex: none;
}

.ghost-btn:hover { color: var(--ink); border-color: var(--or) }

.site-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  min-width: 0;
  height: 40px;
  border-top: 1px solid var(--line);
  padding: 0 10px;
}

.nav-item {
  padding: 0 13px;
  height: 100%;
  flex: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--k);
  border-bottom: 2px solid transparent;
}

.nav-item:hover { color: var(--ink2) }
.nav-item.active { color: var(--ink); border-bottom-color: var(--or) }

/* ---- Slate bar (date / stage / live count) ---------------------------- */

.slate-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--bd);
  background: var(--bar);
  flex-wrap: wrap;
}

.slate-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
}

.slate-date {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.chip {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--bd2);
  border-radius: 3px;
  padding: 4px 8px;
}

.chip.playoffs { color: var(--or3); border-color: var(--orline) }

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orwash);
  border: 1px solid var(--orline);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10.5px;
  color: var(--or3);
  letter-spacing: .08em;
}

#slate-stage-chip[hidden],
#slate-live-chip[hidden] { display: none }

/* ---- Status dot ------------------------------------------------------- */

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  display: block;
  background: var(--off);
}

.dot.live { background: var(--or); animation: hwp 1.4s infinite }
.dot.sched { background: var(--faint) }
.dot.lg { width: 6px; height: 6px }

/* ---- Game list -------------------------------------------------------- */

.game-list {
  /* Tracks: status | away | at | home | A | H | venue | chevron.
     Away/at/home are real tracks rather than a nested grid so their widths are
     shared across every row; nested, each row would size them to its own names
     and "at" would zigzag. Away is content-sized so it fits the longest name
     and both names are left-aligned in their track; home takes the slack, so
     the pair sits hard against the left of the matchup area.
     Venue is content-sized. First and last tracks carry the row's 18px inset
     (see edge-cell padding below): 122px = 18 + 104, 38px = 20 + 18.
     One grid owns the tracks for the whole list and rows opt in via subgrid, so
     every `auto` column is measured across all rows at once. */
  --cols: 122px auto auto minmax(0, 1fr) 52px 52px auto 38px;
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: 12px;
}

.list-head,
.game-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}

/* Horizontal inset lives on the edge cells rather than the row: padding on a
   subgrid shifts its inherited tracks and overflows the last column, and this
   also keeps the row background and border full-bleed. */
.list-head > :first-child,
.game-row > :first-child { padding-left: 18px }

.list-head > :last-child,
.game-row > :last-child { padding-right: 18px }

.list-head {
  padding: 7px 0;
  border-bottom: 1px solid var(--bd2);
  background: var(--bar);
}

.list-head .ar { text-align: right }

.game-row {
  align-items: center;
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.game-row.schedule-only { cursor: default }

/* Count only game cards so schedule date headers do not interrupt striping. */
.game-list > :where(:nth-child(even of .game-card)) > .game-row {
  background: var(--bar2);
}

.game-row.hov:hover { background: var(--hov) }

/* The card is a grouping/state hook only; its children participate directly in
   the list grid so the row can subgrid off it. */
.game-card { display: contents }

.game-card.expanded .game-row { background: var(--hov) }

.status-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-label {
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mute);
}

.status-label.live { color: var(--or) }

/* Matchup label spans the away/at/home tracks. */
.list-head .matchup-col { grid-column: span 3 }

.at {
  font-size: 10px;
  color: var(--dim2);
  white-space: nowrap;
}

.side {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

/* Both names start at the left of their track, so away names share a left edge
   with each other and home names share one with each other. */
.side.away,
.side.home { justify-content: flex-start }

.team-name {
  font-size: 16px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-name.beaten { color: var(--mute2) }

.score {
  font-size: 19px;
  text-align: right;
  color: var(--ink);
}

.score.beaten { color: var(--mute2) }
.score.none { color: var(--mute2) }

.venue-cell {
  font-size: 11.5px;
  color: var(--k);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chev {
  font-size: 14px;
  color: var(--or);
  text-align: right;
  transition: transform .15s ease;
}

.game-card.expanded .chev { transform: rotate(90deg) }

@media (max-width: 760px) {
  /* Venue is hidden here, so there is no content-sized track to share and rows
     can go back to being independent grids with ordinary padding. */
  .game-list { display: block }

  .list-head,
  .game-row {
    grid-template-columns: 84px auto auto minmax(0, 1fr) 42px 42px;
    column-gap: 12px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .list-head > :first-child,
  .game-row > :first-child { padding-left: 0 }

  .list-head > :last-child,
  .game-row > :last-child { padding-right: 0 }

  .venue-cell, .chev, .list-head .venue-col, .list-head .chev-col { display: none }
  .team-name { font-size: 14px }
  .score { font-size: 17px }
}

/* ---- Expandable boxscore --------------------------------------------- */

.boxscore-container {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: var(--boxbg);
}

.game-card.expanded .boxscore-container {
  max-height: 3000px;
  border-bottom: 1px solid var(--bd);
}

.box-team {
  padding: 14px 18px 6px;
}

.box-team-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.box-team-name {
  font-size: 17px;
  text-transform: uppercase;
}

.box-team-line {
  font-size: 11px;
  color: var(--dim);
}

.box-team-score {
  margin-left: auto;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
}

.box-scroll { overflow-x: auto }
.box-scroll .t { min-width: 640px }

.box-team .t tbody tr:nth-child(even) td { background: var(--bar2) }
.box-team .t tbody tr:hover td { background: var(--chip) }

.t tr.starter td:first-child { border-left: 2px solid var(--or) }
.t td.pts { font-weight: 600; color: var(--ink) }
.t td.min { color: var(--mute2) }
.t td.pos { color: var(--dim2) }
.pm-pos { color: var(--pos) }
.pm-neg { color: var(--neg) }

.game-detail-tabs {
  display: flex;
  align-items: stretch;
  padding: 0 18px;
  border-bottom: 1px solid var(--bd);
  background: var(--bar2);
}

.game-detail-tablist {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.game-detail-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 0 10px;
  background: transparent;
  color: var(--mute);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.game-detail-tab:hover { color: var(--ink2) }

.game-detail-tab[aria-selected="true"] {
  color: var(--or);
  border-bottom-color: var(--or);
}

.game-detail-tab:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}

.shotchart-full-link {
  display: none;
  align-self: center;
  margin-left: auto;
  color: var(--mute);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.shotchart-full-link:hover { color: var(--or) }

.game-detail-tabs[data-active-panel="shotchart"] .shotchart-full-link { display: inline }
.game-detail-tabs[data-active-panel="boxscore"] ~ .shotchart-panel { display: none }
.game-detail-tabs[data-active-panel="shotchart"] ~ .boxscore-panel { display: none }

.shotchart-panel {
  padding: 0 18px 18px;
}

.shotchart-fragment {
  min-height: 72px;
}

.shotchart-loading,
.shotchart-load-error {
  margin: 0;
  padding: 26px 0 8px;
  text-align: center;
  color: var(--mute);
}

/* ---- Schedule --------------------------------------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--bd);
  background: var(--bar);
  flex-wrap: wrap;
}

.toolbar select {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink2);
  background: var(--chip);
  border: 1px solid var(--bd2);
  border-radius: 3px;
  padding: 6px 9px;
  min-width: 200px;
}

.date-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bar2);
  border-bottom: 1px solid var(--bd2);
  border-top: 1px solid var(--bd);
  position: sticky;
  top: 94px;
  z-index: 10;
}

.date-header-text {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink2);
}

.date-header-count {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-left: auto;
}

.empty {
  padding: 48px 18px;
  text-align: center;
  color: var(--mute2);
  font-size: 13px;
}

.htmx-indicator {
  display: none;
  padding: 10px 18px;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.htmx-request .htmx-indicator,
.htmx-indicator.htmx-request { display: block }

/* ---- Shot chart ------------------------------------------------------- */

.chart-page { padding: 16px 18px 32px }

.chart-title {
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 6px 0 2px;
}

.shot-filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
}

.shot-team-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.shot-team-btn {
  border: 1px solid var(--bd2);
  border-radius: 3px;
  padding: 6px 11px;
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  cursor: pointer;
}

.shot-team-btn:hover { color: var(--ink2) }

.shot-team-btn.active {
  color: var(--or);
  border-color: var(--or);
  background: var(--orwash);
}

.shot-team-btn:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}

.shot-select-filters {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.shot-filter-field {
  display: grid;
  gap: 4px;
}

.shot-filter-field > span {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.shot-filter-select,
.shot-reset-btn {
  height: 31px;
  border: 1px solid var(--bd2);
  border-radius: 3px;
  background: var(--chip);
  color: var(--ink2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.shot-filter-select {
  min-width: 105px;
  padding: 5px 25px 5px 8px;
}

.shot-reset-btn {
  padding: 5px 10px;
  background: transparent;
  color: var(--mute);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.shot-reset-btn:hover { color: var(--or) }

.shot-filter-select:focus-visible,
.shot-reset-btn:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}

.shot-filter-select:disabled {
  color: var(--dim);
  cursor: not-allowed;
}

.shot-player-filter {
  margin: -2px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.shot-player-filter[hidden] { display: none }

.shot-player-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.shot-player-heading > .k {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.shot-player-status {
  color: var(--mute);
  font-size: 9.5px;
}

.shot-player-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.shot-player-team-label {
  flex-basis: 100%;
  margin: 3px 0 -1px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.shot-player-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  border: 1px solid var(--bd2);
  border-radius: 3px;
  padding: 5px 6px 5px 9px;
  background: var(--chip);
  color: var(--mute);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.shot-player-btn:hover {
  color: var(--ink2);
  border-color: var(--mute);
}

.shot-player-btn.active {
  color: var(--or);
  border-color: var(--or);
  background: var(--orwash);
}

.shot-player-btn.zero:not(.active) { opacity: .55 }

.shot-player-count {
  display: inline-grid;
  min-width: 20px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  border-radius: 2px;
  background: var(--bar);
  color: var(--ink2);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.shot-player-btn.active .shot-player-count {
  background: var(--shell);
  color: var(--or);
}

.shot-player-btn:focus-visible,
.shot-player-expand:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}

.shot-player-expand {
  display: none;
  margin-top: 7px;
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--or);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  cursor: pointer;
}

.shot-player-expand[hidden] { display: none }

.chart-card {
  border: 1px solid var(--bd);
  background: var(--bar);
  padding: 14px;
}

.chart-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.chart-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
}

.court-line { vector-effect: non-scaling-stroke }

.shot-marker { cursor: pointer }

.shot-hit-area {
  fill: transparent;
  stroke: transparent;
}

.shot-make-dot {
  stroke: var(--bar);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.shot-miss-line {
  stroke: var(--neg);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.shot-marker:focus { outline: none }

.shot-marker:focus .shot-hit-area {
  stroke: var(--or);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--k);
}

.legend-item { display: flex; align-items: center; gap: 6px }
.legend-icon { width: 12px; height: 12px }

.summary {
  text-align: center;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--mute2);
}

.shot-empty {
  margin: 8px 0 0;
  color: var(--mute);
  font-size: 10.5px;
  text-align: center;
}

.shot-chart-error {
  margin: 10px 0 0;
  color: var(--neg);
  text-align: center;
}

.shot-tooltip {
  position: absolute;
  background: var(--chip);
  border: 1px solid var(--bd2);
  color: var(--ink2);
  padding: 7px 9px;
  border-radius: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  white-space: nowrap;
  z-index: 40;
}

.shot-tooltip .tooltip-line { display: block; line-height: 1.5 }

@media (max-width: 560px) {
  .game-detail-tabs {
    padding: 0 12px;
  }

  .game-detail-tablist { gap: 14px }

  .game-detail-tab { font-size: 10px }
  .shotchart-full-link { font-size: 9px }

  .shotchart-panel {
    padding: 0 10px 12px;
  }

  .chart-card { padding: 8px }

  .shot-filter-bar {
    display: block;
    margin: 10px 0;
  }

  .shot-team-selector { margin-bottom: 9px }

  .shot-select-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px;
  }

  .shot-filter-select {
    width: 100%;
    min-width: 0;
  }

  .shot-player-filter {
    margin: 0 0 10px;
    padding-top: 9px;
  }

  .shot-player-selector {
    max-height: 74px;
    overflow: hidden;
  }

  .shot-player-selector.both-teams { max-height: 92px }

  .shot-player-selector.expanded { max-height: none }

  .shot-player-btn {
    min-height: 34px;
    padding-left: 8px;
  }

  .shot-player-expand:not([hidden]) { display: inline-block }
}

/* ---- Standings -------------------------------------------------------- */

.standings-page { padding: 16px 18px 32px }

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 16px;
  flex-wrap: wrap;
}

.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;
}

.page-title {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.schedule-heading {
  margin: 0;
  padding: 16px 18px;
}

.season-picker { display: inline-flex }

.season-select {
  color: var(--mute);
  background: var(--bar);
  border: 1px solid var(--bd2);
  border-radius: 3px;
  padding: 4px 28px 4px 8px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.season-select:hover,
.season-select:focus { color: var(--ink2); border-color: var(--or) }

.standings-heading-meta,
.standings-key {
  display: flex;
  align-items: center;
  gap: 12px;
}

.standings-heading-meta { flex-wrap: wrap; justify-content: flex-end }

.standings-key {
  color: var(--mute2);
  font-size: 10px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.standings-key > span { display: inline-flex; align-items: center; gap: 5px }

.standings-key-mark {
  width: 13px;
  height: 2px;
  display: inline-block;
}

.standings-key-mark.playoff { background: var(--pos) }
.standings-key-mark.playin { background: var(--or) }

.conference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.conference-card {
  min-width: 0;
  border: 1px solid var(--bd);
  background: var(--boxbg);
}

.conference-title {
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid var(--bd2);
  background: var(--bar);
  color: var(--ink2);
  font-size: 17px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.standings-scroll { overflow-x: auto }
.standings-table { min-width: 460px }

.standings-table tbody tr:nth-child(even) td { background: var(--bar2) }
.standings-table tbody tr:hover td { background: var(--chip) }

/* Qualification cutoffs sit immediately above seeds 7 and 11. */
.standings-table tr.playoff-cutoff td { border-top: 2px solid var(--pos) }
.standings-table tr.playin-cutoff td { border-top: 2px solid var(--or) }
.standings-table tr.playoff-seed td.seed { color: var(--pos) }
.standings-table tr.playin-seed td.seed { color: var(--or2) }

/* line the table up with the card's header padding */
.standings-table th,
.standings-table td { padding-left: 12px }

.standings-table th { padding-top: 10px; padding-bottom: 9px }

.standings-table th:first-child,
.standings-table td:first-child { width: 34px }

.standings-table th.team-col,
.standings-table td.team-col { width: 100% }

/* stat cluster: fixed, evenly weighted columns so headers sit over their numbers */
.standings-table th:nth-child(n+3),
.standings-table td:nth-child(n+3) {
  width: 1%;
  text-align: right;
  padding-left: 0;
  padding-right: 0;
  white-space: nowrap;
}

/* gutter between the stat columns so headers never crowd each other */
.standings-table th:nth-child(n+4),
.standings-table td:nth-child(n+4) { padding-left: 14px }

.standings-table th:nth-child(3),
.standings-table td:nth-child(3) { min-width: 38px }

.standings-table th:nth-child(4),
.standings-table td:nth-child(4) { min-width: 52px }

.standings-table th:nth-child(5),
.standings-table td:nth-child(5) { min-width: 72px }

.standings-table th:nth-child(6),
.standings-table td:nth-child(6) { min-width: 56px }

/* gap between the team block and the numbers */
.standings-table th:nth-child(3),
.standings-table td:nth-child(3) { padding-left: 24px }

.standings-table th:last-child,
.standings-table td:last-child { padding-right: 14px }

.standings-table td:first-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--mute2);
}

.standings-table th.team-col,
.standings-table td.team-col { text-align: left }

.standings-table td.team-col {
  font-family: "IBM Plex Sans", sans-serif;
  white-space: normal;
}

.standing-team-name {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.standing-division {
  display: block;
  margin-top: 2px;
  color: var(--dim);
}

/* keep the row height stable when a team has no division on record */
.standing-division:empty::before { content: "\00a0" }

@media (max-width: 900px) {
  .conference-grid { grid-template-columns: 1fr }
}

@media (max-width: 560px) {
  .standings-heading-meta { justify-content: flex-start }
}
