/* Market Desk. Dark only. Tokens first, then layout, then components. */
@font-face { font-family: "Departure Mono"; src: url("fonts/DepartureMono-Regular.woff2") format("woff2"); font-display: swap; }
:root {
  color-scheme: dark;
  --plane: #0d0d0d; --raise: #121211; --surface: #1a1a19; --hover: #1f1f1d;
  --ink: #f0efec; --ink2: #c3c2b7; --muted: #898781; --faint: #62615c;
  --grid: #2c2c2a; --base: #383835; --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.06);
  --blue: #3987e5; --orange: #d95926; --aqua: #199e70; --yellow: #c98500;
  --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --crit: #d03b3b;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --pixel: "Departure Mono", ui-monospace, Menlo, monospace;
  --side: 232px; --top: 48px;
}
* { box-sizing: border-box; }
html { background: var(--plane); }
body { margin: 0; background: var(--plane); color: var(--ink); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(57,135,229,.35); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a28; border-radius: 6px; border: 2px solid var(--plane); }
::-webkit-scrollbar-track { background: transparent; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 20px 0 0;
  background: rgba(13,13,13,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { width: var(--side); height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-right: 1px solid var(--line); flex: none; }
.brand-mark { width: 12px; height: 12px; background: var(--ink); box-shadow: 4px 4px 0 0 var(--faint); }
.brand-name { font: 15px/1 var(--pixel); letter-spacing: .02em; }
.crumb { font: 12px/1 var(--mono); color: var(--muted); display: flex; gap: 8px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--faint); }
.crumb .here { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font: 11px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.mkt { display: flex; gap: 12px; }
.mkt span { display: inline-flex; align-items: center; gap: 6px; }
.btn { background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font: 11px/1 var(--mono); color: var(--ink2); cursor: pointer; }
.btn:hover { background: var(--surface); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.solid { background: var(--ink); color: var(--plane); border-color: var(--ink); }

/* Shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.side { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow-y: auto; border-right: 1px solid var(--line); padding: 14px 10px 20px; display: flex; flex-direction: column; }
.side h6 { margin: 16px 10px 6px; font: 10px/1 var(--mono); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--ink2); font-size: 13.5px; }
.side a.nav svg { width: 15px; height: 15px; flex: none; stroke: var(--muted); }
.side a.nav:hover { background: var(--raise); color: var(--ink); }
.side a.nav.on { background: var(--surface); color: var(--ink); }
.side a.nav.on svg { stroke: var(--ink); }
.side a.nav .ct { margin-left: auto; font: 10px/1 var(--mono); color: var(--faint); }
.side .foot { margin-top: auto; padding: 14px 10px 0; font: 10.5px/1.6 var(--mono); color: var(--faint); border-top: 1px solid var(--line2); }
.side .foot b { color: var(--muted); font-weight: 400; }
.main { min-width: 0; outline: none; }
.page { max-width: 1120px; margin: 0 auto; padding: 44px 44px 120px; }

/* Hero */
.eyebrow { font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
h1.px { font: 44px/1.05 var(--pixel); letter-spacing: -.01em; margin: 18px 0 14px; font-weight: 400; }
h1.px.sm { font-size: 33px; }
.lede { font-size: 16px; line-height: 1.55; color: var(--ink2); max-width: 760px; margin: 0; }
.lede b { color: var(--ink); font-weight: 500; }

/* Section label and wave divider */
.label { display: flex; align-items: baseline; gap: 12px; margin: 56px 0 16px; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label .more { margin-left: auto; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.label .more:hover { color: var(--ink); }
.label .note { letter-spacing: .02em; text-transform: none; color: var(--faint); }
.wave { display: flex; align-items: center; gap: 16px; margin: 64px 0 24px; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wave::before, .wave::after { content: ""; flex: 1; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23383835' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x center; }
.sub { color: var(--muted); font-size: 13px; margin: -6px 0 16px; max-width: 760px; }

/* Tile grid in the fanout style */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tiles.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: var(--plane); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 118px; position: relative; }
a.tile:hover { background: var(--raise); }
.tile .n { font: 11px/1 var(--mono); color: var(--faint); letter-spacing: .08em; }
.tile .nm { font-size: 15px; color: var(--ink); line-height: 1.3; margin-top: 4px; }
.tile .ds { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.tile .meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font: 11px/1 var(--mono); color: var(--muted); }
.tile .arr { color: var(--faint); transition: transform .15s, color .15s; }
a.tile:hover .arr { color: var(--ink); transform: translateX(3px); }
.tile.fill { background: var(--plane); min-height: 0; }

/* Cards and rows */
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--raise); padding: 18px 20px; }
.card.flat { background: transparent; }
.card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.card p { margin: 0 0 8px; color: var(--ink2); }
.card p:last-child { margin-bottom: 0; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols.w21 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.row { display: flex; gap: 14px; align-items: baseline; padding: 11px 16px; border-bottom: 1px solid var(--line2); }
.row:last-child { border-bottom: 0; }
a.row:hover { background: var(--raise); }
.row .t { flex: 1; min-width: 0; }
.row .t .h { color: var(--ink); line-height: 1.4; }
.row .t .x { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .m { font: 11px/1.4 var(--mono); color: var(--muted); white-space: nowrap; text-align: right; }
.row .lead { font: 11px/1.4 var(--mono); color: var(--faint); width: 22px; flex: none; }
.src { font: 11px/1.4 var(--mono); color: var(--muted); }
.empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; }
ul.pts { margin: 0; padding: 0; list-style: none; }
ul.pts li { position: relative; padding: 5px 0 5px 18px; color: var(--ink2); }
ul.pts li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; background: var(--faint); }
ul.pts.tight li { padding-top: 3px; padding-bottom: 3px; font-size: 13px; }
ul.pts.tight li::before { top: 11px; }

/* Chips, tags, dots, deltas */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 11px/1 var(--mono); color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; background: transparent; cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--surface); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--plane); border-color: var(--ink); }
.chip .c { color: var(--faint); }
.chip.on .c { color: #55544f; }
span.chip { cursor: default; }
.tag { display: inline-block; font: 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; white-space: nowrap; vertical-align: 1px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.serious { background: var(--serious); } .dot.crit { background: var(--crit); } .dot.info { background: var(--muted); }
.d { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d i { font-style: normal; font-size: .72em; }
.d.up i { color: var(--good); } .d.dn i { color: var(--crit); } .d.fl i { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.mut { color: var(--muted); } .ink2 { color: var(--ink2); } .faint { color: var(--faint); }
.tone { display: inline-flex; align-items: center; gap: 7px; font: 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pips { display: inline-flex; gap: 2px; }
.pips i { width: 4px; height: 9px; background: var(--grid); }
.pips i.on { background: var(--ink2); }

/* Tables */
.tw { border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font: 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 400; background: var(--raise); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink2); }
.tbl th:first-child, .tbl td:first-child, .tbl th.l, .tbl td.l { text-align: left; }
.tbl td:first-child { color: var(--ink); }
.tbl td.wrap { white-space: normal; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--raise); }
.tbl td small { color: var(--muted); font-size: 11.5px; }
.tbl th[data-sort] { cursor: pointer; } .tbl th[data-sort]:hover { color: var(--ink); }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .stats.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat { background: var(--plane); padding: 14px 16px; min-width: 0; }
.stat .k { font: 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v { font-size: 20px; line-height: 1.2; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .s { margin-top: 4px; font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.stat svg { display: block; margin-top: 8px; }

/* Market board */
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bgrp { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bgrp h4 { margin: 0; padding: 10px 14px; font: 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--raise); border-bottom: 1px solid var(--line); font-weight: 400; display: flex; justify-content: space-between; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) 84px 76px 74px 64px; gap: 10px; align-items: center; padding: 7px 14px; border-bottom: 1px solid var(--line2); font-size: 13px; }
.brow:last-child { border-bottom: 0; }
.brow:hover { background: var(--raise); }
.brow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .px, .brow .ch, .brow .m1 { text-align: right; font-variant-numeric: tabular-nums; }
.brow .m1 { color: var(--muted); font-size: 12px; }

/* Charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 10.5px var(--mono); fill: var(--muted); }
.chart text.ink { fill: var(--ink); } .chart text.ink2 { fill: var(--ink2); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font: 11px/1 var(--mono); color: var(--ink2); margin: 0 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend i.ln { height: 2px; width: 14px; border-radius: 0; }
.spark { display: block; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: #252523; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 8px 10px; font-size: 12px; line-height: 1.45; color: var(--ink2); max-width: 300px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.tip b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.tip div { font-variant-numeric: tabular-nums; }
.gauge { display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.gauge:last-child { border-bottom: 0; }
.gauge .gn { color: var(--ink); font-size: 13.5px; }
.gauge .gs { color: var(--ink2); font-size: 12.5px; text-align: right; }
.gbar { position: relative; height: 12px; }
.gbar::before { content: ""; position: absolute; left: 0; right: 0; top: 5.5px; height: 1px; background: var(--grid); }
.gbar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--base); }
.gbar i { position: absolute; top: 2px; height: 8px; }
.gbar i.pos { left: calc(50% + 1px); background: var(--blue); border-radius: 0 4px 4px 0; }
.gbar i.neg { right: calc(50% + 1px); background: var(--orange); border-radius: 4px 0 0 4px; }

/* Inference cards */
.inf { border: 1px solid var(--line); border-radius: 10px; background: var(--raise); padding: 16px 18px; }
.inf .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.inf h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.inf .obs { color: var(--ink2); margin: 0 0 8px; }
.inf .why { color: var(--muted); margin: 0 0 10px; font-size: 13px; }
.inf .eff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 10px 0; }
.inf .eff h5, .h5 { margin: 0 0 4px; font: 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 400; }
.inf .watch { font-size: 13px; color: var(--ink2); border-left: 2px solid var(--base); padding-left: 10px; margin: 10px 0; }
.inf .ft { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); font: 11px/1.5 var(--mono); color: var(--muted); }
.inf .ft a { color: var(--ink2); border-bottom: 1px solid var(--base); }
.inf .ft a:hover { color: var(--ink); border-color: var(--muted); }
.inf.compact .why, .inf.compact .eff, .inf.compact .ft, .inf.compact .watch { display: none; }

/* Transmission map */
.tmap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; padding: 6px 0; }
.tmap svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tmap svg.links path { fill: none; stroke: var(--base); stroke-width: 1; opacity: .7; }
.tmap svg.links path.hot { stroke: var(--ink2); stroke-width: 1.5; opacity: 1; }
.tmap svg.links path.dim { opacity: .12; }
.tcol { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.tcol h5 { margin: 0 0 6px; font: 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 400; }
.node { border: 1px solid var(--line); border-radius: 7px; background: var(--plane); padding: 7px 10px; font-size: 12.5px; display: flex; align-items: center; gap: 8px; cursor: default; min-height: 32px; }
.node .nn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .nv { font: 11px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.node.hot { border-color: var(--muted); background: var(--surface); }
.node.dim { opacity: .3; }
.sq { width: 9px; height: 9px; border-radius: 2px; background: var(--base); flex: none; }
.sq.p2 { background: #3987e5; } .sq.p1 { background: #2a5d9c; } .sq.n1 { background: #8f4222; } .sq.n2 { background: #d95926; }

/* Heatmap */
.heat { display: grid; gap: 2px; font: 10px/1 var(--mono); }
.heat .hc { aspect-ratio: 1.5 / 1; display: flex; align-items: center; justify-content: center; border-radius: 2px; color: var(--ink); min-width: 0; }
.heat .hl { display: flex; align-items: center; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; justify-content: flex-end; }
.heat .ht { color: var(--muted); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; height: 74px; }
.heat .ht span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.scale { display: flex; align-items: center; gap: 8px; font: 10.5px/1 var(--mono); color: var(--muted); margin-top: 12px; }
.scale i { display: block; height: 8px; width: 160px; border-radius: 2px; background: linear-gradient(90deg, #d95926, #383835 50%, #3987e5); }

/* Ideas */
.idea { border: 1px solid var(--line); border-radius: 10px; background: var(--raise); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.idea .top1 { display: flex; align-items: baseline; gap: 10px; }
.idea .sym { font: 14px/1.2 var(--mono); color: var(--ink); }
.idea .co { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea .lv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line2); border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; }
.idea .lv div { background: var(--plane); padding: 7px 9px; }
.idea .lv span { display: block; font: 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.idea .lv b { font-weight: 400; font-variant-numeric: tabular-nums; font-size: 13px; }
.idea .mac { font-size: 12.5px; color: var(--ink2); display: flex; gap: 8px; align-items: baseline; }
.idea .mac .dot { transform: translateY(-1px); }
.idea .hl a { display: block; font-size: 12.5px; color: var(--muted); padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea .hl a:hover { color: var(--ink); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; font: 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, input.search { background: var(--plane); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--ink); font: 13px var(--sans); letter-spacing: 0; text-transform: none; width: 100%; outline: none; }
.field input:focus, .field select:focus, input.search:focus { border-color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.bar input.search { max-width: 280px; }

/* Learn */
.mod { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line2); align-items: start; }
.mod:last-child { border-bottom: 0; }
a.mod:hover { background: var(--raise); }
.mod .n { font: 11px/1.6 var(--mono); color: var(--faint); }
.mod .nm { font-size: 15px; color: var(--ink); }
.mod .gl { color: var(--muted); font-size: 13px; margin-top: 3px; }
.mod .mt { font: 11px/1.6 var(--mono); color: var(--muted); white-space: nowrap; text-align: right; }
.check { width: 14px; height: 14px; border: 1px solid var(--base); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: var(--plane); }
.check.on { background: var(--ink); border-color: var(--ink); }
.item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line2); align-items: start; }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--raise); }
.item.vid { grid-template-columns: 128px minmax(0, 1fr); }
.item img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; background: var(--surface); display: block; }
.item .ti { color: var(--ink); line-height: 1.4; }
.item .ti:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.item .ci { font: 11px/1.5 var(--mono); color: var(--muted); margin-top: 3px; }
.item .no { color: var(--ink2); font-size: 13px; margin-top: 5px; }
.item .us { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.item .us a { font: 10.5px/1 var(--mono); color: var(--muted); border: 1px solid var(--line2); border-radius: 4px; padding: 3px 6px; }
.item .us a:hover { color: var(--ink); border-color: var(--line); }
.ideas-list { counter-reset: idea; margin: 0; padding: 0; list-style: none; }
.ideas-list li { counter-increment: idea; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line2); color: var(--ink2); font-size: 15px; line-height: 1.55; max-width: 800px; }
.ideas-list li:last-child { border-bottom: 0; }
.ideas-list li::before { content: counter(idea, decimal-leading-zero); position: absolute; left: 0; top: 15px; font: 11px/1 var(--mono); color: var(--faint); }
.drill { border: 1px solid var(--line); border-left: 2px solid var(--ink2); border-radius: 0 10px 10px 0; padding: 14px 18px; color: var(--ink2); max-width: 800px; background: var(--raise); }
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
.vcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: var(--surface); display: block; border: 1px solid var(--line2); }
.vcard .vt { font-size: 13px; line-height: 1.4; margin-top: 8px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .vm { font: 10.5px/1.5 var(--mono); color: var(--muted); margin-top: 4px; }
.vcard:hover .vt { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.gloss { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line2); align-items: baseline; }
.gloss:last-child { border-bottom: 0; }
.gloss dt { color: var(--ink); } .gloss dd { margin: 0; color: var(--ink2); font-size: 13.5px; }
.gloss a { font: 10.5px/1 var(--mono); color: var(--muted); white-space: nowrap; } .gloss a:hover { color: var(--ink); }
.read h3 { margin: 0 0 4px; font-size: 17px; font-weight: 500; line-height: 1.35; }
.read .secs { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.read .secs h5 { margin: 0 0 2px; font: 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.read .secs p { margin: 0; color: var(--ink2); font-size: 13.5px; }
.foot-note { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--line2); font-size: 12px; color: var(--faint); max-width: 760px; }

@media (max-width: 1080px) {
  .page { padding: 32px 24px 96px; }
  .tiles, .tiles.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .stats.c5, .stats.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --side: 0px; }
  .brand { width: auto; border-right: 0; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; gap: 2px; }
  .side h6, .side .foot { display: none; }
  .side a.nav { white-space: nowrap; }
  .mkt { display: none; }
  h1.px { font-size: 33px; }
  .cols, .cols.c3, .cols.w21, .board, .inf .eff { grid-template-columns: minmax(0, 1fr); }
  .tiles, .tiles.c2, .tiles.c4 { grid-template-columns: minmax(0, 1fr); }
  .stats, .stats.c3, .stats.c5, .stats.c6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gauge { grid-template-columns: 110px minmax(0, 1fr); } .gauge .gs { display: none; }
  .tmap { gap: 28px; }
  .gloss { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.eyebrow span + span::before { content: '/'; margin-right: 10px; opacity: .45; }
.tmap .tcol:not(:last-child) { justify-content: space-between; }
@media (max-width: 1280px) { .board { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 760px; }
.prose p { line-height: 1.6; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .lede a { text-decoration: underline; text-underline-offset: 3px; }
.scroll-x { overflow-x: auto; }
@media (max-width: 720px) { .tmap { min-width: 640px; } }
