/* Signals' own tokens and overrides. The STE design system tokens and fonts come from the shared ste-tokens.css (ste-content src/shared/tokens.css), loaded before this file. */
:root { --surface-alternate: #f7f7fa; --surface-header: #f4f4f7; --warning-border: #f0d7ad; --chart-2-surface: #edfaff; --chart-8-surface: #eff2f6; --chart-2-ink: #005a8a; --chart-8-ink: #46505c; --chart-grid: #c9d3da; --chart-baseline: #17171e; --chart-rule: #120a8f; --chart-dot-ring: #ffffff; --shadow-overlay: 0 12px 32px rgba(18, 10, 143, .12);
  /* older names used by the page scripts, kept as aliases of the design system tokens */
  --bg: var(--canvas); --panel: var(--surface); --fg: var(--text-primary); --muted: var(--text-secondary); --line: var(--border); --grid: var(--chart-grid);
  --ok: var(--positive); --near: var(--warning); --bad: var(--danger); --c0: var(--chart-1); --c1: var(--chart-2);
  --serif: var(--font-display); --sans: var(--font-interface); --brand: var(--brand-700); --brand-soft: var(--brand-50);
}
:root[data-theme="dark"] { --surface-alternate: #16161c; --positive-surface: #10261d; --warning: #f0b14a; --warning-surface: #2a2010; --warning-border: #5a4318; --danger: #ff8a7a; --danger-surface: #2c1512; --chart-3: #3cc7ae; --chart-5: #f08a76; --chart-6: #b38cf0; --chart-7: #ec7fb4; --chart-8: #9aa6b5; --chart-2-surface: #0f2533; --chart-8-surface: #1e2228; --chart-2-ink: #7fcbf2; --chart-8-ink: #b4bdc9; --chart-rule: #a8a3ff; --shadow-overlay: 0 12px 32px rgba(0, 0, 0, .45); color-scheme: dark; 
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { display: block; max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
header h1 { font: 500 38px/1.1 var(--serif); margin: 0; letter-spacing: -.02em; color: var(--brand); font-synthesis: none; }
.lede { font-size: 18px; margin: 10px 0 4px; max-width: 70ch; }
.cap { font-size: 12.5px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 24px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.kpi .v { font: 400 32px/1.1 var(--serif); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
h2 { font-size: 18px; font-weight: 600; margin: 28px 0 12px; }
.assets { display: flex; flex-direction: column; gap: 12px; }
.ac-h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ac-n { font-size: 19px; font-weight: 600; }
.ac-b { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(280px, 1.8fr); gap: 28px; margin-top: 14px; align-items: start; }
.lab { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.odds { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.big { font: 400 38px/1 var(--serif); font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--grid); margin-top: 10px; max-width: 240px; }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.bar > i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg); opacity: .6; }
.bar > b { position: absolute; top: 3px; height: 2px; background: var(--fg); opacity: .25; }
.read { font-size: 13px; font-weight: 600; margin-top: 8px; }
.sig { display: grid; grid-template-columns: 10px 1fr auto 46px; align-items: center; gap: 9px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sig:last-child { border-bottom: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.sv { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12.5px; }
.ss { text-align: right; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.on .dot { background: var(--ok); } .on .ss { color: var(--ok); } .on .sn { font-weight: 600; }
.near .dot { background: var(--near); } .near .ss { color: var(--near); }
.off { color: var(--muted); }
.edge { font-size: 10px; margin-left: 6px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--ok); color: var(--ok); vertical-align: 1px; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
footer { margin-top: 36px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-edge { color: var(--ok); font-weight: 600; } .g-weak { color: var(--near); } .g-other { color: var(--muted); }
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--sans); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.chips button { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chips button.on { color: var(--fg); border-color: var(--fg); }
details { margin-top: 14px; } summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); font-size: 13.5px; max-width: 80ch; }
.err { color: var(--bad); }
@media (max-width: 760px) {
  .wrap { padding: 18px 14px 40px; }
  header h1 { font-size: 28px; }
  .lede { font-size: 16px; }
  .ac-b { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ac-b .sigs { grid-column: 1 / -1; }
  .sv { display: none; }
  .sig { grid-template-columns: 10px 1fr 46px; }
  .big { font-size: 32px; }
}

/* Macro page */
.look ul { margin: 6px 0 0; padding-left: 18px; }
.look li { margin: 6px 0; max-width: 90ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ind { display: flex; flex-direction: column; gap: 4px; }
.ind .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ind .nm { font-weight: 600; font-size: 14.5px; }
.pri { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pri.A { border-color: var(--fg); color: var(--fg); }
.vrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.val { font: 400 28px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.chg { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 46px; display: block; margin: 2px 0; }
.meta { font-size: 11.5px; color: var(--muted); }
.meta a { color: var(--muted); }
.st-stale, .st-carried { color: var(--near); } .st-failed { color: var(--bad); }
.wide { grid-column: 1 / -1; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.diff { font-size: 14px; line-height: 1.65; max-width: 80ch; }
.diff ins { background: color-mix(in srgb, var(--ok) 18%, transparent); text-decoration: none; }
.diff del { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--muted); }
.diff p { margin: 0 0 10px; }
.list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.up { color: var(--ok); } .dn { color: var(--bad); }
.ladder { position: relative; height: 34px; margin: 26px 0 30px; }
.ladder .track { position: absolute; left: 0; right: 0; top: 12px; height: 10px; border-radius: 5px; background: var(--grid); }
.ladder .fill { position: absolute; left: 0; top: 12px; height: 10px; border-radius: 5px; background: var(--c0); }
.ladder .mk { position: absolute; top: 4px; height: 26px; border-left: 1px dashed var(--muted); font-size: 11px; color: var(--muted); }
.ladder .mk span { position: absolute; top: 28px; left: -18px; width: 60px; }
.ladder .mk b { position: absolute; top: -18px; left: -14px; font-weight: 600; }
.rules dt { font-weight: 600; font-size: 13.5px; margin-top: 10px; }
.rules dd { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; max-width: 90ch; }
.chartbox svg { width: 100%; height: auto; display: block; }
.chartbox text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 5px; }
.kpi .v.sm { font-size: 24px; }
@media (max-width: 760px) {
  .two { grid-template-columns: 1fr; }
  .val { font-size: 24px; }
}

.list.cols { columns: 2 320px; column-gap: 28px; }
.list.cols li { break-inside: avoid; }
.lrow + .lrow { margin-top: 22px; }

/* Macro tabs, quick look, tooltips */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); margin: 22px 0 18px; padding: 8px 0 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font: inherit; font-size: 14px; white-space: nowrap; padding: 8px 12px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.tabs button.on { color: var(--fg); border-bottom-color: var(--fg); font-weight: 600; }
.panel > .kpis { margin-top: 0; }
.ptitle { margin-top: 4px; }
.look { margin-bottom: 12px; }
.look ul { columns: 2 380px; column-gap: 32px; }
.look li { break-inside: avoid; margin: 0 0 8px; }
.mini-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.mini { cursor: pointer; padding: 14px 16px; gap: 2px; }
.mini:hover, .mini:focus-visible { border-color: var(--muted); outline: none; }
.mini .nm { font-size: 13.5px; }
.mini .val { font-size: 24px; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--c0); } 100% { box-shadow: 0 0 0 3px transparent; } }
.g { text-decoration: underline dotted; text-decoration-color: var(--muted); text-underline-offset: 3px; cursor: help; }
.g:focus-visible { outline: 2px solid var(--c0); outline-offset: 1px; border-radius: 2px; }
button.i { font: italic 600 11px/1 Georgia, serif; width: 16px; height: 16px; padding: 0; margin-left: 6px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); background: none; cursor: help; vertical-align: 2px; text-transform: none; letter-spacing: 0; }
.lab button.i { vertical-align: 0; }
h2 button.i { vertical-align: 3px; }
button.i:hover, button.i:focus-visible { color: var(--fg); border-color: var(--fg); }
.pri[data-tip] { cursor: help; }
.tip { position: absolute; z-index: 20; background: var(--fg); color: var(--bg); font-size: 13px; line-height: 1.45; padding: 8px 11px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.18); pointer-events: auto; }
.tip[hidden] { display: none; }
.legend i.sw { width: 12px; height: 10px; border-radius: 2px; opacity: .45; }
.chips.sm { margin: 4px 0 6px; }
.chips.sm button { font-size: 12px; padding: 3px 10px; }
.morebtn { display: none; font: inherit; font-size: 13px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--c0); cursor: pointer; }
.readout { font-size: 12.5px; color: var(--fg); font-variant-numeric: tabular-nums; min-height: 18px; margin-top: 2px; }
.chartbox svg { touch-action: pan-y; }
@media (max-width: 760px) {
  .tabs { margin-left: -14px; margin-right: -14px; padding-left: 10px; padding-right: 10px; }
  .mini-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mini { padding: 11px 12px; }
  .mini .val { font-size: 20px; }
  .mini .chg { font-size: 11.5px; }
  .mini .meta { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px 14px; }
  .kpi .v, .kpi .v.sm { font-size: 22px; }
  .kpi:first-child { grid-column: 1 / -1; }
  .look:not(.open) li.more { display: none; }
  .morebtn { display: block; }
  .chartbox text { font-size: 10.5px; }
}

/* light and dark toggle */
.nc td, .nc th { white-space: nowrap; }
.nc td.num, .nc th.r { text-align: right; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.pair > div { min-width: 0; }
@media (max-width: 900px) { .pair { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.sub { font-weight: 600; font-size: 13.5px; margin: 10px 0 4px; }
.nc .mob { display: none; }
@media (max-width: 640px) { .nc .desk { display: none; } .nc .mob { display: block; font-weight: 400; font-size: 11.5px; white-space: normal; } .nc td:first-child { white-space: normal; } .nc th, .nc td { padding: 7px 5px; } }

/* touch or hover a chart to read values */
.scrub { position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.sc-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--fg); opacity: .55; display: none; pointer-events: none; }
.sc-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; border: 1.5px solid var(--panel); display: none; pointer-events: none; }
.sc-lab { position: absolute; top: -24px; z-index: 3; display: none; pointer-events: none; white-space: nowrap; font-size: 11.5px; line-height: 1.5; padding: 1px 7px; border-radius: 5px; background: var(--fg); color: var(--bg); font-variant-numeric: tabular-nums; }
svg .hit { cursor: help; outline: none; }

/* brand header: STE (links to ste.fund) | Signals (links to this site's front page), same font and size */

/* front page */
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: 12px; }
#panels > .grid { margin-top: 12px; }
.changed .list li { padding: 5px 0; }
.more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--brand); text-decoration: none; font-weight: 600; }
.more:after { content: " →"; }
.xt td, .xt th { white-space: nowrap; vertical-align: middle; }
.xt td:first-child { white-space: normal; min-width: 130px; }
.xt td:first-child .cap { font-size: 11px; }
.xt .r, .xt .num { text-align: right; }
.xt .odd { font-weight: 700; }
.xt .odd:before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--near); margin-right: 5px; vertical-align: 2px; }
.rng { position: relative; width: 90px; height: 6px; border-radius: 3px; background: var(--grid); }
.rng i { position: absolute; top: -3px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--brand); }
.skc { width: 130px; padding-top: 2px; padding-bottom: 2px; }
.skc .spark { width: 130px; display: block; }
.wires { list-style: none; margin: 4px 0 0; padding: 0; }
.wires li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.wires li:last-child { border-bottom: 0; }
.wt { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; }
.wn { font-weight: 400; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wires .crossed .wn { color: var(--bad); font-weight: 700; }
.wbar { height: 5px; border-radius: 3px; background: var(--grid); margin: 6px 0 4px; overflow: hidden; }
.wbar i { display: block; height: 100%; background: var(--near); border-radius: 3px; }
.wires .crossed .wbar i { background: var(--bad); }
.ahead { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13.5px; }
.ahead li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ahead li:last-child { border-bottom: 0; }
.ahead .ad { color: var(--muted); font-variant-numeric: tabular-nums; }
.oddsc .nc td:first-child { white-space: normal; }
@media (max-width: 640px) {
  .xt .desk { display: none; }
  .xt th, .xt td { padding: 7px 5px; }
  .xt td:first-child { min-width: 0; }
}
.tripc:not(.open) .wires li.more { display: none; }

.wires li.on.bottom .wn { color: var(--ok); font-weight: 700; }
.wires li.on.top .wn { color: var(--bad); font-weight: 700; }
.grid.ahead2 { margin-top: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .grid.ahead2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }

/* front page: regime tiles */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tiles .tile:last-child { grid-column: 1 / -1; } }
.tile { --tone: var(--muted); background: color-mix(in srgb, var(--tone) 7%, var(--panel)); border: 1px solid color-mix(in srgb, var(--tone) 28%, var(--line)); border-top: 4px solid var(--tone); border-radius: 12px; padding: 12px 14px 13px; min-width: 0; }
.t-ok { --tone: var(--ok); } .t-warn { --tone: var(--near); } .t-bad { --tone: var(--bad); } .t-neu { --tone: var(--c0); }
.tile .tk { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile .tk button.i { vertical-align: 0; }
.tile .tl { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.15; margin: 4px 0 6px; color: color-mix(in srgb, var(--tone) 75%, var(--fg)); }
.tile .tv { font-size: 14px; } .tile .tv b { font-size: 16px; }
.tile .ts { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.tile .tc { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
@media (max-width: 640px) { .tile { padding: 10px 11px; } .tile .tl { font-size: 18px; } }

/* front page: what's new */
.nl { list-style: none; margin: 6px 0 0; padding: 0; }
.nl li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--grid); align-items: baseline; }
.nl li:first-child { border-top: 0; }
.nl .nk { font-weight: 700; }
.nl .nb { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.nl .nb .cap { width: 100%; }
.nl .nn .cap { width: auto; }
@media (max-width: 640px) { .nl li { grid-template-columns: 1fr; gap: 2px; } .nl .nb { flex-direction: column; gap: 3px; } }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.p-bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.p-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.p-neu { background: var(--grid); color: var(--muted); }

/* front page: markets beside the odds */
.grid.mk2 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 1000px) { .grid.mk2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.cross.compact .xt td, .cross.compact .xt th { padding-left: 6px; padding-right: 6px; }
.sigline { margin-top: 10px; }
.grid.mk2 > .wide { grid-column: auto; }

/* big blue links to the full pages */
a.go { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--brand); text-decoration: none; }
a.go:after { content: "→"; font-size: 18px; transition: transform .15s; }
a.go:hover:after { transform: translateX(3px); }
.gorow { margin-top: 14px; }
h2.hrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
h2.hrow .hl { display: inline-flex; align-items: baseline; gap: 6px; }
details.note summary { cursor: pointer; color: var(--brand); }

/* ===================================================================================================
   STE design system layer (December 2026). Applies the system's type, colour, components and the
   DataChart style to every Signals page. Values come from the tokens at the top of this file.
   =================================================================================================== */
html { background: var(--web-canvas); }
body { background: var(--web-canvas-bottom) linear-gradient(180deg, var(--web-canvas-top) 0, var(--web-canvas) 640px, var(--web-canvas-bottom) 100%) no-repeat; color: var(--text-primary); font: 400 14px/1.45 var(--font-interface); font-variant-numeric: tabular-nums lining-nums; }
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
a { color: var(--brand-700); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--content-max)); max-width: none; padding: 0 0 var(--space-16); }

/* Page hero: article-page-title and article-page-intro */
main > header { padding: var(--space-12) 0 var(--space-8); }
header h1 { font: 700 clamp(2.5rem, 4vw, 3.5rem)/1.08 var(--font-display); letter-spacing: -.02em; color: var(--brand-700); text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-primary); max-width: var(--measure); margin: var(--space-4) 0 var(--space-2); }
.cap { font-size: 12px; color: var(--text-secondary); }
main > header .cap { font-size: 14px; }

/* Section headings: display face, brand-700 */
h2 { font: 500 28px/1.15 var(--font-display); letter-spacing: -.015em; color: var(--brand-700); margin: var(--space-12) 0 var(--space-4); }
h2 button.i { vertical-align: 6px; }

/* Cards: flat surface, 1px border, 8px radius */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-surface); padding: var(--space-6); }
.grid, .charts, .assets, .grid.two, #panels > .grid { gap: var(--space-4); }
.lab { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--text-secondary); margin-bottom: var(--space-2); }

/* MetricCard */
.kpis { gap: var(--space-4); margin: 0 0 var(--space-8); }
.kpi { padding: var(--space-4); min-height: 104px; display: flex; flex-direction: column; gap: 2px; }
.kpi > .cap:first-child { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.kpi .v { font: 500 24px/1.12 var(--font-display); letter-spacing: -.015em; margin: 4px 0 2px; }
.kpi .v.sm { font-size: 20px; }
.kpi .cap { font-size: 11px; color: var(--text-tertiary); }

/* Indicator cards */
.ind .nm { font-size: 14px; font-weight: 600; }
.val { font: 500 24px/1.12 var(--font-display); letter-spacing: -.015em; }
.chg { font-size: 12px; color: var(--text-secondary); }
.meta, .meta a { font-size: 11px; color: var(--text-tertiary); }
.mini:hover, .mini:focus-visible { border-color: var(--brand-400); }
.mini .val { font-size: 22px; }

/* Regime tiles as metric cards: the label word in the display face, coloured by status; warning and danger tint the card */
.tiles { gap: var(--space-4); margin: 0 0 var(--space-4); }
.tile { --tone: var(--text-secondary); background: var(--surface); border: 1px solid var(--border); border-top: 1px solid var(--border); border-radius: var(--radius-surface); padding: var(--space-4); }
.t-ok { --tone: var(--positive); } .t-neu { --tone: var(--brand-700); }
.t-warn { --tone: var(--warning); background: var(--warning-surface); border-color: var(--warning-border); }
.t-bad { --tone: var(--danger); background: var(--danger-surface); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.tile .tk { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--text-secondary); }
.tile .tl { font: 500 24px/1.12 var(--font-display); letter-spacing: -.015em; color: var(--tone); margin: var(--space-2) 0 var(--space-1); display: flex; align-items: center; gap: var(--space-2); }
.tile .tl::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.tile .tv { font-size: 14px; } .tile .tv b { font-size: 14px; }
.tile .ts { font-size: 11px; color: var(--text-secondary); line-height: 1.45; }
.tile .tc { margin-top: var(--space-2); font-size: 11px; font-weight: 600; height: 22px; line-height: 22px; padding: 0 8px; border-radius: var(--radius-tag); background: var(--brand-50); color: var(--brand-700); }
@media (max-width: 640px) { .tile .tl { font-size: 20px; } }

/* Table */
table { font-size: 13px; }
th { background: var(--surface-header); color: var(--text-secondary); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; height: 44px; padding: 0 var(--space-3); border-bottom: 1px solid var(--border); vertical-align: middle; }
td { padding: var(--space-3); border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
tbody tr:nth-child(even) td { background: var(--surface-alternate); }
tbody tr:last-child td { border-bottom: 0; }
.card.tw { padding: 0; overflow-x: auto; }
.card .tw { margin-left: calc(-1 * var(--space-6)); margin-right: calc(-1 * var(--space-6)); }
.card .tw th:first-child, .card .tw td:first-child { padding-left: var(--space-6); }
.card .tw th:last-child, .card .tw td:last-child { padding-right: var(--space-6); }
.card .tw:last-child { margin-bottom: calc(-1 * var(--space-6)); }
.card .tw:last-child tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-surface); }
.card .tw:last-child tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-surface); }

/* StatusPill: fully rounded with a dot, always a word */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1; vertical-align: 1px; margin-left: 6px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-bad { background: var(--danger-surface); color: var(--danger); }
.p-ok { background: var(--positive-surface); color: var(--positive); }
.p-neu { background: var(--surface-subtle); color: var(--text-secondary); }

/* Tag: 4px corners, names a category or grade */
.pri, .edge { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 0; border-radius: var(--radius-tag); font-size: 11px; font-weight: 600; background: var(--chart-8-surface); color: var(--chart-8-ink); }
.pri.A { background: var(--chart-2-surface); color: var(--chart-2-ink); }
.edge { height: 18px; background: var(--positive-surface); color: var(--positive); vertical-align: 1px; }

/* Tabs and segmented choices */
.tabs { background: var(--web-canvas); border-bottom: 1px solid var(--border); gap: var(--space-6); margin: 0 0 var(--space-6); padding-top: var(--space-2); }
.tabs button { font-size: 15px; font-weight: 600; padding: 12px 0 10px; color: var(--text-secondary); margin-bottom: -1px; }
.tabs button:hover { color: var(--brand-700); }
.tabs button.on { color: var(--brand-700); border-bottom-color: var(--brand-700); }
.chips button { font-size: 12px; font-weight: 600; height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-control); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-secondary); }
.chips button:hover { border-color: var(--brand-400); color: var(--brand-700); }
.chips button.on { background: var(--brand-50); border-color: var(--brand-400); color: var(--brand-700); }
.chips.sm button { font-size: 12px; height: 28px; padding: 0 10px; }

/* Tooltips and the i buttons */
.tip { background: var(--surface); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius-control); box-shadow: var(--shadow-overlay); font-size: 13px; padding: var(--space-2) var(--space-3); }
.tip a { color: var(--brand-700); }
button.i { font: 600 10px/1 var(--font-interface); border-color: var(--border-strong); color: var(--text-secondary); }
button.i:hover, button.i:focus-visible { color: var(--brand-700); border-color: var(--brand-700); }
.g { text-decoration-color: var(--border-strong); }
.g:hover, .g[aria-expanded="true"] { text-decoration-color: var(--brand-700); }

/* Odds blocks */
.ac-n { font: 500 20px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--text-primary); }
.big { font: 500 34px/1.12 var(--font-display); letter-spacing: -.02em; }
.bar, .rng, .wbar, .ladder .track { background: var(--web-card-track); }
.bar > i, .bar > b { background: var(--chart-baseline); }
.lab { text-transform: uppercase; }
.sig { border-bottom-color: var(--border-subtle); font-size: 13px; }
.dot { background: var(--border-strong); }
.ss { font-size: 11px; letter-spacing: .04em; }
.read { font-size: 12px; }
.ladder .fill { background: var(--chart-1); }
.rng i { background: var(--brand-700); }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--brand-400); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* Lists */
.list li, .wires li, .ahead li { border-bottom-color: var(--border-subtle); }
.nl li { border-top-color: var(--border-subtle); }
.nl .nk { font-weight: 600; }

/* Links to the full pages */
a.go { font-size: 15px; font-weight: 600; color: var(--brand-700); }
.more { color: var(--brand-700); }
details summary { color: var(--brand-700); font-weight: 600; }
details.note { font-size: 13px; color: var(--text-secondary); }

/* Footer notes: one block per page, after a 1px line */
main > footer { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); }
main > footer a { color: var(--brand-700); }

/* ---------- DataChart: the big charts lose the card and take the ultramarine rule with a tag at each end */
.card.wide.chartbox { position: relative; background: none; border: 0; border-top: 1px solid var(--chart-rule); border-radius: 0; padding: var(--space-4) 0 0; margin-top: var(--space-4); }
.card.wide.chartbox::before, .card.wide.chartbox::after { content: ""; position: absolute; top: -1px; width: 40px; height: 8px; background: var(--chart-rule); }
.card.wide.chartbox::before { left: 0; } .card.wide.chartbox::after { right: 0; }
.card.wide.chartbox > .lab { font-size: 18px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text-primary); margin-bottom: var(--space-3); }
.card.wide.chartbox .tw { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.card.wide.chartbox .tw th:first-child, .card.wide.chartbox .tw td:first-child { padding-left: var(--space-3); }
.chartbox svg, .chart svg { overflow: visible; }
.chartbox text, .chart text { fill: var(--text-secondary); font-size: 14px; font-family: var(--font-interface); }
.chartbox text.yr, .chart text.yr { fill: var(--text-primary); }
.chart text { font-size: 11px; }
.legend { gap: var(--space-2) var(--space-4); font-size: 14px; font-weight: 600; color: var(--text-primary); margin: 0 0 var(--space-3); }
.legend i { width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; }
.legend i.sw { width: 12px; height: 12px; border-radius: 2px; opacity: .35; }
.legend i.dash { height: 0; background: none !important; border-top: 2px dashed; }
.legend i.dot { height: 0; background: none !important; border-top: 2px dotted; }
.legend a { font-weight: 400; }
.readout { font-size: 13px; color: var(--text-primary); margin-top: var(--space-2); }
.chart { padding: var(--space-4); }
.chart .ac-h b { font-size: 14px; font-weight: 600; }
@media (max-width: 700px) { .chartbox text { font-size: 12.5px; } }

/* Hover and tap readout (scrub.js): dashed guide, ringed dots, a white box */
.sc-line { border-left: 1px dashed var(--chart-baseline); opacity: 1; }
.sc-dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 2px solid var(--chart-dot-ring); box-sizing: content-box; }
.sc-lab { top: -34px; background: var(--surface); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius-control); box-shadow: var(--shadow-overlay); font-size: 12px; padding: 4px 8px; }

@media (max-width: 780px) {
  .wrap { width: calc(100% - 2 * var(--gutter-mobile)); }
  main > header { padding: var(--space-8) 0 var(--space-6); }
  header h1 { font-size: 36px; }
  .lede { font-size: 17px; }
  h2 { font-size: 24px; margin-top: var(--space-8); }
  .card { padding: var(--space-4); }
  .card .tw { margin-left: calc(-1 * var(--space-4)); margin-right: calc(-1 * var(--space-4)); }
  .card .tw th:first-child, .card .tw td:first-child { padding-left: var(--space-4); }
  .card .tw th:last-child, .card .tw td:last-child { padding-right: var(--space-4); }
  .card .tw:last-child { margin-bottom: calc(-1 * var(--space-4)); }
  .kpis, .tiles, .grid, .mini-grid { gap: var(--space-2); }
  .kpi { padding: var(--space-3); min-height: 0; }
  .tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; gap: var(--space-4); }
}
.chartbox text { font-size: 12.5px; }
.mini-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
h2.hrow a.go { font-family: var(--font-interface); letter-spacing: 0; white-space: nowrap; }
