/* Gamma Desk. Colour carries polarity only: blue = positive (call-heavy) gamma, red = negative (put-heavy).
   Pair validated with the dataviz validate_palette.js on both surfaces. Text never wears the data colours. */
:root {
  --page: #f1efe9; --sheet: #fbfaf7; --sheet-2: #f4f2ec;
  --ink: #15171a; --ink-2: #4a4d52; --muted: #7d7f82;
  --rule: #dcd9d0; --grid: #e7e4dc; --axis: #c4c1b7;
  --pos: #2a78d6; --neg: #e34948;
  --pos-wash: rgba(42, 120, 214, .11); --neg-wash: rgba(227, 73, 72, .11);
  --band: rgba(21, 23, 26, .07);
  --chip: #efe6c8; --chip-ink: #4d4215;
  --shadow: 0 1px 0 rgba(21, 23, 26, .04), 0 14px 30px -24px rgba(21, 23, 26, .35);
  --f-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-disp: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #111316; --sheet: #191c21; --sheet-2: #1f2329;
    --ink: #f0eee8; --ink-2: #c2c0b8; --muted: #8b8d90;
    --rule: #2c3038; --grid: #262a31; --axis: #3a3f48;
    --pos: #3987e5; --neg: #e66767;
    --pos-wash: rgba(57, 135, 229, .16); --neg-wash: rgba(230, 103, 103, .15);
    --band: rgba(240, 238, 232, .08);
    --chip: #3b3415; --chip-ink: #f0e3a8;
    --shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 16px 34px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #111316; --sheet: #191c21; --sheet-2: #1f2329;
  --ink: #f0eee8; --ink-2: #c2c0b8; --muted: #8b8d90;
  --rule: #2c3038; --grid: #262a31; --axis: #3a3f48;
  --pos: #3987e5; --neg: #e66767;
  --pos-wash: rgba(57, 135, 229, .16); --neg-wash: rgba(230, 103, 103, .15);
  --band: rgba(240, 238, 232, .08);
  --chip: #3b3415; --chip-ink: #f0e3a8;
  --shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 16px 34px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/1.55 var(--f-ui); font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: 3px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--sheet); padding: 8px 12px; z-index: 20; }
:focus-visible { outline: 2px solid var(--pos); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 10px 20px;
  background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; }
.tabs { display: flex; gap: 4px; }
.tabs button { font: inherit; font-weight: 500; color: var(--ink-2); background: none; border: 1px solid transparent; border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.tabs button:hover { background: var(--sheet-2); }
.tabs button[aria-pressed="true"] { color: var(--ink); background: var(--sheet); border-color: var(--rule); box-shadow: var(--shadow); }
.topright { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.theme { font: inherit; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); cursor: pointer; }

main { max-width: 1120px; margin: 0 auto; padding: 22px 20px 40px; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; }
.notice { border: 1px solid var(--rule); border-left: 4px solid var(--ink-2); background: var(--sheet); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; color: var(--ink-2); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: end; padding: 14px 4px 26px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 0; font: 400 clamp(46px, 7.2vw, 86px)/.98 var(--f-disp); letter-spacing: -.01em; }
h1 .dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; margin-left: .12em; vertical-align: .08em; }
h1 .dot.pos { background: var(--pos); } h1 .dot.neg { background: var(--neg); }
.lede { margin: 14px 0 12px; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.lede b { color: var(--ink); font-weight: 600; }
.untested { margin: 0; font-size: 13px; color: var(--muted); }
.chip { display: inline-block; background: var(--chip); color: var(--chip-ink); border-radius: 4px; padding: 1px 7px; font-weight: 500; margin-right: 4px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tile { background: var(--sheet); padding: 13px 14px 12px; min-width: 0; }
.tile .k { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.tile .v { font-size: 25px; font-weight: 600; line-height: 1.15; margin-top: 3px; white-space: nowrap; }
.tile .d { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.tile .d span { color: var(--muted); }

.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px 16px; margin-top: 16px; box-shadow: var(--shadow); }
.card-head { margin-bottom: 10px; }
h2 { margin: 0; font: 400 26px/1.15 var(--f-disp); }
h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.sub { margin: 5px 0 0; color: var(--ink-2); font-size: 14px; max-width: 86ch; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.filters button { font: inherit; font-size: 13.5px; color: var(--ink-2); background: var(--sheet-2); border: 1px solid var(--rule); border-radius: 6px; padding: 4px 11px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.sw.pos { background: var(--pos); } .sw.neg { background: var(--neg); }

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-ui); font-variant-numeric: tabular-nums; }
.g-grid { stroke: var(--grid); stroke-width: 1; }
.g-axis { stroke: var(--axis); stroke-width: 1; }
.t-tick { fill: var(--muted); font-size: 11.5px; }
.t-lab { fill: var(--ink); font-size: 12px; font-weight: 500; }
.t-lab.halo { paint-order: stroke; stroke: var(--sheet); stroke-width: 5px; stroke-linejoin: round; }
.t-lab2 { fill: var(--ink-2); font-size: 11.5px; }
.bar.pos { fill: var(--pos); } .bar.neg { fill: var(--neg); }
.bar.dim { opacity: .35; }
.m-spot { stroke: var(--ink); stroke-width: 1.5; }
.m-level { stroke: var(--ink-2); stroke-width: 1.25; stroke-dasharray: 4 3; }
.m-wall { stroke: var(--ink-2); stroke-width: 1.25; stroke-dasharray: 1.5 3; stroke-linecap: round; }
.line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wash.pos { fill: var(--pos-wash); } .wash.neg { fill: var(--neg-wash); }
.dot { fill: var(--ink); stroke: var(--sheet); stroke-width: 2; }
.dot.pos { fill: var(--pos); } .dot.neg { fill: var(--neg); }
.cross { stroke: var(--ink-2); stroke-width: 1; }
.band { fill: var(--band); }
.hit { fill: transparent; }

.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--ink); color: var(--sheet); border-radius: 8px; padding: 8px 11px; font-size: 13px; line-height: 1.45; max-width: 260px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.tip b { font-weight: 600; } .tip .r { display: flex; justify-content: space-between; gap: 16px; } .tip .r span:first-child { opacity: .75; }

.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th { font-weight: 500; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--rule); }
tr:last-child td { border-bottom: 0; }
td.sharecell { width: 28%; min-width: 120px; }
.sharebar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.sharebar i { display: block; height: 8px; border-radius: 0 3px 3px 0; min-width: 1px; }
.sharebar i.pos { background: var(--pos); } .sharebar i.neg { background: var(--neg); }
.sharebar .track { flex: 1; display: flex; }
.tag { font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.empty { color: var(--muted); padding: 8px 0; }
.tableview { margin-top: 8px; font-size: 14px; } .tableview summary { cursor: pointer; color: var(--ink-2); }
.tableview .two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }

.method .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
dl { margin: 0; } dt { font-weight: 600; margin-top: 8px; } dd { margin: 0; color: var(--ink-2); }
.method ul { margin: 0; padding-left: 18px; color: var(--ink-2); } .method li { margin-bottom: 7px; } .method li b { color: var(--ink); font-weight: 600; }
.quality { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--grid); color: var(--muted); font-size: 13px; }
.foot { max-width: 1120px; margin: 0 auto; padding: 0 20px 36px; color: var(--muted); font-size: 12.5px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .method .cols, .tableview .two { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .top { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; }
  .topright { width: 100%; justify-content: space-between; order: 3; }
  main { padding: 14px 16px 32px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .v { font-size: 21px; }
  .card { padding: 14px 14px 12px; }
  h2 { font-size: 23px; }
}
