:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1d1c1a;
  --muted: #6b675f;
  --rule: #e6e1d8;
  --accent: #9a3b1f;
  --up: #1d7a46;
  --down: #b3261e;
  --term: #f3e7c9;
  --viz-accent: #9a3b1f;
  --viz-context: #949084;
  --viz-grid: #ece8e0;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1d1c19;
    --ink: #ece8e1;
    --muted: #9d978c;
    --rule: #2f2d29;
    --accent: #e08a68;
    --up: #5cc48a;
    --down: #ef7a72;
    --term: #4a3d1f;
    --viz-accent: #d4704a;
    --viz-context: #78736a;
    --viz-grid: #2c2a26;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.wrap { max-width: 46rem; margin: 0 auto; padding-inline: 1.25rem; }

.masthead {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.brand { font: 600 1.2rem var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.top-links a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; font-size: 0.9rem; }
@media (max-width: 30rem) { .top-links a { margin-left: 0.8rem; font-size: 0.8rem; } .top-links a:first-child { display: none; } }
.top-links a:hover { color: var(--ink); }

.report-head { padding: 2.5rem 0 1rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--accent); font-weight: 600; margin: 0; }
h1 { font: 600 2.4rem/1.15 var(--serif); margin: 0.3rem 0 0.4rem; letter-spacing: -0.02em; }
.meta { color: var(--muted); font-size: 0.875rem; margin: 0; }
.tabs { display: inline-flex; margin-top: 1.25rem; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--surface); }
.tabs a { text-decoration: none; color: var(--muted); font-size: 0.85rem; padding: 0.3rem 0.9rem; border-radius: 999px; }
.tabs a.active { background: var(--ink); color: var(--bg); }
.refs { list-style: none; padding: 0; margin: 0.25rem 0 1rem; }
.refs li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.refs li:last-child { border-bottom: 0; }
.refs a { color: var(--ink); text-decoration: none; }
.refs a:hover { color: var(--accent); }
.src { flex-shrink: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.player { margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.player-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.player-title { font-weight: 600; }
.player-meta { color: var(--muted); font-size: 0.85rem; }
.player audio { width: 100%; }
.chapters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chapters button { font: 0.8rem var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem 0.7rem; cursor: pointer; }
.chapters button:hover { border-color: var(--accent); color: var(--accent); }
.chapters button span { color: var(--muted); margin-left: 0.2rem; font-variant-numeric: tabular-nums; }
.tldr { margin: 1.5rem 0 0; padding: 1rem 1.25rem 1rem 2.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.tldr li { margin: 0.2rem 0; }

.toc {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 1rem 0 0.5rem; border-bottom: 1px solid var(--rule);
}
.toc a {
  font-size: 0.85rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.25rem 0.8rem; background: var(--surface);
}
.toc a:hover { border-color: var(--accent); color: var(--accent); }

.section { padding: 2rem 0 1rem; border-bottom: 1px solid var(--rule); }
h2 { font: 600 1.75rem/1.2 var(--serif); margin: 0 0 1rem; display: flex; align-items: baseline; gap: 0.6rem; }
h2 .num { font: 600 0.8rem var(--sans); color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 0.05rem 0.5rem; transform: translateY(-0.25rem); }
h3 { font: 600 1.05rem var(--sans); margin: 1.75rem 0 0.5rem; }
h4 { font: 600 0.95rem var(--sans); margin: 1rem 0 0.25rem; color: var(--muted); }
.block p, .block li { margin: 0.5rem 0; }
.block ul { padding-left: 1.2rem; }

.table-wrap { overflow-x: auto; margin: 0.5rem 0 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.data th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
table.data td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:has(+ .note-row) td { border-bottom: 0; padding-bottom: 0.2rem; }
.note-row td { color: var(--muted); padding-top: 0; }
.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.name { font-weight: 500; white-space: nowrap; }
.asof { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted); }
.why { color: var(--muted); min-width: 14rem; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--muted); }
.na { color: var(--muted); font-style: italic; }
.ticker { font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }

.movers { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.movers h4 { margin-top: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; font-size: 0.875rem; }
ul.plain li { padding: 0.2rem 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin: 0.5rem 0 1rem; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 0.75rem 1rem; display: flex; flex-direction: column; }
.stat .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.stat .value { font: 600 1.4rem var(--sans); }
.stat .sub, .sub { font-size: 0.8rem; color: var(--muted); }

.callout { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 10px; padding: 0.25rem 1.25rem 1rem; margin: 0.5rem 0 1rem; }
.callout h3 { margin-top: 1rem; margin-bottom: 0; }
.sessions { list-style: none; padding: 0; margin: 0.75rem 0 0; font-size: 0.9rem; }
.sessions li { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px dashed var(--rule); }
.sessions li:last-child { border-bottom: 0; font-weight: 600; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1.5rem; }
ol.results { padding-left: 1.5rem; margin: 0; font-size: 0.875rem; }
ol.results li { padding: 0.15rem 0; }
ol.results li span:first-child { margin-right: 0.4rem; }
.pts { float: right; font-variant-numeric: tabular-nums; color: var(--muted); }

.chart-note { color: var(--muted); font-size: 0.8rem; margin: -0.25rem 0 0.75rem; }
.trends { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.trends.single { grid-template-columns: minmax(13.5rem, 20rem); }
.trend { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 0.75rem 0.75rem 0.4rem; }
.trend figcaption { display: grid; grid-template-columns: 1fr auto; row-gap: 0.1rem; margin-bottom: 0.4rem; }
.t-name { font-size: 0.8rem; font-weight: 500; }
.t-value { font-size: 0.95rem; font-weight: 600; text-align: right; }
.t-chg { grid-column: 1 / -1; font-size: 0.72rem; color: var(--muted); }
.trend svg { display: block; width: 100%; height: auto; overflow: visible; outline: none; }
.trend svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.trend .grid { stroke: var(--viz-grid); stroke-width: 1; }
.trend .tick { fill: var(--muted); font: 10px var(--sans); font-variant-numeric: tabular-nums; }
.trend .ctx, .trend .recent { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trend .ctx { stroke: var(--viz-context); }
.trend .recent { stroke: var(--viz-accent); }
.trend .end, .trend .hover-dot { fill: var(--viz-accent); stroke: var(--surface); stroke-width: 2; }
.trend .xhair { stroke: var(--muted); stroke-width: 1; }
.trend .hit { fill: transparent; cursor: crosshair; }
.t-tip { position: absolute; top: 0.5rem; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 6px; white-space: nowrap; pointer-events: none; display: flex; gap: 0.4rem; }
.t-tip strong { font-variant-numeric: tabular-nums; }
.t-tip[hidden] { display: none; }

.archive { list-style: none; padding: 0; }
.archive li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.archive a { font: 600 1.15rem var(--serif); text-decoration: none; }
.archive p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.875rem; }

.footer { color: var(--muted); font-size: 0.8rem; padding-block: 2rem 3rem; }

@media (max-width: 30rem) {
  h1 { font-size: 1.9rem; }
  .trends { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .trend { padding: 0.6rem 0.5rem 0.3rem; }
  .trend figcaption { grid-template-columns: 1fr; }
  .t-value { text-align: left; }
  .trend .tick { font-size: 18px; }
  .trend .tick.y { display: none; }
  .why { min-width: 11rem; }
}
