.standings-table-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgb(17 24 39 / 0.08);
  overflow: hidden;
  overflow-x: auto;
}

.standings-tabs {
  display: flex;
  gap: 0.5rem;
  margin: -0.35rem 0 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
  white-space: nowrap;
}

.standings-tab {
  appearance: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: #1f2937;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.75rem;
}

.standings-tab:visited {
  color: #1f2937;
}

.standings-tab:hover {
  background: var(--tlfl-blue);
  border-color: var(--tlfl-blue);
  color: #ffffff;
  text-decoration: none;
}

.standings-tab-active,
.standings-tab-active:hover {
  background: var(--tlfl-blue);
  border-color: var(--tlfl-blue);
  color: #ffffff;
}

.standings-tab-active:visited {
  color: #ffffff;
}

.standings-table {
  background: #ffffff;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  min-width: 46rem;
  table-layout: fixed;
  width: max-content;
}

.standings-team-column {
  width: 18.5rem;
}

.standings-short-column {
  width: 2.55rem;
}

.standings-pct-column {
  width: 3.8rem;
}

.standings-record-column {
  width: 5.1rem;
}

.standings-points-column {
  width: 3.45rem;
}

.standings-diff-column {
  width: 4rem;
}

.standings-streak-column {
  width: 3.75rem;
}

.standings-postseason-column {
  width: 32rem;
}

.playoff-standings {
  display: grid;
  gap: 1rem;
}

.playoff-standings-wrap+.playoff-standings-wrap {
  margin-top: 0.15rem;
}

.playoff-standings-table {
  min-width: 51rem;
}

.playoff-standings-unavailable {
  background: #ffffff;
  border: 1px solid #dbe4f4;
  border-radius: 6px;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  padding: 0.9rem 1rem;
}

.playoff-seed-column {
  width: 3.6rem;
}

.standings-table th,
.standings-table td {
  border-bottom: 1px solid #edf0f3;
  padding: 0.3rem 0.42rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.standings-column-row th {
  background: var(--tlfl-blue-light);
  border-bottom: 1px solid #c7d8f7;
  color: #12366f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.standings-column-row th:first-child {
  font-size: 0.78rem;
  padding: 0.28rem 0.62rem 0.25rem;
}

.playoff-column-row th:first-child {
  text-align: center;
}

.standings-table th:first-child,
.standings-table td:first-child {
  text-align: left;
}

.standings-table th.standings-postseason,
.standings-table td.standings-postseason {
  text-align: left;
}

.playoff-standings-table th:first-child,
.playoff-standings-table td:first-child {
  text-align: center;
}

.playoff-standings-table th:nth-child(2),
.playoff-standings-table td:nth-child(2) {
  text-align: left;
}

.standings-conference-row th {
  background: var(--tlfl-blue-dark);
  border-bottom: 0;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0.42rem 0.62rem 0.38rem;
  text-align: left;
  text-transform: uppercase;
}

.standings-conference+.standings-conference .standings-conference-row th {
  border-top: 0.34rem solid #ffffff;
}

.standings-division-row th {
  border-bottom: 1px solid #c7d8f7;
  font-weight: 900;
  text-transform: uppercase;
}

.standings-division-row:not(:first-child) th {
  border-top: 1px solid #dbe4f4;
}

.playoff-team-group-start td {
  border-top: 0.58rem solid #dbe7f8;
  box-shadow: inset 0 1px 0 #b9cdec;
}

.standings-table tbody tr:not(.standings-conference-row):not(.standings-division-row):not(.standings-column-row):nth-of-type(even) {
  background: #fbfcfe;
}

.standings-table tbody tr:not(.standings-conference-row):not(.standings-division-row):not(.standings-column-row):hover {
  background: rgb(31 85 171 / 0.06);
}

.standings-team a {
  align-items: center;
  color: #111827;
  display: inline-flex;
  font-weight: 800;
  gap: 0.35rem;
  max-width: 100%;
}

.standings-team-prefix {
  color: #111827;
  flex: 0 0 auto;
  font-weight: 900;
  text-align: left;
}

.playoff-seed {
  color: #111827;
  font-weight: 900;
}

.standings-team img {
  flex: 0 0 auto;
  height: 1.35rem;
  object-fit: contain;
  width: 1.35rem;
}

.standings-team-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standings-postseason {
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 800;
}

.standings-postseason-summary {
  display: block;
  line-height: 1.25;
  white-space: normal;
}

.standings-postseason-details {
  max-width: 100%;
}

.standings-postseason-details summary {
  align-items: flex-start;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(0, 1fr) auto;
  line-height: 1.25;
  list-style: none;
  white-space: normal;
  width: 100%;
}

.standings-postseason-details summary::-webkit-details-marker {
  display: none;
}

.standings-postseason-toggle {
  align-items: center;
  border: 1px solid #1f3b77;
  border-radius: 2px;
  color: #1f3b77;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  height: 0.95rem;
  justify-content: center;
  line-height: 1;
  margin-top: 0.03rem;
  width: 0.95rem;
}

.standings-postseason-toggle::before {
  content: "+";
}

.standings-postseason-details[open] .standings-postseason-toggle::before {
  content: "-";
}

.standings-postseason-summary-text {
  display: block;
  min-width: 0;
}

.standings-postseason-help-rows {
  border-left: 2px solid #c7d8f7;
  display: grid;
  gap: 0.22rem;
  margin: 0.35rem 0 0 0.3rem;
  padding-left: 0.55rem;
}

.standings-postseason-help-row {
  color: #374151;
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: normal;
}

.standings-key-table {
  background: #ffffff;
  border: 1px solid #dbe4f4;
  border-collapse: separate;
  border-radius: 6px;
  border-spacing: 0;
  box-shadow: 0 4px 14px rgb(17 24 39 / 0.05);
  color: #374151;
  font-size: 0.86rem;
  margin-top: 0.9rem;
  overflow: hidden;
  width: min(100%, 31rem);
}

.standings-key-table caption {
  color: #111827;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 0.45rem 0.65rem;
  text-align: left;
  text-transform: uppercase;
}

.standings-key-table th,
.standings-key-table td {
  border-top: 1px solid #edf0f3;
  padding: 0.42rem 0.45rem;
}

.standings-key-table th {
  color: #111827;
  font-weight: 900;
  text-align: left;
  width: 2.75rem;
}

.standings-key-table td {
  padding-left: 0.25rem;
}

.standings-diff-positive {
  color: #15803d;
}

.standings-diff-negative {
  color: #b91c1c;
}

.standings-diff-even {
  color: #111827;
}
