@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-800-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-900-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-400-700-latin.woff2") format("woff2");
}

:root {
  --navy-950: #020f22;
  --navy-900: #041a38;
  --navy-800: #073467;
  --red: #e31331;
  --red-dark: #8d1027;
  --white: #ffffff;
  --canvas: #eef2f7;
  --muted-light: #aeb9c8;
  --display: "Barlow Condensed", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --page-pad: clamp(1rem, 3vw, 2.75rem);
  --max: 92rem;
  --division-title-h: 4rem;
  --table-head-h: 2.5rem;
  --standing-row-h: 4.65rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--navy-950);
  background: var(--canvas);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: var(--white);
  background: var(--red);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.standings-page main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background-color: var(--navy-950);
  background-image: url("assets/optimized/ubl-website-hero-1600.webp");
  background-position: center;
  background-size: cover;
}

.standings-page main::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(2, 15, 34, 0.48);
}

.standings-hero {
  min-height: calc(100svh - 5.75rem);
  padding: clamp(2.25rem, 4vw, 4.5rem) var(--page-pad) clamp(2.5rem, 5vw, 5rem);
  color: var(--white);
}

.division-field {
  position: absolute;
  z-index: -2;
  top: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.83;
}

.division-field-girls {
  left: 0;
  background: var(--red-dark);
}

.division-field-boys {
  right: 0;
  background: var(--navy-800);
}

.standings-content {
  width: min(100%, 86rem);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.standings-masthead {
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
  text-align: center;
}

.season-kicker {
  margin-bottom: 0.35rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.standings-masthead h1 {
  margin: 0;
  color: var(--white);
  font: 900 clamp(5.4rem, 10.5vw, 9.75rem)/0.72 var(--display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(2, 15, 34, 0.72);
  text-shadow: 0 0.35rem 0 var(--navy-950), 0 0.8rem 2rem rgba(2, 15, 34, 0.55);
}

.season-status {
  width: max-content;
  max-width: 100%;
  margin: 0.75rem auto 0;
  padding: 0.32rem 0.85rem;
  color: var(--white);
  background: var(--navy-950);
  font: 800 0.78rem/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.25rem minmax(0, 1fr);
  align-items: start;
}

.division-panel {
  min-width: 0;
}

.division-title {
  height: var(--division-title-h);
  padding: 0.55rem clamp(0.75rem, 1.5vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
  text-transform: uppercase;
}

.girls-panel .division-title {
  background: var(--red);
}

.boys-panel .division-title {
  background: var(--navy-800);
}

.division-title span {
  font: 900 clamp(1.6rem, 2.7vw, 2.4rem)/0.9 var(--display);
  letter-spacing: -0.02em;
}

.division-title > strong,
.board-footer,
.standings-freshness {
  display: none !important;
}

.division-table-wrap {
  overflow: hidden;
}

.division-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.division-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.division-table thead tr {
  height: var(--table-head-h);
}

.division-table th {
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--muted-light);
  background: rgba(2, 15, 34, 0.92);
  font: 800 clamp(0.62rem, 0.85vw, 0.76rem)/1 var(--body);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.stat-tooltip {
  position: relative;
  display: inline-flex;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.stat-tooltip-content {
  display: none;
}

.division-table thead {
  position: relative;
  z-index: 3;
}

@media (min-width: 55.01rem) {
  .stat-tooltip {
    cursor: help;
    text-decoration: underline dotted rgba(255, 255, 255, 0.72);
    text-underline-offset: 0.24em;
  }

  .stat-tooltip-content {
    display: block;
    width: max-content;
    max-width: 14rem;
    padding: 0.52rem 0.68rem;
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.7rem);
    left: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    color: var(--white);
    background: var(--navy-950);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 0.55rem 1rem rgba(2, 15, 34, 0.45);
    font: 700 0.72rem/1.2 var(--body);
    letter-spacing: 0;
    white-space: nowrap;
    text-align: left;
    text-transform: none;
    transform: translate(-50%, -0.2rem);
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .stat-tooltip[data-tooltip-align="end"] .stat-tooltip-content {
    right: -0.2rem;
    left: auto;
    transform: translateY(-0.2rem);
  }

  .stat-tooltip:is(:hover, :focus) .stat-tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .stat-tooltip[data-tooltip-align="end"]:is(:hover, :focus) .stat-tooltip-content {
    transform: translateY(0);
  }

  .stat-tooltip:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 0.2rem;
  }
}

.division-table th:nth-child(2) {
  width: 43%;
  padding-left: 0.85rem;
  text-align: left;
}

.division-table th:nth-child(3) {
  width: 11%;
}

.division-table th:nth-child(4) {
  width: 12%;
}

.division-table th:nth-child(n+5) {
  width: 8.5%;
}

.division-table tbody tr {
  height: var(--standing-row-h);
}

.division-table td {
  height: var(--standing-row-h);
  padding: 0.45rem 0.3rem;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
  background-clip: padding-box;
  font: 800 clamp(0.78rem, 1.05vw, 0.98rem)/1 var(--display);
  text-align: center;
}

.girls-panel .division-table td {
  background-color: rgba(113, 13, 35, 0.94);
}

.boys-panel .division-table td {
  background-color: rgba(4, 45, 91, 0.95);
}

.girls-panel .division-table tbody tr:hover td,
.girls-panel .division-table tbody tr:focus-within td {
  background-color: var(--red);
}

.boys-panel .division-table tbody tr:hover td,
.boys-panel .division-table tbody tr:focus-within td {
  background-color: var(--navy-800);
}

.division-table td:nth-child(2) {
  padding-left: 0.75rem;
  text-align: left;
}

.team-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 0.9vw, 0.75rem);
  color: var(--white);
  text-decoration: none;
}

.team-link img {
  width: clamp(2.1rem, 2.8vw, 2.65rem);
  height: clamp(2.1rem, 2.8vw, 2.65rem);
  flex: 0 0 auto;
  object-fit: contain;
}

.team-name,
.team-short {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(0.92rem, 1.3vw, 1.18rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.team-short {
  display: none;
}

.seed-column {
  display: none;
}

.seed-rail {
  min-width: 0;
  color: var(--navy-950);
  text-align: center;
}

.seed-brand {
  height: var(--division-title-h);
  display: grid;
  place-items: center;
  background: rgba(2, 15, 34, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.seed-brand img {
  width: 2.75rem;
  height: 3.3rem;
  object-fit: contain;
}

.seed-rail > strong {
  height: var(--table-head-h);
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seed-rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seed-rail li {
  height: var(--standing-row-h);
  display: grid;
  place-items: center;
}

.seed-rail li span {
  width: 2.25rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: var(--white);
  border: 2px solid var(--navy-950);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
  font: 900 1.45rem/1 var(--display);
}

.standings-note {
  width: min(calc(100% - 2rem), 86rem);
  margin: 1.25rem auto 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  color: var(--white);
  background: var(--navy-900);
  border-left: 0.4rem solid var(--red);
}

.standings-note p {
  margin-bottom: 0.35rem;
  color: #ff9aac;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.standings-note h2 {
  margin-bottom: 0.45rem;
  font: 900 clamp(2rem, 4vw, 3.4rem)/0.92 var(--display);
  text-transform: uppercase;
}

.standings-note div > span {
  max-width: 54rem;
  display: block;
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.standings-note a {
  min-height: 3.25rem;
  padding: 0.8rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white);
  color: var(--white);
  background: var(--red);
  font: 800 0.92rem/1 var(--display);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.standings-note a:hover,
.standings-note a:focus-visible {
  color: var(--navy-950);
  background: var(--white);
}

.noscript-message {
  margin: 0;
  padding: 1rem;
  color: var(--white);
  background: var(--red-dark);
  text-align: center;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

@media (max-width: 72rem) {
  :root {
    --standing-row-h: 4.35rem;
  }

  .division-table th:nth-child(2) {
    width: 40%;
  }

  .team-link img {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 55rem) {
  .standings-hero {
    padding-top: 2.5rem;
  }

  .division-field {
    right: 0;
    left: 0;
    width: 100%;
    height: 50%;
  }

  .division-field-girls {
    top: 0;
    bottom: auto;
  }

  .division-field-boys {
    top: 50%;
    bottom: auto;
  }

  .standings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .seed-rail {
    display: none;
  }

  .seed-column {
    display: table-cell;
  }

  .division-table th:first-child {
    width: 9%;
  }

  .division-table th:nth-child(2) {
    width: 39%;
  }

  .division-table th:nth-child(3) {
    width: 10%;
  }

  .division-table th:nth-child(4) {
    width: 12%;
  }

  .division-table th:nth-child(n+5) {
    width: 7.5%;
  }

  .division-table td.seed-column {
    padding-inline: 0.15rem;
    color: var(--navy-950);
    background-color: var(--white);
    border-right: 0.25rem solid transparent;
    font-size: 1.25rem;
  }

}

@media (max-width: 40rem) {
  :root {
    --division-title-h: 3.65rem;
    --table-head-h: 2.35rem;
    --standing-row-h: 4rem;
  }

  .standings-hero {
    padding-inline: 0.65rem;
  }

  .standings-masthead h1 {
    font-size: clamp(4.7rem, 23vw, 7rem);
  }

  .division-title span {
    font-size: 1.75rem;
  }

  .division-table th,
  .division-table td {
    padding-inline: 0.12rem;
  }

  .division-table th:nth-child(2),
  .division-table td:nth-child(2) {
    padding-left: 0.4rem;
  }

  .division-table th {
    font-size: 0.58rem;
    letter-spacing: 0.025em;
  }

  .division-table td {
    font-size: 0.76rem;
  }

  .team-link {
    gap: 0.35rem;
  }

  .team-link img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .team-name {
    display: none;
  }

  .team-short {
    display: block;
    font-size: 0.88rem;
  }

  .standings-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .standings-note a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
