:root {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --ink: #202d27;
  --green: #1f3a34;
  --paper: #fffef8;
  --stripe: #f3f2e9;
  --line: #c6c8bd;
  --muted: #60675e;
}

* { box-sizing: border-box; }
.stats-table .stats-maximum { font-weight: bold; }
.stats-table [data-stat="pointsTwoMade"],
.stats-table [data-stat="pointsThreeMade"],
.stats-table [data-stat="freeThrowsMade"],
.stats-table [data-stat="reboundsOffensive"],
.stats-table [data-stat="assists"] { border-left: 1px solid #aeb4a6; }
.stats-jersey { width: 1%; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.4 Arial, Helvetica, sans-serif; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #853a20; }
button, input, select { font: inherit; }
button, input, select { border: 1px solid #949b8e; border-radius: 0; background: #fff; color: var(--ink); }
input, select { min-width: 0; max-width: 100%; min-height: 30px; padding: 3px 5px; }
button { cursor: pointer; padding: 4px 12px; min-height: 30px; background: #ececdf; }
button:hover { background: #dedfcd; }
:focus-visible { outline: 2px solid #8c462d; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; padding: 8px; background: white; z-index: 10; }
.skip-link:focus { top: 0; }

.site-header { display: grid; gap: 6px; padding: 10px 20px 8px; border-top: 5px solid var(--green); border-bottom: 1px solid var(--green); }
.header-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 24px; }
.header-row:first-child { align-items: center; justify-content: space-between; }
.site-name { font: bold 24px/1.2 Georgia, "Times New Roman", serif; text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; gap: 16px; }
.site-header .league-nav { display: grid; gap: 0; font-size: 12px; }
.league-nav-row { display: grid; grid-template-columns: 48px 64px 30px 30px; align-items: baseline; gap: 8px; }
.league-nav-label { color: var(--muted); }
.site-header .league-nav a { padding: 4px 0; white-space: nowrap; }
.site-header a { text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.site-header [aria-current] { font-weight: bold; text-decoration: underline; text-decoration-thickness: 2px; }
.manager-link { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
main { padding: 14px 20px 24px; }
.page-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
h1 { margin: 0; font: bold 23px/1.2 Georgia, "Times New Roman", serif; }
h1 span { font-weight: normal; }
h2 span { color: var(--muted); font: normal 13px/1.3 Arial, Helvetica, sans-serif; }
.section-nav, .view-nav { display: flex; gap: 14px; }
.section-nav a[aria-current], .view-nav a[aria-current] { color: var(--ink); font-weight: bold; text-decoration: none; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); align-items: start; gap: 24px; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 7px; }
.home-section-heading a { font-size: 12px; }
.home-games { display: grid; gap: 20px; }
.stat-leaders { border-top: 2px solid var(--green); border-bottom: 1px solid var(--line); }
.stat-leader-category { min-width: 0; border-top: 1px solid var(--line); }
.stat-leader-category:first-child { border-top: 0; }
.stat-leader-category h3 { margin: 0; padding: 6px 8px; background: var(--stripe); font-size: 12px; line-height: 1.25; }
.stat-leader-category ol { margin: 0; padding: 0; list-style: none; }
.stat-leader-category li { display: grid; grid-template-columns: 16px minmax(0, 1fr) 36px; gap: 6px; align-items: baseline; padding: 4px 8px; border-top: 1px solid #e2e2d7; font-size: 12px; }
.stat-leader-category li:first-child { border-top: 0; }
.leader-rank, .leader-player small { color: var(--muted); }
.leader-player { min-width: 0; }
.leader-player small { margin-left: 3px; font-size: 10px; }
.stat-leader-category li > strong { text-align: right; font-variant-numeric: tabular-nums; }
.stat-leader-empty { display: block !important; color: var(--muted); }
.standings-table { font-variant-numeric: tabular-nums; }
.standings-table .stats-entity { min-width: 130px; }
.play-in-standings tbody tr:nth-child(6) > *,
.play-in-standings tbody tr:nth-child(10) > *,
.top-eight-standings tbody tr:nth-child(8) > *,
.group-playoff-standings tbody tr:nth-child(4) > * { border-bottom: 2px solid var(--green); }
.standings-group { margin-top: 14px; }
.standings-group h3 { margin: 0 0 5px; font: bold 18px/1.2 Georgia, "Times New Roman", serif; }
.stats-table tbody .starter-boundary > * { border-bottom: 2px solid var(--green); }
.home-game-list { border-top: 2px solid var(--green); border-bottom: 1px solid var(--line); }
.home-game { display: grid; grid-template-columns: 58px minmax(0, 1fr) 28px; gap: 10px; align-items: center; min-height: 56px; padding: 5px 8px; border-bottom: 1px solid #e2e2d7; color: var(--ink); text-decoration: none; }
.home-game:nth-child(even) { background: var(--stripe); }
.home-game:last-child { border-bottom: 0; }
.home-game:hover { background: #e6ecdf; color: var(--ink); }
.home-game-time { color: var(--muted); font-size: 11px; }
.home-game-clock { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.home-game-teams, .home-game-scores { display: grid; gap: 2px; }
.home-game-scores { text-align: right; font-variant-numeric: tabular-nums; }
.home-game-empty { margin: 0; padding: 13px 8px; color: var(--muted); font-size: 13px; }
.schedule-games { max-width: 720px; border-top: 1px solid var(--line); }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; max-width: 720px; }
.schedule-team-filter { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.schedule-team-filter select { min-width: 130px; }
.schedule-team-filter button { min-height: 0; padding: 3px 8px; }
.schedule-game { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.schedule-game:nth-child(even) { background: var(--stripe); }
.schedule-game:hover { background: #e6ecdf; }
.schedule-home { text-align: right; }
.schedule-home, .schedule-away { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-score { display: grid; justify-items: center; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: center; }
.schedule-live { margin-top: 2px; font-size: 10px; line-height: 1; }

.stats-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; padding: 8px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.stats-filters label { display: flex; flex-direction: column; gap: 3px; }
.minimum-games { width: 85px; }
.filter-panel { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.filter-panel > summary { cursor: pointer; padding: 7px 0; font-size: 13px; }
.filter-panel .stats-filters { margin: 0; border: 0; padding-top: 3px; }
.filter-actions { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.table-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 6px; }
h2 { margin: 0; font: bold 18px/1.3 Georgia, "Times New Roman", serif; }
.view-nav { font-size: 13px; }
.stat-modes { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 8px; font-size: 13px; }
.stat-modes a { padding: 5px 0; }
.stat-modes a[aria-current] { color: var(--ink); font-weight: bold; text-decoration: none; }
.table-search { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; }
.table-search input { width: 150px; }
.result-count { font-size: 12px; color: var(--muted); }

.stats-scroll { max-width: 100%; overflow: auto; border-top: 2px solid var(--green); border-bottom: 1px solid var(--line); }
.stats-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.stats-table th, .stats-table td { white-space: nowrap; padding: 4px 8px; border-bottom: 1px solid #e2e2d7; }
.stats-table thead th { background: #e5e6d8; color: var(--ink); font-weight: bold; border-bottom: 1px solid #a5ac9c; vertical-align: bottom; }
.stats-table thead .shooting-group { text-align: center; padding: 6px 8px; border-bottom: 0; }
.stats-table thead button { border: 0; background: transparent; color: inherit; padding: 3px 0; min-height: 28px; font-weight: inherit; text-decoration: underline; text-decoration-color: #9ba18f; }
.stats-table thead button:hover { text-decoration-color: var(--ink); }
.stats-table [aria-sort="ascending"] button::after { content: " ↑"; }
.stats-table [aria-sort="descending"] button::after { content: " ↓"; }
.stats-table tbody th { font-weight: normal; }
.stats-number { text-align: right; font-variant-numeric: tabular-nums; }
.stats-rank { width: 35px; text-align: right; color: var(--muted); }
.stats-entity { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--paper); border-right: 1px solid var(--line); }
.stats-table .game-log-date { min-width: 0; width: 1%; }
.stats-table tbody tr:nth-child(even) > * { background: var(--stripe); }
.stats-table tbody tr:hover > * { background: #e6ecdf; }
.club-abbrev { margin-left: 7px; color: var(--muted); font-size: 11px; }
.player-position { margin-left: 5px; color: var(--muted); font-size: 11px; font-weight: normal; }
.stats-empty { text-align: left; height: 65px; color: var(--muted); white-space: normal !important; }
.table-note, .search-empty { color: var(--muted); font-size: 12px; margin: 6px 0 12px; }
.stats-definitions { border-top: 1px solid var(--line); padding-top: 7px; font-size: 12px; }
.stats-definitions summary { cursor: pointer; font-weight: bold; }
.stats-definitions dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4px 20px; }
.stats-definitions dl > div { display: flex; gap: 8px; }
.stats-definitions dt { flex: 0 0 48px; font-weight: bold; }
.stats-definitions dd { margin: 0; }
.site-footer { display: flex; gap: 16px; padding: 8px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.back-link, .player-meta { margin: 0 0 10px; font-size: 13px; }
.detail-section { margin: 16px 0; }
.detail-section h2 { margin-bottom: 6px; }
.boxscore-team-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.four-factors { max-width: 900px; }
.four-factors-table { table-layout: fixed; min-width: 560px; }
.four-factors-table col { width: 13%; }
.four-factors-table .factor-team-column { width: 22%; }
.factor-impact-table thead td { background: #e5e6d8; border-bottom: 1px solid #a5ac9c; }
.four-factors .four-factors-table .stats-entity { width: auto; min-width: 80px; max-width: 160px; white-space: normal; }
.factor-impact-heading { margin: 20px 0 4px; font: bold 18px/1.3 Georgia, "Times New Roman", serif; }
.factor-impact-heading + .table-note { margin: 0 0 8px; }
.factor-impact-heading,
.factor-impact-heading + .table-note { position: sticky; left: 0; }
.factor-impact-table { font-size: 13px; }
.factor-contribution { color: #222; white-space: nowrap; }
.factor-impact-table .factor-contribution { font-weight: normal; }
.factor-impact-table .factor-contribution.factor-strong { font-weight: bold; }
.factor-positive { color: #52735b; }
.factor-negative { color: #946057; }
.factor-positive.factor-strong { color: #16552c; }
.factor-negative.factor-strong { color: #9c251b; }
.factor-definitions { color: var(--muted); font-size: 12px; margin-top: 5px; }
.factor-definitions summary { cursor: pointer; }
.factor-definitions p { margin: 5px 0; }
.boxscore-heading p { margin: 5px 0 12px; font-size: 13px; color: var(--muted); }
.stats-table tfoot > tr > * { border-top: 1px solid var(--line); background: #e5e6d8; font-weight: bold; }
.stats-table tfoot > .team-rebounds > * { background: var(--paper); font-weight: normal; }
.live-label, .is-live .score-status { color: #9b251a; }
.boxscore-clock { margin: 8px 0 4px; font-size: 24px; font-weight: bold; font-variant-numeric: tabular-nums; }
.boxscore-clock .live-label { font-size: 12px; margin-right: 8px; vertical-align: middle; }
.boxscore-meta { margin: 4px 0; color: var(--muted); font-size: 12px; }
.boxscore-updated { margin: 4px 0; color: var(--muted); font-size: 11px; }
.score-strip { border-top: 3px solid var(--green); padding: 0 20px; background: var(--stripe); }
.score-strip-content { display: flex; min-width: 0; font-size: 12px; }
.score-date { flex: 0 0 72px; align-self: center; padding: 2px 8px 2px 0; }
.score-date-nav { position: relative; display: grid; grid-template-columns: repeat(2, 32px); }
.score-date-nav a { text-align: center; font-size: 22px; line-height: 32px; text-decoration: none; }
.score-date-picker { grid-column: 1 / -1; }
.score-date-picker summary { display: flex; align-items: center; justify-content: center; min-height: 32px; cursor: pointer; font-weight: bold; text-decoration: underline; text-underline-offset: 3px; }
.score-date-picker summary::-webkit-details-marker { display: none; }
.score-date form { position: absolute; top: 100%; left: 0; z-index: 10; display: flex; gap: 4px; padding: 8px; border: 1px solid var(--line); background: var(--paper); }
.score-date input { width: 140px; font-size: 12px; }
.score-date button { padding: 3px 6px; font-size: 12px; }
.score-games { display: flex; overflow: auto; flex: 1 1 0; min-width: 0; }
.score-game { flex: 0 0 126px; padding: 8px 14px; border-left: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.score-game:hover { background: #e5e6d8; color: var(--ink); }
.score-status { display: block; font-size: 10px; margin-bottom: 3px; white-space: nowrap; }
.score-clubs { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-variant-numeric: tabular-nums; }
.score-empty { align-self: center; margin: 8px 14px; color: var(--muted); }
.refresh-status { margin: 0; padding: 4px 20px; font-size: 12px; color: #9b251a; }

@media (max-width: 720px) {
  .stats-table.team-stats-table .stats-entity,
  .stats-table.standings-table .stats-entity { min-width: 74px; width: 1%; max-width: 90px; white-space: normal; }
}

@media (max-width: 600px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .home-games { gap: 18px; }
  .score-strip { padding: 0 10px; }
  .score-date input { width: 140px; min-height: 32px; }
  .score-date button { min-height: 32px; }
  .score-game { flex-basis: 106px; padding: 8px; }
  .score-date-nav a { line-height: 32px; }
  .site-header { padding: 10px; gap: 4px; }
  .header-row { column-gap: 12px; }
  .site-header nav { gap: 12px; }
  .site-header .league-nav { gap: 0; }
  .site-header .manager-link { font-size: 11px; }
  .site-name { font-size: 23px; }
  .site-header a:not(.site-name) { display: inline-block; padding: 5px 0; }
  .schedule-toolbar { align-items: flex-end; }
  .schedule-team-filter { width: 100%; }
  .schedule-team-filter select { flex: 1; min-width: 0; }
  main { padding: 12px 10px 20px; }
  h1 { font-size: 20px; }
  .page-heading { gap: 8px; }
  .section-nav { width: 100%; }
  .section-nav a, .view-nav a { padding: 5px 0; }
  .stats-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; }
  .stats-filters label { min-width: 0; }
  .stats-filters input, .stats-filters select { width: 100%; min-height: 36px; font-size: 16px; }
  .filter-actions { grid-column: 1 / -1; }
  .filter-actions button { min-height: 36px; }
  .table-toolbar { gap: 4px 12px; }
  .table-toolbar h2 { width: 100%; }
  .view-nav { width: 100%; }
  .table-search { margin-left: 0; }
  .table-search input { font-size: 16px; min-height: 36px; }
  .result-count { margin-left: auto; }
  .stats-table { font-size: 12px; }
  .stats-table th, .stats-table td { padding: 4px 6px; }
  .stats-table thead button { min-height: 36px; }
  .stats-table .stats-entity { min-width: 140px; max-width: 185px; white-space: normal; }
  .team-stats-table .stats-entity { min-width: 96px; max-width: 120px; }
  .stats-table .game-log-date { min-width: 0; max-width: none; width: 1%; white-space: nowrap; }
  .stats-table .stats-rank { display: none; }
  .site-footer { padding: 8px 10px; }
}
