:root {
  --bg: #fbfaf7; --panel: #f1efe9; --fg: #1d1c1a; --muted: #6b6862; --line: #e2dfd8;
  --c0: #2f6fd0; --c1: #d9772b; --chart-muted: #aeaaa2; --grid: #ebe8e1; --axis: #cfcbc2;
  --crit: #c8382f; --ok: #2c7a4b; --bad: #b23b2f; --warn: #a86a12;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1918; --panel: #262523; --fg: #ecebe7; --muted: #a29f98; --line: #34322f;
    --c0: #6ea2f0; --c1: #f0a05f; --chart-muted: #6c6963; --grid: #2c2b28; --axis: #45433f;
    --crit: #f06a5f; --ok: #6cc28f; --bad: #f08a7f; --warn: #e3ac55; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1918; --panel: #262523; --fg: #ecebe7; --muted: #a29f98; --line: #34322f;
  --c0: #6ea2f0; --c1: #f0a05f; --chart-muted: #6c6963; --grid: #2c2b28; --axis: #45433f;
  --crit: #f06a5f; --ok: #6cc28f; --bad: #f08a7f; --warn: #e3ac55; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--sans); }
select { font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.gs-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1340px; margin: 0 auto; }
.gs { display: grid; gap: 40px; max-width: 1120px; width: 100%; margin: 0 auto; padding: 28px 16px 64px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
html { scroll-behavior: smooth; }
.gs [id] { scroll-margin-top: calc(var(--stick, 80px) + 12px); }
.gs-nav { font-size: 14px; }
.gs-nav a { color: var(--muted); text-decoration: none; display: block; padding: 4px 10px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; }
.gs-nav a:hover { color: var(--fg); background: var(--panel); }
.gs-nav a[aria-current=true] { color: var(--fg); border-left-color: var(--c0); background: var(--panel); font-weight: 600; }
.gs-nav-head { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 4px; }
@media (min-width: 1100px) {
  .gs-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 8px; padding-left: 16px; }
  .gs-nav { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 96px 0 24px; }
}
@media (max-width: 1099.98px) {
  .gs-nav { position: sticky; top: 0; z-index: 7; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; gap: 2px; overflow-x: auto; white-space: nowrap; padding: 6px 12px; scrollbar-width: none; }
  .gs-nav::-webkit-scrollbar { display: none; }
  .gs-nav-group { display: contents; }
  .gs-nav-head { display: none; }
  .gs-nav a { display: inline-block; border-left: 0; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
  .gs-nav a[aria-current=true] { background: var(--panel); border: 0; }
  .gs-controls { position: static; }
}
.gs > * { min-width: 0; }
.gs h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 0; text-wrap: balance; }
.gs h2 { font-size: 1.25rem; font-weight: 600; margin: 0; text-wrap: balance; }
.gs h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.gs p { margin: 0; }
.gs-sub { color: var(--muted); }
.gs-lede { font-size: 1.2rem; line-height: 1.45; max-width: 62ch; }
.gs-lede b, .gs-pts-lede b { font-weight: 600; font-variant-numeric: tabular-nums; }
.gs-head { display: grid; gap: 8px; }
.gs-controls { position: sticky; top: 0; z-index: 6; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.gs-ctl { display: grid; gap: 4px; min-width: 0; flex: 1 1 200px; max-width: 320px; }
.gs-ctl-sm { flex: 0 1 140px; }
.gs-ctl select { width: 100%; min-width: 0; }
.gs-label { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.gs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.gs-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.gs-big { font-family: var(--serif); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gs-note { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gs-good { color: var(--ok); }
.gs-bad { color: var(--bad); }
.gs-sec, .gs-part { display: grid; gap: 10px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.gs-sec > p { color: var(--muted); max-width: 72ch; }
.gs-part { gap: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.gs-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gs-chart { position: relative; min-height: 260px; min-width: 0; }
.gs-chart svg { display: block; overflow: visible; }
.gs .tick text, .gs .gs-axlabel { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.gs .domain { stroke: var(--axis); }
.gs .tick line { stroke: var(--grid); }
.gs .gs-endlabel { fill: var(--fg); font-size: 12px; font-family: var(--sans); }
.gs-tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.15); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.45; white-space: nowrap; z-index: 5; font-variant-numeric: tabular-nums; }
.gs-tip strong { font-weight: 600; }
.gs-tip span { color: var(--muted); }
.gs-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.gs-legend li { display: flex; align-items: center; gap: 6px; }
.gs-sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.c0 { background: var(--c0); color: var(--c0); }
.c1 { background: var(--c1); color: var(--c1); }
.gs-sw-ring { background: transparent !important; border: 2px solid currentColor; width: 8px; height: 8px; }
.gs-sw-line { width: 16px; height: 2px; border-radius: 1px; }
.gs-sw-dash { width: 16px; height: 0; border-top: 2px dashed var(--chart-muted); border-radius: 0; }
.gs-muted-sw { background: var(--chart-muted); color: var(--chart-muted); }
.gs-crit-sw { background: var(--crit); }
.gs-seg { display: inline-flex; justify-self: start; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gs-seg button { font: inherit; font-size: 13px; background: transparent; color: var(--muted); border: 0; padding: 6px 12px; cursor: pointer; }
.gs-seg button + button { border-left: 1px solid var(--line); }
.gs-seg button[aria-pressed=true] { background: var(--panel); color: var(--fg); font-weight: 600; }
button:focus-visible, tr:focus-visible, select:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.gs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-chip { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 8px; padding: 6px 12px; cursor: pointer; display: grid; gap: 2px; text-align: left; font-variant-numeric: tabular-nums; }
.gs-chip small { color: var(--muted); font-size: inherit; }
.gs-chip[aria-pressed=true] { background: var(--panel); border-color: var(--fg); }
.gs-cond { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.gs-cond-wet { border-color: var(--warn); color: var(--warn); }
.gs-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.gs-grid2 > * { min-width: 0; }
.gs-tablewrap { overflow-x: auto; }
.gs table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.gs th, .gs td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gs th { color: var(--muted); font-weight: 600; }
.gs th:first-child, .gs td:first-child { text-align: left; }
.gs tr.gs-me td { font-weight: 600; background: var(--panel); }
.gs tr.gs-rival td { background: var(--panel); }
.gs tr.gs-pick { cursor: pointer; }
.gs tr.gs-pick:hover td { background: var(--panel); }
.gs td .gs-sw { margin-right: 6px; vertical-align: -1px; }
.gs details summary { cursor: pointer; color: var(--muted); }
.gs details p { max-width: 72ch; color: var(--muted); margin-top: 10px; }
.gs-grid td { text-align: center; padding: 4px 6px; min-width: 34px; }
.gs-grid th { text-align: center; }
.gs-grid td:first-child, .gs-grid th:first-child { text-align: left; }
.gs-grid td.gs-drop { color: var(--muted); text-decoration: line-through; }
.gs-grid td.gs-absent { color: var(--muted); }
.gs-standings th:nth-child(2), .gs-standings td:nth-child(2) { text-align: left; }
.gs-pts-lede { max-width: 72ch; }
.gs-badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: 2px; margin-left: 6px; font-weight: 400; }
.gs-fail { color: var(--muted); font-size: 13px; padding: 12px 0; }
.gs-chart[data-h=short] { min-height: 120px; }
.gs-chart[data-h=mid] { min-height: 240px; }
.gs-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gs-theme { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.gs-theme:hover { color: var(--fg); border-color: var(--fg); }
.gs-theme svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs-theme .i-sun { display: none; }
.gs-theme.is-dark .i-sun { display: inline; }
.gs-theme.is-dark .i-moon { display: none; }
[hidden] { display: none !important; }
.gs-part-head { display: grid; gap: 2px; }
.gs-part-head p { color: var(--muted); }
.gs-part > .gs-part-head .gs-eyebrow { font-size: 13px; color: var(--fg); font-weight: 600; }
.gs-chart-auto { min-height: 80px; }
.gs th.gs-sortable { cursor: pointer; user-select: none; padding: 0; }
.gs th.gs-sortable button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 6px 8px; cursor: pointer; text-align: inherit; }
.gs th.gs-sortable button:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }
.gs th.gs-sortable:hover { color: var(--fg); }
.gs th[aria-sort] { color: var(--fg); }
.gs th.gs-sortable button::after { content: ""; display: inline-block; width: 1em; text-align: center; }
.gs th[aria-sort=ascending] button::after { content: "▲"; font-size: 9px; }
.gs th[aria-sort=descending] button::after { content: "▼"; font-size: 9px; }
.gs-profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.gs-profile { border: 1px solid var(--grid, var(--axis)); border-radius: 8px; padding: 12px 14px; }
.gs-profile h3 { margin: 0 0 6px; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.gs-profile-sum { margin: 0 0 8px; }
.gs-profile table { width: 100%; }
.gs-profile td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.gs-profile tr.gs-strong td:last-child { color: #2e9e4f; font-weight: 600; }
.gs-profile tr.gs-weak td:last-child { color: #d84a3c; font-weight: 600; }
.gs-part-head .gs-seg { margin-top: 10px; }
.gs-sw-fg { background: var(--fg); color: var(--fg); }
