@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f9dcc9;
  --paper-2: #f2cdb6;
  --paper-3: #e9bea3;
  --ink: #1d1a17;
  --ink-2: #5a3526;
  --ink-3: #6e4632;
  --rule: #e2b598;
  --up: #066643;
  --down: #a32520;
  --gold: #a87b22;
  --gold-text: #7a5814;
  --on-ink: #f9dcc9;
  --on-ink-2: #b9a897;
  --up-on-ink: #4cc38a;
  --down-on-ink: #ff8577;
  --blue: #2c4a86;
  --quiet: #f4c6b4;
  --lede: #3b2a20;
  --focus: #1d1a17;
  --paper-raised: #fdeee4;
  --search-highlight: #f2c66d;
  --on-ink-rule: rgba(249, 220, 201, 0.16);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.25rem;
  --step-3: 2rem;
  --step-4: 3rem;

  --gutter: clamp(16px, 2.2vw, 28px);
  --max: 1360px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
html { scrollbar-color: var(--ink-3) var(--paper-2); }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 2px solid var(--paper-2); border-radius: 6px; }

.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }
.chg { font-weight: 650; white-space: nowrap; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--ink-3); }
.muted { color: var(--ink-2); }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- masthead ---------- */
.mast { border-bottom: 2px solid var(--ink); }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; padding-top: 16px; padding-bottom: 12px; }
.brand { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 2px 10px; text-decoration: none; }
.brand b { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.brand span { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.brand small { grid-column: 1 / -1; font-size: var(--step--1); color: var(--ink-2); }
.dateline { flex: 1; min-width: 200px; font-size: var(--step--1); color: var(--ink-2); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 5px 11px; font-weight: 650; font-size: var(--step--1); text-decoration: none; border-radius: 3px; }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ---------- methodology (the "?" in the masthead) ---------- */
.help-btn { align-self: center; width: 28px; height: 28px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%;
  background: transparent; font-weight: 750; font-size: var(--step--1); line-height: 1; cursor: pointer; }
.help-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .help-btn:hover { background: var(--ink); color: var(--paper); } }
/* Sized against the *visible* viewport (dvh; vh as a fallback), with the browser's own dialog limits lifted. */
.help { width: min(820px, calc(100vw - 32px)); max-width: none; height: min(88vh, 960px); height: min(88dvh, 960px);
  max-height: none; padding: 0; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper-raised); color: var(--ink); }
/* The page is pinned where it was while the panel is open (top is set from JS), then put back on close. */
html.help-lock body { position: fixed; left: 0; right: 0; overflow: hidden; }
.help[open] { display: flex; flex-direction: column; }
.help::backdrop { background: rgba(29, 26, 23, 0.45); }
.help-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 10px; border-bottom: 2px solid var(--ink); }
.help-head h2:focus { outline: none; }   /* focused on open so the close button doesn't wear a ring */
.help-head h2 { margin: 0; font-size: var(--step-2); font-weight: 750; letter-spacing: -0.01em; }
.help-x { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 3px; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (hover: hover) { .help-x:hover { background: var(--paper-2); } }
/* Contents: at the top of the text, wrapping as needed. Once it scrolls away, "↑ Contents" brings it back. */
.help-toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 4px; }
.help-toc a { padding: 4px 10px; border: 1px solid var(--rule); border-radius: 3px; font-size: var(--step--1); font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .help-toc a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); } }
.help-up { position: absolute; right: 20px; bottom: 16px; padding: 7px 12px; border: 0; border-radius: 3px; background: var(--ink);
  color: var(--paper); font-size: var(--step--1); font-weight: 650; cursor: pointer; box-shadow: 0 2px 8px rgba(29, 26, 23, 0.25); }
.help-up[hidden] { display: none; }
.help-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 24px 64px; }   /* bottom room for ↑ Contents */
.help-body section + section { border-top: 1px solid var(--rule); }
.help-body h3 { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.help-body h3:focus { outline: none; }
.help-body p, .help-body li, .help-body dd { max-width: 66ch; color: var(--lede); }
.help-body p { margin: 0 0 12px; }
.help-body ul { margin: 0 0 12px; padding-left: 1.2em; }
.help-body li { margin-bottom: 4px; }
.help-lede { margin: 14px 0 16px !important; font-size: var(--step-1); color: var(--ink) !important; }
/* Term on the left, plain-language rule on the right; stacked on phones. */
.help-terms { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 8px 20px; margin: 0 0 14px; }
.help-terms dt { font-weight: 700; color: var(--ink); }
.help-terms dd { margin: 0; }
.help-fig { margin: 4px 0 16px; }
.help-fig .eyebrow { margin-bottom: 2px; }
.linkish { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
/* Phones (and any short landscape screen): the panel takes the whole screen. */
@media (max-width: 720px), (max-height: 560px) {
  .help { width: 100vw; height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .help-head { padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); }
  .help-body { padding: 4px max(16px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .help-up { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .help-terms { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .help-terms dd { margin-bottom: 10px; }
}
/* Landscape phones: every line of height counts, so the header and contents get compact. */
@media (max-height: 560px) {
  .help-head { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .help-head h2 { font-size: var(--step-1); }
  .help-toc { padding-top: 8px; gap: 4px; }
  .help-lede { margin: 8px 0 10px !important; font-size: var(--step-0); }
}
/* Touch: comfortable targets for close, the contents and the back button. */
@media (pointer: coarse) {
  .help-x { width: 44px; height: 44px; }
  .help-toc a { min-height: 36px; display: inline-flex; align-items: center; }
  .help-up { min-height: 40px; }
}

/* ---------- index strip (signature) ---------- */
.ticker { background: var(--ink); color: var(--on-ink); position: relative; }
.ticker ol {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  max-width: var(--max);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, 1fr);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.ticker ol::-webkit-scrollbar { display: none; }
.ticker li { scroll-snap-align: start; }
.ticker a {
  position: relative; display: grid; padding: 9px 10px 10px; text-decoration: none;
  transition: background-color 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ticker a:hover { background: rgba(249, 220, 201, 0.08); }
.ticker .code { font-weight: 700; font-size: 12px; letter-spacing: 0.04em; }
.ticker .px { font-size: 16px; font-weight: 600; }
.ticker .chg { font-size: 12px; font-weight: 600; }
.ticker .chg.up { color: var(--up-on-ink); }
.ticker .chg.down { color: var(--down-on-ink); }
.ticker .chg.flat { color: var(--on-ink-2); }
.ticker a[aria-current] { background: var(--paper); color: var(--ink); }
.ticker a[aria-current] .chg.up { color: var(--up); }
.ticker a[aria-current] .chg.down { color: var(--down); }
.ticker a[aria-current] .chg.flat { color: var(--ink-3); }
.ticker a.flash-up { background: rgba(76, 195, 138, 0.22); }
.ticker a.flash-down { background: rgba(255, 133, 119, 0.2); }

/* ---------- sections ---------- */
main { padding-bottom: 72px; }
.sec { padding-top: 48px; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 2px solid var(--ink); padding-top: 10px; margin-bottom: 12px;
}
.sec-head h2 { margin: 0; font-size: var(--step-2); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: var(--step--1); max-width: 70ch; }   /* lab only */
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 56px; }
.three-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 56px; }
.caption { font-size: var(--step--1); color: var(--ink-3); margin: 8px 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step--1); color: var(--ink-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.none { color: var(--ink-3); }

/* ---------- lead + movers ---------- */
.lead { padding-top: 36px; }
.lead h1 { margin: 0; font-size: clamp(26px, 5vw, 36px); line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; max-width: 26ch; text-wrap: balance; }
.lead-thread { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }
.lead-thread a { color: var(--ink); font-weight: 550; }
.movers { gap: 20px 56px; margin-top: 24px; }
.mover { display: grid; grid-template-columns: minmax(0, 1fr) 56px 120px; gap: 12px; align-items: center; padding: 6px 0; text-decoration: none; }
.mover:hover .nm { text-decoration: underline; }
.mover .nm { font-weight: 600; }
.mover .px { text-align: right; }
.dbar { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; font-weight: 650; }
.dbar span { text-align: right; }
.dbar i { display: block; height: 6px; background: currentColor; }
.dbar.up { color: var(--up); }
.dbar.down { color: var(--down); }
.dbar.flat { color: var(--ink-3); }

/* ---------- charts ---------- */
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--rule); stroke-width: 1; }
.pin {
  all: unset; box-sizing: border-box; cursor: pointer; position: absolute; width: 20px; height: 20px;
  display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--paper); color: var(--ink); font: 700 11px/1 var(--font);
}
.pin[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.pin:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.callout {
  position: absolute; z-index: 5; background: var(--ink); color: var(--paper); border-radius: 4px;
  padding: 10px 12px; font-size: var(--step--1); line-height: 1.4; box-shadow: 0 6px 20px rgba(29, 26, 23, 0.25);
}
.callout > i { position: absolute; top: -5px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.co-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--on-ink-2); font-size: 12px; margin-bottom: 2px; }
.co-x { all: unset; cursor: pointer; color: var(--on-ink-2); }
.co-x:focus-visible { outline: 2px solid var(--on-ink); }
.co-label { font-weight: 650; font-size: 15px; }
.callout a { display: inline-block; margin-top: 6px; color: var(--paper); font-weight: 600; }

/* ---------- gold + factions ---------- */
.gold-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.gold-px { font-size: 32px; font-weight: 700; line-height: 1; color: var(--gold-text); }
.gold-meta { font-size: var(--step--1); color: var(--ink-2); }
.fac-red { background: var(--down); }
.fac-green { background: var(--up); }
.fac-blue { background: var(--blue); }
.fac-bar { display: flex; height: 32px; gap: 2px; margin-bottom: 8px; }
.fac-bar > div { min-width: 0; color: var(--on-ink); display: flex; align-items: center; padding: 0 8px; font-size: var(--step--1); font-weight: 650; white-space: nowrap; overflow: hidden; }
.fac { display: grid; grid-template-columns: 64px 60px 52px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 0; }
.fac .nm { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.fac .nm i { display: block; width: 8px; height: 8px; }
.fac .px { font-size: 18px; font-weight: 650; text-align: right; }
.fac .chg { text-align: right; }
.tone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tone-bar { position: relative; height: 4px; background: var(--rule); }
.tone-bar::after { content: ""; position: absolute; left: 50%; top: -3px; width: 1px; height: 10px; background: var(--ink-3); }
.tone-bar span { position: absolute; top: -4px; width: 3px; height: 12px; background: var(--ink); transform: translateX(-50%); }
.tone-w { font-size: var(--step--1); color: var(--ink-2); white-space: nowrap; }

/* ---------- board table ---------- */
.board-wrap { overflow-x: auto; }
table.board { width: 100%; border-collapse: collapse; min-width: 820px; }
.board th {
  text-align: left; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2);
  border-bottom: 1.5px solid var(--ink); padding: 0; white-space: nowrap;
}
.board th.num, .board td.num { text-align: right; }
.board .th { display: block; padding: 8px; }
.board th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 8px 8px 7px; width: 100%; box-sizing: border-box; }
.board th.num button { justify-content: flex-end; }
.board th button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.board th button:hover, .board th[aria-sort] button { color: var(--ink); }
.board th .sort { width: 10px; height: 10px; opacity: 0; }
.board th[aria-sort] .sort { opacity: 1; }
.board th[aria-sort="ascending"] .sort { transform: rotate(180deg); }
.board td { padding: 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.board tbody tr { cursor: pointer; }
.board tbody tr:hover { background: var(--paper-2); }
.board tr.quiet, .card.quiet { background: var(--quiet); }
.board td.name { white-space: nowrap; }
.board td.name .code { display: inline-block; width: 46px; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2); }
.board td.name a { font-weight: 600; text-decoration: none; }
.board td.name a:hover { text-decoration: underline; }
.board td.trend { padding-left: 20px; }
.board td.head { max-width: 320px; color: var(--ink-2); font-size: var(--step--1); }
.board td.head a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.board td.head a:hover { text-decoration: underline; color: var(--ink); }
.spark { width: 110px; height: 24px; display: block; }
.devword { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); white-space: nowrap; }
.devword.quiet { color: var(--ink); font-weight: 650; }
.devword i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--down); }
.code-chip {
  display: inline-block; min-width: 44px; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em;
  padding: 2px 5px; border: 1.5px solid var(--ink); border-radius: 2px; text-align: center; text-decoration: none; line-height: 1.3;
}
a.code-chip:hover { background: var(--ink); color: var(--paper); }

/* Phones: cards instead of the table */
.cards { display: none; }
.chips { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: var(--step--1); color: var(--ink-2); }
.chips span { margin-right: 4px; }
.chips button { all: unset; cursor: pointer; min-height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 3px; font-weight: 650; background: var(--paper-2); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chips button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-list { border-top: 1.5px solid var(--ink); }
.card { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; gap: 4px 12px; align-items: baseline; padding: 10px 6px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.card .nm { font-weight: 600; }
.card .px, .card .chg { text-align: right; }
.card .row2 { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--step--1); }

/* ---------- lists ---------- */
.titles, .wl, .dl { list-style: none; margin: 0; padding: 0; }
.titles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 6px 0; align-items: baseline; }
.titles.ranked li { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
.titles .rk { font-size: var(--step--1); color: var(--ink-3); }
.titles a { text-decoration: none; font-weight: 550; }
.titles a.strong { font-weight: 650; }
.titles a:hover { text-decoration: underline; }
.titles .when { font-size: var(--step--1); color: var(--ink-3); white-space: nowrap; }
.wl li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.wl li span:last-child { font-weight: 600; color: var(--ink-2); }
.wl li span.up { color: var(--up); }
.wl li span.down { color: var(--down); }
.three-up .titles + .caption { margin-top: 4px; }

/* ---------- footer ---------- */
footer { border-top: 2px solid var(--ink); padding: 18px 0 40px; font-size: var(--step--1); color: var(--ink-2); }

/* ---------- issue page ---------- */
.inst-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.back { display: inline-block; margin-top: 18px; font-size: var(--step--1); font-weight: 650; text-decoration: none; }
.inst-nav .back { margin-top: 0; }
.back:hover { text-decoration: underline; }
.stepper { display: flex; gap: 4px; }
.stepper a { padding: 4px 10px; border-radius: 3px; font-weight: 650; font-size: var(--step--1); text-decoration: none; }
.stepper a:hover { background: var(--paper-2); }
.inst-head { padding: 24px 0 8px; }
.inst-head .eyebrow { text-transform: none; }
.inst-head h1 { margin: 0; font-size: clamp(26px, 5vw, 36px); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.inst-quote { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; margin-top: 10px; }
.inst-quote .px { font-size: 24px; font-weight: 650; }
.inst-quote .chg { font-size: 17px; }
.inst-quote .meta { color: var(--ink-2); font-size: var(--step--1); }
.inst-stats { display: flex; gap: 8px 28px; flex-wrap: wrap; margin-top: 14px; font-size: var(--step--1); color: var(--ink-2); }
.inst-stats b { color: var(--ink); font-weight: 650; }
.inst-stats b.down { color: var(--down); }
.inst-stats a { color: var(--ink); font-weight: 550; }
.inst-head + .sec { padding-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--ink); border-radius: 3px;
  background: transparent; font-weight: 650; font-size: var(--step--1); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- states ---------- */
.state { padding: 64px 0; max-width: 56ch; }
.state h2 { margin: 0 0 8px; font-size: var(--step-2); }
.state p { margin: 0 0 16px; color: var(--ink-2); }
.loading .shimmer {
  height: 14px; margin: 10px 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--paper-2), var(--paper-3), var(--paper-2));
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- history range ---------- */
.range { display: inline-flex; gap: 2px; }
.range button { all: unset; cursor: pointer; padding: 3px 9px; border-radius: 3px; font-size: var(--step--1); font-weight: 650; }
.range button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.range button:disabled { color: var(--ink-3); cursor: not-allowed; }
.range button[aria-pressed="true"]:disabled { color: var(--paper); cursor: default; }
.range button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- weekly digest ---------- */
.digest-list { list-style: none; margin: 0; padding: 0; }
.digest-list a { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.digest-list a:hover .hl { text-decoration: underline; }
.digest-list .wk { font-weight: 700; font-size: var(--step--1); color: var(--ink-2); }
.digest-list .hl { font-weight: 650; font-size: var(--step-1); }
.digest-list .when { color: var(--ink-3); font-size: var(--step--1); white-space: nowrap; }
.digest-head { padding: 24px 0 8px; }
.digest-head .deck { margin: 0 0 8px; font-weight: 650; font-size: var(--step--1); color: var(--ink-2); }
.digest-head h1 { margin: 0; font-size: clamp(28px, 6vw, 40px); line-height: 1.05; font-weight: 750; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
.digest-head .lede { margin: 14px 0 0; font-size: 18px; line-height: 1.45; color: var(--lede); max-width: 60ch; text-wrap: pretty; }
.digest-head .note { margin: 10px 0 0; max-width: 60ch; color: var(--ink-2); }
.digest-head + .two-up .sec { padding-top: 40px; }
.dl a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 6px 0; text-decoration: none; }
.dl a:hover .nm { text-decoration: underline; }
.dl .code { font-weight: 700; font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2); }
.dl .nm { font-weight: 600; }
.eyebrow.fallers { margin-top: 18px; }
.gold-line { margin: 0 0 4px; font-size: 24px; font-weight: 700; color: var(--gold-text); }
.gold-line span { font-size: var(--step--1); font-weight: 500; color: var(--ink-3); }
#week-gold { margin-bottom: 16px; }
.fac-row { display: flex; gap: 32px; flex-wrap: wrap; }
.fac-row > div { display: flex; gap: 8px; align-items: baseline; }
.fac-row .nm { font-weight: 700; }
.fac-row .px { font-size: var(--step-1); font-weight: 650; }
.digest-foot { margin-top: 40px; }

@media (max-width: 720px) {
  /* The "?" stays top right of the masthead instead of wrapping onto a line of its own. */
  .mast .wrap { position: relative; padding-right: calc(var(--gutter) + 40px); }
  .help-btn { position: absolute; top: 18px; right: var(--gutter); }
  .ticker ol { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .board-main { display: none; }
  .cards { display: block; }
  .digest-list a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mover { grid-template-columns: minmax(0, 1fr) 52px 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- shared with the lab ---------- */
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 56px; }
.ext { display: inline; margin-left: 4px; color: var(--ink-3); }
