.quant-controls { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
.quant-controls label { display: flex; gap: 12px; align-items: center; }
.quant-controls select { padding: 10px; border: 1px solid #ccd0d4; border-radius: 4px; background: white; }
.quant-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.quant-summary strong { display: block; font-size: 32px; margin: 12px 0; }
.quant-summary p { font-size: 14px; }
.quant-details { margin-top: 24px; }
.quant-details summary { cursor: pointer; font-weight: 600; }
#quant .data-table td { white-space: normal; min-width: 110px; }
@media (max-width: 700px) { .quant-summary { grid-template-columns: 1fr; } }
/* Morning Desk, in the manner of a private bank's house style: white and stone surfaces, a deep harbour navy for the
   hero and the dark bands, near-black ink, and one muted bullion gold kept for hairlines, the emblem and the market
   line. Headlines, key figures and ticker symbols are set in a light serif (Newsreader, optical sizes); reading text,
   tables and controls in a quiet sans (Instrument Sans) with tabular figures. Corners are nearly square, structure is
   drawn with hairlines and space, and the only orchestrated motion is the market line drawing itself into the hero. */
@font-face { font-family: "Morning Sans"; src: url("fonts/MorningSans.woff2") format("woff2-variations"), url("fonts/MorningSans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Morning Serif"; src: url("fonts/MorningSerif.woff2") format("woff2-variations"), url("fonts/MorningSerif.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #101c2c; --navy: #14263d; --navy-2: #223a58; --navy-3: #2f4b70;
  --gold: #a98552; --gold-light: #cdb183; --gold-soft: #f4eee3;
  --stone: #f4f5f6; --stone-2: #e9ecef; --white: #fff; --line: #dde1e6; --muted: #5b6675; --faint: #98a1ad;
  --on-dark: #c5cdd8; --on-dark-2: #8f9cad; --line-dark: #ffffff1c;
  --up: #1f6b4f; --up-soft: #e5efea; --down: #a33a31; --down-soft: #f5e7e5; --warn: #86622a; --warn-soft: #f4eee3; --info-soft: #e7ecf2;
  --slate: #7f90a7; --rose: #e3a091;
  /* Older names still used by the page script and a few rules. */
  --night: var(--navy); --sky: var(--navy-2); --sun: var(--gold); --sun-deep: var(--gold); --fog: var(--stone); --fog-2: var(--stone-2);
  --link: var(--navy-2); --blue: var(--navy-2); --paper: var(--stone); --rule: var(--line);
  --serif: "Morning Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font: "Morning Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 2px; --r-s: 2px; --r-m: 2px; --r-l: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 15.5px/1.65 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 360; letter-spacing: -0.012em; line-height: 1.08; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(40px, 5vw, 68px); font-weight: 320; }
h2 { font-size: clamp(32px, 3.3vw, 46px); }
h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
p { color: var(--muted); }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--stone); padding: 1px 6px; border-radius: var(--r); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: #e9dcc4; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.section { padding-block: 104px; }
.section-muted { background: var(--stone); }
.lead { font-size: 18px; line-height: 1.65; }
.small-note { font-size: 13px; line-height: 1.65; color: var(--muted); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); }
.error { color: var(--down); font-size: 13px; min-height: 1.2em; margin-top: 8px; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
/* Big numbers and ticker symbols share the serif. */
.figure, .idea-top .sym, .position .row1 a, .trade .what a, .read .top a, .pf-big, .rs-big, .st-score, .st-figure b, .tile .t-price,
.summary-strip b, .stats b, .sleeve-top b, .heat b, .factors .pts, .vol-events b, .ticker-title h1, .ticker-price b, .chains .cause, .hero-caption b, .empty h3 {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 380; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }

/* Buttons and links */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--r); font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.button > span[aria-hidden] { display: none; }
.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: var(--navy-3); }
.button-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #101c2c40; }
.button-secondary:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.button-sun { background: #fff; color: var(--navy); }
.button-sun:hover { background: var(--gold-soft); }
.button-glass { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #ffffff59; }
.button-glass:hover { box-shadow: inset 0 0 0 1px #fff; }
.button:disabled { opacity: .55; cursor: progress; }
.text-link { display: inline; padding: 0 0 3px; border: 0; background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; color: var(--ink); font-size: 14px; font-weight: 600; transition: background-size .4s var(--ease), color .2s; }
.text-link:hover { background-size: 0% 1px; }
.text-link > span[aria-hidden] { display: none; }
.text-link.light { color: #fff; background-image: linear-gradient(var(--gold-light), var(--gold-light)); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fffffff2; backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.site-header .container { width: min(1376px, calc(100% - 56px)); }
.header-inner { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; flex: none; }
.mark { width: 34px; height: 34px; display: block; overflow: visible; }
.mark-ring { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.mark-sun { fill: var(--gold); }
.mark-rule { stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 420; letter-spacing: -0.005em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 0; font-size: 13px; font-weight: 500; color: var(--muted); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { position: relative; padding: 10px 8px; white-space: nowrap; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a.active::after, .site-nav a:hover::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.clock { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.live-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--up); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--up); opacity: 0; animation: ping 3s var(--ease) infinite; }
.live-dot.pre { background: var(--gold); } .live-dot.pre::after { border-color: var(--gold); }
.live-dot.stale { background: var(--faint); } .live-dot.stale::after { display: none; }
.badge .keep { text-transform: none; }
@keyframes ping { 0% { transform: scale(.4); opacity: .6; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.utility-select, .utility-button { height: 32px; border: 0; border-radius: var(--r); background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 0 12px; white-space: nowrap; }
.utility-select { padding-right: 8px; }
.utility-button:hover, .utility-select:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.utility-button:disabled { opacity: .6; }
.mobile-toggle, .nav-refresh { display: none; }
body[data-view="unlock"] .site-nav, body[data-view="loading"] .site-nav, body[data-view="unlock"] .mobile-toggle, body[data-view="loading"] .mobile-toggle { visibility: hidden; }

/* Gate (unlock / waking): navy, a light serif greeting and a gold horizon line. */
.gate { position: relative; min-height: calc(100svh - 73px); display: flex; align-items: center; background: var(--navy); color: #fff; overflow: hidden; }
.gate::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 1px; background: linear-gradient(90deg, transparent, #cdb18399 20%, #cdb183 50%, #cdb18399 80%, transparent); }
.gate-inner { padding-block: 80px 200px; position: relative; }
.gate h1 { font-size: clamp(56px, 8vw, 104px); font-weight: 280; letter-spacing: -0.02em; color: #fff; }
.gate .lead { color: var(--on-dark); margin-top: 20px; max-width: 32em; }
.gate-form { display: flex; gap: 12px; margin-top: 36px; max-width: 480px; }
.gate-form input { flex: 1; min-height: 46px; padding: 0 2px; border: 0; border-bottom: 1px solid #ffffff59; border-radius: 0; background: transparent; color: #fff; font-size: 16px; }
.gate-form input:focus { outline: none; border-bottom-color: var(--gold-light); box-shadow: none; }
.gate-form input::placeholder { color: var(--on-dark-2); }
.gate-form .button { min-height: 46px; }
.gate .error { color: #f0b3a6; }
.sun, .horizon { display: none; }
/* While the server wakes, a short gold light travels along the horizon. */
.waking::before { content: ""; position: absolute; bottom: 18%; height: 1px; width: 22%; left: -22%; z-index: 1; background: linear-gradient(90deg, transparent, #f1dfba, transparent); animation: travel 2.8s ease-in-out infinite; }
@keyframes travel { from { left: -22%; } to { left: 100%; } }
.dots { display: inline-flex; gap: 6px; margin-left: 14px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); animation: blink 1.4s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Hero: the call, in a light serif on navy, with the S&P 500's long line drawn in gold along its foot. */
.hero-band { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-content { padding-block: 76px 0; position: relative; z-index: 1; }
.hero-content.solo { padding-bottom: 104px; }
.hero-date { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--on-dark); }
.hero h1 { margin-top: 24px; max-width: 17em; font-size: clamp(38px, 4.4vw, 60px); color: #fff; text-wrap: balance; }
.hero-summary { max-width: 40em; font-size: 17px; color: var(--on-dark); line-height: 1.7; margin-top: 26px; }
.hero-memo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); max-width: 40em; }
.hero-memo > div { overflow: hidden; }
.hero-memo.open { grid-template-rows: 1fr; }
.hero-memo p { color: var(--on-dark); font-size: 15.5px; line-height: 1.75; margin-top: 14px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.hero-actions .text-link { margin-left: 10px; }
.regime-pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px; border-radius: var(--r); box-shadow: inset 0 0 0 1px #ffffff33; color: #fff; font-size: 12.5px; font-weight: 600; }
.regime-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.regime-pill.risk-on::before { background: #7fc7a4; } .regime-pill.neutral::before { background: #a9b7cc; } .regime-pill.risk-off::before { background: var(--gold-light); } .regime-pill.stress::before { background: var(--rose); }
.hero-clock { display: none; }
.hero-line { position: relative; margin-top: 56px; height: 168px; }
.hero-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-line .ln { fill: none; stroke: var(--gold-light); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero-line .ar { fill: url(#hero-fill); }
.hero-line .base { stroke: #ffffff1f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-line-caption { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: space-between; font-size: 12px; color: var(--on-dark-2); pointer-events: none; }
.hero-line-caption b { color: #fff; font-weight: 600; }
/* Key figures under the hero: large serif numerals, small captions, hairlines between. */
.hero-caption { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-block: 40px 8px; }
.hero-caption > div { padding: 2px 24px; border-left: 1px solid var(--line); min-width: 0; }
.hero-caption > div:first-child { padding-left: 0; border-left: 0; }
.hero-caption span { display: block; font-size: 13px; color: var(--muted); }
.hero-caption b { display: block; margin-top: 6px; font-size: 42px; line-height: 1.05; color: var(--ink); white-space: nowrap; }
.hero-caption small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hero-caption small a { color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; padding-bottom: 1px; }
.alloc { display: flex; gap: 2px; height: 3px; margin-top: 12px; }
.alloc span { display: block; height: 100%; }
.alloc .equities, .mix-bar.equities i { background: var(--navy); } .alloc .bonds, .mix-bar.bonds i { background: var(--slate); } .alloc .gold, .mix-bar.gold i { background: var(--gold); } .alloc .cash, .mix-bar.cash i { background: #cdd3db; }
/* The one orchestrated moment: the line draws itself, then the call settles in. */
.intro .hero-line .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) .2s forwards; }
.intro .hero-line .ar, .intro .hero-line-caption { opacity: 0; animation: fade 1.2s ease-out 1.6s forwards; }
.intro .hero-date, .intro .hero h1, .intro .hero-summary, .intro .hero-actions { animation: appear 1s var(--ease) both; }
.intro .hero-date { animation-delay: .1s; } .intro .hero h1 { animation-delay: .25s; } .intro .hero-summary { animation-delay: .45s; } .intro .hero-actions { animation-delay: .6s; }
.intro .hero-caption > div { animation: appear .8s var(--ease) both; }
.intro .hero-caption > div:nth-child(1) { animation-delay: .9s; } .intro .hero-caption > div:nth-child(2) { animation-delay: 1s; } .intro .hero-caption > div:nth-child(3) { animation-delay: 1.1s; } .intro .hero-caption > div:nth-child(4) { animation-delay: 1.2s; } .intro .hero-caption > div:nth-child(5) { animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Desk status: one quiet line */
.desk-strip { display: flex; flex-wrap: wrap; gap: 6px 26px; width: min(1200px, calc(100% - 72px)); margin: 28px auto 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.desk-cell { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 13px; }
.desk-cell .idx { display: none; }
.desk-cell > div { display: flex; align-items: baseline; gap: 8px; }
.desk-cell strong { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.desk-cell .meta { color: var(--muted); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--stone-2); flex: none; box-shadow: inset 0 0 0 1px #00000014; }
.dot.ok { background: var(--up); box-shadow: none; } .dot.error { background: var(--down); box-shadow: none; } .dot.waiting { background: var(--gold); box-shadow: none; }

/* Alerts */
.alerts-band { padding-block: 16px 0; }
.alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.alert { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: var(--r); background: var(--stone); font-size: 14px; color: var(--ink); border-left: 2px solid var(--line); }
.alert b { font-size: 12px; font-weight: 600; flex: none; }
.alert.buy { border-left-color: var(--up); } .alert.buy b { color: var(--up); }
.alert.risk { border-left-color: var(--down); } .alert.risk b { color: var(--down); }
.alert.event { border-left-color: var(--gold); } .alert.event b { color: var(--warn); }
.alert a { margin-left: auto; color: var(--muted); }

/* Section headings: the name in the serif, then what the section is for */
.section-heading { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; row-gap: 10px; align-items: start; margin-bottom: 52px; }
.section-heading > h2 { grid-column: 1; grid-row: 1 / span 3; }
.section-heading > p { grid-column: 2; max-width: 36em; font-size: 15px; line-height: 1.65; }
.section-heading > p.lede { padding-top: 8px; font-size: 18px; color: var(--ink); line-height: 1.55; }
h3.sub { font-family: var(--serif); font-size: 25px; font-weight: 400; color: var(--ink); margin: 64px 0 18px; letter-spacing: -0.005em; }
h3.sub .muted { font-family: var(--font); font-weight: 400; font-size: 14px; letter-spacing: 0; }
@media (max-width: 760px) { h3.sub { line-height: 1.3; } }

/* Panels */
.panel { background: var(--stone); border-radius: var(--r); padding: 28px; min-width: 0; }
.section-muted .panel, .band-dark .panel { background: var(--white); }
.panel-title { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; font-size: 14px; color: var(--muted); }
.panel > .eyebrow + .kv-grid, .panel > .eyebrow + .row-list { margin-top: 10px; }
.panel .eyebrow + .chart, .panel .eyebrow + .greeks { margin-top: 8px; }
.panel .kv-grid + .eyebrow, .panel .greeks + .small-note + .eyebrow, .panel .small-note + .eyebrow, .panel .notes + .eyebrow, .panel .link-rows + .small-note { margin-top: 22px; }
.panel .timing + .kv-grid { margin-top: 12px; }
.panel .odds { margin-top: 16px; }
.panel .thesis, .panel .notes { margin-top: 14px; }

/* Badges: small sentence-case words on a quiet tint, nearly square */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r); text-transform: lowercase; vertical-align: middle; white-space: nowrap; }
.badge::first-letter { text-transform: uppercase; }
.badge.BUY, .badge.ADD, .badge.HOLD { background: var(--up-soft); color: var(--up); }
.badge.ACCUMULATE, .badge.WATCH, .badge.REVIEW { background: var(--info-soft); color: var(--navy-2); }
.badge.TRIM, .badge.REPLACE { background: var(--warn-soft); color: var(--warn); }
.badge.SELL, .badge.EXIT, .badge.AVOID { background: var(--down-soft); color: var(--down); }
.badge.plain { background: var(--stone-2); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--r); background: var(--stone-2); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips .chip { font-size: 13px; padding: 4px 12px; }

/* Ideas */
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.idea { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--r); background: var(--white); min-width: 0; border-top: 1px solid var(--gold); }
.section:not(.section-muted) .idea { background: var(--stone); }
.idea-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.position .row1 .tag { margin-left: 2px; }
.idea-top .eyebrow { display: block; margin-bottom: 10px; color: var(--muted); font-weight: 500; }
.idea-top .sym { display: block; font-size: 46px; line-height: .95; color: var(--ink); }
.idea-top .nm { font-size: 13px; color: var(--muted); margin-top: 10px; }
.idea-top .px { text-align: right; }
.idea-top .px b { font-size: 20px; font-weight: 600; display: block; }
.conv { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.conv i { width: 12px; height: 3px; background: var(--stone-2); }
.conv i.on { background: var(--gold); }
.timing { display: flex; align-items: baseline; gap: 12px; padding: 13px 16px; border-radius: var(--r); background: var(--white); font-size: 14px; color: var(--ink); border-left: 2px solid var(--navy-2); }
.section-muted .timing { background: var(--stone); }
.timing strong { font-weight: 600; white-space: nowrap; }
.timing.now { border-left-color: var(--up); } .timing.now strong { color: var(--up); }
.timing.wait, .timing.scale-in { border-left-color: var(--gold); } .timing.wait strong, .timing.scale-in strong { color: var(--warn); }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.levels span, .kv span { display: block; font-size: 12px; color: var(--muted); }
.levels b, .kv b { font-size: 17px; font-weight: 600; }
.odds { display: grid; gap: 8px; font-size: 13px; }
.odds-row { display: grid; grid-template-columns: 96px 1fr 44px; gap: 12px; align-items: center; }
.bar { height: 3px; background: var(--stone-2); position: relative; overflow: hidden; }
.section-muted .bar { background: var(--stone); }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--up); }
.bar.stop i { background: var(--down); }
.opt-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.opt-strip b { color: var(--ink); font-weight: 600; }
.opt-strip > span { white-space: nowrap; }
.thesis { font-size: 15px; line-height: 1.75; color: var(--ink); }
.votes { display: flex; flex-wrap: wrap; gap: 6px; }
.vote { font-size: 12px; padding: 3px 9px; border-radius: var(--r); background: var(--stone-2); color: var(--muted); }
.section-muted .vote { background: var(--stone); }
.vote b { color: var(--ink); font-weight: 600; text-transform: capitalize; }
.notes { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.notes li::marker { color: var(--gold); }
.idea-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.spark { display: block; width: 100%; height: 44px; }
.spark path.line { fill: none; stroke-width: 1.3; }
.spark path.area { opacity: .08; }
.empty { padding: 36px; border-radius: var(--r); background: var(--stone); color: var(--muted); }
.section-muted .empty { background: var(--white); }
.empty h3 { font-size: 26px; color: var(--ink); margin-bottom: 8px; }

.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; }
.row-list { list-style: none; margin: 12px 0 0; padding: 0; }
.row-list li + li { border-top: 1px solid var(--line); }
.row-list a, .row-list .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 0; font-size: 14px; }
.row-list a:hover b { color: var(--navy-3); }
.row-list .r { color: var(--muted); font-size: 13px; grid-column: 1 / -1; line-height: 1.6; }
.chev { color: var(--faint); }
.sleeves { display: grid; margin-top: 12px; }
.sleeve { padding: 14px 0; } .sleeve + .sleeve { border-top: 1px solid var(--line); }
.sleeve-top { display: flex; justify-content: space-between; align-items: baseline; }
.sleeve-top b { font-size: 28px; }

/* Holdings */
.summary-strip, .stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-strip div, .stats div { padding: 18px 20px; border-left: 1px solid var(--line); }
.summary-strip div:first-child, .stats div:first-child { border-left: 0; padding-left: 0; }
.summary-strip span, .stats span { display: block; font-size: 12px; color: var(--muted); }
.summary-strip b, .stats b { display: block; margin-top: 4px; font-size: 30px; line-height: 1.1; }
.stats small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.warnings { margin: 0 0 24px; padding: 16px 20px 16px 38px; border-radius: var(--r); background: var(--warn-soft); color: #5e4519; font-size: 14px; line-height: 1.7; border-left: 2px solid var(--gold); }
.positions { display: grid; gap: 12px; }
.position { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; padding: 24px 28px; border-radius: var(--r); background: var(--white); }
.section:not(.section-muted) .position { background: var(--stone); }
.position .row1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.position .row1 a { font-size: 32px; line-height: 1; }
.position .pnl { text-align: right; }
.position .reason { grid-column: 1 / -1; font-size: 15px; color: var(--ink); line-height: 1.7; }
.position .notes, .position .votes { grid-column: 1 / -1; }
.book-form { margin-top: 20px; display: grid; gap: 12px; }
textarea, .form-row input, .form-grid input, .form-grid select, .stack select, .inline-form input, .stack textarea { width: 100%; border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); padding: 11px 14px; border-radius: var(--r); transition: box-shadow .2s; }
.section:not(.section-muted) .panel textarea, .section:not(.section-muted) .panel input, .section:not(.section-muted) .panel select { background: var(--white); }
textarea:focus, input:focus, select:focus { box-shadow: inset 0 0 0 1px var(--ink); outline: none; }
textarea { font-family: var(--mono); font-size: 13px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.form-row label, .form-grid label, .stack label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* Volatility: the navy band */
.band-dark { background: var(--navy); color: #fff; }
.band-dark h2, .band-dark .eyebrow, .band-dark .section-heading > p.lede { color: #fff; }
.band-dark .section-heading > p, .band-dark p { color: var(--on-dark); }
.vol-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.vol-card { padding: 28px; border-radius: var(--r); background: #ffffff08; box-shadow: inset 0 0 0 1px var(--line-dark); min-width: 0; }
.vol-card svg text { fill: var(--on-dark-2); font-size: 11px; font-family: var(--font); }
.vol-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 14px; }
.vol-table th, .vol-table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line-dark); white-space: nowrap; }
.vol-table th { color: var(--on-dark-2); font-weight: 500; font-size: 12px; }
.vol-table th:first-child, .vol-table td:first-child { text-align: left; }
.vol-table a { color: #fff; font-weight: 600; }
.vol-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.vol-events > div { padding: 26px 28px; border-radius: var(--r); background: #ffffff08; box-shadow: inset 0 0 0 1px var(--line-dark); }
.vol-events b { display: block; font-size: 34px; color: #fff; margin-top: 4px; }
.vol-events ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; color: var(--on-dark); }
.vol-events li { padding: 6px 0; } .vol-events li + li { border-top: 1px solid var(--line-dark); }

/* Markets */
/* Hairline grids: each cell draws its own right and bottom rule, so a short last row ends cleanly. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { padding: 16px 18px 10px; background: var(--white); min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .2s; }
.section-muted .tile { background: var(--white); }
a.tile { display: block; }
a.tile:hover { background: var(--gold-soft); }
.tile .t-name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-price { font-size: 26px; line-height: 1.25; color: var(--ink); }
.tile .t-chg { font-size: 12px; }
.rates-row { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 20px; margin-bottom: 20px; }
.curve svg, #curve svg { width: 100%; height: auto; display: block; }
#curve text { fill: var(--muted); font-size: 10px; }
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.heat div { padding: 13px 15px; font-size: 12px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.heat b { display: block; font-size: 24px; }
.factors { list-style: none; padding: 0; margin: 0; }
.factors li { display: grid; grid-template-columns: 44px 220px 1fr; gap: 14px; padding: 12px 0; font-size: 14px; align-items: baseline; }
.factors li + li { border-top: 1px solid var(--line); }
.factors .pts { font-size: 22px; text-align: right; }

/* Filters, tables, news */
.filters { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 18px; }
.filters button { height: 32px; padding: 0 14px; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 0; margin-right: -1px; transition: background-color .25s var(--ease), color .25s; }
.filters button:first-child { border-radius: var(--r) 0 0 var(--r); } .filters button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.section-muted .filters button { background: var(--white); }
.filters button:hover { color: var(--ink); }
.filters button.on { color: #fff; background: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); position: relative; }
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.data-table th, .data-table td { text-align: right; padding: 13px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { font-size: 12px; color: var(--muted); font-weight: 500; position: sticky; top: 0; cursor: pointer; user-select: none; background: var(--white); border-bottom-color: var(--ink); }
.section-muted .data-table th { background: var(--stone); }
.data-table th.sorted { color: var(--ink); }
.data-table th:first-child, .data-table td:first-child, .data-table th:nth-child(2), .data-table td:nth-child(2) { text-align: left; }
.data-table th:first-child, .data-table td:first-child { padding-left: 2px; }
.data-table tbody tr { transition: background-color .15s; }
.data-table tbody tr:hover { background: var(--stone); }
.section-muted .data-table tbody tr:hover { background: var(--white); }
.data-table a { font-weight: 600; }
.news { list-style: none; padding: 0; margin: 0; }
.news li { display: grid; grid-template-columns: 8px 1fr; gap: 18px; padding: 18px 0; }
.news li + li { border-top: 1px solid var(--line); }
.news .s { width: 6px; height: 6px; border-radius: 50%; margin-top: 10px; background: var(--stone-2); box-shadow: inset 0 0 0 1px #0000001a; }
.news .s.pos { background: var(--up); box-shadow: none; } .news .s.neg { background: var(--down); box-shadow: none; }
.news a { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--ink); line-height: 1.4; }
.news a:hover { color: var(--navy-3); }
.news .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* Tools */
.tools-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.tools-grid > details { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.calc-result { margin-top: 20px; }
.kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.kv { padding: 12px 0; border-bottom: 1px solid var(--line); }
.inline-form { display: flex; gap: 10px; margin-top: 16px; }
.stack { display: grid; gap: 12px; margin-top: 16px; }
details.panel summary { list-style: none; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
details.panel summary::-webkit-details-marker { display: none; }

/* Ticker page */
.ticker-hero { background: var(--stone); padding-block: 44px 40px; border-bottom: 1px solid var(--line); }
.back { font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; }
.back:hover { color: var(--ink); }
.ticker-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 20px; flex-wrap: wrap; }
.ticker-title h1 { font-size: clamp(56px, 7vw, 92px); font-weight: 340; letter-spacing: -0.02em; }
.ticker-title .nm { font-size: 15px; color: var(--muted); margin-top: 8px; }
.ticker-price b { font-size: 50px; display: block; text-align: right; }
.ticker-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; padding-block: 36px 80px; }
.ticker-grid > div { display: grid; gap: 20px; align-content: start; min-width: 0; }
.chart-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chart-tools .filters { margin: 0; }
.chart-tools .filters button:not(.on) { background: var(--white); }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; }
.legend .lg-price { background: var(--ink); } .legend .lg-50 { background: var(--slate); } .legend .lg-200 { background: var(--gold); }
.greeks { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.greeks th, .greeks td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.greeks th { font-size: 12px; color: var(--muted); font-weight: 500; }
.greeks th:first-child, .greeks td:first-child { text-align: left; }
.range52 { position: relative; height: 3px; background: var(--white); margin: 22px 0 6px; }
.range52 i { position: absolute; top: -6px; width: 2px; height: 15px; background: var(--gold); margin-left: -1px; }

/* Footer: navy, closing the page as the hero opens it */
.site-footer { background: var(--navy); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1.4fr .8fr; gap: 56px; padding-block: 64px 44px; }
.footer-top h2 { font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: 0; margin-bottom: 14px; color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.75; margin-top: 16px; max-width: 30em; color: var(--on-dark); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .mark-rule { stroke: #fff; }
.footer-list { margin: 0; padding-left: 16px; color: var(--on-dark); font-size: 13px; line-height: 1.85; }
.footer-list li::marker { color: var(--gold-light); }
.site-footer a { color: #fff; }
.site-footer .text-link { color: #fff; background-image: linear-gradient(var(--gold-light), var(--gold-light)); }
.footer-bottom { padding-block: 22px 44px; color: var(--on-dark-2); font-size: 12px; line-height: 1.7; border-top: 1px solid var(--line-dark); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 100; padding: 13px 22px; border-radius: var(--r); background: var(--navy); color: #fff; font-size: 14px; max-width: calc(100vw - 30px); text-align: center; box-shadow: 0 12px 40px #14263d40; border-top: 1px solid var(--gold); animation: toast-in .45s var(--ease) both; transform: translateX(-50%); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Portfolio */
.pf-top { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; }
.pf-top .panel { display: flex; flex-direction: column; gap: 12px; }
.pf-big { font-size: 44px; line-height: 1; color: var(--ink); }
.pf-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.pf-facts b { color: var(--ink); font-weight: 600; }
.pf-top .text-link { align-self: flex-start; margin-top: auto; }
.mix { display: grid; gap: 14px; }
.mix-row { display: grid; grid-template-columns: 70px 1fr 44px 48px; gap: 12px; align-items: center; font-size: 13px; }
.mix-row b { font-weight: 600; text-align: right; }
.mix-row .d { text-align: right; font-size: 12px; color: var(--muted); }
.mix-bar { position: relative; height: 4px; background: var(--white); }
.section-muted .mix-bar { background: var(--stone); }
.mix-bar i { position: absolute; inset: 0 auto 0 0; transition: width .8s var(--ease); }
.mix-bar u { position: absolute; top: -5px; width: 1px; height: 14px; background: var(--ink); opacity: .45; }
.alert-state { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.alert-state .dot { width: 8px; height: 8px; }
.alert-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ios-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.profile-form { margin-top: 16px; display: grid; gap: 14px; animation: open .4s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.trades { display: grid; border-top: 1px solid var(--ink); }
.trade { display: grid; grid-template-columns: 28px 92px minmax(0, 1fr) minmax(0, 300px); gap: 6px 22px; padding: 22px 0; align-items: start; }
.trade + .trade { border-top: 1px solid var(--line); }
.trade .idx { color: var(--faint); font-size: 13px; padding-top: 6px; }
.trade .side { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--r); text-align: center; align-self: start; white-space: nowrap; }
.trade.sell .side { background: var(--down-soft); color: var(--down); }
.trade.buy .side { background: var(--up-soft); color: var(--up); }
.trade.wait .side { background: var(--info-soft); color: var(--navy-2); }
.trade .what { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.trade .what a { font-size: 32px; line-height: 1; }
.trade .what span { font-size: 14px; color: var(--muted); }
.trade .how { font-size: 15px; color: var(--ink); line-height: 1.6; margin-top: 8px; }
.trade .why { font-size: 13px; margin-top: 4px; line-height: 1.6; }
/* What each trade rests on, and which sleeve it belongs to. */
.trade .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--r); background: var(--stone-2); color: var(--navy-2); white-space: nowrap; }
.tag.plain { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 500; }
.tag.basis.policy { background: var(--gold-soft); color: var(--warn); }
.tag.basis.thesis, .tag.basis.risk, .tag.basis.time { background: var(--down-soft); color: var(--down); }
.tag.basis.rebalance { background: var(--info-soft); color: var(--navy-2); }
.trade .scenario { margin-top: 8px; padding: 10px 12px; background: var(--stone); border-left: 2px solid var(--gold); line-height: 1.6; }
.trade .scenario b { color: var(--ink); font-weight: 600; }
/* The two sleeves */
.pf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.pf-split:empty { display: none; }
.split-card { padding: 24px 28px; border-top: 1px solid var(--gold); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.split-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.split-top b { font-family: var(--serif); font-weight: 380; font-size: 30px; color: var(--ink); }
.split-bar { position: relative; height: 3px; background: var(--stone-2); margin: 14px 0 12px; }
.split-bar i { position: absolute; inset: 0 auto 0 0; background: var(--navy); }
.split-card.swing .split-bar i { background: var(--gold); }
.split-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.split-facts b { color: var(--ink); font-weight: 600; }
.split-card .small-note { margin-top: 10px; }
.trade .lv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--stone); }
.trade .lv span { display: block; font-size: 12px; color: var(--muted); }
.trade .lv b { font-size: 16px; font-weight: 600; }
.pf-table td:nth-child(2) { color: var(--muted); }
.pf-table th { cursor: default; }
.pf-table tfoot td { font-weight: 600; border-bottom: 0; }
.pf-notes { margin-top: 18px; }
.alert-list .row { grid-template-columns: auto 1fr auto; align-items: baseline; }
.alert-list .lvl { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--r); }
.alert-list .lvl.buy { background: var(--up-soft); color: var(--up); } .alert-list .lvl.risk { background: var(--down-soft); color: var(--down); } .alert-list .lvl.event { background: var(--warn-soft); color: var(--warn); }
.alert-list time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.alert-analysis { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.alert-analysis summary { cursor: pointer; font-weight: 600; }
.alert-analysis p { margin: 10px 0; }
.alert-analysis ul { list-style: disc; padding-left: 22px; }
.alert-analysis li { display: list-item; padding: 4px 0; border: 0; }
.alert-analysis a { display: inline; padding: 0; text-decoration: underline; }

/* Research */
.research-top { display: grid; grid-template-columns: .9fr 1.3fr 1.3fr; gap: 20px; }
.research-top .panel { display: flex; flex-direction: column; gap: 10px; }
.rs-big { font-size: 68px; line-height: .95; color: var(--ink); font-weight: 340; }
.rs-list { list-style: none; margin: 0; padding: 0; }
.rs-list li { padding: 12px 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.rs-list li + li { border-top: 1px solid var(--line); }
.rs-list .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.chains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.chains li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 200px; gap: 8px 32px; padding: 22px 0; align-items: start; }
.chains li + li { border-top: 1px solid var(--line); }
.chains .cause { font-size: 22px; line-height: 1.25; color: var(--ink); }
.chains .effect { font-size: 15px; line-height: 1.65; color: var(--ink); }
.chains .effect .arrow { color: var(--gold); margin-right: 6px; }
.chains .evidence { grid-column: 2; font-size: 13px; }
.chains .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.conf { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r); background: var(--stone-2); color: var(--muted); text-transform: capitalize; }
.conf.high { background: var(--up-soft); color: var(--up); } .conf.medium { background: var(--info-soft); color: var(--navy-2); }
.dir { font-weight: 700; } .dir.up { color: var(--up); } .dir.down { color: var(--down); } .dir.mixed { color: var(--muted); }
.reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.read { padding: 28px; display: grid; gap: 12px; border-radius: var(--r); background: var(--stone); }
.read .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.read .top a { font-size: 32px; line-height: 1; }
.read .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.read .facts div { font-size: 13px; color: var(--ink); }
.read .facts span { display: block; font-size: 12px; color: var(--muted); }
.read p { font-size: 14px; color: var(--ink); line-height: 1.7; }
.spills { display: flex; flex-wrap: wrap; gap: 6px; }
.spill { font-size: 13px; padding: 3px 9px; border-radius: var(--r); background: var(--white); }
.spill b { margin-right: 4px; }
.rs-table td.strong, .rs-table b.strong { color: var(--ink); font-weight: 700; }
.rs-table .faint { color: var(--faint); }
.str { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--r); text-transform: capitalize; }
.str.strong { background: var(--gold-soft); color: var(--warn); } .str.weak { background: var(--stone-2); color: var(--muted); } .str.none { color: var(--faint); }
.link-rows { display: grid; margin-top: 8px; }
.link-row { padding: 12px 0; } .link-row + .link-row { border-top: 1px solid var(--line); }
.lr-top { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lr-top .str { margin-left: auto; }
.table-wrap-dark { overflow-x: auto; }

/* Sentiment. The gauge is a horizon arc from navy (fear) to gold (greed), the reading a small disc on it. */
.st-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.st-gauge-panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 32px; }
.st-gauge-panel svg { width: min(100%, 320px); height: auto; display: block; overflow: visible; }
.st-arc { fill: none; stroke-width: 10; }
.st-tick { stroke: var(--white); stroke-width: 3; }
.section-muted .st-tick { stroke: var(--white); }
.st-marker { fill: var(--gold); stroke: var(--white); stroke-width: 4; }
.st-marker.fear { fill: var(--navy); }
.st-ends { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.st-score { font-size: 88px; font-weight: 300; line-height: .9; letter-spacing: -0.03em; margin-top: -58px; color: var(--ink); }
.st-label { font-family: var(--serif); font-size: 22px; font-weight: 420; color: var(--ink); }
.st-moves { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.st-moves b { color: var(--ink); font-weight: 600; }
.st-committee { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--muted); text-align: left; width: 100%; }
.st-committee b { color: var(--ink); }
#st-read { display: flex; flex-direction: column; gap: 20px; }
.st-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.st-figure span { display: block; font-size: 12.5px; color: var(--muted); }
.st-figure b { display: block; font-size: 44px; line-height: 1.05; margin-top: 4px; }
.st-figure small { display: block; font-size: 12px; color: var(--muted); }
.st-range { position: relative; height: 3px; margin: 12px 0 6px; background: var(--stone-2); }
.section-muted .st-range { background: var(--stone); }
.st-range i { position: absolute; top: 0; bottom: 0; background: var(--gold-light); }
.st-range em { position: absolute; top: -5px; width: 2px; height: 13px; margin-left: -1px; background: var(--ink); }
.st-range s { position: absolute; top: -5px; width: 1px; height: 13px; background: var(--faint); text-decoration: none; }
.st-lines { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.75; color: var(--ink); }
.st-lines li + li { margin-top: 6px; }
.st-lines li::marker { color: var(--gold); }
.st-gauges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--ink); }
.st-gauges li { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.st-gauges .g-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.st-gauges .g-detail { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.5; }
.st-gauges .g-score { font-family: var(--serif); font-size: 30px; font-weight: 380; text-align: right; line-height: 1; grid-row: 1 / span 2; grid-column: 2; }
.g-bar { position: relative; height: 3px; background: linear-gradient(90deg, var(--navy) 0%, #7f90a7 35%, #d6dbe1 50%, #dcc7a0 65%, var(--gold) 100%); }
.g-bar i { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.g-bar s { position: absolute; top: -4px; width: 1px; height: 11px; margin-left: -.5px; background: var(--ink); opacity: .35; text-decoration: none; }
.st-chart-tools { align-items: flex-end; }
.st-chart-tools h3.sub { margin-bottom: 18px; }
.st-chart-tools .filters { margin-bottom: 18px; }
.st-chart { background: var(--white); border-radius: var(--r); padding: 20px 20px 10px; }
.st-chart .st-line { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; }
.st-chart .spy-line { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: .5; }
.st-chart .zone-fear { fill: var(--navy); opacity: .06; }
.st-chart .zone-greed { fill: var(--gold); opacity: .12; }
.st-chart .grid { stroke: var(--line); stroke-width: 1; }
.st-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 8px 2px 4px; }
.st-legend i { display: inline-block; width: 16px; height: 2px; margin-right: 6px; vertical-align: middle; }
.st-bandname { display: inline-flex; align-items: center; gap: 8px; }
.st-bandname i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-extreme-fear { background: #14263d; } .dot-fear { background: #7f90a7; } .dot-neutral { background: #d6dbe1; } .dot-greed { background: #dcc7a0; } .dot-extreme-greed { background: #a98552; }
.lg-st { background: var(--gold); } .lg-spy { background: var(--ink); opacity: .5; } .lg-greed { background: var(--gold); opacity: .35; height: 8px !important; } .lg-fear { background: var(--navy); opacity: .15; height: 8px !important; }
.data-table tr.now td { background: var(--gold-soft); }
.data-table tr.now td:first-child { box-shadow: inset 2px 0 0 var(--gold); }
.st-reads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.st-reads .panel { background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.st-reads .kv { padding: 8px 0; }
.st-reads .kv span { font-size: 12px; color: var(--muted); display: block; }
.st-reads .kv b { font-weight: 600; }
.pos-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 8px; align-items: baseline; font-size: 13px; margin-top: 2px; }
.pos-line span:first-child { color: var(--muted); }
.pos-line .muted { text-align: right; font-size: 12px; }
.st-reads ul { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.55; }
.st-reads ul li + li { margin-top: 8px; }
.st-reads ul a { color: var(--ink); }
.st-reads ul a:hover { color: var(--navy-3); text-decoration: underline; text-decoration-color: var(--gold); }
.flag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--r); background: var(--stone-2); color: var(--muted); margin: 0 4px 2px 0; white-space: nowrap; }
.flag.hot { background: var(--gold-soft); color: var(--warn); } .flag.cold { background: var(--info-soft); color: var(--navy-2); } .flag.bad { background: var(--down-soft); color: var(--down); } .flag.good { background: var(--up-soft); color: var(--up); }
.st-desk-reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.st-desk-reads .read { background: var(--white); }

/* The status line moves into the hero when the header gets crowded. */
@media (max-width: 1560px) {
  .clock { display: none; }
  .hero-clock { display: inline; color: var(--on-dark-2); }
  .hero-clock:not(:empty)::before { content: ""; display: inline-block; width: 1px; height: 12px; margin-right: 14px; background: #ffffff33; vertical-align: -1px; }
}
@media (max-width: 1240px) {
  .site-nav { display: none; position: absolute; top: calc(72px + env(safe-area-inset-top)); left: 0; right: 0; background: #fffffffa; backdrop-filter: blur(12px); flex-direction: column; align-items: stretch; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px #14263d14; gap: 0; }
  .site-nav.is-open { display: flex; animation: open .3s var(--ease) both; }
  .site-nav a { padding: 14px 2px; font-size: 17px; font-family: var(--serif); font-weight: 400; color: var(--ink); }
  .site-nav a + a, .site-nav .nav-refresh { border-top: 1px solid var(--line); }
  .site-nav a::after { left: 2px; right: auto; width: 24px; bottom: 8px; }
  .nav-refresh { display: block; text-align: left; padding: 14px 2px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--navy-2); }
  .mobile-toggle { display: inline-flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--r); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
  .mobile-toggle span { width: 16px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
  .mobile-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .mobile-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}
@media (max-width: 1080px) {
  .container, .desk-strip, .site-header .container { width: calc(100% - 48px); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > h2, .section-heading > p { grid-column: 1; grid-row: auto; }
  .hero-caption { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .hero-caption > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .ticker-grid, .tools-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .pf-top { grid-template-columns: 1fr 1fr; }
  .pf-top #pf-mix { grid-column: 1 / -1; order: -1; }
  .trade { grid-template-columns: 24px 84px minmax(0, 1fr); }
  .trade .lv { grid-column: 3; }
  .research-top { grid-template-columns: 1fr 1fr; }
  .research-top #rs-macro { grid-column: 1 / -1; }
  .chains li { grid-template-columns: 1fr; }
  .chains .evidence { grid-column: 1; }
  .chains .tags { justify-content: flex-start; }
  .st-top { grid-template-columns: 1fr; }
  .st-reads { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container, .desk-strip, .site-header .container { width: calc(100% - 36px); }
  body { font-size: 15px; }
  .header-inner { gap: 12px; height: 64px; }
  .site-nav { top: calc(64px + env(safe-area-inset-top)); }
  .mark { width: 30px; height: 30px; }
  .brand-name { font-size: 20px; }
  .clock, .header-actions { display: none !important; }
  .hero-clock { display: block; flex-basis: 100%; font-size: 13px; color: var(--on-dark-2); }
  .hero-clock:not(:empty)::before { display: none; }
  .section { padding-block: 68px; }
  h2 { font-size: 34px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading > p.lede { font-size: 16px; }
  .hero-content { padding-block: 44px 0; }
  .hero h1 { font-size: 33px; }
  .hero-actions .text-link { margin-left: 2px; }
  .hero-summary { font-size: 16px; }
  .hero-line { height: 120px; margin-top: 40px; }
  .hero-caption { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; padding-top: 30px; }
  .hero-caption > div { padding: 0 16px; }
  .hero-caption > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-caption > div:nth-child(4) { padding-left: 16px; border-left: 1px solid var(--line); }
  .hero-caption > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; padding-top: 20px; border-top: 1px solid var(--line); }
  .hero-caption b { font-size: 32px; }
  .desk-strip { gap: 6px 16px; }
  .ideas { grid-template-columns: 1fr; gap: 14px; }
  .idea { padding: 24px 20px; }
  .idea-top .sym { font-size: 40px; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr; gap: 36px; }
  .summary-strip, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip div, .stats div { padding: 14px 14px; }
  .summary-strip div:nth-child(odd), .stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .summary-strip b, .stats b { font-size: clamp(22px, 6.6vw, 28px); overflow-wrap: anywhere; }
  .position { grid-template-columns: 1fr; padding: 20px; }
  .position .pnl { text-align: left; }
  .vol-grid, .vol-events { grid-template-columns: 1fr; }
  .vol-card, .vol-events > div { padding: 22px; }
  .rates-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factors li { grid-template-columns: 34px 1fr; }
  .factors li span:last-child { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .gate-form { flex-direction: column; }
  .gate-inner { padding-block: 60px 180px; }
  .ticker-price b { text-align: left; font-size: 42px; }
  .ticker-title { align-items: flex-start; }
  .pf-top { grid-template-columns: 1fr; }
  .pf-split { grid-template-columns: 1fr; }
  .split-card { padding: 20px; }
  .trade { grid-template-columns: 76px minmax(0, 1fr); gap: 8px 14px; }
  .trade .idx { display: none; }
  .trade .lv { grid-column: 1 / -1; }
  .trade .what a { font-size: 28px; }
  .mix-row { grid-template-columns: 60px 1fr 38px 42px; }
  .pf-table th:nth-child(2), .pf-table td:nth-child(2), .pf-table td:first-child .muted { display: none; }
  .research-top, .reads { grid-template-columns: 1fr; }
  .rs-big { font-size: 54px; }
  .news a { font-size: 17px; }
  .st-gauges, .st-reads, .st-desk-reads, .st-figures { grid-template-columns: 1fr; }
  .st-score { font-size: 76px; }
  .st-figure b { font-size: 36px; }
  .st-chart { padding: 12px 8px 6px; }
}
/* Backtest */
.bt-verdict { max-width: 52em; margin: 8px 0 0; }
.bt-verdict p { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0 0 12px; }
.bt-verdict b { font-weight: 600; }
.bt-chart-panel { padding: 22px 24px 18px; }
.bt-chart { position: relative; }
.bt-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.bt-chart .grid { stroke: var(--line); stroke-width: 1; }
.bt-chart .grid.zero { stroke: var(--faint); }
.bt-chart .tick { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.bt-chart .end-label { font-size: 13px; fill: var(--ink); font-weight: 600; }
.bt-chart .bt-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bt-chart .bt-end, .bt-chart .bt-dot { stroke: var(--white); stroke-width: 2; }
.bt-chart .bt-cross { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.bt-chart .bt-hit { fill: transparent; cursor: crosshair; }
.bt-tip { position: absolute; z-index: 2; min-width: 170px; padding: 10px 12px; background: var(--white); box-shadow: 0 1px 2px #101c2c1f, 0 6px 18px #101c2c1a; border-radius: var(--r); font-size: 13px; color: var(--ink); pointer-events: none; }
.bt-tip .tip-date { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.bt-tip div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bt-tip i, .bt-legend i { display: inline-block; width: 14px; height: 2px; border-radius: 1px; flex: none; }
.bt-tip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bt-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.bt-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bt-table th { cursor: default; }
.bt-table th:nth-child(2), .bt-table td:nth-child(2) { text-align: right; }
#bt-trades th:nth-child(2), #bt-trades td:nth-child(2) { text-align: left; }
.bt-method li { margin-bottom: 8px; max-width: 60em; }
.bt-table tr.group td { padding-top: 22px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; border-bottom-color: var(--ink); }
.bt-table tr.total td { font-weight: 600; border-top: 1px solid var(--ink); }
.bt-legend i.lg.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; color: var(--slate); }
/* Backtest replay: the date slider */
.rp-title { margin-top: 40px; }
.rp-panel { padding: 24px 28px 22px; }
.rp-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.rp-modes { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rp-lab { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rp-lab[hidden] { display: none; }
h3.sub.lab-sub { font-size: 20px; margin-top: 36px; }
.rp-events { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rp-events li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.rp-events li b { min-width: 3.2em; }
.rp-mode[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.rp-from { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.rp-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 22px 0 10px; }
.rp-date b { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.rp-regime { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.rp-regime::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.rp-regime.risk-on::before { background: var(--up); } .rp-regime.neutral::before { background: var(--slate); } .rp-regime.risk-off::before { background: var(--gold); } .rp-regime.stress::before { background: var(--down); }
.rp-slide { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.rp-slide input[type=range] { flex: 1; min-width: 0; height: 32px; accent-color: var(--navy); cursor: pointer; }
.rp-step { min-width: 36px; font-size: 18px; line-height: 1; padding: 0 10px; }
#rp-play { min-width: 64px; }
#rp-play[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.rp-chart { margin: 4px 0 18px; }
.rp-chart .rp-after { opacity: .28; }
.rp-chart .rp-dash { stroke-dasharray: 5 4; stroke-width: 1.6; }
.rp-chart .rp-cursor { opacity: .55; stroke-dasharray: 2 3; }
.rp-chart .bt-hit { cursor: ew-resize; touch-action: none; }
.rp-chart .rp-train { fill: var(--stone); }
.rp-chart .rp-train-label { font-size: 11.5px; }
.rp-stats { margin-bottom: 18px; }
#rp-note { margin: 18px 0 0; }
.rp-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.rp-cols h4, #rp-detail > h4 { margin: 4px 0 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.rp-cols h4 .muted, #rp-detail h4 .muted { font-weight: 400; }
.rp-table { font-size: 13px; }
.rp-table th, .rp-table td { padding: 9px 8px; }
.rp-bar { display: flex; height: 14px; border-radius: var(--r); overflow: hidden; background: var(--stone-2); margin: 6px 0 12px; }
.rp-bar i { display: block; height: 100%; transition: width .25s var(--ease); }
.rp-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.rp-legend li { display: flex; align-items: center; gap: 8px; }
.rp-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.rp-legend .rp-w { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 760px) {
  .rp-panel { padding: 16px 12px 14px; }
  .rp-cols { grid-template-columns: 1fr; gap: 18px; }
  .rp-date b { font-size: 21px; }
  .rp-chart .rp-train-label { font-size: 14px; }
}
@media (max-width: 760px) {
  .bt-chart-panel { padding: 14px 12px 12px; }
  .bt-chart .tick { font-size: 15px; }
  .bt-verdict p { font-size: 15px; }
  .bt-table td:first-child { white-space: normal; min-width: 10em; }
}

/* Briefings: the desk's notes on news. A card per note on the desk page; a page per note that a notification opens. */
.briefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.brief-card { display: grid; gap: 12px; align-content: start; padding: 28px; background: var(--white); border-top: 1px solid var(--gold); border-radius: var(--r); min-width: 0; transition: background-color .2s; }
.brief-card:hover { background: var(--gold-soft); }
.brief-card.waiting { border-top-color: var(--line); }
.brief-card .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brief-card .sym { font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 380; }
.brief-card time { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.brief-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.28; letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
.brief-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.brief-card .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.brief-card .meta b { font-weight: 600; }
.bf-aside { margin-top: 20px; font-size: 14px; }
.bf-aside summary { font-weight: 600; padding: 10px 0; }
.bf-aside .row-list a { grid-template-columns: 1fr auto; }
.bf-aside time { font-size: 12px; color: var(--muted); white-space: nowrap; }
h4.bf-h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
h4.bf-h4 .muted { font-weight: 400; }
#bf-score .stats { margin-bottom: 8px; }
/* Forecasts, the calibration bands and the book: a table on a wide screen, stacked rows on a phone, where each value
   carries its own label (.k) because the header row is gone. */
.fc-list, .bk-list { border-top: 1px solid var(--ink); font-size: 14px; }
.fc-head, .fc-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 60px 64px 170px 190px; gap: 6px 20px; align-items: center; }
.fc-list.cal .fc-head, .fc-list.cal .fc-row { grid-template-columns: 150px 90px 120px 100px minmax(120px, 320px); justify-content: start; }
.bk-head, .bk-row { display: grid; grid-template-columns: 84px minmax(0, 1.1fr) 70px 84px 150px minmax(0, 1.7fr); gap: 6px 20px; align-items: start; }
.fc-head, .bk-head { padding: 11px 0; font-size: 12px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.fc-head span:nth-child(n+2):nth-child(-n+4), .fc-cell, .bk-head span:nth-child(3), .bk-head span:nth-child(4), .bk-num { text-align: right; }
.fc-row, .bk-row { padding: 15px 0; border-bottom: 1px solid var(--line); }
.fc-claim, .bk-how, .bk-call { line-height: 1.55; color: var(--ink); min-width: 0; }
.fc-claim a { font-weight: 600; }
.fc-claim .small-note, .bk-how .small-note { margin-top: 3px; }
.fc-cell.fc-out { text-align: left; }
.bk-sym a, .bk-sym { font-weight: 600; }
.bk-call b { display: inline-block; font-weight: 600; }
.bk-call b::first-letter { text-transform: uppercase; }
.k { display: none; }
/* Two marks on a 0–100% track. The filled dot is the desk's probability; the ring is the market's odds; the square
   is what came true. Shape as well as colour tells them apart, and the numbers are in the columns beside them. */
.ptrack { position: relative; height: 16px; margin-inline: 6px; }
.ptrack::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--stone-2); }
.ptrack .mid { position: absolute; left: 50%; top: 3px; width: 1px; height: 10px; background: var(--faint); }
.mk { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.ptrack .mk { position: absolute; top: 3px; margin-left: -5px; }
.mk.desk { background: #2f5f9e; box-shadow: 0 0 0 2px var(--white); }
.mk.market { background: var(--white); box-shadow: inset 0 0 0 2px #b8862e, 0 0 0 2px var(--white); }
.mk.happened { border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 2px var(--white); }
.section-muted .mk.desk, .section-muted .mk.happened { box-shadow: 0 0 0 2px var(--stone); }
.section-muted .mk.market { background: var(--stone); box-shadow: inset 0 0 0 2px #b8862e, 0 0 0 2px var(--stone); }
.section-muted .ptrack::before { background: var(--line); }
.mark-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 4px 0 10px; font-size: 12.5px; color: var(--muted); }
.mark-legend span { display: inline-flex; align-items: center; gap: 8px; }
.outcome { font-weight: 600; white-space: nowrap; }
.outcome.yes { color: var(--up); } .outcome.no { color: var(--down); }

.brief-hero { padding-block: 36px 40px; }
.brief-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.brief-subject { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--ink); }
.brief-subject a { background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; padding-bottom: 2px; }
.brief-hero h1 { margin-top: 16px; max-width: 21em; font-size: clamp(30px, 3.6vw, 50px); font-weight: 340; line-height: 1.12; text-wrap: balance; }
.brief-summary { margin-top: 18px; max-width: 44em; font-size: 18px; line-height: 1.65; color: var(--ink); }
.brief-action { margin-top: 24px; max-width: 54em; background: var(--white); border-left-color: var(--gold); align-items: flex-start; line-height: 1.6; }
.brief-update { margin-top: 14px; }
.brief-body { padding-block: 8px 88px; }
.brief-body > h3.sub { margin-top: 56px; }
.brief-stats { margin: 32px 0 0; }
.brief-banner { margin-top: 28px; padding: 16px 20px; background: var(--warn-soft); border-left: 2px solid var(--gold); color: #5e4519; font-size: 14.5px; line-height: 1.65; }
.brief-banner b { font-weight: 600; }
.brief-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; margin-top: 8px; }
.brief-foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose { max-width: 46em; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--ink); }
.prose h4.bf-h4:first-child { margin-top: 0; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.facts li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.facts .fact { font-size: 15.5px; line-height: 1.65; color: var(--ink); max-width: 46em; }
.facts .fact b { font-weight: 600; }
.facts .src { font-size: 12.5px; margin-top: 4px; max-width: 52em; }
.facts .src a, .facts .fact a, .brief-body .notes a { color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; padding-bottom: 1px; }
.fact-status { justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r); background: var(--stone-2); color: var(--muted); white-space: nowrap; }
.fact-status.confirmed { background: var(--up-soft); color: var(--up); }
.fact-status.reported, .fact-status.company { background: var(--info-soft); color: var(--navy-2); }
.fact-status.disputed { background: var(--warn-soft); color: var(--warn); }
.fact-status.rumour { background: var(--down-soft); color: var(--down); }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--muted); font-size: 12.5px; }
.timeline span { color: var(--ink); line-height: 1.55; }
.scen { border-top: 1px solid var(--ink); }
.scen-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 10px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.scen-name { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--ink); }
.scen-p { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.scen-p b { min-width: 2.8em; font-size: 17px; font-weight: 600; }
.scen-row p { font-size: 15px; line-height: 1.7; color: var(--ink); max-width: 46em; }
.scen-row p.small-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
/* A thin bar from the baseline, its far end rounded. */
.pbar { position: relative; flex: 1; max-width: 180px; height: 6px; background: var(--stone-2); border-radius: 0 3px 3px 0; overflow: hidden; }
.pbar i { position: absolute; inset: 0 auto 0 0; background: var(--navy-2); border-radius: 0 3px 3px 0; }
.measures { margin: 0; border-top: 1px solid var(--ink); }
.measures > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.measures dt { font-size: 13px; font-weight: 600; color: var(--ink); }
.measures dd { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink); max-width: 52em; }
.brief-body .news a { font-size: 17px; }
.brief-body .news li { padding: 14px 0; }
@media (max-width: 1080px) {
  .briefs { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brief-card { padding: 22px 20px; }
  .brief-card h3 { font-size: 21px; }
  .brief-hero { padding-block: 26px 30px; }
  .brief-hero h1 { font-size: 29px; }
  .brief-summary { font-size: 16.5px; }
  .brief-action { flex-direction: column; gap: 4px; }
  .brief-body > h3.sub { margin-top: 44px; }
  .brief-cols { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 8px; }
  .scen-row { grid-template-columns: 1fr; }
  .pbar { max-width: none; }
  .measures > div { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .fc-head, .bk-head { display: none; }
  .k { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
  .fc-row, .fc-list.cal .fc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
  .fc-claim, .fc-marks, .fc-cell.fc-out { grid-column: 1 / -1; }
  .fc-cell { text-align: left; }
  .fc-list.cal .fc-claim { font-size: 15px; }
  .bk-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 18px; }
  .bk-sym { font-family: var(--serif); font-size: 24px; font-weight: 380; line-height: 1.1; }
  .bk-how, .bk-plan, .bk-call { grid-column: 1 / -1; }
  .bk-how { order: 3; } .bk-plan { order: 4; } .bk-call { order: 5; }
  .bk-plan .k, .bk-call .k { margin-bottom: 3px; }
}
/* Windows: presets plus a From and To date on every chart */
.range-tools { align-items: flex-end; }
.range-tools h3.sub { margin-bottom: 14px; }
.range-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.range-bar .filters { margin: 0; }
.range-bar .filters button:not(.on) { background: var(--white); }
.range-dates { display: inline-flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.range-dates label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.range-dates input { height: 32px; padding: 0 8px; border: 0; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 13px; color: var(--ink); }
.range-dates input:focus { box-shadow: inset 0 0 0 1px var(--ink); outline: none; }
.range-note { font-size: 12.5px; color: var(--muted); }
.rp-range { margin-top: 16px; }
.rp-range .range-bar { margin-bottom: 0; }
.hover-box, .st-chart { position: relative; }
.st-chart .bt-cross, .hover-box .bt-cross { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.st-chart .bt-dot, .hover-box .bt-dot { stroke: var(--white); stroke-width: 2; }
.st-chart svg, .hover-box svg { touch-action: pan-y; }
#price-chart svg { width: 100%; height: auto; display: block; }

/* The hero's S&P line gets its own windows, light on the navy band */
.hero-line-wrap { position: relative; }
.hero-range { position: absolute; top: -40px; right: 0; z-index: 1; display: flex; gap: 0; }
.hero-range button { height: 28px; padding: 0 11px; border: 0; background: transparent; color: var(--on-dark-2); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px #ffffff2e; margin-right: -1px; }
.hero-range button:hover { color: #fff; }
.hero-range button.on { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px #fff; }
.hero-range button:first-child { border-radius: var(--r) 0 0 var(--r); } .hero-range button:last-child { border-radius: 0 var(--r) var(--r) 0; }

/* Run your own backtest */
.cb-form { padding: 26px 28px 20px; margin-bottom: 30px; }
.cb-form .cb-strategy { margin-bottom: 10px; }
.cb-form .cb-strategy button:not(.on), .cb-form .cb-presets button:not(.on) { background: var(--white); }
#cb-about { max-width: 60em; margin-bottom: 4px; }
.cb-grid { margin-top: 10px; }
.cb-presets { margin: 16px 0 6px; }
.cb-form [hidden], .cb-form .cb-day[hidden] { display: none !important; }
.cb-more { margin-top: 12px; }
.cb-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); display: flex; gap: 10px; align-items: baseline; list-style: none; }
.cb-more summary::-webkit-details-marker { display: none; }
.cb-more summary::before { content: "+"; font-weight: 400; color: var(--muted); width: 12px; }
.cb-more[open] summary::before { content: "−"; }
.cb-actions { margin-top: 18px; align-items: center; }
.cb-result { margin: 0 0 44px; }
.cb-result .cb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin-bottom: 14px; }
.cb-result .cb-head h4 { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); margin: 0; }
.cb-result .cb-chart-panel { padding: 22px 24px 18px; margin: 6px 0 22px; }
.cb-result h4.cb-sub { font-size: 14px; font-weight: 600; margin: 26px 0 8px; color: var(--ink); }
.cb-result h4.cb-sub .muted { font-weight: 400; }
.cb-result .data-table td.why { color: var(--muted); }
.outcome { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: var(--r); background: var(--stone-2); color: var(--muted); white-space: nowrap; }
.outcome.traded { background: var(--info-soft); color: var(--navy-2); }
.outcome.win { background: var(--up-soft); color: var(--up); }
.outcome.loss { background: var(--down-soft); color: var(--down); }
@media (max-width: 760px) {
  .cb-form { padding: 18px 14px 14px; }
  .range-dates input { max-width: 150px; }
  .hero-range { top: -36px; }
  .hero-range button { padding: 0 8px; }
  .cb-result .cb-chart-panel { padding: 14px 10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .intro .hero-line .ln { stroke-dashoffset: 0; }
  .intro .hero-line .ar, .intro .hero-line-caption { opacity: 1; }
}
@media print { .site-header, .site-footer, .toast { display: none !important; } .hero-band, .gate, .band-dark { background: none; color: var(--ink); } }

/* ---------- Pages and menus: one subject a page, grouped in menus as on Vardmoor ---------- */
.page-hidden { display: none !important; }
.site-nav { overflow: visible; gap: 2px; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary { list-style: none; display: flex; align-items: center; gap: 7px; padding: 10px 12px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; border-radius: var(--r); transition: color .2s; user-select: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary:hover, .nav-dropdown[open] > summary, .nav-dropdown > summary.is-active { color: var(--ink); }
.nav-dropdown > summary.is-active .nav-label { box-shadow: inset 0 -1px var(--gold); padding-bottom: 2px; }
.nav-chevron { width: 6px; height: 6px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); flex: none; }
.nav-dropdown[open] .nav-chevron { transform: translateY(1px) rotate(-135deg); }
.dropdown-panel { position: absolute; top: calc(100% + 12px); left: -10px; width: 320px; padding: 8px; background: var(--white); border-top: 1px solid var(--gold); box-shadow: 0 0 0 1px var(--line), 0 24px 48px #14263d1f; z-index: 60; display: grid; gap: 2px; animation: open .25s var(--ease) both; }
.site-nav .dropdown-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--r); color: var(--ink); white-space: normal; font-family: var(--font); font-size: 14px; border-top: 0; }
.site-nav .dropdown-panel a::after { display: none; }
.dropdown-panel a:hover, .dropdown-panel a.active { background: var(--stone); }
.dropdown-panel a b { font-weight: 600; font-size: 14px; }
.dropdown-panel a small { font-size: 12.5px; color: var(--muted); line-height: 1.45; font-weight: 400; }
.dropdown-panel a.active b { color: var(--navy-3); }
@media (min-width: 1001px) and (max-width: 1240px) {
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; background: none; box-shadow: none; border: 0; backdrop-filter: none; }
  .mobile-toggle, .nav-refresh { display: none !important; }
}
@media (max-width: 1000px) {
  /* The open menu is a solid sheet under the header: no see-through panel, its own scroll, the page behind dimmed. */
  .site-nav { overflow-y: auto; overscroll-behavior: contain; max-height: calc(100dvh - 64px - env(safe-area-inset-top)); background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--white); }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: #101c2c66; animation: fade-in .2s ease both; }
  .nav-dropdown > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
  .nav-dropdown + .nav-dropdown { border-top: 1px solid var(--line); }
  .nav-dropdown > summary { padding: 14px 2px; font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--ink); justify-content: space-between; }
  .dropdown-panel { position: static; width: auto; padding: 0 0 12px; box-shadow: none; border-top: 0; background: none; animation: none; }
  .site-nav .dropdown-panel a { padding: 9px 2px; }
  .nav-refresh { border-top: 1px solid var(--line); }
}
.section-heading > .page-eyebrow { grid-column: 1 / -1; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.section-heading:has(> .page-eyebrow) > h2 { grid-row: 2 / span 3; }
@media (max-width: 1080px) { .section-heading:has(> .page-eyebrow) > h2 { grid-row: auto; } }
.band-dark .section-heading > .page-eyebrow { color: var(--gold-light); }

/* The front page's directory of pages. */
.page-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.page-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 52px 28px 26px; background: var(--white); border-top: 1px solid var(--gold); min-height: 150px; transition: background-color .2s; min-width: 0; }
.page-card:hover { background: var(--gold-soft); }
.page-card .eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.page-card b { font-family: var(--serif); font-size: 25px; font-weight: 380; line-height: 1.15; color: var(--ink); }
.page-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.page-card .chev { position: absolute; right: 22px; top: 24px; color: var(--gold); }
@media (max-width: 1080px) { .page-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .page-cards { grid-template-columns: 1fr; } .page-card { min-height: 0; } }

/* The quant trading desk. */
.qt-gate { padding: 18px 22px; border-radius: var(--r); margin-bottom: 28px; font-size: 15px; line-height: 1.6; }
.qt-gate.paper { background: var(--warn-soft); box-shadow: inset 3px 0 var(--warn); }
.qt-gate.live { background: var(--up-soft); box-shadow: inset 3px 0 var(--up); }
.qt-books { display: grid; gap: 12px; }
.qt-books > *, .qt-two > *, #qt-day .container, #qt-desk .container, #qt-review .container, #qt-universe .container { min-width: 0; }
.qt-table td { vertical-align: top; }
.qt-sym { font-weight: 600; }
.qt-name { display: block; font-size: 12px; color: var(--muted); font-weight: 400; white-space: normal; max-width: 240px; line-height: 1.45; margin-top: 2px; }
.qt-table .badge + .badge, .qt-name + .badge { margin-top: 4px; }
.qt-why { font-size: 12.5px; color: var(--muted); white-space: normal; display: inline-block; min-width: 190px; max-width: 280px; text-align: left; line-height: 1.5; }
.qt-how { margin-top: 28px; }
.qt-how .notes { margin-top: 10px; color: var(--ink); }
.qt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.qt-big { font-family: var(--serif); font-size: 44px; font-weight: 340; line-height: 1.1; margin: 10px 0 6px; }
.qt-note { margin-bottom: 36px; }
.qt-note > .eyebrow { margin-top: 18px; }
.qt-note > .eyebrow:first-child { margin-top: 0; }
.qt-note > p { margin-top: 8px; }
.qt-note.waiting { background: var(--stone); }
.qt-headline { font-family: var(--serif); font-size: 27px; font-weight: 380; line-height: 1.25; margin: 10px 0 4px; }
.qt-sources { margin-top: 18px; font-size: 13.5px; }
.qt-sources summary { cursor: pointer; font-weight: 600; }
.qt-chart { margin: 12px 0 32px; }
.stats.qt-stats5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats small { white-space: normal; line-height: 1.45; }
.qtu-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.qtu-controls input { height: 36px; min-width: min(320px, 100%); padding: 0 12px; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); font: inherit; font-size: 14px; }
.qtu-controls .utility-select { height: 36px; }
@media (max-width: 1080px) { .qt-two { grid-template-columns: 1fr; } .stats.qt-stats5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
