/* Layout idea: matches the Summit Grid site. Deep navy hero band (faint grid + soft blue glow)
   with a heavy tight headline and a light-blue accent phrase, then a cool light content area
   with white soft-shadow cards. One steel-blue accent carries buttons, links and the data.
   Single theme by design: the navy/white split is the brand. */
:root {
  color-scheme: light;
  --navy-950: #0b1423;
  --navy-900: #111c2e;
  --navy-800: #172438;
  --navy-700: #1e2e47;
  --line-dark: rgba(255, 255, 255, 0.09);
  --steel: #2f6aa8;
  --steel-hover: #285d95;
  --sky: #8fbce6;
  --on-dark: #f1f5f9;
  --on-dark-2: #b6c3d4;
  --on-dark-3: #8496ad;

  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e2e8f0;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --grid: #edf1f6;
  --axis: #cbd5e1;
  --hl: #f1f6fc;

  --series-1: #2f6aa8;
  --series-1-soft: #b9d1ea;
  --series-2: #eb6834;
  --tough-bg: #e6eff9; --tough-fg: #1f4f82;
  --soft-bg: #fdeee6; --soft-fg: #9a3d12;
  --neutral-bg: #eef2f6; --neutral-fg: #475569;
  --crit: #d03b3b; --warn: #d99100; --good: #0ca30c;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 60px rgba(4, 10, 20, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header */
.site-head { background: var(--navy-900); border-bottom: 1px solid var(--line-dark); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { font: 800 21px/1 var(--font-display); letter-spacing: -0.02em; display: grid; gap: 4px; }
.brand-text b, .foot-brand b { color: var(--sky); font-weight: 800; }
.brand-text small { font: 600 9.5px/1 var(--font-body); letter-spacing: 0.32em; text-transform: uppercase; color: var(--on-dark-2); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--on-dark-2); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 8px; }
.nav a:hover { color: var(--on-dark); text-decoration: none; background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: var(--on-dark); background: rgba(143, 188, 230, 0.12); }
.data-pill { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--sky); border: 1px solid rgba(143, 188, 230, 0.35); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
body.is-demo .data-pill::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); margin-right: 7px; vertical-align: 1px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--on-dark); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero band */
.hero {
  position: relative; color: var(--on-dark); overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(47, 106, 168, 0.38), transparent 65%),
    radial-gradient(600px 400px at -10% 110%, rgba(47, 106, 168, 0.14), transparent 70%),
    linear-gradient(180deg, var(--navy-950), #0e1a2c);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero > .wrap { position: relative; padding-top: 52px; padding-bottom: 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr); gap: 48px; align-items: center; }
.hero-grid.no-aside { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.hero .eyebrow, .panel .eyebrow { color: var(--sky); }
h1 { margin: 0; font: 800 clamp(36px, 5.2vw, 60px)/1.04 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
h1 .accent { color: var(--sky); }
h1 .at { color: var(--on-dark-3); font-weight: 700; }
.hero-lede { margin: 18px 0 0; max-width: 60ch; font-size: 17.5px; line-height: 1.6; color: var(--on-dark-2); }
.hero-lede a { color: var(--sky); }
.hero .back { display: inline-block; margin-bottom: 18px; color: var(--on-dark-2); font-size: 14px; font-weight: 500; }
.hero .back:hover { color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15.5px; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--steel); color: #fff; }
.btn.primary:hover { background: var(--steel-hover); }
.btn.ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); }

/* Dark panel (right side of hero) */
.panel { background: linear-gradient(180deg, rgba(30, 46, 71, 0.85), rgba(23, 36, 56, 0.85)); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 28px 30px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); }
.numlist { display: grid; }
.numrow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-dark); color: var(--on-dark); }
.numrow:first-child { border-top: 0; padding-top: 2px; }
.numrow:hover { text-decoration: none; }
.numrow:hover strong { color: var(--sky); }
.numrow-body { display: grid; gap: 1px; }
.numrow-body strong { font-size: 15.5px; font-weight: 700; }
.numrow-body span { font-size: 13px; color: var(--on-dark-2); }
.chev { color: var(--on-dark-3); font-size: 20px; }
.badge { display: inline-grid; place-items: center; width: 36px; height: 34px; border-radius: 9px; background: rgba(143, 188, 230, 0.1); color: var(--sky); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.badge.light { background: var(--navy-800); color: var(--sky); }
.panel-dl { margin: 0; display: grid; }
.panel-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-dark); }
.panel-dl > div:first-child { border-top: 0; padding-top: 0; }
.panel-dl dt { color: var(--on-dark-2); font-size: 14px; }
.panel-dl dd { margin: 0; font: 700 22px/1.15 var(--font-display); text-align: right; display: grid; justify-items: end; gap: 2px; }
.panel-dl dd.small { font: 600 14px/1.35 var(--font-body); }
.dd-sub { font: 500 12px/1.2 var(--font-body); color: var(--on-dark-3); }
.dd-vs { font: 500 12px var(--font-body); color: var(--on-dark-3); }
.panel-dl dd { grid-auto-flow: row; }
.panel-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-3); }
.panel-empty { color: var(--on-dark-2); margin: 0; }
.panel-more { display: inline-block; margin-top: 14px; color: var(--sky); font-weight: 600; font-size: 14px; }
.spark { display: block; }
.spark .sb { fill: var(--series-1-soft); }
.spark .sb-last { fill: var(--series-1); }
.sub.up { color: var(--steel); font-weight: 600; }
.sub.down { color: var(--ink-3); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--on-dark); font-size: 15px; line-height: 1.5; }
.check { width: 22px; height: 22px; margin-top: 1px; }
.check circle { fill: rgba(143, 188, 230, 0.16); }
.check path { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Glass KPI strip under the hero */
.hero-below { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.hero-kpis { display: contents; }
.glass { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.glass-k { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); }
.glass-v { font: 800 30px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--on-dark); }
.glass-d { font-size: 13px; color: var(--on-dark-2); overflow: hidden; text-overflow: ellipsis; }

/* Stat tabs on dark */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.tabs a { padding: 9px 16px; border-radius: 10px; color: var(--on-dark-2); font-weight: 600; font-size: 14.5px; border: 1px solid var(--line-dark); }
.tabs a:hover { color: var(--on-dark); text-decoration: none; border-color: rgba(255, 255, 255, 0.25); }
.tabs a.on { background: var(--steel); border-color: var(--steel); color: #fff; }

/* ---------- Content area */
.content { padding-top: 32px; padding-bottom: 64px; display: grid; gap: 22px; }
.block { display: grid; gap: 0; margin-top: 18px; }
.block > .eyebrow { margin-bottom: 8px; }
h2 { margin: 0 0 18px; font: 800 clamp(24px, 3vw, 32px)/1.15 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.block-sub { margin: -10px 0 18px; color: var(--ink-2); max-width: 65ch; }
h3 { margin: 0 0 4px; font: 700 18.5px/1.25 var(--font-display); letter-spacing: -0.01em; }
h4 { margin: 18px 0 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em; }
.card h4:first-of-type { margin-top: 14px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow); min-width: 0; }
.card.accent-left { border-left: 4px solid var(--steel); }
.card-sub { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.table-card { padding: 8px 0 0; overflow: hidden; }
.table-card > h3, .table-card > .card-sub { padding: 0 26px; }
.foot { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.foot.pad { margin: 0; padding: 12px 26px 16px; border-top: 1px solid var(--border); }
.small { font-size: 13.5px; }
.muted { color: var(--ink-3); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.two.wide-left { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }

/* Toolbar */
.toolbar { padding: 16px 18px; display: grid; gap: 14px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; justify-content: space-between; }
.tool-row.selects { justify-content: flex-start; }
.selects label { display: grid; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
select, input[type="search"] { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; min-height: 40px; }
select { padding-right: 30px; }
select:hover, input[type="search"]:hover { border-color: var(--axis); }
.search { flex: 1 1 220px; max-width: 340px; }
.search input { width: 100%; padding-left: 36px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E") no-repeat 12px 50%; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { font: 600 14px var(--font-body); color: var(--ink-2); background: transparent; border: 0; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--navy-900); color: #fff; }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 12px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--grid); }
thead th { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; background: #fafbfd; border-bottom: 1px solid var(--border); }
tbody th { font-weight: 600; }
.table-card th:first-child, .table-card td:first-child { padding-left: 26px; }
.table-card th:last-child, .table-card td:last-child { padding-right: 26px; }
.card:not(.table-card) thead th { background: transparent; }
.card:not(.table-card) th:first-child, .card:not(.table-card) td:first-child { padding-left: 0; }
.card:not(.table-card) th:last-child, .card:not(.table-card) td:last-child { padding-right: 0; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.board tbody tr { transition: background 0.1s; }
.board td { white-space: nowrap; }
.board th, .board td { padding-left: 9px; padding-right: 9px; }
.board tbody tr:hover { background: var(--hl); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong { font-weight: 700; }
.big-num { font: 700 17px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.vs { color: var(--ink-3); font-size: 12px; }
.sub { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-top: 1px; }
.sub-inline { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.who { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--navy-900); color: var(--sky); font: 700 13px var(--font-body); letter-spacing: 0.02em; }
.player-link { font-weight: 700; color: var(--ink); }
.player-link:hover { color: var(--steel); }
.game-link { font-weight: 600; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 26px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-3); }
.empty { text-align: center; color: var(--ink-2); padding: 40px; }
table.compact th, table.compact td { padding: 7px 8px; font-size: 13.5px; }
.link-btn { font: inherit; font-weight: 700; color: var(--steel); background: none; border: 0; padding: 0; cursor: pointer; }
.delta { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.res { font-weight: 600; font-size: 13.5px; }
.res-over { color: var(--steel); }
.res-under { color: var(--ink-2); }

/* Edge meter: center tick, fill goes right for over, left for under */
.edge-cell { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.meter { position: relative; width: 52px; height: 8px; border-radius: 99px; background: var(--grid); }
.meter::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--axis); border-radius: 2px; }
.meter-fill { position: absolute; top: 0; bottom: 0; background: var(--series-1); }
.meter-fill.over { left: 50%; border-radius: 0 99px 99px 0; }
.meter-fill.under { right: 50%; border-radius: 99px 0 0 99px; }
.meter-fill.l0 { background: var(--axis); }
.meter-fill.l1 { background: var(--series-1-soft); }
.edge-txt { font-size: 13.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.edge-txt.l2, .edge-txt.l3 { color: var(--ink); font-weight: 700; }
.panel .meter { background: rgba(255, 255, 255, 0.1); }
.panel .meter::after { background: var(--on-dark-3); }
.panel .meter-fill { background: var(--sky); }
.panel .edge-txt { color: var(--on-dark); font: 600 14px var(--font-body); }

/* Pills & reads */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font: 600 12px/1.6 var(--font-body); background: var(--neutral-bg); color: var(--ink); white-space: nowrap; vertical-align: 1px; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.inj-out .pill-dot, .res-miss .pill-dot { background: var(--crit); }
.inj-doubtful .pill-dot, .inj-questionable .pill-dot { background: var(--warn); }
.res-hit .pill-dot { background: var(--good); }
.hero .pill { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); }
.read { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.read-tough { background: var(--tough-bg); color: var(--tough-fg); }
.read-soft { background: var(--soft-bg); color: var(--soft-fg); }
.read-neutral { background: var(--neutral-bg); color: var(--neutral-fg); }

/* Last-7 dots: filled = over, hollow = under, dash = out. Shape carries the meaning. */
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dot-sq { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; }
.d-o { background: var(--series-1); }
.d-u { border: 1.75px solid var(--axis); }
.d-p { background: var(--ink-3); }
.d-out, .d-na { height: 3px; border-radius: 2px; background: var(--axis); vertical-align: 3px; }
.legend-note { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.legend-note .dot-sq:not(:first-child) { margin-left: 10px; }

/* Tiles (light) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tiles.stack { grid-template-columns: 1fr; align-content: start; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 3px; align-content: start; box-shadow: var(--shadow); }
.tile-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.tile-v { font: 800 30px/1.1 var(--font-display); letter-spacing: -0.02em; }
.tile-sep { color: var(--axis); font-weight: 600; }
.tile-d { font-size: 13px; color: var(--ink-2); }

/* Threshold ladder */
.ladder { display: grid; gap: 4px; }
.rung { display: grid; grid-template-columns: 96px 1fr 46px 38px; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; }
.rung.is-line { background: var(--hl); outline: 1px solid #d3e3f4; }
.rung-t { font-weight: 700; font-variant-numeric: tabular-nums; display: grid; }
.rung-tag { font-size: 11px; font-weight: 600; color: var(--steel); letter-spacing: 0.02em; }
.rung-bar { height: 8px; border-radius: 99px; background: var(--grid); overflow: hidden; }
.rung-bar span { display: block; height: 100%; background: var(--series-1); border-radius: 99px; }
.rung-v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rung-n { font-size: 12.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }

/* Matchups */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.game-card { color: var(--ink); display: grid; gap: 14px; align-content: start; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.game-card:hover { text-decoration: none; transform: translateY(-2px); border-color: #c9d9eb; box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 16px 40px rgba(15, 23, 42, 0.09); }
.gc-top { display: flex; justify-content: space-between; align-items: center; }
.gc-time { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.gc-teams { display: flex; align-items: baseline; gap: 10px; font: 800 34px/1 var(--font-display); letter-spacing: -0.02em; }
.gc-teams .at { color: var(--axis); font-weight: 700; font-size: 26px; }
.gc-names { font-size: 13.5px; color: var(--ink-2); margin-top: -8px; }
.it-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.it-bar span:first-child { background: var(--navy-900); }
.it-bar span:last-child { flex: 1; background: var(--series-1); }
.it-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.it-labels .muted { font-weight: 500; }
.gc-facts { margin: 0; display: grid; gap: 0; }
.gc-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--grid); font-size: 14px; }
.gc-facts dt { color: var(--ink-3); }
.gc-facts dd { margin: 0; font-weight: 600; text-align: right; }
.gc-cta { font-weight: 700; color: var(--steel); font-size: 14.5px; }
.inj { padding: 12px 0; border-top: 1px solid var(--grid); }
h4 + .inj { border-top: 0; padding-top: 2px; }
.inj-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.inj-head > div { flex: 1; }
.method { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 10px; font-size: 14.5px; }
.method strong { color: var(--ink); }

/* Charts */
.chart { width: 100%; min-height: 230px; }
.chart svg { display: block; overflow: visible; }
.chart text { font-family: var(--font-body); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.legend .key:not(:first-child) { margin-left: 14px; }
.key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.k-over { background: var(--series-1); }
.k-under { background: var(--series-1-soft); }
.line-key { height: 3px; width: 18px; border-radius: 2px; }
.line-key.s1 { background: var(--series-1); }
.line-key.s2 { background: var(--series-2); }
.grid { stroke: var(--grid); stroke-width: 1; }
.axis { stroke: var(--axis); stroke-width: 1; }
.tick { fill: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tick.muted { fill: #94a3b8; }
.mark-over { fill: var(--series-1); }
.mark-under { fill: var(--series-1-soft); }
.line-tick { stroke: var(--navy-900); stroke-width: 2.5; stroke-linecap: round; }
.ref { stroke: var(--ink-2); stroke-width: 1; }
.ref-label { fill: var(--ink-3); font-size: 11.5px; }
.ref-label.strong { fill: var(--ink); font-weight: 700; }
.cap-label { fill: var(--ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line.s1 { stroke: var(--series-1); }
.line.s2 { stroke: var(--series-2); }
.dot { stroke: var(--card); stroke-width: 2; }
.dot.s1, .dot.cal { fill: var(--series-1); }
.dot.s2 { fill: var(--series-2); }
.diag { stroke: var(--axis); stroke-width: 1; }
.leader { stroke: var(--axis); stroke-width: 1; }
.end-label { fill: var(--ink); font-size: 12px; font-weight: 600; }
.crosshair { stroke: var(--axis); stroke-width: 1; pointer-events: none; }
.hit { fill: transparent; }
.hit:focus-visible { outline: none; fill: var(--hl); fill-opacity: 0.6; }
.tooltip { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; opacity: 0; transition: opacity 0.08s; background: var(--navy-900); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: 10px; box-shadow: 0 10px 30px rgba(4, 10, 20, 0.35); padding: 9px 12px; font-size: 12.5px; display: grid; gap: 2px; max-width: 260px; }
.tooltip span { color: var(--on-dark-2); }

/* Footer */
.site-foot { background: var(--navy-900); color: var(--on-dark-3); font-size: 13px; }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 32px; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.foot-row p { margin: 0; }
.foot-row a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 2px; }
.foot-brand { font: 800 15px var(--font-display); color: var(--on-dark); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .two, .two.wide-left { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--navy-900); border-bottom: 1px solid var(--line-dark); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 12px; }
  .data-pill { margin: 8px 0 0; align-self: flex-start; }
  .hero > .wrap { padding-top: 36px; padding-bottom: 32px; }
  .hero-lede { font-size: 16px; }
  .panel { padding: 22px; }
  .card { padding: 20px; border-radius: 18px; }
  .table-card { padding: 4px 0 0; }
  .rung { grid-template-columns: 82px 1fr 42px 34px; gap: 8px; }
  .search { max-width: none; }
  .hero-below, .tiles:not(.stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .glass, .tile { padding: 13px 14px; }
  .glass-k, .tile-k { font-size: 10.5px; letter-spacing: 0.07em; }
  .glass-v, .tile-v { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Research stat tables */
.rsecs { display: grid; gap: 22px; }
.rsec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 10px 26px 12px; }
.rsec-head h3 { margin: 0; }
table.stats th.num, table.stats td.num { padding-left: 7px; padding-right: 7px; }
.cell-main { font: 700 15.5px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
table.dvp tr.grp th { background: #fafbfd; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 9px; padding-bottom: 7px; }
.card:not(.table-card) table.dvp tr.grp th { padding-left: 8px; }
@media (max-width: 760px) {
  table.board td:first-child, table.board th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 var(--grid); }
  table.board thead th:first-child { background: #fafbfd; }
  .who { min-width: 160px; }
  .rsec-head { padding: 10px 18px 12px; }
}
