/* CPL 2026 points table — editorial race board */
.standings-page {
  --race-navy: #071128;
  --race-navy-2: #0d1d3b;
  --race-paper: #f2f5f7;
  --race-card: #ffffff;
  --race-ink: #081329;
  --race-muted: #607087;
  --race-line: #d5dce5;
  --race-yellow: #ffd126;
  --race-cyan: #29c7df;
  --race-green: #91d64b;
  background: var(--race-paper);
}

.standings-control {
  width: min(1360px, calc(100% - 40px));
  padding-bottom: 112px;
  color: var(--race-ink);
}

.standings-breadcrumbs {
  padding: 20px 2px;
}

.standings-breadcrumbs ol {
  color: var(--race-muted);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.standings-breadcrumbs a {
  color: var(--race-ink);
}

.standings-breadcrumbs li + li::before {
  color: #9ba7b7;
  content: "—";
}

.standings-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  min-height: 540px;
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(105deg, rgba(7, 17, 40, .99) 0 54%, rgba(7, 17, 40, .76) 78%, rgba(7, 17, 40, .92)),
    url("/static/img/official/teams-banner.webp") center / cover;
  box-shadow: 0 28px 70px rgba(7, 17, 40, .2);
}

.standings-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--race-yellow) 0 13%, var(--race-cyan) 13% 24%, transparent 24%) top left / 100% 6px no-repeat,
    radial-gradient(circle at 72% 34%, rgba(41, 199, 223, .19), transparent 23rem);
  content: "";
}

.standings-hero::after {
  position: absolute;
  right: 31%;
  bottom: -44px;
  z-index: -1;
  color: rgba(255, 255, 255, .035);
  font-family: "Aptos Display", "Trebuchet MS", sans-serif;
  font-size: 290px;
  font-weight: 950;
  line-height: 1;
  content: "04";
}

.standings-hero-copy {
  padding: clamp(48px, 6vw, 80px);
}

.standings-kicker,
.standings-index {
  margin-bottom: 14px;
  color: #9b7c00;
  font-size: 10px;
  letter-spacing: .18em;
}

.standings-kicker {
  color: var(--race-yellow);
}

.standings-kicker span {
  border: 0;
  border-radius: 3px;
  background: rgba(145, 214, 75, .13);
  color: #b9ef80;
}

.standings-kicker span::before {
  background: var(--race-green);
}

.standings-hero h1 {
  max-width: 760px;
  font-size: clamp(62px, 7.2vw, 104px);
  line-height: .86;
  letter-spacing: -.06em;
}

.standings-hero h1 em {
  color: var(--race-yellow);
}

.standings-hero-copy > p:last-of-type {
  max-width: 620px;
  color: #d2daea;
  font-size: 17px;
}

.standings-actions .button {
  min-height: 48px;
  border-radius: 3px;
}

.standings-actions .button.primary {
  background: var(--race-yellow);
  color: #171200;
}

.standings-actions .button.secondary {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .055);
}

.standings-hero-board {
  position: relative;
  justify-content: center;
  margin: 22px;
  padding: clamp(28px, 3.4vw, 44px);
  border: 0;
  border-radius: 4px;
  background: var(--race-yellow);
  color: var(--race-ink);
  box-shadow: 18px 18px 0 rgba(41, 199, 223, .17);
}

.standings-board-top {
  margin-bottom: 48px;
  color: rgba(8, 19, 41, .64);
}

.standings-board-top span {
  color: #365a17;
}

.standings-board-top small {
  color: #4f5868;
}

.standings-board-top i,
.standings-status i {
  background: var(--race-green);
  box-shadow: 0 0 0 5px rgba(42, 85, 10, .1);
}

.standings-board-number {
  color: var(--race-ink);
  font-size: clamp(108px, 12vw, 174px);
  text-shadow: none;
}

.standings-hero-board > strong {
  color: var(--race-ink);
}

.standings-hero-board > p {
  color: #3e4656;
}

.standings-hero-board > a {
  border-top-color: rgba(8, 19, 41, .22);
  color: var(--race-ink);
}

.standings-hero-board > a span {
  color: var(--race-ink);
}

.standings-stat-rail {
  gap: 8px;
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.standings-stat-rail div {
  min-height: 94px;
  border: 1px solid var(--race-line);
  border-right: 1px solid var(--race-line);
  border-radius: 4px;
  background: var(--race-card);
  box-shadow: 0 8px 24px rgba(7, 17, 40, .05);
}

.standings-stat-rail div:last-child {
  border-right: 1px solid var(--race-line);
}

.standings-stat-rail dt {
  color: var(--race-muted);
}

.standings-stat-rail dd {
  color: var(--race-ink);
  font-size: 34px;
}

.standings-leaderboard {
  padding-top: 88px;
}

.standings-section-header h2,
.standings-key h2,
.standings-update h2,
.standings-faq h2 {
  color: var(--race-ink);
}

.standings-status span {
  color: #467c16;
}

.standings-status small,
.standings-section-header > p {
  color: var(--race-muted);
}

.standings-table-shell {
  border: 1px solid #bfc9d5;
  border-radius: 5px;
  background: var(--race-card);
  box-shadow: 0 25px 60px rgba(7, 17, 40, .11);
}

.standings-table th {
  height: 56px;
  border-bottom: 0;
  background: var(--race-navy);
  color: #b7c3d7;
  font-size: 9px;
}

.standings-table th:first-child {
  padding-left: 28px;
}

.standings-table td {
  height: 94px;
  border-bottom-color: var(--race-line);
  color: var(--race-ink);
  font-size: 14px;
}

.standings-table tbody tr {
  position: relative;
  background: var(--race-card);
}

.standings-table tbody tr:nth-child(even) {
  background: #f7f9fb;
}

.standings-table tbody tr:hover {
  background: #eef8fa;
}

.standings-table td:first-child {
  padding-left: 28px;
}

.standings-position {
  border-color: #c7d0dc;
  border-radius: 3px;
  color: var(--race-muted);
  background: #f2f5f8;
}

.standings-table td:first-child img {
  width: 54px;
  height: 54px;
}

.standings-table td:first-child strong {
  color: var(--race-ink);
  font-size: 14px;
}

.standings-table td:first-child small {
  color: var(--race-muted);
  font-size: 10px;
}

.standings-table td[data-label="Points"] strong {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 40px;
  border-radius: 3px;
  background: var(--race-yellow);
  color: var(--race-ink);
}

@media (min-width: 761px) {
  .standings-table th:not(:first-child),
  .standings-table td:not(:first-child),
  .standings-table td:last-child {
    text-align: left;
  }
}

.standings-table-note {
  border-top: 1px solid var(--race-line);
  background: #eef2f6;
}

.standings-table-note > span {
  color: #836a00;
}

.standings-table-note p {
  color: var(--race-muted);
}

.standings-table-note a {
  color: var(--race-ink);
}

.standings-key {
  grid-template-columns: .68fr 1.32fr;
  gap: 70px;
  padding: 92px 0;
}

.standings-key > dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 0;
  gap: 8px;
}

.standings-key > dl > div,
.standings-key > dl > div:nth-child(odd),
.standings-key > dl > div:nth-child(even) {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 4px;
  background: var(--race-navy);
}

.standings-key dt {
  color: var(--race-cyan);
}

.standings-key dd strong {
  color: white;
}

.standings-key dd span {
  color: #aebbd0;
}

.standings-playoffs {
  padding: clamp(38px, 5vw, 68px);
  border: 0;
  border-radius: 6px;
  background: var(--race-navy);
  box-shadow: 0 24px 60px rgba(7, 17, 40, .16);
}

.standings-playoffs .standings-index,
.standings-playoffs h2,
.standings-playoffs .standings-section-header > p {
  color: white;
}

.standings-playoffs .standings-index {
  color: var(--race-yellow);
}

.standings-playoffs .standings-section-header > p {
  color: #b9c5d9;
}

.standings-playoffs ol {
  gap: 8px;
  border-top: 0;
}

.standings-playoffs li {
  min-height: 248px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-right: 1px solid rgba(255, 255, 255, .11);
  border-radius: 4px;
  background: var(--race-navy-2);
}

.standings-playoffs li:last-child {
  border-right: 1px solid rgba(255, 255, 255, .11);
}

.standings-playoffs li::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 0;
  background: var(--race-cyan);
  box-shadow: none;
}

.standings-playoffs li:last-child::before {
  background: var(--race-yellow);
}

.standings-playoffs li > span {
  color: rgba(255, 255, 255, .36);
}

.standings-playoffs li p {
  color: #aebbd0;
}

.standings-playoffs li strong,
.standings-playoffs li > a,
.standings-playoffs > a {
  color: white;
}

.standings-update {
  grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
  gap: 14px;
  padding: 88px 0;
  border-bottom-color: var(--race-line);
}

.standings-update-copy {
  align-self: stretch;
  padding: 42px;
  border-radius: 5px;
  background: var(--race-yellow);
}

.standings-update-copy .standings-index {
  color: #6e5900;
}

.standings-update-copy > p:not(.standings-index) {
  color: #3d4655;
}

.standings-update-time {
  border-left-color: var(--race-navy);
  border-radius: 0;
  background: rgba(255, 255, 255, .38);
}

.standings-update-time span,
.standings-update-time small {
  color: #5f6570;
}

.standings-update-steps {
  align-self: stretch;
  display: grid;
  border: 0;
  border-radius: 5px;
  background: var(--race-navy);
}

.standings-update-steps li {
  align-content: center;
  border-bottom-color: rgba(255, 255, 255, .11);
}

.standings-update-steps li > span {
  border-color: rgba(41, 199, 223, .5);
  border-radius: 3px;
  color: var(--race-cyan);
}

.standings-update-steps p {
  color: #aebbd0;
}

.standings-faq {
  padding-top: 88px;
}

.standings-faq header > p:last-child,
.standings-faq details p {
  color: var(--race-muted);
}

.standings-faq details {
  border-color: var(--race-line);
  border-radius: 4px;
  background: var(--race-card);
  box-shadow: 0 6px 18px rgba(7, 17, 40, .035);
}

.standings-faq details:hover,
.standings-faq details[open] {
  border-color: #a6b3c2;
  background: white;
}

.standings-faq summary {
  color: var(--race-ink);
}

.standings-faq-number {
  color: #8b7000;
}

.standings-faq summary i {
  border-color: var(--race-line);
}

.standings-faq summary i::before,
.standings-faq summary i::after {
  background: var(--race-ink);
}

.standings-faq-answer > span {
  color: #168ca0;
}

@media (max-width: 980px) {
  .standings-hero {
    grid-template-columns: 1fr;
  }

  .standings-hero::after {
    right: 5%;
  }

  .standings-hero-board {
    min-height: 360px;
  }

  .standings-key > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standings-playoffs li:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, .11);
  }
}

@media (max-width: 760px) {
  .standings-control {
    width: min(100% - 24px, 1360px);
  }

  .standings-hero-copy {
    padding: 46px 24px 34px;
  }

  .standings-hero h1 {
    font-size: clamp(50px, 15vw, 72px);
  }

  .standings-hero-board {
    margin: 10px;
    box-shadow: none;
  }

  .standings-stat-rail {
    gap: 6px;
  }

  .standings-stat-rail div,
  .standings-stat-rail div:last-child {
    border: 1px solid var(--race-line);
  }

  .standings-table tr {
    border-color: var(--race-line);
    border-radius: 4px;
    background: white;
  }

  .standings-table tbody tr:nth-child(even) {
    background: white;
  }

  .standings-table td,
  .standings-table td:last-child {
    border-right-color: var(--race-line);
    border-bottom-color: var(--race-line);
    color: var(--race-ink);
  }

  .standings-table td::before {
    color: var(--race-muted);
  }

  .standings-key,
  .standings-update,
  .standings-faq {
    grid-template-columns: 1fr;
  }

  .standings-key > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standings-playoffs ol {
    gap: 8px;
  }

  .standings-playoffs li:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, .11);
  }

  .standings-update-copy {
    padding: 30px 24px;
  }
}

@media (max-width: 500px) {
  .standings-hero {
    border-radius: 4px;
  }

  .standings-kicker span {
    margin-bottom: 8px;
  }

  .standings-board-number {
    font-size: 112px;
  }

  .standings-stat-rail div {
    min-height: 82px;
    padding: 15px;
  }

  .standings-stat-rail dd {
    font-size: 29px;
  }

  .standings-key > dl {
    grid-template-columns: 1fr;
  }

  .standings-key > dl > div,
  .standings-key > dl > div:nth-child(odd),
  .standings-key > dl > div:nth-child(even) {
    min-height: 88px;
  }

  .standings-playoffs {
    padding: 30px 18px;
  }

  .standings-faq-answer {
    padding-inline: 48px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .standings-table tbody tr {
    transition: none;
  }
}
.standings-control[data-hydration-state="pending"] .standings-hero-board,
.standings-control[data-hydration-state="pending"] .standings-leaderboard { position: relative; min-height: 300px; }
.standings-control[data-hydration-state="pending"] .standings-hero-board > *,
.standings-control[data-hydration-state="pending"] .standings-leaderboard > * { visibility: hidden; }
.standings-control[data-hydration-state="pending"] .standings-hero-board::after,
.standings-control[data-hydration-state="pending"] .standings-leaderboard::after {
  content: "Loading current standings…";
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe4ea;
  border-radius: 10px;
  background: #f6f7f9;
  color: #667085;
  font-size: 13px;
}
