/* Created by Jared Manfredi. */
:root {
  color-scheme: light;
  --ink: #142749;
  --muted: #647185;
  --paper: #f3f5f8;
  --line: #dce2ea;
  --gold: #d4be52;
  --green: #176344;
  --white: #ffffff;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px;
}
button,
select,
input {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid #bb8422;
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
.skip {
  position: absolute;
  top: -60px;
  z-index: 5;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.masthead {
  background: #0c2049;
  color: #f8f6ed;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.12em;
  text-decoration: none;
  line-height: 1.2;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #c3cfe2;
  font-weight: 500;
  margin-top: 7px;
}
.season-tag {
  border: 1px solid #445474;
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #d3dbd3;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--muted);
}
.update-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 2px;
}
.status {
  display: flex;
  gap: 7px;
  align-items: center;
  background: #e6eee6;
  color: #2a5a37;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 24px;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #39804f;
  border-radius: 50%;
}
.status.stale {
  background: #fff1d5;
  color: #755422;
}
.status.stale:before {
  background: #ad752d;
}
time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.text-button {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 0;
}
.text-button span {
  font-size: 18px;
  margin-left: 7px;
}
.text-button:disabled {
  opacity: 0.5;
}
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.highlight {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 14px;
  min-height: 155px;
}
.highlight h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 12px 0 5px;
  line-height: 1.3;
}
.big-number {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.card-note {
  font-size: 11px;
  color: var(--muted);
}
.leader {
  color: white;
  background: #123862;
  border-color: #123862;
  position: relative;
  overflow: hidden;
}
.leader:after {
  content: "";
  position: absolute;
  border: 1px solid #476985;
  border-radius: 50%;
  width: 170px;
  height: 170px;
  right: -80px;
  bottom: -75px;
  pointer-events: none;
}
.leader .eyebrow {
  color: var(--gold);
}
.leader .card-note {
  color: #c3d1c6;
}
.board {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.tabs {
  display: flex;
  gap: 24px;
}
.tab {
  font-size: 13px;
  font-weight: 650;
  min-height: 64px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 0 1px;
  color: var(--muted);
}
.tab.active {
  color: var(--green);
  border-color: var(--green);
}
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.controls label {
  color: var(--muted);
}
select {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 7px 25px 7px 10px;
  border-radius: 7px;
  color: var(--ink);
}
.live-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-toggle input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}
.board-description {
  padding: 22px 24px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}
.board-description h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 650;
}
.board-description p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
th {
  font-weight: 650;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #f4f6f9;
  padding: 12px 18px;
}
td {
  padding: 17px 18px;
  border-bottom: 1px solid #eaece5;
  font-size: 13px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f4f7fb;
}
td.numeric,
th.numeric {
  text-align: right;
}
.rank-col {
  width: 55px;
}
.rank {
  color: #839086;
  text-align: center;
  font-size: 12px;
}
.first .rank {
  color: #745623;
  font-weight: 800;
}
.first .points {
  color: var(--green);
}
.team-name {
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #edf0e9;
  border: 1px solid #dfe6da;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #526349;
}
.first .avatar {
  background: #eee2bd;
  border-color: #dac28a;
  color: #6c5321;
}
.points {
  font-weight: 750;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.muted {
  color: var(--muted);
}
.pct {
  display: block;
  position: relative;
  padding-bottom: 5px;
}
.pct:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  height: 2px;
  width: var(--pct);
  max-width: 45px;
  background: #80a890;
  border-radius: 1px;
}
.ranks {
  flex-wrap: wrap;
  max-width: 160px;
  display: flex;
  gap: 5px;
}
.rank-chip {
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #edf1e9;
  color: #5e705e;
  width: 23px;
  height: 23px;
  font-size: 10px;
}
.rank-chip.podium {
  background: #efe5c8;
  color: #705924;
}
.history-heading {
  min-width: 132px;
}
.alert {
  border: 1px solid #ddc185;
  background: #fff4dd;
  color: #725423;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 20px;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.score-change {
  animation: score-flash 1.5s ease-out;
}
@keyframes score-flash {
  from {
    background: #e2efd9;
  }
  to {
    background: transparent;
  }
}
.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}
@media (max-width: 800px) {
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  .highlights {
    grid-template-columns: 1fr 1fr;
  }
  .board-description {
    display: block;
  }
  .board-description p {
    margin-top: 5px;
  }
  th,
  td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .history-heading,
  td.history {
    display: none;
  }
  .board-top {
    padding: 0 16px;
  }
  .tabs {
    gap: 15px;
  }
}
@media (max-width: 540px) {
  .header-inner {
    height: 78px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-sub {
    font-size: 7px;
    letter-spacing: 0.09em;
  }
  .season-tag {
    font-size: 9px;
    padding: 5px 8px;
  }
  .update-box {
    margin-top: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: start;
    gap: 5px 12px;
  }
  .update-box .status {
    justify-self: start;
  }
  .update-box time {
    text-align: right;
    font-size: 10px;
  }
  .text-button {
    grid-column: 2;
    justify-self: end;
    padding: 0;
  }
  .highlights {
    gap: 10px;
    margin-bottom: 22px;
  }
  .highlight {
    padding: 17px;
    min-height: 172px;
    border-radius: 11px;
  }
  .highlight h2 {
    font-size: 15px;
    min-height: 38px;
    margin: 9px 0 2px;
  }
  .big-number {
    font-size: 30px;
  }
  .card-note {
    font-size: 9px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .board-top {
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 12px;
  }
  .tabs {
    width: 100%;
    gap: 22px;
  }
  .tab {
    min-height: 54px;
  }
  .controls {
    width: 100%;
    justify-content: flex-end;
    padding-top: 10px;
  }
  .board-description {
    padding: 17px 16px 12px;
  }
  .table-scroll table {
    min-width: 535px;
  }
  th,
  td {
    padding: 14px 10px;
  }
  .team-name {
    gap: 8px;
  }
  .rank-col {
    width: 38px;
  }
  .avatar {
    width: 25px;
    height: 25px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.score-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0;
}
.score-toolbar .update-box {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
@media (max-width: 540px) {
  .score-toolbar .update-box {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
    margin-top: 0;
    gap: 8px 12px;
  }
  .score-toolbar .update-box .status {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .score-toolbar .update-box time {
    grid-column: 1;
    text-align: left;
  }
  .score-toolbar .update-box .text-button {
    grid-column: 2;
  }
  .score-toolbar {
    width: 100%;
    padding: 16px 0;
  }
  .highlights {
    margin-bottom: 18px;
  }
}

.avatar {
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lineup-progress {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  white-space: normal;
}
