/* GPTbetz — gptwire's layout in navy and electric blue, with magenta accents. */
:root, :root[data-theme=dark] {
  --canvas:#081428; --surface:#0e1f40; --surface-2:#13295200; --raise:#14294f;
  --ink:#f3f7ff; --text:#d5dff4; --muted:#8fa3c8; --faint:#6a7fa6;
  --line:#1d3563; --line-strong:#2b4a82;
  --accent:#ff3fae; --accent-ink:#1b0616; --accent-soft:rgba(255,63,174,.14); --accent-line:rgba(255,63,174,.45);
  --blue:#3b82ff; --sky:#79bdff; --blue-soft:rgba(59,130,255,.16);
  --violet:#b49cff;
  --live:#ff5a7a;
  --best-bg:rgba(255,63,174,.13); --best-ink:#ff7cc6;
  --shadow:0 1px 0 rgba(255,255,255,.03) inset, 0 12px 30px -18px rgba(0,0,0,.7);
  color-scheme:dark;
}
:root[data-theme=light] {
  --canvas:#eef3fb; --surface:#ffffff; --raise:#f4f7fd;
  --ink:#0a1630; --text:#1f2f52; --muted:#56698d; --faint:#7a8aa8;
  --line:#d6e0f0; --line-strong:#b9c8e2;
  --accent:#d4148a; --accent-ink:#ffffff; --accent-soft:rgba(212,20,138,.09); --accent-line:rgba(212,20,138,.4);
  --blue:#1f5fd6; --sky:#2b74d8; --blue-soft:rgba(31,95,214,.1);
  --violet:#6d4fd8;
  --live:#d81b4a;
  --best-bg:rgba(212,20,138,.09); --best-ink:#b0106f;
  --shadow:0 1px 2px rgba(10,22,48,.05), 0 10px 24px -18px rgba(10,22,48,.35);
  color-scheme:light;
}
:root {
  --brand-navy:#0a1838; --brand-deep:#061029; --brand-blue:#2f6fe8; --brand-sky:#9fd0ff; --brand-magenta:#ff3fae; --brand-paper:#f3f7ff;
  --sans:Inter, "SF Pro Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display:Inter, "SF Pro Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --serif:"Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius:16px; --radius-sm:10px;
}
*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--canvas); color:var(--text); font:15px/1.55 var(--sans); font-feature-settings:"tnum" 1, "cv11" 1; }
a { color:inherit; }
img, svg { display:block; }
h1, h2, h3 { color:var(--ink); margin:0; }
p { margin:0 0 .8em; }
.skip-link { position:absolute; left:-999px; top:8px; background:var(--accent); color:var(--accent-ink); padding:8px 14px; border-radius:8px; z-index:10; font-weight:700; }
.skip-link:focus { left:12px; }
:focus-visible { outline:3px solid var(--accent); outline-offset:2px; border-radius:4px; }
.ico { width:18px; height:18px; flex:none; }
.ico-xs { width:13px; height:13px; display:inline-block; vertical-align:-1px; opacity:.7; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------------------------------------------------------------- shell */
.app { display:grid; grid-template-columns:252px minmax(0, 1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; height:100vh; overflow-y:auto; background:var(--brand-deep); color:#cdd9f2; padding:26px 18px 22px; display:flex; flex-direction:column; gap:6px; border-right:1px solid #13244a; scrollbar-width:thin; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; padding:0 6px 18px; }
.brand-mark { width:40px; height:40px; border-radius:11px; }
.brand-text { display:flex; flex-direction:column; line-height:1.05; }
.brand-name { font:800 22px/1 var(--display); letter-spacing:-.035em; color:#fff; }
.brand-tld { color:var(--brand-magenta); }
.brand small { margin-top:6px; font:700 9.5px/1.2 var(--sans); letter-spacing:.16em; text-transform:uppercase; color:#8ea4cf; }
.nav { display:flex; flex-direction:column; gap:3px; }
.nav-label { margin:16px 10px 6px; font:700 10.5px/1 var(--sans); letter-spacing:.16em; text-transform:uppercase; color:#7086b3; }
.nav-item { display:flex; align-items:center; gap:12px; min-height:42px; padding:0 12px; border-radius:10px; text-decoration:none; color:#d7e2f8; font-weight:500; font-size:14.5px; }
.nav-item:hover { background:#0f1f42; color:#fff; }
.nav-item.active { background:var(--brand-magenta); color:#1b0616; font-weight:650; }
.nav-item.active .ico { color:#1b0616; }
.nav-item .ico { color:#8fb6ff; }
.nav-badge { margin-left:auto; font:600 11px/1 var(--sans); color:#91a6cf; font-variant-numeric:tabular-nums; }
.nav-item.active .nav-badge { color:#1b0616; }
.sidebar-note { margin-top:auto; padding:18px 10px 0; font-size:11.5px; line-height:1.5; color:#7d92bd; border-top:1px solid #13244a; }
.sidebar-note a { color:#c2d4f5; }

.page { min-width:0; display:flex; flex-direction:column; }
.topbar { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:14px; min-height:64px; padding:10px clamp(16px, 3vw, 32px); background:color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.ticker { display:flex; gap:10px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
.ticker::-webkit-scrollbar { display:none; }
.tick-item { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; padding:7px 12px; border:1px solid var(--line); border-radius:999px; background:var(--surface); text-decoration:none; font-size:13px; color:var(--text); }
a.tick-item:hover { border-color:var(--accent-line); }
.tick-label { font:700 10px/1 var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.tick-item strong { color:var(--ink); }
.icon-button { display:inline-grid; place-items:center; width:40px; height:40px; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--ink); cursor:pointer; flex:none; }
.icon-button:hover { border-color:var(--accent-line); }
:root[data-theme=dark] .ico-moon, :root:not([data-theme]) .ico-moon { display:none; }
:root[data-theme=light] .ico-sun { display:none; }

.main { width:100%; max-width:1280px; padding:26px clamp(16px, 3vw, 32px) 40px; display:flex; flex-direction:column; gap:22px; outline:none; }
.footer { margin-top:auto; padding:26px clamp(16px, 3vw, 32px) 40px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; max-width:1280px; }
.footer p { max-width:860px; }
.footer a { color:var(--text); }
.footer-brand { display:flex; align-items:center; gap:10px; margin-bottom:14px; color:var(--text); }
.footer-brand img { border-radius:8px; }
.footer-links { font-weight:600; }

/* ---------------------------------------------------------------- masthead */
.masthead { position:relative; isolation:isolate; overflow:hidden; display:flex; padding:clamp(22px, 3vw, 44px); border-radius:var(--radius); border:1px solid #23427a; background:
  radial-gradient(120% 140% at 0% 0%, #12306a 0%, rgba(18,48,106,0) 55%), linear-gradient(135deg, #0b1d44 0%, #0a1838 60%, #0c1a3d 100%); color:var(--brand-paper); min-height:0; }
.masthead::after { content:""; position:absolute; inset:auto -10% -60% 30%; height:120%; background:radial-gradient(closest-side, rgba(255,63,174,.12), transparent); z-index:-1; }
.masthead-copy { position:relative; max-width:100%; }
.masthead.with-art .masthead-copy { max-width:58%; }
.eyebrow { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; font:750 11.5px/1 var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--brand-magenta); }
.eyebrow-date { color:#b9c9e8; letter-spacing:.04em; text-transform:none; font-weight:500; font-size:13px; padding-left:14px; border-left:1px solid #3a5690; }
.masthead h1 { margin:14px 0 10px; color:#fff; font:800 clamp(42px, 5.4vw, 84px)/1 var(--display); letter-spacing:-.05em; overflow-wrap:break-word; }
.masthead-sm h1 { font-size:clamp(34px, 4.2vw, 60px); }
.masthead h1 .dot { color:var(--brand-magenta); }
.masthead p { color:#cbd8f0; font-size:16.5px; max-width:640px; margin:0; }
.masthead-links { display:flex; flex-wrap:wrap; gap:8px 10px; margin-top:22px; }
.masthead-links a { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 16px; border-radius:10px; border:1px solid #4a66a0; color:#fff; text-decoration:none; font-weight:600; font-size:14.5px; background:rgba(10,24,56,.6); }
.masthead-links a .ico { width:16px; height:16px; }
.masthead-links a.primary { background:var(--brand-magenta); border-color:var(--brand-magenta); color:#1b0616; }
.masthead-links a:hover { border-color:#9fd0ff; }
.masthead-links a.primary:hover { filter:brightness(1.08); }
.masthead-art { position:absolute; inset:0 0 0 auto; width:44%; clip-path:polygon(20% 0, 100% 0, 100% 100%, 0 100%); background-color:#bcdcff;
  background-image:radial-gradient(#7fb1f2 1.3px, transparent 1.6px); background-size:9px 9px; display:flex; align-items:flex-end; justify-content:center; }
.masthead-art img { width:min(92%, 380px); height:auto; margin-right:2%; translate:0 6%; filter:drop-shadow(0 10px 18px rgba(6,16,41,.35)); }
.game-head .matchup-title .at { color:#7f97c6; font-weight:600; }

/* ---------------------------------------------------------------- status */
.statusrow { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px 20px; padding:0 2px 14px; border-bottom:1px solid var(--line); }
.metrics { display:flex; gap:22px; color:var(--muted); font-size:14px; }
.metrics strong { color:var(--ink); font-size:16px; margin-right:3px; }
.statusline { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:13px; color:var(--muted); }
.status-dot { width:8px; height:8px; border-radius:50%; background:var(--sky); box-shadow:0 0 0 4px var(--blue-soft); }
.status-dot.off { background:var(--faint); box-shadow:none; }
.statusline.stale .stale-note { color:var(--live); font-weight:600; }
.live-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--live); box-shadow:0 0 0 4px color-mix(in srgb, var(--live) 25%, transparent); margin-right:8px; }

/* ---------------------------------------------------------------- home grid + cards */
.home-grid { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:22px; align-items:start; }
.col-main, .col-rail { display:flex; flex-direction:column; gap:22px; min-width:0; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:clamp(18px, 2.2vw, 26px); box-shadow:var(--shadow); min-width:0; }
.card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; }
.card-head h2 { font:700 21px/1.2 var(--display); letter-spacing:-.02em; }
.kicker { font:700 10.5px/1.3 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.kicker-time { font-size:12.5px; color:var(--muted); white-space:nowrap; }
.serif { font-family:var(--serif) !important; font-weight:600 !important; letter-spacing:-.015em !important; }
.brief-card h2 { font-size:clamp(26px, 3vw, 38px); line-height:1.08; margin:4px 0 14px; }
.brief-card p { font-size:16.5px; line-height:1.65; color:var(--text); max-width:72ch; }
.brief-kicker { display:flex; align-items:center; gap:10px; }
.brief-kicker .kicker { margin:0; color:var(--accent); }
.ai-mark { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:50%; border:1px solid var(--accent-line); color:var(--accent); background:var(--accent-soft); }
.ai-mark .ico { width:15px; height:15px; }
.fine { font-size:12.5px; color:var(--muted); margin:10px 0 0; }
.fine a { color:var(--text); }
.empty { color:var(--muted); padding:8px 0; }
.more { display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-weight:650; font-size:13.5px; color:var(--accent); text-decoration:none; }
.more .ico { width:15px; height:15px; }
.section-title { display:flex; align-items:center; font:750 13px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin:4px 0 14px; }
.day-title { font:700 20px/1.2 var(--display); letter-spacing:-.02em; margin:6px 0 12px; }
.board-section { min-width:0; }

/* game cards */
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(268px, 1fr)); gap:14px; }
.game-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); transition:border-color .15s, transform .15s; }
.game-card:hover { border-color:var(--accent-line); transform:translateY(-1px); }
.card-link { display:flex; flex-direction:column; gap:8px; padding:16px 16px 14px; text-decoration:none; color:inherit; height:100%; }
.game-meta { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); margin-bottom:2px; }
.game-meta .kick { margin-left:auto; }
.chip { display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:6px; background:var(--blue-soft); color:var(--sky); font:750 10.5px/1 var(--sans); letter-spacing:.08em; }
.badge { display:inline-flex; align-items:center; height:20px; padding:0 7px; border-radius:6px; font:750 10px/1 var(--sans); letter-spacing:.1em; text-transform:uppercase; }
.badge.live { background:color-mix(in srgb, var(--live) 18%, transparent); color:var(--live); }
.badge.final { background:var(--raise); color:var(--muted); border:1px solid var(--line); }
.team { display:grid; grid-template-columns:1fr auto 52px 46px; align-items:baseline; gap:8px; }
.team-name { font:650 16.5px/1.25 var(--display); color:var(--ink); letter-spacing:-.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.team-score { font:800 17px/1 var(--display); color:var(--ink); }
.team-line { text-align:right; font-weight:650; color:var(--text); }
.team-fair { text-align:right; font-weight:700; color:var(--sky); }
.probbar { width:100%; height:6px; border-radius:99px; overflow:hidden; margin:4px 0 2px; }
.pb-away { fill:var(--accent); }
.pb-home { fill:var(--blue); }
.game-facts { display:grid; grid-template-columns:.62fr 1fr 1fr; gap:8px 12px; margin:6px 0 0; font-size:12.5px; }
.game-facts div { min-width:0; }
.game-facts dt { color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-facts dd { margin:2px 0 0; color:var(--ink); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-facts .pm { grid-column:1 / -1; }
.book { font-size:11.5px; font-weight:500; color:var(--muted); }
.diff { display:inline-block; font-size:11.5px; font-weight:700; color:var(--accent); background:var(--accent-soft); padding:1px 6px; border-radius:5px; white-space:nowrap; }
.move { display:flex; align-items:center; gap:6px; margin:4px 0 0; padding-top:10px; border-top:1px dashed var(--line); font-size:12.5px; color:var(--accent); font-weight:600; }
.move .ico { width:14px; height:14px; }
.league-jump { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.league-jump a { display:inline-flex; gap:8px; align-items:center; padding:8px 13px; border-radius:999px; border:1px solid var(--line); background:var(--surface); text-decoration:none; font-weight:600; font-size:13.5px; }
.league-jump a span { color:var(--muted); font-weight:600; }
.league-jump a:hover { border-color:var(--accent-line); }

/* rail lists */
.rail-card .card-head { margin-bottom:6px; }
.rail-card h2 { font-size:19px; }
.rank { list-style:none; margin:0; padding:0; counter-reset:r; }
.rank li { counter-increment:r; border-top:1px solid var(--line); }
.rank li:first-child { border-top:0; }
.rank a, .rank .rank-row { display:grid; grid-template-columns:24px 1fr auto; grid-template-areas:"n main num" "n sub sub"; gap:2px 10px; padding:11px 0; text-decoration:none; }
.rank li::before { content:""; }
.rank a::before, .rank .rank-row::before { content:counter(r, decimal-leading-zero); grid-area:n; font:700 11px/1.6 var(--mono); color:var(--faint); }
.rank-main { grid-area:main; font-weight:650; color:var(--ink); font-size:14.5px; }
.rank-num { grid-area:num; font-weight:750; color:var(--sky); font-size:14.5px; }
.rank-main .rank-num { margin-left:6px; }
.rank-sub { grid-area:sub; font-size:12.5px; color:var(--muted); }
.rank a:hover .rank-main { color:var(--accent); }

/* news */
.news { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:4px 28px; }
.news li { padding:14px 0; border-top:1px solid var(--line); }
.news-title { font:650 16px/1.35 var(--display); color:var(--ink); text-decoration:none; letter-spacing:-.01em; }
.news-title:hover { color:var(--accent); }
.news p { margin:6px 0 6px; font-size:14px; color:var(--text); }
.news-meta { font-size:12px; color:var(--muted); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:var(--shadow); }
.card .table-wrap { box-shadow:none; }
table { width:100%; border-collapse:collapse; font-size:13.5px; }
thead th { text-align:left; font:700 10.5px/1.2 var(--sans); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); padding:12px 14px; border-bottom:1px solid var(--line); background:var(--raise); white-space:nowrap; }
tbody th, tbody td { padding:12px 14px; border-top:1px solid var(--line); vertical-align:top; text-align:left; font-weight:500; }
tbody tr:first-child th, tbody tr:first-child td { border-top:0; }
tbody th { color:var(--ink); font-weight:650; }
td.num, th.num { font-variant-numeric:tabular-nums; }
.price { color:var(--muted); font-weight:500; font-size:12.5px; }
.na { color:var(--faint); }
.pair { display:flex; flex-direction:column; gap:6px; }
.pair > div { white-space:nowrap; }
.matchup { text-decoration:none; display:flex; flex-direction:column; gap:6px; }
.matchup .kick { font-size:11.5px; font-weight:600; color:var(--muted); display:flex; gap:6px; align-items:center; }
.matchup:hover .pair, .matchup:hover > span:last-child { color:var(--accent); }
.board tbody tr:hover { background:var(--raise); }
.move-cell { color:var(--accent); font-weight:600; font-size:12.5px; max-width:180px; }
.books tr.vegas th, .books tr.vegas td { background:color-mix(in srgb, var(--accent) 6%, transparent); }
.books tr.exchange th, .books tr.exchange td { background:var(--blue-soft); }
td.best { background:var(--best-bg) !important; color:var(--best-ink); font-weight:750; }
td.best .price { color:var(--best-ink); }
.tag { display:inline-block; font:750 9.5px/1 var(--sans); letter-spacing:.08em; text-transform:uppercase; padding:3px 6px; border-radius:5px; border:1px solid var(--line); color:var(--muted); vertical-align:2px; margin-left:4px; }
.tag.vegas { color:var(--accent); border-color:var(--accent-line); }
.tag.pm { color:var(--sky); border-color:color-mix(in srgb, var(--sky) 45%, transparent); }

/* ---------------------------------------------------------------- game page */
.crumbs { font-size:13px; color:var(--muted); display:flex; gap:8px; }
.crumbs a { color:var(--text); text-decoration:none; font-weight:600; }
.crumbs a:hover { color:var(--accent); }
.game-head .badge { margin-left:4px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(176px, 1fr)); gap:12px; }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:6px; min-width:0; }
.tile-label { font:700 10.5px/1.2 var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.tile-value { font:750 22px/1.15 var(--display); color:var(--ink); letter-spacing:-.02em; }
.tile-sub { font-size:12.5px; color:var(--muted); }
.tile-sub .book { font-size:12px; }
.tile-pm { border-color:color-mix(in srgb, var(--sky) 40%, var(--line)); }
.tile-vegas { border-color:var(--accent-line); }
.tile-vegas .tile-label { color:var(--accent); }
.move-line { margin:0; color:var(--accent); font-weight:600; font-size:14px; }
.move-line .ico { display:inline-block; vertical-align:-3px; margin-right:6px; }
.books td { white-space:nowrap; }
.charts { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:18px 22px; }
.charts.one { grid-template-columns:1fr; }
.charts figure { margin:0; min-width:0; }
.charts figcaption { font:650 13px/1.3 var(--sans); color:var(--ink); margin-bottom:6px; }
.chart { width:100%; height:auto; overflow:visible; }
.chart .grid { stroke:var(--line); stroke-width:1; }
.chart .tick { fill:var(--muted); font:12px var(--sans); }
.chart .series { fill:none; stroke-width:2.4; stroke-linejoin:round; stroke-linecap:round; }
.chart .dot { stroke:var(--surface); stroke-width:2; }
.s-main { stroke:var(--sky); fill:var(--sky); }
.s-vegas { stroke:var(--accent); fill:var(--accent); }
.s-pm { stroke:var(--violet); fill:var(--violet); }
.s-4 { stroke:#36c2b4; fill:#36c2b4; }
.s-5 { stroke:#f5b84a; fill:#f5b84a; }
.chart .series.s-main, .chart .series.s-vegas, .chart .series.s-pm, .chart .series.s-4, .chart .series.s-5 { fill:none; }
.chart-empty { color:var(--muted); font-size:13px; padding:28px 0; text-align:center; border:1px dashed var(--line); border-radius:12px; margin:0; }
.legend { list-style:none; display:flex; flex-wrap:wrap; gap:6px 16px; padding:0; margin:8px 0 0; font-size:12px; color:var(--muted); }
.legend li { display:flex; align-items:center; gap:6px; }
.swatch { width:14px; height:3px; border-radius:2px; background:currentColor; }
.swatch.s-main { background:var(--sky); } .swatch.s-vegas { background:var(--accent); } .swatch.s-pm { background:var(--violet); } .swatch.s-4 { background:#36c2b4; } .swatch.s-5 { background:#f5b84a; }

/* ---------------------------------------------------------------- futures, markets, prose */
.futures-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(400px, 1fr)); gap:18px; }
table.futures.compact th, table.futures.compact td { padding:10px 10px; white-space:nowrap; }
table.futures.compact .book { display:block; }
.tabs { display:flex; flex-wrap:wrap; gap:8px; }
.tab { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; border:1px solid var(--line); background:var(--surface); text-decoration:none; font-weight:600; font-size:13.5px; }
.tab span { color:var(--muted); font-size:12px; }
.tab.active { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.tab.active span { color:inherit; opacity:.8; }
.markets { list-style:none; margin:0; padding:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.market { display:grid; grid-template-columns:minmax(0, 1fr) minmax(200px, 320px); gap:10px 24px; padding:16px 20px; border-top:1px solid var(--line); align-items:center; }
.market:first-child { border-top:0; }
.market-title { font:650 15.5px/1.35 var(--display); color:var(--ink); text-decoration:none; }
.market-title:hover { color:var(--accent); }
.market-meta { font-size:12.5px; color:var(--muted); margin-top:4px; }
.outcomes { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.outcomes li { display:flex; justify-content:space-between; gap:12px; font-size:13.5px; padding:5px 10px; border-radius:8px; background:var(--raise); }
.outcomes li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.outcomes strong { color:var(--sky); }
.prose-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(420px, 1fr)); gap:18px; align-items:start; }
.prose h2 { font:700 21px/1.25 var(--display); letter-spacing:-.02em; margin-bottom:12px; }
.prose p, .prose li { font-size:15px; line-height:1.65; max-width:72ch; }
.prose ul { padding-left:20px; margin:0 0 12px; }
.prose a { color:var(--accent); }
.defs { margin:0; display:grid; gap:12px; }
.defs dt { font-weight:700; color:var(--ink); }
.defs dd { margin:2px 0 0; color:var(--text); font-size:14.5px; line-height:1.6; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .home-grid { grid-template-columns:minmax(0, 1fr); }
  .col-rail { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns:minmax(0, 1fr); }
  .sidebar { position:static; height:auto; flex-direction:column; padding:14px 16px 10px; border-right:0; border-bottom:1px solid #13244a; overflow:visible; }
  .brand { padding:0 0 10px; }
  .nav { flex-direction:row; overflow-x:auto; gap:6px; scrollbar-width:none; margin:0 -16px; padding:0 16px 4px; }
  .nav::-webkit-scrollbar { display:none; }
  .nav-label, .sidebar-note, .nav-badge { display:none; }
  .nav-item { flex:none; min-height:36px; padding:0 12px; border:1px solid #1a2d58; font-size:13.5px; }
  .nav-item .ico { width:16px; height:16px; }
  .masthead.with-art .masthead-copy { max-width:100%; }
  .masthead-art { display:none; }
  .topbar { position:static; }
}
@media (max-width: 760px) {
  .main { padding-top:18px; gap:18px; }
  .masthead { padding:22px 18px; }
  .masthead h1 { font-size:clamp(38px, 11vw, 54px); }
  .masthead p { font-size:15px; }
  .futures-grid, .prose-grid { grid-template-columns:minmax(0, 1fr); }
  .market { grid-template-columns:minmax(0, 1fr); }
  /* stacked tables */
  .table-wrap { border:0; background:none; box-shadow:none; overflow:visible; }
  table.board, table.books, table.futures { font-size:14px; }
  table.board thead, table.books thead, table.futures thead { display:none; }
  table.board tbody, table.books tbody, table.futures tbody, table.board tr, table.books tr, table.futures tr { display:block; }
  table.board tr, table.books tr, table.futures tr { background:var(--surface); border:1px solid var(--line); border-radius:14px; margin-bottom:10px; padding:6px 14px; box-shadow:var(--shadow); }
  table.board th, table.board td, table.books th, table.books td, table.futures th, table.futures td { display:grid; grid-template-columns:32% minmax(0, 1fr); gap:10px; border-top:1px solid var(--line); padding:9px 0; }
  .pair > div, .books td { white-space:normal; }
  table.board th, table.books th, table.futures th { border-top:0; display:block; }
  table.board td::before, table.books td::before, table.futures td::before { content:attr(data-label); font:700 10.5px/1.6 var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
  .move-cell { max-width:none; }
  td.best { border-radius:6px; padding-left:6px !important; padding-right:6px !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; } }
