/* RYZM palette: Hanji & Celadon (2026-11-28)
   Hanji paper, celadon accent, ink black, and a cinnabar seal dot used sparingly.
   Loaded last on every page; it only sets color tokens and a few accent details. */
:root {
  --bg: #f3f0e8;
  --surface: #fbfaf6;
  --surface-2: #ebe7dc;
  --border: #dfdace;
  --border-strong: #c9c2b2;
  --text: #1c1f1d;
  --text-2: #3c423e;
  --text-muted: #686d67;
  --accent: #2f6f62;
  --accent-ink: #245a4f;
  --accent-soft: rgba(47, 111, 98, 0.10);
  --seal: #b23a2e;
  --ink-band: #1c1f1d;
  --ink-band-text: #d6dbd6;
  --green: #2f6f62;
  --red: #b23a2e;
  --amber: #96690f;
  --blue: #3a5f7d;
  --purple: #6a5a86;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1211;
    --surface: #151917;
    --surface-2: #1c211f;
    --border: #29302d;
    --border-strong: #3a423e;
    --text: #ecefe9;
    --text-2: #c9cfc9;
    --text-muted: #959c96;
    --accent: #7fb9a9;
    --accent-ink: #9fd0c2;
    --accent-soft: rgba(127, 185, 169, 0.14);
    --seal: #e07a6b;
    --ink-band: #0a0c0b;
    --ink-band-text: #c9cfc9;
    --green: #7fb9a9;
    --red: #e07a6b;
    --amber: #d6aa4a;
    --blue: #8fb0cc;
    --purple: #b3a3cf;
  }
}
/* the one warm note: a cinnabar seal dot on the subscribe button, like a stamp on hanji */
.header-cta { background: var(--text) !important; color: var(--bg) !important; }
.header-cta::before { background: var(--seal) !important; box-shadow: none !important; }
.header-cta:hover { background: var(--accent-ink) !important; }
.ticker-item strong { color: #8fc3b4 !important; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
/* the home dashboard keeps its paper theme, retinted */
.ryzm-dash[data-theme="paper"] {
  --rd-bg: #f3f0e8; --rd-surface: #fbfaf6; --rd-surface-2: #ebe7dc; --rd-border: #dfdace; --rd-border-strong: #c9c2b2;
  --rd-text: #1c1f1d; --rd-text-2: #3c423e; --rd-text-muted: #686d67; --rd-ink: #1c1f1d; --rd-ink-line: #c9c2b2; --rd-hair: #dfdace;
  --rd-accent: #2f6f62; --rd-accent-ink: #245a4f; --rd-terra: #2f6f62; --rd-terra-ink: #245a4f;
}

/* ==========================================================================
   RYZM v2 (2026-12-02): tool-desk layout. Left sidebar, heavy ink borders,
   hard offset shadows, Inter display type, mono labels, calm first screen.
   CSS only, so routine renders of index.html and the article/close
   templates cannot undo it. Markup contracts are untouched.
   ========================================================================== */
:root, :root[data-x] {
  color-scheme: light;
  --bg: #f4f0e8; --surface: #fffdf8; --surface-2: #ece6da;
  --border: #ddd5c6; --border-strong: #111111;
  --text: #111111; --text-2: #34312c; --text-muted: #6d675d;
  --accent: #111111; --accent-ink: #111111; --accent-soft: rgba(17,17,17,0.06);
  --seal: #ff5a4e; --green: #1a7a50; --red: #c23a29; --amber: #7d5f19; --blue: #3c64e0; --purple: #6f55c9;
  --ink-band: #f4f0e8; --ink-band-text: #34312c;
  --yellow: #ffd84a; --mint: #5ee2a0; --sky: #6f9bff; --coral: #ff8a6b; --lilac: #b9a6ff; --pink: #ff9ccf; --sand: #e8c48a;
  --ink: #15171a;
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 12px;
  /* v10 premium: hairlines and layered soft shadows instead of 2px ink borders and hard offsets */
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-2: color-mix(in srgb, var(--ink) 20%, transparent);
  --shadow-1: 0 1px 0 rgba(21,23,26,.03), 0 1px 2px rgba(21,23,26,.06);
  --shadow: 0 1px 0 rgba(21,23,26,.03), 0 1px 2px rgba(21,23,26,.05), 0 10px 28px -14px rgba(21,23,26,.20);
  --shadow-lift: 0 1px 0 rgba(21,23,26,.03), 0 2px 4px rgba(21,23,26,.06), 0 18px 40px -18px rgba(21,23,26,.28);
  --bd: 1px solid var(--line-2);
  --side: 248px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #f4f0e8; --surface: #fffdf8; --surface-2: #ece6da; --border: #ddd5c6; --border-strong: #111111;
    --text: #111111; --text-2: #34312c; --text-muted: #6d675d; --accent: #111111; --accent-ink: #111111;
    --seal: #ff5a4e; --green: #1a7a50; --red: #c23a29; --amber: #7d5f19; --blue: #3c64e0; --purple: #6f55c9;
    --ink-band: #f4f0e8; --ink-band-text: #34312c;
  }
}
html, body { background: var(--bg) !important; }
body { font-family: var(--sans); font-size: 15px; color: var(--text); letter-spacing: -0.005em; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4 { font-family: var(--sans); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- site header: sidebar on desktop, top bar below 1100px ---------- */
body > header {
  position: sticky; top: 0; z-index: 200; background: var(--bg) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: 0 !important; border-bottom: var(--bd) !important;
}
/* Published pages with the older inline header rule also style nested headers. */
main header {
  position: static;
  top: auto;
  z-index: auto;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body > header .header-top { max-width: none; height: 58px; padding: 0 16px; gap: 12px; }
.logo, a.logo { font-family: var(--sans); font-weight: 900; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.logo span { color: var(--ink) !important; font-weight: 900; }
.logo::before {
  width: 32px; height: 32px; border-radius: 0; margin-right: 10px; box-shadow: none; border: 0;
  background: url("/assets/img/ryzm-mark.png") center / contain no-repeat !important;
}
.logo::after { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin: 9px 0 0 2px; align-self: center; }
body > header nav {
  border: 0 !important; border-radius: 0 !important; background: none !important; padding: 0; gap: 0;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--text-2);
  -webkit-mask-image: none !important; mask-image: none !important;
}
body > header nav a {
  display: inline-flex; align-items: center; gap: 0; border-radius: 0; padding: 8px 12px;
  color: var(--text-2); border: 0; background: none; white-space: nowrap; font-weight: 500;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body > header nav a::before,
body > header nav a:nth-child(n)::before,
body > header nav a.active::before { content: none !important; display: none !important; background: none !important; border: 0 !important; width: 0 !important; height: 0 !important; }
body > header nav a:hover { background: none !important; color: var(--ink) !important; }
body > header nav a.active { background: none !important; color: var(--ink) !important; font-weight: 600; }
.header-cta {
  background: var(--yellow) !important; color: var(--ink) !important; border: var(--bd); border-radius: 6px !important;
  box-shadow: var(--shadow) !important; font-weight: 800; font-size: 14px; padding: 8px 14px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.header-cta::before { background: var(--ink) !important; box-shadow: none !important; width: 7px; height: 7px; }
.header-cta:hover { background: var(--yellow) !important; transform: translateY(-1px); box-shadow: var(--shadow-lift) !important; }
.header-cta:active { transform: translateY(0); box-shadow: var(--shadow-1) !important; }

@media (min-width: 1100px) {
  body { padding-left: var(--side) !important; }
  body > header {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); height: 100vh;
    border-bottom: 0 !important; border-right: var(--bd) !important; background: var(--surface-2) !important;
  }
  body > header .header-top {
    height: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 18px 14px 18px; gap: 0; flex-wrap: nowrap;
  }
  body > header .logo { padding: 0 6px; margin-bottom: 28px; }
  body > header nav { flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; width: auto; margin: 0; }
  body > header nav::before {
    content: "Sections"; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-muted); padding: 0 12px 14px;
  }
  body > header nav a {
    padding: 8px 12px; min-height: 36px; font-size: 14.5px; font-weight: 500;
    border-left: 2px solid transparent; border-radius: 0;
  }
  body > header nav a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent) !important; }
  body > header nav a.active { border-left-color: var(--ink); background: none !important; font-weight: 600; }
  body > header .header-cta { margin-top: auto; text-align: center; justify-content: center; display: flex !important; align-items: center; min-height: 44px; }
}
@media (max-width: 1099px) {
  body > header .header-top { flex-wrap: wrap; height: auto; padding: 10px 16px 0; }
  body > header nav {
    order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 8px;
    gap: 0; border-top: 1px solid var(--border) !important; overflow-x: auto; scrollbar-width: none;
  }
  body > header nav::-webkit-scrollbar { display: none; }
  body > header nav a {
    border: 0 !important; background: none !important; box-shadow: none !important;
    padding: 12px 14px 10px; min-height: 42px; font-size: 14px; font-weight: 500; gap: 0;
    border-radius: 0; border-bottom: 2px solid transparent !important; color: var(--text-2);
  }
  body > header nav a::before { display: none !important; content: none !important; }
  body > header nav a:hover { background: none !important; color: var(--ink) !important; }
  body > header nav a.active {
    background: none !important; color: var(--ink) !important; font-weight: 600;
    border-bottom-color: var(--ink) !important; box-shadow: none !important;
  }
  .header-cta { min-height: 38px; display: inline-flex !important; align-items: center; }
}

/* ---------- market snapshot: quiet top strip, no motion ---------- */
.ticker-bar {
  background: var(--bg) !important; color: var(--text-2) !important; border-bottom: var(--bd);
  overflow-x: auto !important; scrollbar-width: none; -webkit-mask-image: none !important; mask-image: none !important;
  font-family: var(--mono) !important; font-size: 12px;
}
.ticker-bar::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .ticker-bar { position: sticky; top: 0; z-index: 150; } }
.ticker-inner { animation: none !important; padding: 0 !important; min-height: 46px; align-items: center; font-variant-numeric: tabular-nums; }
.ticker-label {
  font-family: var(--mono) !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .1em !important;
  color: var(--ink) !important; opacity: 1 !important; background: none !important; border: 0 !important;
  padding: 0 14px 0 24px !important; border-right: 1px solid var(--line-2) !important; margin-right: 6px; line-height: 46px;
}
.ticker-item { border-right: 0 !important; padding: 0 12px !important; color: var(--ink) !important; font-family: var(--mono); font-size: 12px; }
.ticker-item strong {
  color: var(--ink) !important; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; margin-right: 6px; background: var(--surface);
  box-shadow: var(--shadow-1);
}
.ticker-item em { color: var(--text-muted) !important; opacity: 1 !important; font-size: 11px; }
.ticker-stamp { color: var(--text-muted) !important; opacity: 1 !important; padding-right: 24px !important; }

/* ---------- shared pieces ---------- */
.section-title {
  font-family: var(--mono) !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .12em !important;
  text-transform: uppercase; color: var(--ink) !important; border: 0 !important; padding: 0 !important; margin-bottom: 16px; gap: 8px;
}
.section-title::before { display: inline-block !important; content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint) !important; border: 1px solid var(--line-2); box-shadow: none !important; }
.section-title::after { display: none !important; }
#breaking .section-title::before { background: var(--seal) !important; }
.tag, .cat-label, .brief-card-cat {
  display: inline-flex !important; align-items: center; background: var(--surface) !important; color: var(--ink) !important;
  border: 1px solid var(--line-2) !important; border-radius: 4px !important; padding: 1px 6px !important;
  font-family: var(--mono) !important; font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .06em !important; text-transform: uppercase; line-height: 1.5 !important;
}
.tag::before { display: none !important; }
.tag.high, .tag.red { background: #ffe1dc !important; }
.tag.green { background: #d9f7e8 !important; }
.tag.blue { background: #e2e9ff !important; }
.tag.mid { background: #fff1c2 !important; }
time, .b-time, .cal-time, .mr-stamp, .page-count, .lg-when, .lg-num, table { font-variant-numeric: tabular-nums; }

.card-box, .market-read, #breaking, .home-panel, body > .ryzm-dash, .calendar-card, .fw-card, .subscribe-inner,
#close-list, .brief-card, .ledger table, .prose table {
  background: var(--surface) !important; border: var(--bd) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important;
}

/* buttons */
.intro-sub, .btn-subscribe, .subscribe .sub-form button, .feed-more, .pill, .intro-mem, .ryzm-dash .ck-cta-btn {
  border: var(--bd) !important; border-radius: 6px !important; box-shadow: var(--shadow) !important;
  font-family: var(--sans) !important; font-weight: 800 !important; color: var(--ink) !important; text-decoration: none !important;
  transition: transform .12s ease, box-shadow .12s ease; transform: none;
}
.intro-sub, .btn-subscribe, .subscribe .sub-form button { background: var(--yellow) !important; }
.intro-mem, .feed-more, .pill { background: var(--surface) !important; }
.pill[aria-pressed="true"], .pill[aria-current="page"] { background: var(--ink) !important; color: var(--surface) !important; }
.intro-sub:hover, .btn-subscribe:hover, .subscribe .sub-form button:hover, .feed-more:hover, .pill:hover, .intro-mem:hover { transform: translateY(-1px) !important; box-shadow: var(--shadow-lift) !important; }
.intro-sub:active, .btn-subscribe:active, .feed-more:active, .pill:active, .intro-mem:active { transform: translateY(0) !important; box-shadow: var(--shadow-1) !important; }
.subscribe .sub-form input, input[type="email"], input[type="search"], input[type="text"] {
  border: var(--bd) !important; border-radius: 6px !important; background: var(--surface) !important; box-shadow: none !important; font-family: var(--sans);
}

/* ---------- home: one calm column, one idea per block ---------- */
body:has(> section.market-read) { display: flex; flex-direction: column; }
body:has(> section.market-read) > main { display: contents; }
body:has(> section.market-read) > header { order: -2; }
body:has(> section.market-read) > .ticker-bar { order: -1; }
body:has(> section.market-read) #breaking { order: 1; }
body:has(> section.market-read) > .intro { order: 2; }
body:has(> section.market-read) > .market-read { order: 3; }
body:has(> section.market-read) .home-panels-wrap { order: 4; }
body:has(> section.market-read) > .ryzm-dash { order: 5; }
body:has(> section.market-read) .layout { order: 6; }
body:has(> section.market-read) #frameworks { order: 7; }
body:has(> section.market-read) > .subscribe { order: 8; }
body:has(> section.market-read) > footer { order: 9; }
body:has(> section.market-read) > script { order: 10; }
body:has(> section.market-read) > .intro,
body:has(> section.market-read) > .market-read,
body:has(> section.market-read) #breaking,
body:has(> section.market-read) .home-panels-wrap,
body:has(> section.market-read) > .ryzm-dash,
body:has(> section.market-read) .layout,
body:has(> section.market-read) #frameworks,
body:has(> section.market-read) > .subscribe {
  box-sizing: border-box; width: calc(100% - 72px) !important; max-width: 1100px !important;
  margin-left: auto !important; margin-right: auto !important;
}
@media (max-width: 720px) {
  body:has(> section.market-read) > .intro,
  body:has(> section.market-read) > .market-read,
  body:has(> section.market-read) #breaking,
  body:has(> section.market-read) .home-panels-wrap,
  body:has(> section.market-read) > .ryzm-dash,
  body:has(> section.market-read) .layout,
  body:has(> section.market-read) #frameworks,
  body:has(> section.market-read) > .subscribe { width: calc(100% - 32px) !important; }
}

/* hero */
.intro { padding: 44px 0 28px !important; }
.intro::before { display: none !important; }
.intro::after {
  display: inline-flex !important; order: -1; content: "RYZM \00B7  rates, dollar funding, FX";
  margin: 0 0 18px !important; padding: 3px 10px !important; border: var(--bd) !important; border-radius: 999px !important;
  background: var(--mint) !important; box-shadow: var(--shadow-1); color: var(--ink) !important;
  font-family: var(--mono); font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase;
}
.intro h1 {
  font-family: var(--sans) !important; font-weight: 900 !important; text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 86px) !important; line-height: .9 !important; letter-spacing: -0.055em !important; max-width: 11em !important; color: var(--ink);
}
.intro h1 br { display: none !important; }
.intro h1 em {
  display: table; margin: 14px 0 0 -2px !important; padding: 2px 12px 4px; font-style: normal !important; font-weight: 900 !important;
  color: var(--ink) !important; background: var(--yellow); border: var(--bd); box-shadow: var(--shadow);
  font-size: .72em;
}
.intro .intro-row { display: flex; flex-direction: column; align-items: flex-start !important; gap: 22px; margin-top: 26px; }
.intro-lead { margin: 0 !important; font-size: 19px !important; line-height: 1.5 !important; color: var(--text-2) !important; max-width: 40em !important; }
.intro-cta { display: flex !important; flex-wrap: wrap; gap: 12px; margin: 0 !important; }
.intro-sub, .intro-mem { display: inline-flex !important; align-items: center; min-height: 48px; padding: 0 20px !important; font-size: 15.5px !important; margin: 0 !important; }

/* today's market read */
.market-read { padding: 22px 24px 10px !important; margin-top: 8px !important; margin-bottom: 40px !important; border-top: var(--bd) !important; }
.market-read .mr-head { border: 0 !important; padding: 0 0 12px !important; margin: 0 !important; border-bottom: 1px solid var(--line-2) !important; align-items: center; }
.market-read h2 { font-family: var(--mono) !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .12em !important; }
.market-read .mr-stamp { font-family: var(--mono) !important; font-size: 11.5px !important; color: var(--text-muted) !important; }
.market-read .mr-stamp a, .market-read dd a { color: var(--ink) !important; text-decoration-thickness: 1.5px !important; }
.market-read .mr-grid { margin-top: 0 !important; column-gap: 32px !important; }
.market-read .mr-row { border-bottom: 1px dashed var(--border) !important; padding: 14px 0 !important; }
.market-read .mr-row:last-child, .market-read .mr-row:nth-last-child(2) { border-bottom: 0 !important; }
.market-read dt { font-family: var(--mono) !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted) !important; }
.market-read dd { font-size: 15.5px !important; line-height: 1.55 !important; }
.market-read .mr-row:first-child dd strong {
  display: inline-block; font-family: var(--sans) !important; font-size: 24px !important; font-weight: 900 !important; letter-spacing: -0.03em;
  background: var(--lilac); border: var(--bd); border-radius: 6px; padding: 0 10px; box-shadow: var(--shadow-1); margin-right: 6px;
}
@media (max-width: 720px) { .market-read { padding: 18px 16px 6px !important; } .market-read .mr-row:nth-last-child(2) { border-bottom: 1px dashed var(--border) !important; } }

/* breaking */
#breaking { padding: 22px 24px 20px !important; margin-bottom: 40px !important; }
#breaking .b-status, #breaking > p { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); }
.breaking-list { column-gap: 32px !important; }
.breaking-list li { border-bottom: 1px dashed var(--border) !important; padding: 14px 0 !important; }
.breaking-list .b-time { font-family: var(--mono) !important; font-size: 11px !important; }
.breaking-list summary, .breaking-list .b-head { font-family: var(--sans) !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: -0.01em; line-height: 1.35 !important; }
.breaking-list .b-view { border-left: 3px solid var(--yellow) !important; }
.breaking-list .rv-label { font-family: var(--mono); color: var(--ink) !important; }
.breaking-list .b-src { font-family: var(--mono); font-size: 11px !important; color: var(--text-muted); }
.b-actions { margin-top: 16px; gap: 14px; }
.feed-more { min-height: 42px !important; padding: 0 16px !important; }
@media (max-width: 720px) { #breaking { padding: 18px 16px 18px !important; } }

/* featured panels: three separate cards */
.home-panels-wrap { margin-bottom: 44px !important; }
.home-panels { gap: 20px !important; border: 0 !important; }
.home-panel { padding: 20px 20px 14px !important; border-left: var(--bd) !important; }
.home-panel h2 { font-size: 21px !important; font-weight: 800 !important; letter-spacing: -0.025em !important; line-height: 1.2 !important; }
.home-panel h3 { font-size: 16px !important; font-weight: 800 !important; letter-spacing: -0.015em !important; }
.home-panel p { font-size: 14px !important; }
.home-panel .meta { font-family: var(--mono); font-size: 11px !important; }
.feat-item { border-bottom: 1px dashed var(--border) !important; }
.panel-more { font-weight: 800 !important; color: var(--ink) !important; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.panel-more::after { content: " \2192"; }

/* the dial: same tool, framed as one card further down */
body > .ryzm-dash { padding: 20px 22px 14px !important; margin-bottom: 44px !important; margin-top: 0 !important; }
.ryzm-dash .ck-title { font-family: var(--sans) !important; font-weight: 900 !important; letter-spacing: -0.03em !important; font-size: 24px !important; }
.ryzm-dash .sc-pill { border: 1px solid var(--line-2) !important; border-radius: 6px !important; font-weight: 700; }
.ryzm-dash .sc-pill[aria-pressed="true"] { background: var(--ink) !important; color: var(--surface) !important; }
.ryzm-dash .ck-tag, .ryzm-dash .ck-mode, .ryzm-dash .ap-chip, .ryzm-dash .ap-room, .ryzm-dash .ck-reset { border-radius: 4px !important; }

/* calendar, frameworks, subscribe */
.layout { margin-bottom: 44px; }
.calendar-card { overflow: hidden; }
.frameworks-grid { gap: 20px !important; }
.fw-card { padding: 20px !important; }
.fw-card::before { font-family: var(--mono) !important; font-style: normal !important; font-size: 12px !important; font-weight: 700; color: var(--ink) !important; border: 0 !important; display: inline-block !important; background: var(--yellow); border-radius: 4px; padding: 0 6px; margin-bottom: 14px !important; }
.fw-card h4 { font-family: var(--sans) !important; font-weight: 800 !important; letter-spacing: -0.02em !important; font-size: 19px !important; }
#frameworks { margin-bottom: 20px; }
.subscribe { margin-top: 40px !important; }
.subscribe-inner { background: var(--mint) !important; padding: 28px 30px !important; }
.subscribe h2 { font-family: var(--sans) !important; font-weight: 900 !important; letter-spacing: -0.035em !important; font-size: 30px !important; text-transform: uppercase; }
.subscribe p, .sub-status { color: var(--ink) !important; }
.subscribe .eyebrow, .subscribe .sub-kicker { color: var(--ink) !important; font-family: var(--mono); }

/* ---------- footer ---------- */
footer { background: var(--surface-2) !important; color: var(--text-2) !important; border-top: var(--bd) !important; margin-top: 64px !important; }
.footer-inner > div:first-child, .footer-brand .footer-logo { color: var(--ink) !important; font-family: var(--sans) !important; font-weight: 900; letter-spacing: -0.03em; }
.footer-brand p, .footer-links a, .footer-col a { color: var(--text-2) !important; }
.footer-col a:hover, .footer-links a:hover { color: var(--ink) !important; text-decoration: underline; }
.footer-h { color: var(--ink) !important; opacity: 1 !important; font-family: var(--mono) !important; font-weight: 700; }
.footer-fine { border-top: 1px solid var(--border) !important; color: var(--text-muted) !important; font-family: var(--mono); font-size: 11px !important; }

/* ---------- article, close, list pages ---------- */
h1.title, h1.page-title, .brief-title, .page-head h1, .ledger h1, main h1 {
  font-family: var(--sans) !important; font-weight: 900 !important; letter-spacing: -0.045em !important; line-height: 1 !important; color: var(--ink);
}
h1.title { font-size: clamp(34px, 4.6vw, 58px) !important; }
h1.page-title, .brief-title { font-size: clamp(36px, 5vw, 64px) !important; }
.article-head { border-bottom: var(--bd) !important; }
.article-head .meta { font-family: var(--mono); font-size: 12px; gap: 10px; }
.back { font-family: var(--mono); font-weight: 700; color: var(--ink) !important; font-size: 12.5px; }
.prose { font-family: var(--sans) !important; font-size: 17.5px !important; line-height: 1.72 !important; color: var(--text-2); }
.prose p, .prose li { font-family: var(--sans) !important; }
.prose h2, .prose h3 { font-family: var(--sans) !important; font-weight: 800 !important; letter-spacing: -0.03em !important; color: var(--ink); }
.prose a { color: var(--ink) !important; text-decoration-thickness: 1.5px; }
.prose blockquote { border-left: 4px solid var(--yellow) !important; }
.prose img, .prose figure img { border: var(--bd); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose table, .ledger table { border-collapse: separate !important; border-spacing: 0; overflow: hidden; }
.prose table th, .ledger th { font-family: var(--mono) !important; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; background: var(--surface-2); color: var(--ink) !important; border-bottom: var(--bd) !important; padding: 10px 12px !important; }
.prose table td, .ledger td { border-bottom: 1px dashed var(--border) !important; padding: 10px 12px !important; font-family: var(--sans); }
.ledger .lg-reg { font-family: var(--sans) !important; font-weight: 800; }
.related h2, .related h3, .rel-title { font-family: var(--sans) !important; font-weight: 800 !important; }
.page-head .section-title { margin-bottom: 14px; }
.page-lead, .brief-desc { font-size: 18px !important; color: var(--text-2) !important; }
.lib-pills { gap: 10px !important; }
.pill { min-height: 40px; padding: 0 14px !important; }
.pill .n { font-family: var(--mono); }
#close-list { padding: 4px 22px 8px; }
#close-list .month { font-family: var(--mono) !important; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .12em !important; color: var(--ink) !important; }
#close-list .month::after { background: var(--ink) !important; height: 2px !important; }
#close-list .item { border-bottom: 1px dashed var(--border) !important; border-radius: 0 !important; }
#close-list .item:hover { background: var(--surface-2) !important; }
.item h3, .item h2, .brief-card h2 { font-family: var(--sans) !important; font-weight: 800 !important; letter-spacing: -0.025em !important; }
.brief-card { padding: 20px 22px !important; margin-bottom: 18px; }
.brief-card + .brief-card { border-top: var(--bd) !important; }
.brief-list { border: 0 !important; display: flex; flex-direction: column; gap: 4px; }
.brief-head { border-bottom: 0 !important; background: none !important; }
.brief-crumb { font-family: var(--mono) !important; color: var(--ink) !important; }
.brief-meta { font-family: var(--mono) !important; }
.intro .intro-lead, .intro .intro-cta { flex: none !important; width: auto !important; max-width: 100% !important; }
body:has(> section.market-read) #frameworks, body:has(> section.market-read) > .subscribe, body:has(> section.market-read) .layout, body:has(> section.market-read) .home-panels-wrap { padding-left: 0 !important; padding-right: 0 !important; }
.footer-brand p { font-weight: 400 !important; letter-spacing: 0 !important; font-family: var(--sans) !important; }
#frameworks { margin-top: 8px; }
#close-list { padding-top: 16px !important; } #close-list .month { position: static !important; background: none !important; }

/* ---------- v5: Today's market read fits the first screen ---------- */
.intro { padding: 22px 0 14px !important; }
.intro::after { margin-bottom: 10px !important; }
.intro h1 { font-size: clamp(36px, 4.8vw, 60px) !important; line-height: .92 !important; }
.intro h1 em { margin-top: 8px !important; font-size: .62em; padding: 1px 10px 3px; }
.intro .intro-row { gap: 14px; margin-top: 14px; }
@media (min-width: 1000px) {
  .intro .intro-row { flex-direction: row; align-items: center !important; justify-content: space-between; gap: 28px; }
  .intro-lead { font-size: 17px !important; max-width: 34em !important; }
  .intro-sub, .intro-mem { min-height: 42px; font-size: 14.5px !important; }
  .market-read { margin-top: 0 !important; margin-bottom: 32px !important; padding: 14px 22px 4px !important; }
  .market-read .mr-head { padding-bottom: 8px !important; }
  .market-read .mr-row { padding: 9px 0 !important; }
  .market-read dd { font-size: 14.5px !important; line-height: 1.5 !important; }
  .market-read .mr-row:first-child dd strong { font-size: 20px !important; }
}
@media (max-width: 720px) {
  .intro { padding: 26px 0 18px !important; }
  .intro h1 { font-size: clamp(34px, 11vw, 44px) !important; }
}
.intro h1 { max-width: none !important; }
@media (min-width: 1000px) {
  .intro .intro-row { flex-wrap: nowrap !important; }
  .intro .intro-row .intro-lead { flex: 1 1 auto !important; max-width: 31em !important; }
  .intro .intro-row .intro-cta { flex: none !important; flex-wrap: nowrap; }
}

/* ==========================================================================
   v5: Regime Dial, Compass and Priced-In Map take the same look as the site.
   Everything below is token and class based CSS; no markup in the block changes.
   ========================================================================== */
.ryzm-dash[data-theme="paper"] {
  --rd-bg: #fffdf8; --rd-surface: #fffdf8; --rd-surface-2: #f4f0e8;
  --rd-border: #ddd5c6; --rd-border-strong: #111111;
  --rd-text: #111111; --rd-text-2: #34312c; --rd-text-muted: #6d675d;
  --rd-ink: #111111; --rd-ink-line: #111111; --rd-hair: #ddd5c6; --rd-rule-strong: #111111;
  --rd-accent: #ff8a6b; --rd-accent-ink: #111111; --rd-terra: #ff8a6b; --rd-terra-ink: #111111;
  --rd-grid: transparent;
  --rd-serif: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --rd-sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --rd-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* signal groups and zones: the site accents, each paired with a darker line color */
  --ink-terra: #ff8a6b; --ink-terra-d: #b8391f;
  --ink-teal:  #6f9bff; --ink-teal-d:  #2447b8;
  --ink-plum:  #b9a6ff; --ink-plum-d:  #4b34a8;
  --ink-ochre: #ffd84a; --ink-ochre-d: #6e5200;
  --ink-sage:  #5ee2a0; --ink-sage-d:  #0b6e45;
}
/* the card: same border, radius and offset shadow as every other card on the site */
.ryzm-dash {
  background: var(--surface) !important; background-image: none !important;
  border: 1px solid var(--line-2) !important; border-radius: 8px !important; box-shadow: var(--shadow) !important;
  font-family: var(--sans);
}
.ryzm-dash .ck-kicker, .ryzm-dash .ck-panel-h h3, .ryzm-dash .ck-fine, .ryzm-dash .sl-lab, .ryzm-dash .cap {
  font-family: var(--mono) !important;
}
.ryzm-dash .ck-kicker, .ryzm-dash .ck-panel-h h3 { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink) !important; }
.ryzm-dash .ck-title { font-family: var(--sans) !important; font-weight: 900 !important; letter-spacing: -0.03em !important; color: var(--ink); }
.ryzm-dash .ck-subtitle, .ryzm-dash .ck-fine { color: var(--text-muted) !important; }
.ryzm-dash a, .ryzm-dash .ck-panel-h h3 a, .ryzm-dash .ck-panel-h .cap a, .ryzm-dash .ck-tag a { color: var(--ink) !important; text-decoration-thickness: 1.5px; }
/* panels: ruled with ink lines instead of hairlines */
.ryzm-dash .ck-grid { border-top: 1px solid var(--line-2); border-bottom: 0; }
.ryzm-dash .ck-panel-h { border-bottom: 0; }
/* compass */
.ryzm-dash .cmp-bezel { stroke: var(--ink); stroke-width: 2; }
.ryzm-dash .cmp-face { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.ryzm-dash .cmp-q { fill: color-mix(in srgb, var(--qc) 18%, var(--surface)); }
.ryzm-dash .cmp-q.on { fill: color-mix(in srgb, var(--qc) 55%, var(--surface)); }
.ryzm-dash .cmp-ring { stroke: var(--ink); stroke-opacity: .35; }
.ryzm-dash .cmp-axis { stroke: var(--ink); stroke-opacity: 1; stroke-width: 1.5; }
.ryzm-dash .cmp-tick { stroke: var(--ink); stroke-opacity: .6; }
.ryzm-dash .cmp-ax, .ryzm-dash .cmp-ql, .ryzm-dash .bm-tick, .ryzm-dash .bm-axl, .ryzm-dash .cmp-ghost-t { font-family: var(--mono) !important; }
.ryzm-dash .cmp-ql { font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; stroke: none !important; }
.ryzm-dash .cmp-needle { stroke: var(--ink); stroke-width: 3; }
.ryzm-dash .cmp-tip { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.ryzm-dash .cmp-halo { fill: var(--yellow); fill-opacity: .35; stroke: var(--ink); stroke-opacity: .5; }
.ryzm-dash .cmp-hub { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.ryzm-dash .cmp-ghost .cmp-trail { stroke: var(--ink); }
/* bubble map */
.ryzm-dash .bm-grid line { stroke: var(--ink); stroke-opacity: .12; }
.ryzm-dash .bm-grid line.bm-zero { stroke: var(--ink); stroke-opacity: .6; }
.ryzm-dash .bm-crowd rect { fill: color-mix(in srgb, var(--coral) 14%, transparent); stroke: var(--ink); stroke-opacity: .7; }
.ryzm-dash .bm-crowd text { fill: var(--ink); font-weight: 700; }
.ryzm-dash .bm-b .bm-c { stroke: var(--ink); stroke-width: 1.8; stroke-opacity: 1; }
.ryzm-dash .bm-b.tone-in .bm-c { fill: var(--nc); fill-opacity: 1; }
.ryzm-dash .bm-b.tone-flat .bm-c { fill: var(--nc); fill-opacity: .28; stroke-opacity: 1; }
.ryzm-dash .bm-hatch-bg { fill: var(--nc); fill-opacity: .28; }
.ryzm-dash .bm-hatch-line.n-rates, .ryzm-dash .bm-hatch-line.n-credit, .ryzm-dash .bm-hatch-line.n-asia, .ryzm-dash .bm-hatch-line.n-crypto { stroke: var(--ink); stroke-opacity: .75; }
.ryzm-dash .bm-b:not(.is-sel):not(.is-hover) .bm-label { fill: var(--ink); font-family: var(--sans); font-weight: 600; }
.ryzm-dash .bm-b.is-sel .bm-label, .ryzm-dash .bm-b.is-hover .bm-label { fill: var(--ink); font-weight: 800; }
.ryzm-dash .bm-b.warn .bm-ring { stroke: var(--ink); }
.ryzm-dash .bm-b.is-sel .bm-sel { stroke: var(--ink); stroke-width: 2; }
.ryzm-dash .bm-nodes i { background: var(--nc); border: 1px solid var(--line-2); }
.ryzm-dash .bm-legend .in { background: var(--ink); }
/* controls, chips, tags */
.ryzm-dash .sc-pill { background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: 6px !important; color: var(--ink) !important; font-weight: 700; box-shadow: var(--shadow-1); }
.ryzm-dash .sc-pill[aria-pressed="true"] { background: var(--yellow) !important; color: var(--ink) !important; }
.ryzm-dash .sc-pill[aria-pressed="true"]::before { background: var(--ink) !important; box-shadow: none !important; }
.ryzm-dash .ck-mode.live::before { background: var(--ink-sage); box-shadow: none; border: 1px solid var(--line-2); }
.ryzm-dash .ck-mode, .ryzm-dash .ck-tag, .ryzm-dash .ap-chip, .ryzm-dash .ck-reset { border: 1px solid var(--line-2) !important; border-radius: 4px !important; background: var(--surface) !important; color: var(--ink) !important; font-family: var(--mono) !important; font-weight: 700; }
.ryzm-dash .ck-mode.live { background: color-mix(in srgb, var(--mint) 40%, var(--surface)) !important; }
.ryzm-dash .ck-slider input[type=range]::-webkit-slider-runnable-track { background: var(--ink); opacity: 1; height: 3px; }
.ryzm-dash .ck-slider input[type=range]::-webkit-slider-thumb { background: var(--yellow); border: 1px solid var(--line-2); box-shadow: none; }
.ryzm-dash .ck-slider input[type=range]::-moz-range-thumb { background: var(--yellow); border: 1px solid var(--line-2); box-shadow: none; }
.ryzm-dash .ck-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: none; outline: 2px solid var(--ink); outline-offset: 2px; }
.ryzm-dash .ck-cta-btn { background: var(--yellow) !important; color: var(--ink) !important; }
/* inspector */
.ryzm-dash .asset-panel { border-left: 3px solid var(--nc, var(--ink)); }
.ryzm-dash .asset-panel #ap-group { background: var(--nc, var(--surface)) !important; color: var(--ink) !important; border: 1px solid var(--line-2) !important; border-radius: 4px !important; font-family: var(--mono); font-weight: 700; }
.ryzm-dash #ap-heat-bar { background: var(--coral); }
.ryzm-dash .ap-flow.pos, .ryzm-dash .ap-flow.neg { background: var(--sky); }
.ryzm-dash #ap-tension-bar { background: var(--yellow); }
.ryzm-dash .ap-track { background: var(--surface-2); border: 1px solid var(--line-2); height: 8px; border-radius: 2px; }
.ryzm-dash .ap-fill { border-radius: 0; }
.ryzm-dash .ap-m .k, .ryzm-dash .ap-m:nth-child(n) .k { color: var(--ink) !important; font-family: var(--mono); font-weight: 700; }
.ryzm-dash .tt-list li .tt-bar { background: var(--surface-2); border: 1px solid var(--line-2); }
.ryzm-dash .tt-list li .tt-bar i { background: var(--nc); }
.ryzm-dash .rg-note, .ryzm-dash .ap-room { border-color: var(--ink) !important; }

/* ==========================================================================
   v6: calmer emphasis. Only the Today's Market Read card and the buttons keep the
   offset shadow. Every other card is a 1px ink hairline with a smaller radius.
   ========================================================================== */
:root { --bd-hair: 1px solid var(--line-2); --radius-card: var(--radius); }
.card-box, #breaking, .home-panel, body > .ryzm-dash, .ryzm-dash, .calendar-card, .fw-card, .subscribe-inner,
#close-list, .brief-card, .ledger table, .prose table {
  border: var(--bd-hair) !important; border-radius: var(--radius-card) !important; box-shadow: none !important;
}
.home-panel { border-left: var(--bd-hair) !important; }
.brief-card + .brief-card { border-top: var(--bd-hair) !important; }
.prose img, .prose figure img { border: var(--bd-hair); border-radius: var(--radius-card); box-shadow: none; }
.ryzm-dash .ck-grid { border-top: 1px solid var(--line-2); }
/* the one card that keeps the weight */
.market-read { border: var(--bd) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; }
/* small chips and kickers: flat, no offset shadow */
.intro::after, .ticker-item strong, .market-read .mr-row:first-child dd strong, .ryzm-dash .sc-pill { box-shadow: none !important; }
.ticker-item strong { border-width: 1px; }
.intro::after { border-width: 1.5px !important; }
.market-read .mr-row:first-child dd strong { border-width: 1.5px; }
.ryzm-dash .sc-pill { border-width: 1px !important; }
.tag, .cat-label, .brief-card-cat { border-width: 1px !important; }
.ryzm-dash .ck-mode, .ryzm-dash .ck-tag, .ryzm-dash .ap-chip, .ryzm-dash .ck-reset, .ryzm-dash .asset-panel #ap-group { border-width: 1px !important; }
.ryzm-dash .ap-track { border-width: 1px; }

/* NOT FORECASTS: a calm highlighter band instead of a tilted sticker */
.intro h1 em {
  background: none !important; border: 0 !important; transform: none !important;
  box-shadow: inset 0 -.34em 0 var(--yellow) !important; padding: 0 .12em !important; margin: 10px 0 0 -2px !important;
}

/* basis labels in the ticker: tiny mono, quiet */
.ticker-item .tk-basis {
  font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); margin-left: 4px; white-space: nowrap;
}

/* paper grain: one tiny self-made tile, very low opacity, never blocks clicks */
html::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .028;
  background: url("/assets/img/grain.svg") 0 0 / 160px 160px repeat;
}

/* gentle hover and press: color and a 1px lift only; none of it under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .card-box, .home-panel, .calendar-card, .fw-card, .brief-card, #close-list .item { transition: background-color .18s ease, transform .18s ease; }
  .fw-card:hover, .brief-card:hover { transform: translateY(-1px); background-color: var(--surface-2) !important; }
  a { transition: text-decoration-color .15s ease, color .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-sub, .btn-subscribe, .subscribe .sub-form button, .feed-more, .pill, .intro-mem, .header-cta, .ryzm-dash .ck-cta-btn { transition: none !important; }
}

/* ==========================================================================
   v7: a purposeful desktop sidebar. Subscribe sits in a compact footer
   block; the nav is grouped. Mobile (below 1100px) is unchanged.
   ========================================================================== */
@media (min-width: 1100px) {
  body > header {
    border-right: 1px solid var(--line-2) !important;
  }
  body > header .header-top {
    padding: 18px 14px 16px;
  }
  body > header .logo {
    padding: 0 6px 16px; margin-bottom: 4px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  }
  body > header nav {
    display: flex; flex-direction: column; margin-top: 14px; gap: 1px;
  }
  /* Home sections first (Feed, Breaking, Calendar), then the library */
  body > header nav a:nth-child(1),
  body > header nav a:nth-child(2) { order: 1; }
  body > header nav a:nth-child(7) { order: 2; }
  body > header nav a:nth-child(3),
  body > header nav a:nth-child(4),
  body > header nav a:nth-child(5),
  body > header nav a:nth-child(6) { order: 3; }
  body > header nav::before {
    content: "Home"; order: 1;
    font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-muted); padding: 0 12px 8px;
  }
  body > header nav a {
    padding: 7px 12px; min-height: 34px; font-size: 14.5px;
  }
  /* Library label sits above Articles, after the Home group */
  body > header nav a:nth-child(3) {
    margin-top: 28px; position: relative;
  }
  body > header nav a:nth-child(3)::before {
    content: "Library" !important; display: block !important;
    position: absolute; left: 12px; top: -18px;
    width: auto !important; height: auto !important; background: none !important; border: 0 !important;
    box-shadow: none !important; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); line-height: 1;
    padding: 0; margin: 0;
  }
  /* Subscribe docks at the bottom, with a quiet line and a one-line value prop */
  body > header .header-cta {
    margin-top: auto; width: 100%; box-sizing: border-box;
    display: flex !important; align-items: center; justify-content: center;
    min-height: 42px; position: relative;
  }
  body > header .header-cta::after {
    content: ""; position: absolute; left: 0; right: 0; top: -14px;
    border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
    width: auto; height: 0; background: none; box-shadow: none;
  }
  body > header .header-top::after {
    content: "Rates, funding, FX and Korea. Free.";
    display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
    line-height: 1.4; color: var(--text-muted); letter-spacing: 0.01em;
    padding: 10px 2px 0; text-wrap: pretty;
  }
}

/* ==========================================================================
   v8: mobile first screen. Compress the hero so Today's Market Read
   (regime + first key numbers) is visible, and show several ticker items
   in a scrollable strip with a fade hint. Desktop is unchanged.
   ========================================================================== */
@media (max-width: 720px) {
  /* ticker: drop the wide label (the bar already has an aria-label), tighten chips,
     keep a right-edge fade and a thin scrollbar as the scroll hint */
  .ticker-bar {
    scrollbar-width: thin;
    box-shadow: inset -28px 0 18px -10px var(--bg);
  }
  .ticker-bar::-webkit-scrollbar { display: block !important; height: 3px; }
  .ticker-bar::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 2px; }
  .ticker-bar::-webkit-scrollbar-track { background: transparent; }
  .ticker-inner { min-height: 40px !important; }
  .ticker-label { display: none !important; }
  .ticker-item { padding: 0 8px !important; font-size: 11px !important; }
  .ticker-label + .ticker-item { padding-left: 12px !important; }
  .ticker-item strong {
    font-size: 10px !important; padding: 0 4px !important; margin-right: 4px !important;
    box-shadow: none !important; border-width: 1px;
  }
  .ticker-item em { font-size: 10px !important; }
  .ticker-item .tk-basis { font-size: 8.5px; margin-left: 3px; }
  .ticker-stamp { padding-right: 36px !important; }

  /* hero: smaller type and spacing; hide the secondary line on small screens only */
  .intro { padding: 10px 0 8px !important; }
  .intro::after { margin: 0 0 8px !important; padding: 2px 8px !important; font-size: 10px !important; box-shadow: none; }
  .intro h1 { font-size: clamp(26px, 8vw, 32px) !important; line-height: .94 !important; }
  .intro h1 em { margin-top: 2px !important; font-size: .62em; }
  .intro .intro-row { gap: 10px !important; margin-top: 8px !important; }
  .intro-lead { display: none !important; }
  .intro-cta { flex-wrap: wrap !important; gap: 8px !important; width: 100% !important; max-width: 100% !important; }
  .intro-sub, .intro-mem {
    min-height: 36px !important; padding: 0 10px !important; font-size: 13px !important;
    flex: 0 1 auto; justify-content: center; white-space: nowrap;
  }

  /* tighten the Market Read card so the first numbers clear the fold */
  .market-read { margin-top: 4px !important; margin-bottom: 24px !important; padding: 12px 14px 2px !important; }
  .market-read .mr-head { padding-bottom: 6px !important; }
  .market-read .mr-stamp { font-size: 10.5px !important; }
  .market-read .mr-row { padding: 8px 0 !important; }
  .market-read dd { font-size: 14px !important; line-height: 1.45 !important; }
  .market-read .mr-row:first-child dd strong { font-size: 18px !important; }
}

/* ==========================================================================
   v9: the homepage dial area breathes. One primary reading (the regime and its
   two numbers), everything else quieter: lighter lines, fewer borders, smaller
   legend and axis text, even spacing. CSS only, scoped to the home page card;
   no markup, generator or JS changes.
   ========================================================================== */
body:has(> section.market-read) > .ryzm-dash {
  --rd-hair: color-mix(in srgb, var(--ink) 14%, var(--surface));
  padding: 24px 28px 16px !important;
}
/* header: title first, scenario pills and mode chip quieter */
body:has(> section.market-read) > .ryzm-dash .ck-head { padding-bottom: 16px; border-bottom: 1px solid var(--rd-hair); row-gap: 10px; }
body:has(> section.market-read) > .ryzm-dash .ck-kicker { font-size: 10.5px; font-weight: 600 !important; color: var(--text-muted) !important; letter-spacing: .1em; }
body:has(> section.market-read) > .ryzm-dash .ck-sub-row { margin-top: 6px; gap: 10px; }
body:has(> section.market-read) > .ryzm-dash .ck-subtitle { font-size: 12.5px; }
body:has(> section.market-read) > .ryzm-dash .ck-mode, body:has(> section.market-read) > .ryzm-dash .ck-tag, body:has(> section.market-read) > .ryzm-dash .ap-chip, body:has(> section.market-read) > .ryzm-dash .ck-reset { border-color: var(--rd-hair) !important; font-weight: 600; }
body:has(> section.market-read) > .ryzm-dash .ck-mode.live { background: transparent !important; border-color: var(--rd-hair) !important; }
body:has(> section.market-read) > .ryzm-dash .sc-pill {
  min-height: 28px; padding: 0 11px; font-size: 11.5px; font-weight: 600; box-shadow: none !important;
  border: 1px solid var(--rd-hair) !important; background: transparent !important; color: var(--text-2, var(--ink)) !important;
}
@media (min-width: 1220px) {
  body:has(> section.market-read) > .ryzm-dash .ck-head .sc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; flex: 0 0 auto; width: min(430px, 48%); }
  body:has(> section.market-read) > .ryzm-dash .sc-pill { justify-content: center; white-space: nowrap; }
}
/* narrower desktops: the map gets its own full-width row instead of a 150px sliver */
@media (min-width: 981px) and (max-width: 1219px) {
  body:has(> section.market-read) > .ryzm-dash .ck-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "compass side" "map map"; row-gap: 22px; }
  body:has(> section.market-read) > .ryzm-dash .ck-map { padding: 20px 0 0; border-top: 1px solid var(--rd-hair); --bm-h: 300; }
  body:has(> section.market-read) > .ryzm-dash .ck-compass { padding-right: 24px; }
  body:has(> section.market-read) > .ryzm-dash .ck-head { flex-wrap: wrap !important; }
  body:has(> section.market-read) > .ryzm-dash .ck-head .sc-row { flex: 1 1 100% !important; width: 100%; max-width: none; justify-content: flex-start; flex-wrap: wrap !important; }
  body:has(> section.market-read) > .ryzm-dash .ck-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body:has(> section.market-read) > .ryzm-dash .ck-controls .sc-note { grid-column: 1 / -1; }
  body:has(> section.market-read) > .ryzm-dash .ck-slider { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab out" "range range" "scale scale"; row-gap: 2px; }
  body:has(> section.market-read) > .ryzm-dash .ck-slider .sl-lab { max-width: none; }
}
body:has(> section.market-read) > .ryzm-dash .sc-pill[aria-pressed="true"] { background: var(--yellow) !important; border-color: var(--ink) !important; color: var(--ink) !important; }
/* sliders are a secondary, illustrative control: small, muted, no heavy track */
body:has(> section.market-read) > .ryzm-dash .ck-controls { padding: 12px 0 14px; gap: 8px 28px; border-bottom: 0; }
body:has(> section.market-read) > .ryzm-dash .ck-slider .sl-lab { font-size: 11px; font-weight: 500; color: var(--text-muted); max-width: 11em; }
body:has(> section.market-read) > .ryzm-dash .ck-slider .sl-out { font-size: 12px; font-weight: 600; color: var(--ink); }
body:has(> section.market-read) > .ryzm-dash .ck-slider input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--rd-hair); }
body:has(> section.market-read) > .ryzm-dash .ck-slider input[type=range]::-moz-range-track { height: 2px; background: var(--rd-hair); }
body:has(> section.market-read) > .ryzm-dash .ck-slider input[type=range]::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -6px; border-width: 1.5px; }
body:has(> section.market-read) > .ryzm-dash .sl-scale { font-size: 9px !important; letter-spacing: .04em !important; color: color-mix(in srgb, var(--text-muted) 80%, var(--surface)); }
body:has(> section.market-read) > .ryzm-dash .ck-controls .sc-note { font-size: 11px; color: var(--text-muted); }

/* grid: three even columns separated by space, not by rules */
body:has(> section.market-read) > .ryzm-dash .ck-grid { border-top: 1px solid var(--rd-hair); padding-top: 18px; }
body:has(> section.market-read) > .ryzm-dash .ck-compass, body:has(> section.market-read) > .ryzm-dash .ck-map { border-right: 0 !important; }
body:has(> section.market-read) > .ryzm-dash .ck-compass { padding-right: 24px; }
body:has(> section.market-read) > .ryzm-dash .ck-map { padding: 0 24px; }
body:has(> section.market-read) > .ryzm-dash .ck-side { padding-left: 24px; gap: 16px; border-left: 1px solid var(--rd-hair); }
body:has(> section.market-read) > .ryzm-dash .ck-panel-h { margin-bottom: 10px; }
body:has(> section.market-read) > .ryzm-dash .ck-panel-h h3 { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: var(--text-muted) !important; }
body:has(> section.market-read) > .ryzm-dash .ck-panel-h h3 a { color: var(--text-muted) !important; text-decoration: none; }
body:has(> section.market-read) > .ryzm-dash .ck-panel-h .cap, body:has(> section.market-read) > .ryzm-dash .ck-panel-h .cap a, body:has(> section.market-read) > .ryzm-dash .ck-tag a { font-size: 10.5px; font-weight: 500; color: var(--text-muted) !important; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body:has(> section.market-read) > .ryzm-dash .ck-tag { border-color: transparent !important; background: transparent !important; padding-left: 0; padding-right: 0; }

/* compass: thinner ring and lines, lighter fills, quiet axis words */
body:has(> section.market-read) > .ryzm-dash .cmp-bezel { stroke-width: 1.2; stroke-opacity: .55; }
body:has(> section.market-read) > .ryzm-dash .cmp-face { stroke-width: 1.2; }
body:has(> section.market-read) > .ryzm-dash .cmp-q { fill: color-mix(in srgb, var(--qc) 11%, var(--surface)); }
body:has(> section.market-read) > .ryzm-dash .cmp-q.on { fill: color-mix(in srgb, var(--qc) 34%, var(--surface)); }
body:has(> section.market-read) > .ryzm-dash .cmp-ring { stroke-opacity: .18; }
body:has(> section.market-read) > .ryzm-dash .cmp-axis { stroke-width: 1; stroke-opacity: .4; }
body:has(> section.market-read) > .ryzm-dash .cmp-tick { stroke-opacity: .3; }
body:has(> section.market-read) > .ryzm-dash .cmp-ax { fill: var(--text-muted) !important; font-weight: 600; letter-spacing: .1em; }
body:has(> section.market-read) > .ryzm-dash .cmp-ql { font-size: 10px; font-weight: 600; fill: color-mix(in srgb, var(--ink) 62%, var(--surface)) !important; }
body:has(> section.market-read) > .ryzm-dash .cmp-needle { stroke-width: 2.4; }
body:has(> section.market-read) > .ryzm-dash .cmp-tip { stroke-width: 1.6; }
body:has(> section.market-read) > .ryzm-dash .cmp-halo { fill-opacity: .22; stroke-opacity: .25; }
body:has(> section.market-read) > .ryzm-dash .cmp-hub { stroke-width: 1.5; }
/* overlap fix: the marker sits on the active zone, and that zone's name is the
   large primary reading in the side panel, so the in-dial copy steps aside. */
body:has(> section.market-read) > .ryzm-dash .cmp-ql.on { opacity: 0; transition: opacity .2s; }
body:has(> section.market-read) > .ryzm-dash .cmp-legend { margin-top: 10px; font-size: 10.5px; gap: 6px 14px; color: var(--text-muted); }
body:has(> section.market-read) > .ryzm-dash .cmp-legend .lg-now, body:has(> section.market-read) > .ryzm-dash .cmp-legend .lg-ghost, body:has(> section.market-read) > .ryzm-dash .cmp-legend .lg-vals { font-size: 10.5px; color: var(--text-muted); }
body:has(> section.market-read) > .ryzm-dash .cmp-cap { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; }

/* bubble map: lighter grid and outlines, quieter axes and legend */
body:has(> section.market-read) > .ryzm-dash .bm-grid line { stroke-opacity: .07; }
body:has(> section.market-read) > .ryzm-dash .bm-grid line.bm-zero { stroke-opacity: .3; }
body:has(> section.market-read) > .ryzm-dash .bm-crowd rect { stroke-opacity: .35; fill: color-mix(in srgb, var(--coral) 9%, transparent); }
body:has(> section.market-read) > .ryzm-dash .bm-crowd text { font-weight: 600; fill: var(--text-muted); }
body:has(> section.market-read) > .ryzm-dash .bm-b .bm-c { stroke-width: 1.2; }
body:has(> section.market-read) > .ryzm-dash .bm-b:not(.is-sel):not(.is-hover) .bm-label { font-weight: 500; fill: color-mix(in srgb, var(--ink) 78%, var(--surface)); }
body:has(> section.market-read) > .ryzm-dash .bm-tick { font-size: 9.5px; fill: var(--text-muted); }
body:has(> section.market-read) > .ryzm-dash .bm-axl { font-size: 9px; letter-spacing: .06em; fill: var(--text-muted); }
body:has(> section.market-read) > .ryzm-dash .bm-legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; font-size: 10px; color: var(--text-muted);
}
body:has(> section.market-read) > .ryzm-dash .bm-nodes { font-size: 10.5px; color: var(--text-muted); gap: 4px 12px; margin-top: 12px; }
body:has(> section.market-read) > .ryzm-dash .bm-nodes i { border-width: 1px; }
body:has(> section.market-read) > .ryzm-dash .bm-legend i { width: 8px; height: 8px; border-width: 1px; }
body:has(> section.market-read) > .ryzm-dash .bm-legend span { gap: 4px; }

/* side: the one primary reading, then quiet supporting lines */
body:has(> section.market-read) > .ryzm-dash .rg-static { padding-bottom: 16px; border-bottom: 1px solid var(--rd-hair); }
body:has(> section.market-read) > .ryzm-dash .rg-mode { font-size: 10px; color: var(--text-muted); }
body:has(> section.market-read) > .ryzm-dash .rg-name { font-size: 30px !important; font-weight: 900 !important; letter-spacing: -.03em; line-height: 1.05 !important; margin: 8px 0 14px !important; color: var(--ink); }
body:has(> section.market-read) > .ryzm-dash .rg-nums { gap: 4px 20px; margin-top: 0; }
body:has(> section.market-read) > .ryzm-dash .rg-nums div { flex-direction: column; border-top: 0; padding-top: 0; gap: 2px; }
body:has(> section.market-read) > .ryzm-dash .rg-nums dt { font-size: 10.5px; color: var(--text-muted); order: 2; }
body:has(> section.market-read) > .ryzm-dash .rg-nums dd { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--ink); order: 1; }
body:has(> section.market-read) > .ryzm-dash .rg-drivers { margin-top: 14px; }
body:has(> section.market-read) > .ryzm-dash .rg-drivers li { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin-top: 6px; }
body:has(> section.market-read) > .ryzm-dash .rg-read { font-size: 12.5px; margin-top: 12px; color: var(--ink); }
body:has(> section.market-read) > .ryzm-dash .rg-note { font-size: 11.5px; line-height: 1.5; color: var(--text-muted); border: 0 !important; margin-top: 10px; padding: 0; }
body:has(> section.market-read) > .ryzm-dash .asset-panel { border: 0 !important; border-radius: 6px; background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); box-shadow: inset 3px 0 0 var(--nc, var(--rd-hair)); padding: 14px 16px; }
body:has(> section.market-read) > .ryzm-dash .ap-kicker, body:has(> section.market-read) > .ryzm-dash .ap-status, body:has(> section.market-read) > .ryzm-dash .tt-head { font-size: 10px; color: var(--text-muted); }
body:has(> section.market-read) > .ryzm-dash .ap-name { font-size: 15px; font-weight: 700; }
body:has(> section.market-read) > .ryzm-dash .ap-src { font-size: 11px; color: var(--text-muted); }
body:has(> section.market-read) > .ryzm-dash .ap-read { font-size: 12px; color: var(--text-2, var(--ink)); }
body:has(> section.market-read) > .ryzm-dash .ap-metrics { gap: 14px; }
body:has(> section.market-read) > .ryzm-dash .ap-m .k { font-size: 9.5px; color: var(--text-muted) !important; font-weight: 600; letter-spacing: .08em; }
body:has(> section.market-read) > .ryzm-dash .ap-m .v { font-size: 15px; font-weight: 700; }
body:has(> section.market-read) > .ryzm-dash .ap-track { border: 0 !important; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, var(--surface)) !important; }
body:has(> section.market-read) > .ryzm-dash .ap-fill { border-radius: 3px; }
body:has(> section.market-read) > .ryzm-dash .tt-list li .tt-bar { border: 0 !important; background: color-mix(in srgb, var(--ink) 10%, var(--surface)) !important; }
body:has(> section.market-read) > .ryzm-dash .ck-fine { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rd-hair); font-size: 10.5px; line-height: 1.6; color: var(--text-muted) !important; }
body:has(> section.market-read) > .ryzm-dash .ck-fine, body:has(> section.market-read) > .ryzm-dash .ck-fine-txt { font-size: 10.5px; color: var(--text-muted) !important; }

@media (max-width: 980px) {
  body:has(> section.market-read) > .ryzm-dash .ck-side { border-left: 0; padding-left: 0; }
  body:has(> section.market-read) > .ryzm-dash .ck-map { border-top: 1px solid var(--rd-hair) !important; padding: 18px 0 0; }
  body:has(> section.market-read) > .ryzm-dash .ck-compass { padding-right: 0; }
}
@media (max-width: 720px) {
  body:has(> section.market-read) > .ryzm-dash { padding: 20px 22px 14px !important; }
  body:has(> section.market-read) > .ryzm-dash .ck-head { padding-bottom: 14px; }
  body:has(> section.market-read) > .ryzm-dash .ck-grid { padding-top: 16px; }
  body:has(> section.market-read) > .ryzm-dash .ck-side { border-top: 1px solid var(--rd-hair); padding-top: 18px; margin-top: 12px; }
  body:has(> section.market-read) > .ryzm-dash .ck-title { font-size: 24px !important; line-height: 1.12 !important; }
  body:has(> section.market-read) > .ryzm-dash .rg-name { font-size: 28px !important; margin: 6px 0 12px !important; }
  body:has(> section.market-read) > .ryzm-dash .rg-nums dd { font-size: 24px; }
  body:has(> section.market-read) > .ryzm-dash .rg-note { margin-top: 12px; }
  body:has(> section.market-read) > .ryzm-dash .cmp-legend { margin-top: 12px; }
  body:has(> section.market-read) > .ryzm-dash .ck-fine { margin-top: 16px; }
}

/* ==========================================================================
   v10 (2026-12-03): home hero. Today's recap + What to watch, under the ticker.
   Content: data/home_hero.json, rendered by scripts/pipeline/home_hero.py.
   ========================================================================== */
body:has(> section.market-read) > .home-hero { order: 0; margin: 10px auto 36px !important; }
.home-hero {
  box-sizing: border-box; width: calc(100% - 72px); max-width: 1100px; margin: 10px auto 36px;
  color: var(--text); font-family: var(--sans);
}
.home-hero a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.home-hero h2, .home-hero h3, .home-hero p, .home-hero ul, .home-hero ol { margin: 0; padding: 0; }
.home-hero ul, .home-hero ol { list-style: none; }

.hh-nav { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 2px 8px; flex-wrap: wrap; }
.hh-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 20px; letter-spacing: -0.03em; text-decoration: none !important; }
.hh-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--surface);
  border-radius: 6px; font-size: 17px; font-weight: 900; letter-spacing: 0;
}
.hh-links { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; font-size: 14.5px; font-weight: 700; }
.hh-links a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.hh-links a:hover { border-bottom-color: var(--ink); }
.hh-soon { color: var(--text-muted); font-weight: 700; cursor: default; }
.hh-soon em {
  font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  border: 1.5px dashed var(--text-muted); border-radius: 4px; padding: 1px 6px; margin-left: 6px; color: var(--text-muted);
}

.hh-pulse {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px;
  background: var(--ink); color: var(--surface); border: var(--bd); border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em;
}
.hh-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--surface); }
.hh-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); display: inline-block; }
.hh-date, .hh-handoff { color: var(--surface); font-weight: 700; }
.hh-date::before, .hh-handoff::before, .hh-asof::before { content: "|"; margin-right: 18px; color: #8a857a; font-weight: 400; }
.hh-asof { color: #c9c3b6; margin-left: auto; }
.hh-asof::before { content: none; }

.hh-cards { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: stretch; }
.hh-card {
  background: var(--surface); border: var(--bd); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px 16px; display: flex; flex-direction: column; min-width: 0;
}
.hh-card .hh-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.hh-card h2 {
  align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border: var(--bd); border-radius: 999px; background: var(--yellow); color: var(--ink);
}
.hh-watch h2 { background: var(--mint); }
.hh-q { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; margin-top: 8px !important; }
.hh-take {
  font-size: 17.5px; font-weight: 800; line-height: 1.38; letter-spacing: -0.015em;
  border-left: 4px solid var(--yellow); padding: 2px 0 2px 14px; margin-bottom: 18px !important;
}
.hh-sec { padding-top: 12px; border-top: 1px dashed var(--border); margin-top: 6px; }
.hh-sec h3 { font-size: 12.5px; font-weight: 500; color: var(--text-muted); display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hh-k { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 7px; }
.hh-signal .hh-k { background: var(--mint); }
.hh-noise .hh-k { background: var(--coral); }
.hh-signal li { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.hh-signal li:last-child { border-bottom: 0; }
.hh-signal li strong { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.hh-signal li span { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.hh-chart { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--ink); }
.hh-spark { width: 132px; height: 36px; flex: none; }
.hh-chart .hh-chart-cap { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: .04em; }
.hh-noise li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.hh-x { flex: none; width: 20px; height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 4px; font-size: 11px; font-weight: 900; color: var(--ink); background: var(--surface); margin-top: 1px; }
.hh-tag { font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--surface-2); border-radius: 3px; padding: 1px 5px; margin-right: 4px; }
.hh-src { margin-top: auto !important; padding-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.hh-src a { color: var(--text-muted); }

.hh-watch ol { display: flex; flex-direction: column; }
.hh-watch li { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.hh-watch li:first-child { padding-top: 2px; }
.hh-watch li:last-child { border-bottom: 0; }
.hh-when { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--ink); }
.hh-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 11px; }
.hh-when em { font-style: normal; font-weight: 500; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }
.hh-watch h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; margin: 6px 0 6px !important; }
.hh-if { font-size: 14px; line-height: 1.55; color: var(--text-2); background: var(--surface-2); border-radius: 6px; padding: 8px 10px; }
.hh-if span { font-weight: 800; color: var(--ink); }

.hh-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; padding: 9px 16px;
  background: var(--yellow); border: var(--bd); border-radius: var(--radius); font-size: 14px; font-weight: 700;
}
.hh-cta { font-weight: 800; }
.hh-bar-note { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink); opacity: .8; }
.hh-book { margin-left: auto; color: var(--ink); }
.hh-book em { border-color: var(--ink); color: var(--ink); }

@media (max-width: 860px) {
  .hh-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body:has(> section.market-read) > .home-hero, .home-hero { width: calc(100% - 32px) !important; margin-top: 8px !important; }
  .hh-nav { padding-bottom: 8px; justify-content: flex-start; }
  .hh-links { gap: 2px 16px; font-size: 13.5px; }
  .hh-pulse { padding: 9px 12px; gap: 4px 12px; font-size: 11px; }
  .hh-date::before, .hh-handoff::before { content: none; }
  .hh-asof { margin-left: 0; flex-basis: 100%; }
  .hh-card { padding: 16px 16px 14px; }
  .hh-q { font-size: 19px; }
  .hh-take { font-size: 16px; }
  .hh-book { margin-left: 0; }
}

/* ==========================================================================
   v11 (2026-12-04): breathing room. Text was sitting too close to the
   viewport and to card edges: article/list pages used 18px side padding
   below 700px, the home column used 16px below 720px and 36px on desktop,
   and hero cards used 16px inner padding on small screens. CSS only;
   markup in protected regions is unchanged.
   ========================================================================== */
:root, :root[data-x] {
  --page-gutter: 32px;
  --page-gutter-sm: 24px;
}

/* Article, Close, /articles/, /closes/ and other inner pages. Home's
   <main> is display:contents, so this does not squeeze the home column. */
main {
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
}
@media (max-width: 700px) {
  main {
    padding-left: var(--page-gutter-sm) !important;
    padding-right: var(--page-gutter-sm) !important;
  }
}

/* ==========================================================================
   v13 (2026-12-05): compact home top. The hero keeps its recap, question and
   the three watch events on the first screen; the long detail (signal and
   noise, each event's "if" line) sits in native <details> that are closed by
   default (no JS, still in the page text). BREAKING follows the hero, ahead of
   the intro and market read, so its heading and first items show on the first
   screen at 1280x800, 1440x900 and 1920x1080.
   ========================================================================== */
.hh-card .hh-head { margin-bottom: 10px; }
.hh-cards { margin-top: 16px; }
.hh-bar { margin-top: 16px; }
body:has(> section.market-read) > .home-hero { margin-bottom: 28px !important; }
.hh-recap .hh-take { margin-bottom: 12px !important; }
.hh-more, .hh-ev { margin: 0; }
.hh-more > summary, .hh-ev > summary {
  list-style: none; cursor: pointer; position: relative; display: flex; align-items: center; gap: 6px 8px;
}
.hh-more > summary::-webkit-details-marker, .hh-ev > summary::-webkit-details-marker { display: none; }
.hh-more > summary::after, .hh-ev > summary::after {
  content: "+"; flex: none; margin-left: auto; width: 22px; height: 22px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); color: var(--ink);
  font-family: var(--mono); font-size: 14px; font-weight: 700; line-height: 1;
}
.hh-more[open] > summary::after, .hh-ev[open] > summary::after { content: "\2212"; background: var(--yellow); }
.hh-more > summary:focus-visible, .hh-ev > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.hh-more > summary {
  border-top: 1px dashed var(--border); padding: 10px 0 10px; font-size: 13px; font-weight: 700; color: var(--ink);
  flex-wrap: wrap;
}
.hh-more[open] > summary { padding-bottom: 2px; }
.hh-more > summary .hh-k { font-size: 10.5px; padding: 1px 6px; }
.hh-more > summary .hh-k:nth-of-type(1) { background: var(--mint); }
.hh-more > summary .hh-k:nth-of-type(2) { background: var(--coral); }
.hh-more .hh-sec:first-of-type { border-top: 0; margin-top: 0; }
.hh-more .hh-sec h3 .hh-k { display: none; }
.hh-more .hh-sec h3 { margin-bottom: 4px; }
.hh-recap .hh-src { padding-top: 10px; }
.hh-watch li { padding: 0; }
.hh-ev > summary { display: block; padding: 11px 38px 11px 0; }
.hh-ev > summary::after { position: absolute; right: 0; top: 11px; }
.hh-watch li:first-child .hh-ev > summary { padding-top: 2px; }
.hh-watch li:first-child .hh-ev > summary::after { top: 2px; }
.hh-ev .hh-when { display: flex; }
.hh-watch .hh-ev h3 { display: block; margin: 5px 0 0 !important; font-size: 15.5px; }
.hh-ev .hh-if { margin: 0 0 12px !important; }
.hh-watch .hh-src { padding-top: 10px; }
@media (max-width: 720px) {
  .hh-ev > summary { padding-right: 34px; }
}

/* Home sections are full-width boxes sized with a side gutter, not main padding. */
body:has(> section.market-read) > .intro,
body:has(> section.market-read) > .market-read,
body:has(> section.market-read) #breaking,
body:has(> section.market-read) .home-panels-wrap,
body:has(> section.market-read) > .ryzm-dash,
body:has(> section.market-read) .layout,
body:has(> section.market-read) #frameworks,
body:has(> section.market-read) > .subscribe,
body:has(> section.market-read) > .home-hero,
.home-hero {
  width: calc(100% - 96px) !important; /* 48px each side, was 36px */
}
@media (max-width: 1099px) {
  body:has(> section.market-read) > .intro,
  body:has(> section.market-read) > .market-read,
  body:has(> section.market-read) #breaking,
  body:has(> section.market-read) .home-panels-wrap,
  body:has(> section.market-read) > .ryzm-dash,
  body:has(> section.market-read) .layout,
  body:has(> section.market-read) #frameworks,
  body:has(> section.market-read) > .subscribe,
  body:has(> section.market-read) > .home-hero,
  .home-hero {
    width: calc(100% - 80px) !important; /* 40px each side */
  }
}
@media (max-width: 720px) {
  body:has(> section.market-read) > .intro,
  body:has(> section.market-read) > .market-read,
  body:has(> section.market-read) #breaking,
  body:has(> section.market-read) .home-panels-wrap,
  body:has(> section.market-read) > .ryzm-dash,
  body:has(> section.market-read) .layout,
  body:has(> section.market-read) #frameworks,
  body:has(> section.market-read) > .subscribe,
  body:has(> section.market-read) > .home-hero,
  .home-hero {
    width: calc(100% - 48px) !important; /* 24px each side, was 16px */
  }
}

/* Top bar: a little more room for the wordmark; keep the scrollable nav aligned. */
@media (max-width: 1099px) {
  body > header .header-top { padding-left: 20px !important; padding-right: 20px !important; }
  body > header nav {
    width: calc(100% + 40px) !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

footer {
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
}
@media (max-width: 900px) {
  footer {
    padding-left: var(--page-gutter-sm) !important;
    padding-right: var(--page-gutter-sm) !important;
  }
}

/* Hero and other cards: more inner padding, slightly easier line-height. */
.hh-card { padding: 24px 28px 20px !important; }
@media (max-width: 720px) {
  .hh-card { padding: 20px 22px 18px !important; }
}
.hh-take { padding: 2px 0 2px 16px !important; line-height: 1.45 !important; }
.hh-if { padding: 10px 14px !important; line-height: 1.6 !important; }
.hh-pulse { padding-left: 20px !important; padding-right: 20px !important; }
.hh-bar { padding-left: 20px !important; padding-right: 20px !important; }
@media (max-width: 720px) {
  .hh-pulse { padding-left: 16px !important; padding-right: 16px !important; }
  .hh-bar { padding-left: 16px !important; padding-right: 16px !important; }
}

.market-read { padding-left: 28px !important; padding-right: 28px !important; }
@media (max-width: 720px) {
  .market-read { padding: 20px 20px 10px !important; }
}
@media (max-width: 720px) {
  #breaking { padding-left: 20px !important; padding-right: 20px !important; }
}

#close-list { padding: 12px 24px 16px !important; }
.brief-card { padding: 22px 24px !important; }

.prose { line-height: 1.75 !important; max-width: 70ch !important; }

/* ==========================================================================
   v10 premium (2026-12-05): same layout and markup, a quieter finish.
   Tokens above swap 2px ink borders and hard offset shadows for hairlines and
   layered soft shadows. Here: Newsreader serif for editorial headlines, ink
   primary buttons with paper text, tinted label chips without outlines, and
   status colors that pass WCAG AA on paper (checked in jellykit Contrast
   Checker: green 5.24, red 5.25, amber #7d5f19 5.01 on page paper #f4f0e8). CSS only.
   ========================================================================== */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.footer-brand-line .footer-tag { font-family: var(--sans) !important; }

/* editorial headlines in serif; scan lists (Breaking, nav, labels) stay sans and mono */
.intro h1, .hh-q, h1.title, h1.page-title, .brief-title, .prose h2, .home-panel h2,
.item h3, .item h2, .brief-card h2, .rel-title, .related h2, .subscribe h2 {
  font-family: var(--serif) !important; font-weight: 500 !important; text-transform: none !important;
  letter-spacing: -0.018em !important; font-optical-sizing: auto;
}
.intro h1 { font-size: clamp(40px, 5.2vw, 74px) !important; line-height: 1.02 !important; letter-spacing: -0.028em !important; max-width: 13em !important; }
.intro h1 em {
  display: table !important; margin: 4px 0 0 !important; padding: 0 .06em !important; font-size: 1em;
  font-style: italic !important; font-weight: 400 !important; background: none !important; border: 0 !important;
  box-shadow: inset 0 -.26em 0 color-mix(in srgb, var(--yellow) 75%, transparent) !important;
}
.intro::after { background: transparent !important; border: 1px solid var(--line-2) !important; box-shadow: none !important; color: var(--text-2) !important; }
.prose h3 { font-family: var(--serif) !important; font-weight: 600 !important; letter-spacing: -0.01em !important; }
.subscribe h2 { font-size: clamp(28px, 3vw, 38px) !important; }

/* home hero cards */
.hh-q { font-size: 26px !important; font-weight: 500 !important; line-height: 1.15 !important; }
.hh-take {
  font-family: var(--serif); font-weight: 400 !important; font-size: 18.5px !important; line-height: 1.5 !important;
  letter-spacing: -0.004em !important; color: var(--text); border-left: 2px solid var(--yellow) !important;
}
.hh-watch h3 { font-weight: 700 !important; }
.hh-card { padding: 24px 26px 18px !important; }
.hh-card h2, .hh-k, .tag, .cat-label, .brief-card-cat { border-color: transparent !important; }
.hh-card h2 { background: color-mix(in srgb, var(--yellow) 60%, var(--surface)) !important; }
.hh-watch h2 { background: color-mix(in srgb, var(--mint) 40%, var(--surface)) !important; }
.hh-signal .hh-k, .hh-more > summary .hh-k:nth-of-type(1) { background: color-mix(in srgb, var(--mint) 45%, var(--surface)) !important; }
.hh-noise .hh-k, .hh-more > summary .hh-k:nth-of-type(2) { background: color-mix(in srgb, var(--coral) 40%, var(--surface)) !important; }
.tag, .cat-label, .brief-card-cat { background: var(--surface-2) !important; font-weight: 600 !important; }
.tag.high, .tag.red { background: #fbe3de !important; }
.tag.green { background: #ddf1e6 !important; }
.tag.blue { background: #e4e9f8 !important; }
.tag.mid { background: #f8ecc6 !important; }

/* the subscribe strip: paper card with one ink action instead of a full yellow block */
.hh-bar { background: var(--surface) !important; box-shadow: var(--shadow-1); padding: 12px 18px !important; }
.hh-cta { display: inline-flex; align-items: center; gap: 8px; }
.hh-cta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.hh-bar-note { color: var(--text-muted) !important; opacity: 1 !important; }

/* primary actions: ink with paper text; yellow stays as the small accent dot */
.header-cta, .intro-sub, .btn-subscribe, .subscribe .sub-form button {
  background: var(--ink) !important; color: var(--surface) !important; border: 1px solid var(--ink) !important;
}
.header-cta::before { background: var(--yellow) !important; }
.header-cta:hover, .intro-sub:hover, .btn-subscribe:hover, .subscribe .sub-form button:hover { background: #000 !important; color: #fff !important; }
.intro-mem, .feed-more, .pill { border: 1px solid var(--line-2) !important; }
.card-box, .market-read, #breaking, .home-panel, body > .ryzm-dash, .calendar-card, .fw-card, .subscribe-inner, .hh-card, .brief-card {
  transition: box-shadow .18s ease, transform .18s ease;
}
@media (hover: hover) {
  .fw-card:hover, .brief-card:hover { box-shadow: var(--shadow-lift) !important; transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .fw-card:hover, .brief-card:hover { transform: none; }
}

/* Breaking: lighter rules, quieter weight */
.breaking-list summary, .breaking-list .b-head { font-weight: 600 !important; }
#breaking li { border-bottom-style: solid !important; border-bottom-color: var(--line) !important; }

/* cards that v6 flattened get the lightest layered shadow so they sit on the paper */
.card-box, #breaking, .home-panel, body > .ryzm-dash, .calendar-card, .fw-card, .subscribe-inner, #close-list { box-shadow: var(--shadow-1) !important; }
.home-panel h3 { font-family: var(--serif) !important; font-weight: 500 !important; font-size: 18.5px !important; line-height: 1.25 !important; letter-spacing: -0.01em !important; }
.market-read .mr-row:first-child dd strong { border-color: transparent !important; background: color-mix(in srgb, var(--lilac) 55%, var(--surface)) !important; font-weight: 700 !important; }
.fw-card h4, .ryzm-dash .ck-title { font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -0.012em !important; }
.fw-card h4 { font-size: 21px !important; line-height: 1.2 !important; }

/* dial header: title on its own row, scenario pills below it, so the pills never run past the card edge */
.ryzm-dash .ck-head { flex-wrap: wrap !important; }
.ryzm-dash .ck-head > div:first-child { flex: 1 1 100% !important; }
.ryzm-dash .ck-head .sc-row { flex: 1 1 100% !important; flex-wrap: wrap !important; justify-content: flex-start !important; }

/* subscribe: an ink band with paper text and the one yellow action */
.subscribe-inner { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--surface) !important; }
.subscribe h2, .subscribe p, .subscribe .sub-status, .subscribe .eyebrow, .subscribe .sub-kicker, .subscribe small, .subscribe .sub-note { color: var(--surface) !important; }
.subscribe p, .subscribe .sub-note, .subscribe small { opacity: .86; }
.subscribe a { color: var(--yellow) !important; }
.subscribe .sub-form input { background: #fffdf8 !important; color: var(--ink) !important; border-color: transparent !important; }
.subscribe .sub-form button { background: var(--yellow) !important; color: var(--ink) !important; border-color: var(--yellow) !important; }
.subscribe .sub-form button:hover { background: #ffe27a !important; color: var(--ink) !important; }
.ryzm-dash .rg-name { font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -0.015em !important; }
@media (max-width: 720px) {
  .hh-card { padding: 18px 18px 14px !important; }
  .hh-q { font-size: 23px !important; }
  .hh-take { font-size: 17px !important; line-height: 1.48 !important; }
}
/* long article and brief titles: serif at a calmer size so a 12-word headline stays within three lines */
h1.title, h1.page-title, .brief-title { font-size: clamp(32px, 3.6vw, 50px) !important; line-height: 1.07 !important; letter-spacing: -0.02em !important; text-wrap: balance; }

/* ---------- v10 review fixes (research bot, 12/5) ---------- */
/* 1) dial sliders: two columns at every desktop width, the note on its own row, so +20 / -38 never sit on the axis words */
body:has(> section.market-read) > .ryzm-dash .ck-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
body:has(> section.market-read) > .ryzm-dash .ck-controls .sc-note { grid-column: 1 / -1 !important; }
@media (max-width: 720px) {
  body:has(> section.market-read) > .ryzm-dash .ck-controls { grid-template-columns: minmax(0, 1fr) !important; }
}
/* 2) tool page titles join the serif headlines */
.tool-title { font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -0.018em !important; text-transform: none !important; }
/* 3) active scenario: ink with paper text and a yellow dot, like every other primary control */
.ryzm-dash .sc-pill[aria-pressed="true"],
body:has(> section.market-read) > .ryzm-dash .sc-pill[aria-pressed="true"] { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--surface) !important; }
.ryzm-dash .sc-pill[aria-pressed="true"]::before { background: var(--yellow) !important; box-shadow: none !important; }
/* 4) /subscribe/ form button matches the 6px input and the ink buttons */
.sub-page-box .sub-form button, .sub-form button { border-radius: 6px !important; background: var(--ink) !important; color: var(--surface) !important; border: 1px solid var(--ink) !important; }
.sub-page-box .sub-form button:hover, .sub-form button:hover { background: #000 !important; color: #fff !important; }
.subscribe .sub-form button { background: var(--yellow) !important; color: var(--ink) !important; border-color: var(--yellow) !important; }
.subscribe .sub-form button:hover { background: #ffe27a !important; color: var(--ink) !important; }
/* 5) home subscribe strip: a soft yellow wash and an ink arrow so the call to action reads first */
.hh-bar { background: color-mix(in srgb, var(--yellow) 22%, var(--surface)) !important; border-color: color-mix(in srgb, var(--yellow) 60%, var(--ink) 12%) !important; }
.hh-cta { text-decoration: underline !important; text-decoration-thickness: 1.5px !important; text-underline-offset: 4px; }
.hh-cta::after { content: "\2192"; margin-left: 2px; text-decoration: none; }

/* ==========================================================================
   v11 dark premium (2026-12-05): night-desk theme. Near-black paper, warm
   ivory text, one champagne-gold accent, soft depth instead of borders.
   Same layout and markup; tokens first, then the few hard-coded spots.
   ========================================================================== */
:root, :root[data-x] {
  color-scheme: dark;
  --bg: #0b0c0e; --surface: #131518; --surface-2: #181b1f; --surface-3: #1f2328;
  --border: rgba(236,229,214,.10); --border-strong: rgba(236,229,214,.22);
  --text: #ece5d6; --text-2: #c9c2b3; --text-muted: #9a9385;
  --ink: #ece5d6; --accent: #d6b36a; --accent-ink: #e6c987; --accent-soft: rgba(214,179,106,.12);
  --gold: #d6b36a; --gold-2: #e8cf95; --gold-deep: #a8853f;
  --yellow: #d6b36a; --mint: #5fbf8f; --coral: #e88a6e; --lilac: #9d8ee0; --sky: #7fa2ff; --pink: #e58fb8; --sand: #c9a774;
  --seal: #e0705c; --green: #6fcf9e; --red: #f08470; --amber: #e3bd66; --blue: #94b0ff; --purple: #b6a6ee;
  --ink-band: #08090a; --ink-band-text: #c9c2b3;
  --line: rgba(236,229,214,.08); --line-2: rgba(236,229,214,.14);
  --shadow-1: 0 0 0 1px rgba(236,229,214,.02), 0 1px 2px rgba(0,0,0,.5);
  --shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 1px 2px rgba(0,0,0,.45), 0 24px 48px -28px rgba(0,0,0,.9);
  --shadow-lift: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 6px rgba(0,0,0,.5), 0 30px 60px -28px rgba(0,0,0,.95);
  --rd-bg: #131518; --rd-surface: #131518; --rd-surface-2: #1a1d21;
  --rd-border: rgba(236,229,214,.10); --rd-border-strong: rgba(236,229,214,.22);
  --rd-text: #ece5d6; --rd-text-2: #c9c2b3; --rd-text-muted: #9a9385;
  --rd-ink: #ece5d6; --rd-ink-line: rgba(236,229,214,.30); --rd-hair: rgba(236,229,214,.10); --rd-rule: rgba(236,229,214,.10); --rd-rule-strong: rgba(236,229,214,.30);
  --rd-accent: #d6b36a; --rd-accent-ink: #e6c987; --rd-terra: #d6b36a; --rd-terra-ink: #e6c987;
}
html, body { background: var(--bg) !important; color: var(--text); }

::selection { background: rgba(214,179,106,.35); color: #fff; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline-color: var(--gold) !important; }

/* chrome: sidebar, top bar, ticker */
body > header { background: rgba(11,12,14,.92) !important; }
@media (min-width: 1100px) { body > header { background: #0e1012 !important; border-right: 1px solid var(--line) !important; } }
.ticker-bar { background: #0e1012 !important; border-bottom: 1px solid var(--line) !important; }
.ticker-item strong { background: transparent !important; color: var(--gold-2) !important; border-color: rgba(214,179,106,.35) !important; }
body > header nav a { color: var(--text-2) !important; }
body > header nav a:hover, body > header nav a.active { color: var(--gold-2) !important; }

/* cards: lifted dark glass */
.card-box, .market-read, #breaking, .home-panel, body > .ryzm-dash, .calendar-card, .fw-card, .subscribe-inner, .hh-card, .brief-card, #close-list, .ledger table, .prose table, .hh-bar {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 40%), var(--surface) !important;
  border: 1px solid var(--line) !important;
}
.hh-pulse { background: #08090a !important; border: 1px solid rgba(214,179,106,.25) !important; }
.hh-live, .hh-date, .hh-handoff { color: var(--gold-2) !important; }
.hh-asof { color: var(--text-muted) !important; }

/* labels and chips: gold hairline, no fills */
.hh-card h2, .hh-watch h2, .hh-k, .hh-signal .hh-k, .hh-noise .hh-k, .hh-more > summary .hh-k:nth-of-type(1), .hh-more > summary .hh-k:nth-of-type(2),
.tag, .cat-label, .brief-card-cat, .tag.high, .tag.red, .tag.green, .tag.blue, .tag.mid, .hh-tag {
  background: transparent !important; color: var(--gold-2) !important; border: 1px solid rgba(214,179,106,.35) !important;
}
.hh-watch h2, .hh-signal .hh-k, .hh-more > summary .hh-k:nth-of-type(1), .tag.green { color: var(--green) !important; border-color: rgba(111,207,158,.35) !important; }
.hh-noise .hh-k, .hh-more > summary .hh-k:nth-of-type(2), .tag.high, .tag.red { color: var(--red) !important; border-color: rgba(240,132,112,.35) !important; }
.tag.blue { color: var(--blue) !important; border-color: rgba(148,176,255,.35) !important; }
.section-title { color: var(--gold-2) !important; }
.section-title::before { background: var(--gold) !important; border: 0 !important; }
#breaking .section-title::before { background: var(--seal) !important; box-shadow: 0 0 0 4px rgba(224,112,92,.18) !important; }

/* headlines: ivory serif; the italic tagline in gold */
h1, h2, h3, h4, .hh-q, .intro h1 { color: var(--text) !important; }
.intro h1 em { color: var(--gold-2) !important; box-shadow: none !important; }
.hh-take { color: var(--text) !important; border-left-color: var(--gold) !important; }
.intro::after { color: var(--gold-2) !important; border-color: rgba(214,179,106,.35) !important; }

/* buttons: champagne gold primary, ghost secondary */
.header-cta, .intro-sub, .btn-subscribe, .subscribe .sub-form button, .sub-page-box .sub-form button, .sub-form button, .ryzm-dash .sc-pill[aria-pressed="true"],
body:has(> section.market-read) > .ryzm-dash .sc-pill[aria-pressed="true"] {
  background: linear-gradient(180deg, #e3c37f, #c9a35a) !important; color: #141210 !important; border: 1px solid #e8cf95 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px -12px rgba(214,179,106,.55) !important;
}
.header-cta::before, .ryzm-dash .sc-pill[aria-pressed="true"]::before { background: #141210 !important; }
.header-cta:hover, .intro-sub:hover, .btn-subscribe:hover, .subscribe .sub-form button:hover, .sub-form button:hover { background: linear-gradient(180deg, #ecd096, #d6b36a) !important; color: #141210 !important; }
.intro-mem, .feed-more, .pill, .ryzm-dash .sc-pill, .ryzm-dash .ck-tag, .ryzm-dash .ck-mode, .ryzm-dash .ck-reset, .ryzm-dash .ap-chip {
  background: transparent !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; box-shadow: none !important;
}
.intro-mem:hover, .feed-more:hover, .pill:hover, .ryzm-dash .sc-pill:hover { border-color: rgba(214,179,106,.55) !important; color: var(--gold-2) !important; }
input[type="email"], input[type="search"], input[type="text"], .subscribe .sub-form input { background: #0e1012 !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; }
input::placeholder { color: #6f6a61 !important; }

/* home strip and subscribe band */
.hh-bar { border-color: rgba(214,179,106,.30) !important; }
.hh-cta, .hh-book { color: var(--gold-2) !important; }
.hh-cta::before { background: var(--gold) !important; box-shadow: 0 0 0 4px rgba(214,179,106,.18) !important; }
.subscribe-inner { background: radial-gradient(700px 300px at 100% 0%, rgba(214,179,106,.16), transparent 60%), #101215 !important; border: 1px solid rgba(214,179,106,.28) !important; }
.subscribe h2, .subscribe p { color: var(--text) !important; }

/* market read, breaking, panels */
.market-read .mr-row:first-child dd strong { background: rgba(157,142,224,.16) !important; color: #cfc5ff !important; }
#breaking li { border-bottom-color: var(--line) !important; }
.hh-if { background: var(--surface-3) !important; color: var(--text-2) !important; }
.hh-x { border-color: var(--line-2) !important; color: var(--text) !important; background: transparent !important; }
.hh-sec, .hh-watch li, .hh-signal li { border-color: var(--line) !important; }

/* footer */
body > footer { background: #08090a !important; border-top: 1px solid var(--line) !important; color: var(--text-2) !important; }
body > footer a { color: var(--text-2) !important; }
body > footer a:hover { color: var(--gold-2) !important; }

/* article reading: ivory on charcoal, gold links, framed figures */
.prose { color: #ddd6c7 !important; }
.prose a, .hh-src a { color: var(--gold-2) !important; text-decoration-color: rgba(214,179,106,.5) !important; }
.prose strong { color: var(--text) !important; }
.prose blockquote { border-left-color: var(--gold) !important; color: var(--text-2) !important; }
.prose img, .prose figure img { border: 1px solid var(--line) !important; border-radius: 12px !important; }
.prose hr { border-color: var(--line) !important; }
code, pre { background: #0e1012 !important; color: var(--gold-2) !important; }

/* dashboard tokens are scoped on .ryzm-dash[data-theme="paper"], so the dark values must be set there too */
.ryzm-dash, .ryzm-dash[data-theme], .ryzm-dash[data-theme="paper"] {
  --rd-bg: #131518; --rd-surface: #131518; --rd-surface-2: #1a1d21;
  --rd-border: rgba(236,229,214,.10); --rd-border-strong: rgba(236,229,214,.22);
  --rd-text: #ece5d6; --rd-text-2: #c9c2b3; --rd-text-muted: #9a9385;
  --rd-ink: #ece5d6; --rd-ink-line: rgba(236,229,214,.30); --rd-hair: rgba(236,229,214,.10); --rd-rule: rgba(236,229,214,.10); --rd-rule-strong: rgba(236,229,214,.30);
  --rd-accent: #d6b36a; --rd-accent-ink: #e6c987; --rd-terra: #d6b36a; --rd-terra-ink: #e6c987;
  color: var(--text);
}
body:has(> section.market-read) > .ryzm-dash { --rd-hair: rgba(236,229,214,.10); }
.ryzm-dash .asset-panel { background: var(--surface-3) !important; }
.ryzm-dash .asset-panel #ap-group { background: color-mix(in srgb, var(--nc, var(--gold)) 22%, transparent) !important; color: var(--text) !important; border-color: color-mix(in srgb, var(--nc, var(--gold)) 55%, transparent) !important; }
.ryzm-dash .ck-slider input[type=range]::-webkit-slider-thumb { background: var(--gold) !important; border-color: #141210 !important; }
.ryzm-dash .ck-slider input[type=range]::-moz-range-thumb { background: var(--gold) !important; border-color: #141210 !important; }
.fw-card .fw-num, .fw-card .num { color: #141210 !important; }

/* ==========================================================================
   v11b (2026-12-05): bolder dark. Instrument Serif display type, a cinematic
   first screen (title, then the market board, then today's cards), glass cards
   with gold edges, and quiet motion. CSS only; every element and number stays
   in the page, only the order and finish change. Motion is off under
   prefers-reduced-motion.
   ========================================================================== */
:root, :root[data-x] {
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --gold-grad: linear-gradient(100deg, #b8924a 0%, #f1dca6 28%, #d6b36a 52%, #fff1c9 70%, #c9a35a 100%);
  --edge: linear-gradient(140deg, rgba(232,207,149,.55), rgba(232,207,149,.06) 38%, rgba(232,207,149,.04) 62%, rgba(232,207,149,.35));
  --glass: rgba(19,21,24,.72);
}
.ryzm-dash, .ryzm-dash[data-theme], .ryzm-dash[data-theme="paper"] { --rd-serif: "Instrument Serif", Georgia, serif; }

/* Instrument Serif has one weight: never fake-bold it */
.intro h1, .hh-q, h1.title, h1.page-title, .brief-title, .prose h2, .prose h3, .home-panel h2, .home-panel h3,
.item h3, .item h2, .brief-card h2, .rel-title, .related h2, .subscribe h2, .fw-card h4, .tool-title,
.ryzm-dash .ck-title, .ryzm-dash .rg-name, .ryzm-dash .ap-name {
  font-family: var(--display) !important; font-weight: 400 !important; letter-spacing: -0.01em !important;
}
.hh-q { font-size: 30px !important; }
.home-panel h3 { font-size: 21px !important; line-height: 1.2 !important; }
.fw-card h4 { font-size: 24px !important; }
h1.title, h1.page-title, .brief-title { font-size: clamp(36px, 4.2vw, 58px) !important; line-height: 1.04 !important; }
.prose h2 { font-size: 32px !important; }
.prose h3 { font-size: 24px !important; }
.hh-take { font-family: var(--sans) !important; font-size: 16.5px !important; line-height: 1.62 !important; color: #ddd6c7 !important; }

/* body: deeper glow and a faint grain */
body {
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgba(214,179,106,.13), transparent 62%),
    radial-gradient(700px 500px at 8% 30%, rgba(95,191,143,.05), transparent 60%),
    url("/assets/img/grain.svg") !important;
  background-attachment: scroll !important; background-repeat: no-repeat, no-repeat, repeat !important;
}

/* ---------- first screen on the home page: title, market board, today's cards ---------- */
body:has(> section.market-read) > .intro { order: -1; }
body:has(> section.market-read) > .ticker-bar { order: 0; }
body:has(> section.market-read) > .home-hero { order: 0; }

body:has(> section.market-read) > .intro {
  position: relative; padding: 64px 0 26px !important; text-align: left;
}
body:has(> section.market-read) > .intro::before {
  content: "" !important; display: block !important; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: -40px; height: 420px;
  background: radial-gradient(520px 260px at 70% 40%, rgba(214,179,106,.20), transparent 70%);
  filter: blur(8px);
}
body:has(> section.market-read) > .intro h1 {
  font-size: clamp(54px, 8.2vw, 118px) !important; line-height: .94 !important; letter-spacing: -0.025em !important; max-width: 12em !important;
}
.intro h1 em {
  font-style: italic !important; padding-right: .08em !important;
  background: var(--gold-grad) !important; background-size: 220% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent;
}
body:has(> section.market-read) > .intro .intro-lead { font-size: 20px !important; color: var(--text-2) !important; max-width: 34em !important; }

/* market board: the snapshot strip becomes big sourced numbers */
body:has(> section.market-read) > .ticker-bar {
  position: static !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
  overflow: visible !important; height: auto !important;
  box-sizing: border-box; width: calc(100% - 96px) !important; max-width: 1100px !important; margin-left: auto !important; margin-right: auto !important;
}
@media (max-width: 1099px) { body:has(> section.market-read) > .ticker-bar { width: calc(100% - 80px) !important; } }
@media (max-width: 720px) { body:has(> section.market-read) > .ticker-bar { width: calc(100% - 48px) !important; } }
html, body { overflow-x: clip; }
body:has(> section.market-read) > .ticker-bar .ticker-inner {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px !important;
  min-height: 0 !important; height: auto !important; padding: 0 !important; white-space: normal !important; overflow: visible !important;
  animation: none !important; transform: none !important;
}
body:has(> section.market-read) > .ticker-bar .ticker-label {
  display: block !important; grid-column: 1 / -1; padding: 0 0 2px !important; border: 0 !important; line-height: 1.4 !important;
  font-family: var(--mono) !important; font-size: 11px !important; letter-spacing: .16em !important; color: var(--gold-2) !important; text-transform: uppercase;
}
body:has(> section.market-read) > .ticker-bar .ticker-item {
  display: flex !important; flex-direction: column; align-items: flex-start; gap: 6px; position: relative;
  padding: 16px 18px 14px !important; border-radius: 14px; min-width: 0;
  font-family: var(--display) !important; font-size: clamp(26px, 2.5vw, 34px) !important; line-height: 1.05 !important; color: var(--text) !important;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em;
  border: 1px solid transparent !important;
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box !important;
  box-shadow: var(--shadow) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
body:has(> section.market-read) > .ticker-bar .ticker-item strong {
  order: -1; font-family: var(--mono) !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .12em !important;
  color: var(--gold-2) !important; background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important;
}
body:has(> section.market-read) > .ticker-bar .ticker-item em,
body:has(> section.market-read) > .ticker-bar .ticker-item .tk-basis {
  font-family: var(--mono) !important; font-style: normal !important; font-size: 10.5px !important; letter-spacing: .06em; color: var(--text-muted) !important; margin: 0 !important;
}
body:has(> section.market-read) > .ticker-bar .ticker-item .tk-basis { position: absolute; top: 16px; right: 16px; text-transform: uppercase; }
body:has(> section.market-read) > .ticker-bar .ticker-stamp {
  justify-content: center; font-family: var(--mono) !important; font-size: 11px !important; line-height: 1.5 !important; color: var(--text-muted) !important;
  background: transparent !important; border: 1px dashed var(--line-2) !important; box-shadow: none !important; padding: 16px 18px !important;
}
@media (hover: hover) {
  body:has(> section.market-read) > .ticker-bar .ticker-item:not(.ticker-stamp):hover { transform: translateY(-2px); box-shadow: var(--shadow-lift), 0 0 0 1px rgba(232,207,149,.25) !important; }
}
body:has(> section.market-read) > .home-hero { margin-top: 26px !important; }

/* glass cards with a gold edge */
.hh-card, #breaking, .market-read, .home-panel, body > .ryzm-dash, .fw-card, .calendar-card, .brief-card, .hh-bar {
  border: 1px solid transparent !important;
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box !important;
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
}
.hh-card, .fw-card, .home-panel, .brief-card { transition: transform .25s ease, box-shadow .25s ease !important; }
@media (hover: hover) {
  .hh-card:hover, .fw-card:hover, .home-panel:hover, .brief-card:hover { transform: translateY(-3px) !important; box-shadow: var(--shadow-lift), 0 0 0 1px rgba(232,207,149,.22), 0 18px 60px -30px rgba(214,179,106,.45) !important; }
}
.fw-card .fw-num, .fw-card .num { background: var(--gold-grad) !important; }

/* ---------- motion ---------- */
@keyframes rz-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rz-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -120% 0; } }
@keyframes rz-pulse { 0% { box-shadow: 0 0 0 0 rgba(95,191,143,.55); } 70% { box-shadow: 0 0 0 9px rgba(95,191,143,0); } 100% { box-shadow: 0 0 0 0 rgba(95,191,143,0); } }
@keyframes rz-pulse-red { 0% { box-shadow: 0 0 0 0 rgba(224,112,92,.55); } 70% { box-shadow: 0 0 0 9px rgba(224,112,92,0); } 100% { box-shadow: 0 0 0 0 rgba(224,112,92,0); } }
@media (prefers-reduced-motion: no-preference) {
  body:has(> section.market-read) > .intro::after,
  body:has(> section.market-read) > .intro h1,
  body:has(> section.market-read) > .intro .intro-row { animation: rz-rise .8s cubic-bezier(.2,.7,.2,1) both; }
  body:has(> section.market-read) > .intro h1 { animation-delay: .08s; }
  body:has(> section.market-read) > .intro .intro-row { animation-delay: .22s; }
  .intro h1 em { animation: rz-shimmer 7s ease-in-out 1s infinite; }
  body:has(> section.market-read) > .ticker-bar .ticker-item { animation: rz-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  body:has(> section.market-read) > .ticker-bar .ticker-item:nth-of-type(2) { animation-delay: .30s; }
  body:has(> section.market-read) > .ticker-bar .ticker-item:nth-of-type(3) { animation-delay: .36s; }
  body:has(> section.market-read) > .ticker-bar .ticker-item:nth-of-type(4) { animation-delay: .42s; }
  body:has(> section.market-read) > .ticker-bar .ticker-item:nth-of-type(5) { animation-delay: .48s; }
  body:has(> section.market-read) > .ticker-bar .ticker-item:nth-of-type(6) { animation-delay: .54s; }
  body:has(> section.market-read) > .ticker-bar .ticker-item:nth-of-type(7) { animation-delay: .60s; }
  body:has(> section.market-read) > .ticker-bar .ticker-item:nth-of-type(8) { animation-delay: .66s; }
  body:has(> section.market-read) > .ticker-bar .ticker-item:nth-of-type(9) { animation-delay: .72s; }
  .home-hero .hh-card { animation: rz-rise .8s cubic-bezier(.2,.7,.2,1) .7s both; }
  .home-hero .hh-card + .hh-card { animation-delay: .8s; }
  .hh-live i { animation: rz-pulse 2.4s ease-out infinite; }
  #breaking .section-title::before { animation: rz-pulse-red 2.4s ease-out infinite; }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  body:has(> section.market-read) > .intro { padding: 30px 0 14px !important; }
  body:has(> section.market-read) > .intro h1 { font-size: clamp(44px, 13vw, 60px) !important; }
  body:has(> section.market-read) > .intro .intro-lead { display: block !important; font-size: 16.5px !important; }
  body:has(> section.market-read) > .ticker-bar .ticker-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
  body:has(> section.market-read) > .ticker-bar .ticker-item { padding: 12px 12px 10px !important; font-size: 24px !important; border-radius: 12px; }
  body:has(> section.market-read) > .ticker-bar .ticker-item .tk-basis { position: static; }
  body:has(> section.market-read) > .ticker-bar .ticker-stamp { grid-column: 1 / -1; padding: 10px !important; }
  body:has(> section.market-read) > .ticker-bar { box-shadow: none !important; }
  .hh-q { font-size: 26px !important; }
}
.subscribe h2 { font-size: clamp(36px, 4vw, 52px) !important; line-height: 1.02 !important; }
.subscribe h2 em, .subscribe h2 i { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   v12 magazine (2026-12-05): photos next to the news. Every Breaking item,
   Feed card, article and brief link gets a CC0 / public-domain photo picked by
   scripts/pipeline/thumbs.py (assets/css/thumbs.css sets --thumb and --photo).
   Markup is unchanged; the images are decorative backgrounds.
   ========================================================================== */
:root { --thumb-fallback: url("/assets/img/photos/s/news-1.webp"); --photo-fallback: url("/assets/img/photos/news-1.webp"); }
.rz-ph, .breaking-list li[data-src]::after, .feed .card::before, .panel-feature::before, .feat-item::before,
.item::before, .brief-card::before, .rel-item::before, .fw-card::after, .hh-recap::before {
  content: ""; display: block; background-color: #1a1d21; background-size: cover; background-position: center;
  border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(236,229,214,.08);
  filter: saturate(.92) contrast(1.04);
}

/* Breaking: photo left, then time and tag, headline, source */
.breaking-list li[data-src] { grid-template-columns: 112px minmax(0, 1fr) !important; column-gap: 16px !important; row-gap: 5px !important; }
.breaking-list li[data-src]::after {
  grid-column: 1; grid-row: 1 / span 3; width: 112px; aspect-ratio: 4 / 3; align-self: start;
  background-image: var(--thumb, var(--thumb-fallback));
}
.breaking-list li[data-src] > .b-time { grid-column: 2 !important; grid-row: 1 !important; margin: 0 !important; }
.breaking-list li[data-src] > .tag { grid-column: 2 !important; grid-row: 1 !important; justify-self: end; align-self: start; width: auto !important; }
.breaking-list li[data-src] > .b-more { grid-column: 2 !important; grid-row: 2 !important; }
.breaking-list li[data-src] > .b-src { grid-column: 2 !important; grid-row: 3 !important; }

/* Feed: magazine rows with a 16:10 photo */
.feed .card { display: grid !important; grid-template-columns: 220px minmax(0, 1fr); column-gap: 24px; align-items: start; }
.feed .card > * { grid-column: 2; }
.feed .card::before { grid-column: 1; grid-row: 1 / span 4; width: 220px; aspect-ratio: 16 / 10; background-image: var(--thumb, var(--thumb-fallback)); }

/* Home panels: a big photo for the latest brief, small ones for research */
.panel-feature { display: block; }
.panel-feature::before { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 14px; background-image: var(--photo, var(--photo-fallback)); }
.feat-item { display: grid !important; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.feat-item > * { grid-column: 2; }
.feat-item::before { grid-column: 1; grid-row: 1 / span 3; width: 92px; aspect-ratio: 1 / 1; background-image: var(--thumb, var(--thumb-fallback)); }

/* Article list, brief list and related links */
.item { display: grid !important; grid-template-columns: 200px minmax(0, 1fr); column-gap: 22px; align-items: start; }
.item > * { grid-column: 2; }
.item::before { grid-column: 1; grid-row: 1 / span 3; width: 200px; aspect-ratio: 16 / 10; background-image: var(--thumb, var(--thumb-fallback)); }
.brief-card { display: grid !important; grid-template-columns: 220px minmax(0, 1fr); column-gap: 22px; align-items: start; }
.brief-card > * { grid-column: 2; }
.brief-card::before { grid-column: 1; grid-row: 1 / span 3; width: 220px; aspect-ratio: 16 / 10; background-image: var(--thumb, var(--thumb-fallback)); }
.rel-item { display: grid !important; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.rel-item > * { grid-column: 2; }
.rel-item::before { grid-column: 1; grid-row: 1 / span 3; width: 96px; aspect-ratio: 4 / 3; background-image: var(--thumb, var(--thumb-fallback)); }

/* Framework cards: photo on top, the number stays */
.fw-card { display: flex !important; flex-direction: column; }
.fw-card::after { order: -1; width: calc(100% + 40px); margin: -20px -20px 16px; aspect-ratio: 16 / 9; border-radius: 12px 12px 0 0; background-image: var(--photo, var(--photo-fallback)); }

/* Home recap card: a photo band across the top, fading into the card */
.hh-recap::before {
  margin: -24px -26px 18px; height: 168px; border-radius: 14px 14px 0 0;
  background-image: linear-gradient(180deg, rgba(19,21,24,0) 35%, rgba(19,21,24,.92)), var(--photo, var(--photo-fallback));
}

/* Article and brief pages: a wide hero photo above the title */
.article-head::before, .brief-head::before {
  content: ""; display: none; width: 100%; aspect-ratio: 21 / 9; max-height: 380px; margin: 0 0 26px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(11,12,14,0) 55%, rgba(11,12,14,.55)), var(--hero, none) center / cover no-repeat, #1a1d21;
  box-shadow: inset 0 0 0 1px rgba(236,229,214,.08), var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .feed .card::before, .item::before, .brief-card::before, .panel-feature::before, .fw-card::after { transition: transform .5s ease, filter .3s ease; }
  .feed .card:hover::before, .item:hover::before, .brief-card:hover::before, .panel-feature:hover::before { filter: saturate(1.05) contrast(1.06) brightness(1.06); }
}

@media (max-width: 720px) {
  .breaking-list li[data-src] { grid-template-columns: 88px minmax(0, 1fr) !important; }
  .breaking-list li[data-src]::after { width: 88px; }
  .feed .card, .item, .brief-card { grid-template-columns: minmax(0, 1fr); }
  .feed .card > *, .item > *, .brief-card > * { grid-column: 1; }
  .feed .card::before, .item::before, .brief-card::before { grid-column: 1; grid-row: 1; order: -1; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 12px; }
  .hh-recap::before { margin: -18px -18px 14px; height: 130px; }
  .article-head::before, .brief-head::before { aspect-ratio: 16 / 9; margin-bottom: 18px; }
}

/* Markets: fixed in the right gutter, inline on smaller screens. */
:root { --market-rail-width: clamp(340px, 20vw, 392px); }
.mkt-rail {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 780px);
  margin: 24px auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--sans);
}
.mkt-rail :focus-visible, .mkt-rail:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mkr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mkr-title { margin: 0; font: 400 34px/1 var(--display); color: var(--ink); }
.mkr-dial, .mkr-credit a { color: var(--gold-2); text-underline-offset: 3px; }
.mkr-dial { font-size: 13px; white-space: nowrap; }
.mkr-quotes { margin-top: 12px; }
.mkr-summary {
  cursor: pointer; min-height: 44px; padding: 11px 0;
  box-sizing: border-box; border-top: 1px solid var(--border);
  color: var(--text); font-size: 14px;
}
.mkr-chart, .mkr-list { min-width: 0; }
.mkr-chart { --chart-height: 440px; }
.mkr-chart .mkr-widget {
  /* The autosizing embed writes a percentage height inline. */
  height: var(--chart-height) !important;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: #121416;
}
.mkr-chart .mkr-widget > div { height: 100%; }
.mkr-chart .mkr-status:not([hidden]) { min-height: calc(var(--chart-height) - 25px); }
.mkr-chart.mkr-unavailable .mkr-status { min-height: 0; }
.mkr-widget { box-sizing: border-box; width: 100%; }
.mkr-widget iframe { display: block; max-width: 100%; color-scheme: dark; }
.mkr-credit, .mkr-status { margin: 6px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.mkr-funding, .mkr-list { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.mkr-subtitle {
  margin: 0 0 8px; color: var(--gold-2); font: 600 11px/1.3 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.mkr-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; }
.mkr-rate { padding: 8px 6px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); }
.mkr-rate dt, .mkr-rate time { font: 11px/1.4 var(--mono); color: var(--text-muted); }
.mkr-rate dd {
  margin: 2px 0 0; color: var(--ink); font-size: clamp(12px, 2.8vw, 16px);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (max-width: 420px) {
  .mkr-chart { --chart-height: 402px; }
  .mkt-rail { width: calc(100% - 24px); padding: 12px; }
  .mkr-rate { padding-inline: 5px; }
}
@media (min-width: 1400px) {
  html.has-market-rail body { padding-right: var(--market-rail-width) !important; }
  html.has-market-rail .mkt-rail {
    position: fixed; inset: 0 0 0 auto; z-index: 40; width: var(--market-rail-width);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    margin: 0; padding: 22px 14px; border-width: 0 0 0 1px; border-radius: 0;
    background: radial-gradient(120% 40% at 100% 0%, rgba(214,179,106,.08), transparent 60%), var(--surface-2);
  }
  .has-market-rail .mkr-summary { display: none; }
  .has-market-rail .mkr-quotes { padding-top: 12px; border-top: 1px solid var(--border); }
}
@media print {
  .mkt-rail { display: none !important; }
  html.has-market-rail body { padding-right: 0 !important; }
}
