/* Modern presentation for Standing.php. Standings calculations remain in the page. */
/* Fit the full standings sheet to desktop containers, including resized windows. */
.standings-shell .standings-table-scroll > .STHSPHPStanding_Table {
  width: 100% !important;
  min-width: 0 !important;
}
.standings-shell .standings-table-scroll .STHSPHPStanding_Table thead th:nth-child(n),
.standings-shell .standings-table-scroll .STHSPHPStanding_Table tbody td:nth-child(n),
html .standings-shell .STHSPHPStanding_Table thead th,
html .standings-shell .STHSPHPStanding_Table tbody td {
  display: table-cell !important;
  min-width: 0 !important;
  width: auto !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}
html .standings-shell .STHSPHPStanding_Table tbody td:nth-child(7),
html .standings-shell .STHSPHPStanding_Table tbody td:nth-child(7) * {
  font-size: 11px !important;
  font-weight: 600 !important;
}
.standings-scroll-top { display: none; }
@media (max-width: 767px) and (pointer: coarse) {
  .standings-shell .standings-table-scroll > .STHSPHPStanding_Table {
    min-width: 1120px !important;
  }
  .standings-scroll-top {
    display: block;
    overflow-x: scroll;
    overflow-y: hidden;
    height: 18px;
    scrollbar-width: auto;
  }
  .standings-scroll-top > div { height: 1px; }
  .standings-shell .standings-table-scroll {
    overflow-x: scroll;
    scrollbar-width: auto;
  }
}

body.standings-page {
  background: var(--cchl-page-bg) !important;
  color: var(--cchl-copy);
}

.standings-shell {
  width: calc(100% - 40px);
  max-width: var(--cchl-content-width);
  margin: 24px auto 40px;
  overflow: hidden;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 31, 49, .08);
  font-family: var(--cchl-body-font);
}

.standings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(46, 145, 209, .28), transparent 34%),
    linear-gradient(135deg, #111a2a 0%, #1d304a 100%);
}

.standings-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #86c9f4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.standings-header h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
}

.standings-header p {
  margin: 7px 0 0;
  color: #c7d3e2;
  font-size: 13px;
}

.standings-view-badge {
  min-width: 105px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  text-align: center;
}

.standings-view-badge span,
.standings-view-badge strong {
  display: block;
  text-transform: uppercase;
}

.standings-view-badge span {
  color: #aebed0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.standings-view-badge strong {
  margin-top: 2px;
  color: #fff;
  font-size: 16px;
}

.standings-shell .STHSWarning {
  margin: 12px 24px 0;
}

.standings-shell .tabsmain.standard {
  padding: 0 24px 24px !important;
  background: #fff !important;
  box-sizing: border-box;
}

.standings-shell .tabmain-links {
  display: flex;
  gap: 5px;
  margin: 0 -24px 22px !important;
  padding: 10px 24px !important;
  overflow-x: auto;
  border-bottom: 1px solid #e1e7ee;
  background: #f7f9fb;
  scrollbar-width: thin;
}

.standings-shell .tabmain-links li {
  flex: 0 0 auto;
  line-height: normal !important;
  list-style: none;
}

.standings-shell .tabmain-links a {
  display: block;
  margin: 0 !important;
  padding: 9px 14px !important;
  border: 0 !important;
  border-radius: 8px;
  color: #556274;
  font-family: var(--cchl-label-font);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.standings-shell .tabmain-links li.activemain a,
.standings-shell .tabmain-links a.activemain,
.standings-shell .tabmain-links a:hover {
  color: #fff !important;
  background: var(--cchl-accent) !important;
  box-shadow: 0 4px 10px rgba(var(--cchl-accent-rgb), .22);
}

.standings-shell .tabmain-content {
  padding: 0 !important;
  background: transparent !important;
}

.standings-shell .tabmain {
  padding: 0 !important;
}

.standings-shell .tabmain > h4 {
  min-height: 40px;
  margin: 22px 0 8px !important;
  padding: 0 4px !important;
  color: var(--cchl-heading) !important;
  font-family: var(--cchl-heading-font) !important;
  font-size: 15px !important;
  line-height: 40px;
  letter-spacing: .025em;
}

.standings-shell .tabmain > h4:first-child {
  margin-top: 0 !important;
}

.standings-shell .tabmain > h4 img {
  width: 34px !important;
  max-height: 34px;
  object-fit: contain;
}

.standings-shell .STHSPHPStanding_Table {
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #dfe5ec !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 11px;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(25, 39, 59, .05);
}

.standings-shell .STHSPHPStanding_Table thead th {
  height: 38px;
  padding: 0 7px !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, .08) !important;
  background-color: var(--cchl-heading) !important;
  color: #dce6f1 !important;
  font-family: var(--cchl-label-font) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .045em;
  text-shadow: none !important;
  white-space: nowrap;
}

.standings-shell .STHSPHPStanding_Table thead th:first-child {
  padding-left: 12px !important;
  text-align: left !important;
}

/* Keep the split record columns aligned with their headings. The first
   heading spans the rank and team cells, so positional selectors are not
   reliable across the responsive/condensed table states. */
.standings-shell .STHSPHPStanding_Table thead th.standings-home-col,
.standings-shell .STHSPHPStanding_Table tbody td.standings-home-col,
.standings-shell .STHSPHPStanding_Table thead th.standings-visitor-col,
.standings-shell .STHSPHPStanding_Table tbody td.standings-visitor-col {
  display: table-cell !important;
}

.standings-shell .STHSPHPStanding_Table tbody tr {
  line-height: normal !important;
}

.standings-shell .STHSPHPStanding_Table tbody td {
  height: 42px;
  padding: 4px 7px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7ebf0 !important;
  background: #fff !important;
  color: #39475a;
  font-family: var(--cchl-body-font) !important;
  font-size: 11px !important;
  transition: background-color .12s ease;
}

.standings-shell .STHSPHPStanding_Table tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}

.standings-shell .STHSPHPStanding_Table tbody tr:hover td {
  background: #edf6fc !important;
}

.standings-shell .STHSPHPStanding_Table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.standings-shell .STHSPHPStanding_Table tbody td:first-child {
  padding-left: 12px !important;
  color: #8a96a6;
  font-weight: 800;
}

.standings-shell .STHSPHPStanding_Table tbody td:nth-child(2) {
  color: #172033;
  font-weight: 800;
  white-space: nowrap;
}

.standings-shell .STHSPHPStanding_Table tbody td:nth-child(2) img {
  width: 27px !important;
  height: 27px !important;
  margin-right: 8px;
  object-fit: contain;
}

.standings-shell .STHSPHPStanding_Table tbody td:nth-child(7) {
  color: var(--cchl-link);
  font-size: 11px !important;
  font-weight: 600 !important;
}

.standings-shell .STHSPHPStanding_Table a {
  color: inherit;
  text-decoration: none;
}

.standings-shell .STHSPHPStanding_Table .staticTD {
  height: 26px;
  color: #657386;
  font-family: var(--cchl-label-font) !important;
  font-size: 10px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.standings-shell .STHSPHPStanding_Table tbody td a,
.standings-shell .STHSPHPStanding_Table tbody td h4,
.standings-shell .STHSPowerRanking_Table tbody td,
.standings-shell .STHSPowerRanking_Table tbody td a,
.standings-shell .STHSPowerRanking_Table tbody td h4,
.standings-shell .STHSTodayGame_TeamScore h4,
.standings-shell .STHSTodayGame_GameData td,
.standings-shell .STHSTodayGame_GameData a {
  font-family: var(--cchl-body-font) !important;
}

.standings-shell .STHSPowerRanking_Table thead th,
.standings-shell .STHSPowerRanking_Table .staticTD {
  font-family: var(--cchl-label-font) !important;
}

@media screen and (max-width: 900px) {
  .standings-shell {
    width: calc(100% - 20px);
    margin-top: 14px;
    border-radius: 12px;
  }

  .standings-header {
    padding: 20px;
  }

  .standings-header h1 {
    font-size: 24px;
  }

  .standings-header p {
    display: none;
  }

  .standings-shell .tabsmain.standard {
    padding: 0 10px 16px !important;
  }

  .standings-shell .tabmain-links {
    margin-right: -10px !important;
    margin-left: -10px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .standings-shell .STHSPHPStanding_Table thead th,
  .standings-shell .STHSPHPStanding_Table tbody td {
    padding-right: 5px !important;
    padding-left: 5px !important;
  }
}

@media screen and (max-width: 560px) {
  .standings-header {
    align-items: flex-start;
  }

  .standings-view-badge {
    min-width: 76px;
    padding: 8px 10px;
  }

  .standings-shell .STHSPHPStanding_Table tbody td:nth-child(2) img {
    margin-right: 4px;
  }
}
