.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

@media (min-width: 1024px) {
  .standings-grid.standings-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.standings-table { width: 100%; border-collapse: collapse; }

.standings-table thead th {
  padding: 12px 16px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); text-align: center;
  border-bottom: 1px solid var(--wire);
}
.standings-table thead th:first-child { text-align: left; }
.standings-table thead th:nth-child(5) {
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  color: color-mix(in srgb, var(--gold) 38%, var(--muted));
}

.standings-table tbody tr {
  border-bottom: 1px solid var(--wire);
  transition: background .15s var(--ease);
}
.standings-table tbody tr:last-child { border-bottom: none; }
.standings-table tbody tr:hover { background: rgba(201,168,76,.04); }

.standings-table tbody tr.qualifies { border-left: 2px solid var(--gold-dim); }
.standings-table tbody tr.is-placeholder { opacity: .72; }
.standings-table tbody tr.is-placeholder .pair-name { font-style: italic; font-weight: 500; }

.standings-table tbody td {
  padding: 14px 16px; text-align: center;
  color: var(--muted); font-size: 13px;
}
.standings-table tbody td:first-child {
  text-align: left; color: var(--text-hi); font-weight: 500;
}
.standings-table tbody td:nth-child(5) {
  background: color-mix(in srgb, var(--gold) 5%, transparent);
}

.rank-num {
  display: inline-block; width: 22px;
  font-size: 11px; font-weight: 700;
  color: var(--muted); margin-right: 10px;
  vertical-align: middle; text-align: right;
}
.rank-num.gold   { color: var(--gold); }
.rank-num.silver { color: #a0a8b8; }
.rank-num.bronze { color: #a0724c; }

.pair-name {
  display: inline-block;
  max-width: calc(100% - 38px);
  vertical-align: top;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pair-players {
  font-size: 11px; font-weight: 400;
  color: var(--muted); margin-top: 2px; letter-spacing: .2px;
  margin-left: 32px;
}

.pts-val {
  font-family: var(--serif);
  font-size: 1.3rem; font-weight: 600; color: var(--gold);
}

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

  .standings-table {
    table-layout: fixed;
  }

  .standings-table thead th {
    padding: 8px 4px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .standings-table tbody td {
    padding: 10px 4px;
    font-size: 11px;
  }

  .standings-table thead th:first-child,
  .standings-table tbody td:first-child {
    width: 44%;
  }

  .standings-table thead th:not(:first-child),
  .standings-table tbody td:not(:first-child) {
    width: 9.33%;
  }

  .rank-num {
    width: 16px;
    margin-right: 6px;
    font-size: 10px;
  }

  .pair-name {
    max-width: calc(100% - 24px);
    font-size: 11px;
    line-height: 1.2;
  }

  .pair-players {
    margin-left: 22px;
    font-size: 10px;
  }

  .pts-val {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .standings-table thead th {
    padding: 7px 3px;
    font-size: 7px;
  }

  .standings-table tbody td {
    padding: 8px 3px;
    font-size: 10px;
  }

  .standings-table thead th:first-child,
  .standings-table tbody td:first-child {
    width: 40%;
  }

  .standings-table thead th:not(:first-child),
  .standings-table tbody td:not(:first-child) {
    width: 10%;
  }

  .pair-players {
    display: none;
  }

  .pair-name {
    max-width: calc(100% - 20px);
    font-size: 10px;
  }

  .rank-num {
    width: 14px;
    margin-right: 4px;
    font-size: 9px;
  }
}
