/* Swiss, dense: white, black rules, one sans + one mono, colour only for money. */
:root {
  --bg: #fff; --ink: #0a0a0a; --muted: #6b6b6b; --faint: #9a9a9a; --rule: #ebebeb; --rule-2: #d6d6d6; --hover: #f5f5f5;
  --good: #00804a; --bad: #d4261a; --warn: #8a6100; --warn-wash: #fff6d6;
  --sans: "Inter Tight", Inter, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --c0: #0a0a0a; --c1: #d4261a; --c2: #00804a; --c3: #2f5bea; --c4: #b0b0b0; --c5: #8a8a8a; --c6: #c4c4c4; --c7: #555;
}
:root { color-scheme: light dark; --pos-rgb: 0 143 76; --neg-rgb: 224 40 27; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11; --ink: #ececec; --muted: #9a9a9a; --faint: #6e6e6e; --rule: #23252a; --rule-2: #34373d; --hover: #17191c;
    --good: #3ecf8e; --bad: #ff6b5e; --warn: #e0b341; --warn-wash: #2b2410; --pos-rgb: 62 207 142; --neg-rgb: 255 107 94;
    --c0: #ececec; --c1: #ff6b5e; --c2: #3ecf8e; --c3: #7aa2f7; --c4: #8a8a8a; --c5: #b0b0b0; --c6: #5c5c5c; --c7: #c9c9c9;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 12.5px/1.45 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum'; }
a { color: inherit; text-underline-offset: 3px; }
header { display: flex; align-items: center; gap: 24px; height: 44px; padding: 0 28px; border-bottom: 2px solid var(--ink); background: var(--bg); position: sticky; top: 0; z-index: 3; }
.brand { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
nav { display: flex; gap: 2px; height: 100%; } .links { margin-left: auto; display: flex; gap: 16px; }
.links a { font: 500 11.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--muted); } .links a:hover { color: var(--ink); }
.chip { font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: none; border: 0; padding: 0 9px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
nav .chip { height: 100%; } .chip:hover { color: var(--ink); } .chip.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
main { max-width: 1240px; margin: 0 auto; padding: 22px 28px 48px; }
footer { max-width: 1240px; margin: 0 auto; padding: 14px 28px 40px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--rule); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
h1 { font: 700 22px/1.1 var(--sans); letter-spacing: -0.025em; margin: 0 0 6px; } .desc { margin: 0; color: var(--muted); max-width: 88ch; } .desc a { color: var(--ink); }
h2 { font: 700 11.5px var(--sans); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
section { margin: 0 0 28px; min-width: 0; } p { margin: 4px 0 8px; } .muted { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; } .seg .chip { height: 26px; font-size: 11px; padding: 0 8px; } .seg .chip.on { box-shadow: inset 0 -2px 0 var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; align-items: start; }
.strip-wrap { margin-bottom: 26px; } .strip { display: grid; grid-template-columns: repeat(6, auto); border-top: 2px solid var(--ink); }
.strip > div { padding: 8px 12px 8px 0; } .strip > div + div { padding-left: 12px; border-left: 1px solid var(--rule); }
.strip .k { font: 600 10.5px var(--sans); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } .strip .v { font: 600 22px/1.1 var(--sans); white-space: nowrap; letter-spacing: -0.035em; margin-top: 4px; }
.strip-wrap .muted { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; } .strip-wrap .muted b { font-weight: 500; }
.good { color: var(--good); } .bad { color: var(--bad); }
b.won { color: var(--good); } b.lost { color: var(--bad); } b.pushed, b.void { color: var(--muted); } b.pending { color: var(--c3); } b { font-weight: 600; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 3px 8px; height: 24px; text-align: left; white-space: nowrap; } th.n, td.n { text-align: right; }
th:first-child, td:first-child { padding-left: 0; } th:last-child, td:last-child { padding-right: 6px; }
th { font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--bg); position: sticky; top: 44px; z-index: 1; vertical-align: bottom; }
tr.group th { border-bottom: 0; color: var(--muted); font-size: 10px; padding-bottom: 0; position: static; height: 18px; } tr.group th[colspan] { text-align: center; box-shadow: inset 0 -1px 0 var(--rule-2); }
.gl { border-left: 1px solid var(--rule-2); } tr.group + tr th { top: 44px; }
td { border-bottom: 1px solid var(--rule); max-width: 300px; overflow: hidden; text-overflow: ellipsis; } td.n { font: 400 11.5px var(--mono); } tr:hover td { background-color: var(--hover); }
.pick { font-weight: 600; } td.units { position: relative; } .bar { display: inline-block; vertical-align: middle; height: 7px; width: calc(var(--w) * 0.5); margin-left: 6px; background: var(--good); }
td.units { min-width: 120px; } .bar.neg { background: var(--bad); }
tr.adj td { background: var(--warn-wash); } .flag { font: 600 9.5px var(--mono); background: #ffd54f; color: #0a0a0a; padding: 0 3px; vertical-align: 1px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; }
select, input { font: 12.5px var(--sans); height: 30px; padding: 0 10px; color: var(--ink); background: var(--bg); border: 1px solid var(--ink); border-radius: 0; } input.search { width: 170px; }
.summary { margin-left: auto; font: 12px var(--mono); color: var(--muted); } .summary b { font-weight: 500; }
.chart { width: 100%; display: block; border-top: 1.5px solid var(--ink); } .axis { font: 10px var(--mono); fill: var(--muted); } .grid { stroke: var(--rule); } .zero { stroke: var(--ink); stroke-width: .8; }
.series { fill: none; stroke: var(--c); stroke-width: 1.3; stroke-linejoin: round; } .series.dim { opacity: .45; } .series.hl { stroke-width: 2.6; } .axis.dim { opacity: .55; } .axis.hl { font-weight: 500; fill: var(--ink); }
.prose { max-width: 760px; } .prose h2 { margin: 22px 0 6px; } .prose ul, .prose ol { padding-left: 18px; margin: 4px 0 10px; } .prose li { margin: 4px 0; }
code { font: 12px var(--mono); background: var(--hover); padding: 1px 4px; }
details summary { font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .07em; cursor: pointer; margin: 10px 0 6px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } .strip { grid-template-columns: repeat(3, 1fr); } }
.series.hl { stroke: var(--ink) !important; } .axis.hl { fill: var(--ink) !important; }
.xhair { stroke: var(--ink); stroke-width: .6; stroke-dasharray: 2 2; } .dots circle { stroke: var(--bg); stroke-width: 1.2; }
.tip { position: absolute; z-index: 10; min-width: 170px; padding: 6px 9px; background: var(--bg); border: 1px solid var(--ink); font: 11.5px var(--mono); pointer-events: none; }
.tip b { display: block; margin-bottom: 4px; font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .07em; }
.tip div { display: flex; align-items: center; gap: 7px; line-height: 1.6; } .tip i { width: 8px; height: 8px; flex: none; } .tip span { margin-left: auto; }
.tip em { min-width: 44px; font-style: normal; text-align: right; color: var(--muted); }
.tip .h { color: var(--muted); font-size: 10px; line-height: 1.4; } .tip .h span { margin-left: auto; }
@media (prefers-color-scheme: dark) {
  /* Light-on-dark text renders thin with antialiased smoothing and small sizes: let macOS thicken it and step the weight up a notch. */
  body { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; font-weight: 440; }
  td.n, .tip, .strip-wrap .muted, .summary, .axis { font-weight: 450; }
  .muted, .desc, footer { color: #b0b0b0; }
}
