/* Generated by tools/build-public-css.php; preserve the source stylesheet order. */

/* desk.css */
/*
  coindesk.cc public design system.

  Direction: light-first editorial research, paper and teal, Source Serif 4
  headlines with IBM Plex Sans body text and IBM Plex Mono figures. Tokens come
  from BUILD_SPEC section 7; structure follows the workspace mockup (masthead,
  lead with a data figure, section bands, article column plus sticky rail).

  Colour never carries meaning alone: up and down values are signed and
  labelled, chart series are also printed as text under the chart.
  Motion is limited to hover, focus and state feedback (MOTION 1).
*/

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 1.1.0 design: Bitcoin orange on warm paper, grotesque headlines, Figtree body, Plex Mono figures. */
:root {
  --btc: #F7931A;
  --btc-deep: #C96A00;
  --btc-soft: #FFF1DE;
  --btc-ink: #3A2100;
  --paper: #FFFCF8;
  --surface: #FFFFFF;
  --surface-alt: #FBF6EF;
  --ink: #121212;
  --ink-2: #3B3B3B;
  --ink-muted: #6F6A63;
  --accent: #C96A00;
  --accent-hover: #9E5300;
  --accent-ink: #1B0F00;
  --highlight: #FFF1DE;
  --rule: #ECE4D8;
  --rule-strong: #DCCFBD;
  --edge: #8E8579;
  --up: #14804A;
  --down: #C62828;
  --strip-bg: #121110;
  --strip-ink: #FFFCF8;
  --strip-muted: #A9A298;
  --shadow: 0 1px 2px rgba(40,20,0,.05), 0 8px 24px rgba(40,20,0,.06);
  --serif: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 18px;
}

[data-theme="dark"] {
  --paper: #0F0E0C;
  --surface: #181613;
  --surface-alt: #1F1C18;
  --ink: #F4EFE8;
  --ink-2: #D5CEC4;
  --ink-muted: #9C958B;
  --accent: #FFA940;
  --accent-hover: #FFC07A;
  --accent-ink: #1B0F00;
  --highlight: #2A1B08;
  --btc-soft: #2A1B08;
  --btc-ink: #FFD9A8;
  --btc-deep: #FFA940;
  --rule: #2C2823;
  --rule-strong: #3D3731;
  --edge: #7C746A;
  --up: #3CCB7F;
  --down: #FF6B6B;
  --strip-bg: #121110;
  --strip-ink: #F4EFE8;
  --strip-muted: #9C958B;
  --shadow: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
img, svg, table { max-width: 100%; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }
.value-up { color: var(--up); }
.value-down { color: var(--down); }
.value-neutral { color: var(--ink-muted); }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.wrap.narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 30;
  padding: 0.75rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.demo-banner {
  padding: 0.5rem 1rem;
  background: var(--strip-bg);
  color: var(--strip-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

/* Header */
.site-header {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-block: 0.7rem;
}

.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.wordmark img { display: block; width: 30px; height: 30px; }
.wordmark__text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.wordmark:hover .wordmark__text { text-decoration: underline; }

.nav-disclosure { order: 2; flex: 0 0 auto; }
.site-nav--desktop { display: none; }
.nav-disclosure > summary { list-style: none; }
.nav-disclosure > summary::-webkit-details-marker { display: none; }
.nav-toggle { display: inline-flex; }

.site-nav { padding-top: 0.5rem; border-top: 1px solid var(--rule); margin-top: 0.5rem; }
.site-nav ul { list-style: none; display: flex; flex-direction: column; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-right: 1rem;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-secondary { margin-top: 0.25rem; padding-top: 0.25rem; border-top: 1px solid var(--rule); }

.header-tools { order: 2; margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

/* Buttons and controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-solid { background: var(--accent); color: var(--accent-ink); padding-inline: 1.3rem; }
.btn-solid:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--edge); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink); }
.btn-icon { padding-inline: 0.8rem; }

.glyph { width: 1.1rem; height: 1.1rem; flex: none; }
.glyph-sun { display: none; }
[data-theme="dark"] .glyph-moon { display: none; }
[data-theme="dark"] .glyph-sun { display: inline-block; }

input[type="search"], input[type="number"], select, input[type="text"], input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
}

/* Breadcrumb */
.breadcrumb { padding-top: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-muted); }
.breadcrumb li + li::before { content: "/"; padding-inline: 0.5rem; color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); }

/* Masthead and lead */
.masthead { padding-top: clamp(1.25rem, 3vw, 2rem); }
.edition-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 3px solid var(--ink);
  padding-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.kicker { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }

.lead { padding-block: clamp(1.5rem, 4vw, 3rem); }
.lead-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.lead-text h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.04; margin-top: 0.5rem; }
.deck { margin-top: 1rem; max-width: 52ch; font-size: clamp(1.1rem, 2.1vw, 1.3rem); line-height: 1.5; color: var(--ink-muted); }
.lead-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lead-meta { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.82rem; color: var(--ink-muted); }

.diagram {
  margin: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
}
.diagram-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}
.diagram-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.diagram-sub { font-size: 0.78rem; color: var(--ink-muted); }
.panel-note { margin-top: 1rem; font-size: 0.92rem; color: var(--ink-muted); }
.source-line { margin-top: 1.25rem; font-size: 0.85rem; }

/* Charts */
.chart-figure { margin: 1.25rem 0 0; }
.chart { display: block; width: 100%; height: auto; aspect-ratio: 640 / 220; }
.chart-tick { font-family: var(--mono); font-size: 13px; fill: var(--ink-muted); }
.chart-readout { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-muted); }
.chart-caption { margin-top: 0.55rem; max-width: 60ch; font-size: 0.8rem; color: var(--ink-muted); }
.bar-list { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.75rem; }
.bar-row { display: grid; grid-template-columns: minmax(5.5rem, 9rem) minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; font-size: 0.86rem; }
.bar-label { color: var(--ink-muted); overflow-wrap: anywhere; }
.bar-track { display: block; height: 12px; background: var(--surface-alt); border: 1px solid var(--rule-strong); border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); }
.bar-fill.bar-down { background: var(--down); }
.bar-value { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Section headings and bands */
.section-head { max-width: 64ch; margin-bottom: clamp(1.1rem, 3vw, 1.75rem); }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.section-note { margin-top: 0.5rem; color: var(--ink-muted); }
.section-more { margin-top: 1.25rem; }

.latest { padding-block: clamp(1.75rem, 5vw, 3rem); }
.trackers {
  padding-block: clamp(1.75rem, 5vw, 3rem);
  background: var(--surface-alt);
  border-block: 1px solid var(--rule-strong);
}
.background { padding-block: clamp(1.75rem, 5vw, 3rem); }
.about { padding-block: clamp(1.75rem, 5vw, 3rem); border-top: 1px solid var(--rule-strong); }
.about-grid { display: grid; gap: 1rem; }
.about-text p + p { margin-top: 0.75rem; }

.card-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }

.story-card {
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
}
.story-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.78rem; color: var(--ink-muted); }
.story-card h2, .story-card h3 { margin-top: 0.5rem; font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.story-card h2 a, .story-card h3 a { color: var(--ink); text-decoration: none; }
.story-card h2 a:hover, .story-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.story-card__summary { margin-top: 0.5rem; font-size: 0.94rem; line-height: 1.55; color: var(--ink-muted); }
.story-card__tags { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-weight: 600; color: var(--accent); }

.entry-list { list-style: none; }
.entry { padding-block: 1.15rem; border-top: 1px solid var(--rule); }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.78rem; color: var(--ink-muted); }
.entry h3 { margin-top: 0.4rem; font-size: clamp(1.1rem, 2.3vw, 1.35rem); }
.entry h2, .entry-headline { margin-top: 0.4rem; font-size: clamp(1.1rem, 2.3vw, 1.35rem); }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--accent); text-decoration: underline; }
.entry h2 a { color: var(--ink); text-decoration: none; }
.entry h2 a:hover { color: var(--accent); text-decoration: underline; }
.entry-text { margin-top: 0.45rem; max-width: 62ch; font-size: 0.94rem; color: var(--ink-muted); }

.bg-grid { list-style: none; display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.bg-grid h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
.bg-grid h3 a { color: var(--ink); text-decoration: none; }
.bg-grid h3 a:hover { color: var(--accent); text-decoration: underline; }
.bg-grid p { margin-top: 0.4rem; max-width: 48ch; color: var(--ink-muted); }

.link-list { list-style: none; display: grid; gap: 0.35rem; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; }

/* Tables: cards under 720px so nothing is squeezed */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.data-table th, .data-table td { padding: 0.8rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-strong); }
.data-table thead th { padding-top: 0; border-bottom: 2px solid var(--ink); font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); }
.data-table tbody th { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.data-table td:first-of-type, .data-table th:first-child { padding-left: 0; }
.cell-label { display: none; }

@media (max-width: 719px) {
  .data-table { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table tr { margin-bottom: 0.9rem; padding: 1rem; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); }
  .data-table th, .data-table td { padding: 0; border-bottom: 0; }
  .data-table thead { display: none; }
  .data-table td { margin-top: 0.55rem; }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-muted);
  }
}

/* Page headers, filters, search */
.page-head { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; max-width: 72ch; }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.page-head__note { margin-top: 0.75rem; color: var(--ink-muted); }
.page-head__meta { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-muted); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.filter-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}
.filter-tabs a[aria-current="page"] { background: var(--highlight); border-color: var(--accent); color: var(--accent); font-weight: 600; }

.filter-bar {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
}
.filter-bar__field label { display: block; margin-bottom: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); }
.filter-bar__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.search-form { margin-top: 1.25rem; }
.search-form label { display: block; margin-bottom: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); }
.search-form__row { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 34rem; }
.search-form__row input { flex: 1 1 14rem; }
.search-count { margin-top: 1rem; color: var(--ink-muted); }

/* Article */
.article-shell { padding-bottom: clamp(2rem, 5vw, 3rem); }
.article-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(1.25rem, 3vw, 2rem); }
.article h1 { margin-top: 0.5rem; font-size: clamp(2rem, 4.8vw, 3rem); line-height: 1.06; }
.article-deck { margin-top: 1rem; max-width: 52ch; font-size: clamp(1.05rem, 2.1vw, 1.25rem); line-height: 1.5; color: var(--ink-muted); }
.article-meta { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.85rem; color: var(--ink-muted); }
.article-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.1rem; padding-block: 0.8rem; border-block: 1px solid var(--rule); }
.tool-state { font-size: 0.85rem; color: var(--ink-muted); }
.article section { margin-block: clamp(1.6rem, 3.5vw, 2.4rem); }
.article h2 { margin-bottom: 0.65rem; font-size: clamp(1.4rem, 3vw, 1.8rem); scroll-margin-top: 1.5rem; }
.article p { max-width: 68ch; }
.article p + p { margin-top: 0.8rem; }

.short-answer {
  margin-top: 1.5rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--highlight);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}
.short-answer h2 { font-size: 1.15rem; }
.short-answer p { margin-top: 0.5rem; }

.citation-line { margin-top: 0.35rem !important; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.75rem; color: var(--ink-muted); }
.item-list { margin-top: 0.6rem; padding-left: 1.1rem; list-style: disc; }
.item-list li { max-width: 66ch; margin-top: 0.4rem; }
.item-date { font-size: 0.8rem; color: var(--ink-muted); }

.faq { display: grid; gap: 0.5rem; }
.faq details { border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); }
.faq summary { min-height: 44px; display: flex; align-items: center; padding: 0.6rem 0.9rem; font-weight: 600; cursor: pointer; }
.faq p { padding: 0 0.9rem 0.8rem; color: var(--ink-muted); }

.fact-sheet, .side-card {
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
}
.fact-sheet + .side-card, .side-card + .side-card, .fact-sheet + .fact-sheet { margin-top: 1rem; }
.fact-sheet__title, .side-title { font-size: 1.1rem; }
.fact-sheet__note { margin-top: 0.4rem; font-size: 0.8rem; color: var(--ink-muted); }
.facts { margin-top: 0.8rem; }
.facts dt { font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.facts dd { margin: 0.15rem 0 0.8rem; font-size: 0.94rem; }
.facts dd:last-child { margin-bottom: 0; }
.facts__date { margin-left: 0.5rem; font-size: 0.8rem; color: var(--ink-muted); }
.facts__badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
}
.facts__source { display: block; margin-top: 0.2rem; font-size: 0.78rem; }
.facts--data { list-style: none; }
.facts--data li { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; padding-block: 0.45rem; border-top: 1px solid var(--rule); font-size: 0.9rem; }
.facts--data li:first-child { border-top: 0; padding-top: 0; }
.facts__label { flex: 1 1 9rem; color: var(--ink-muted); }

.data-blocks { display: grid; gap: 0.75rem; margin-top: 1rem; }
.data-block { padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.data-block__label { font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); }
.data-block__value { margin-top: 0.2rem; font-size: 1.35rem; font-weight: 600; }
.data-block__meta { margin-top: 0.3rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.78rem; color: var(--ink-muted); }

.price-chips { list-style: none; margin-top: 0.7rem; display: grid; gap: 0.5rem; }
.price-chips li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; font-size: 0.9rem; }
.price-chips__symbol { font-weight: 600; }
.chip-list { list-style: none; margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.7rem;
  background: var(--highlight);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}
.chip--plain { background: var(--surface-alt); color: var(--ink-muted); font-family: var(--mono); }

.timeline { list-style: none; position: relative; margin-top: 0.8rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 14px; border-left: 1px solid var(--rule-strong); }
.timeline li { position: relative; padding-left: 1.6rem; padding-bottom: 1.2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; }
.timeline-date { font-size: 0.83rem; font-weight: 600; color: var(--accent); }
.timeline-text { margin-top: 0.2rem; max-width: 64ch; }

.source-list-block { padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); }
.source-list { list-style: none; margin-top: 0.6rem; }
.source-list li { padding-block: 0.6rem; border-top: 1px solid var(--rule); font-size: 0.92rem; line-height: 1.5; }
.source-list li:first-child { padding-top: 0; border-top: 0; }
.source-list__meta { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: var(--ink-muted); }

.archive-note { margin-top: 1.25rem; padding: 0.8rem 1rem; background: var(--surface); border-left: 3px solid var(--accent); }
.method p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-muted); }
.related ul { list-style: none; display: grid; gap: 0.3rem; margin-top: 0.5rem; }
.related a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-facts { margin-top: 1.25rem; }

.empty-state {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed var(--edge);
  border-radius: var(--radius);
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* Tabs (project profiles) */
.tabs { margin-top: 1.5rem; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 0.4rem; border-bottom: 1px solid var(--rule-strong); }
.tabs__tab {
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.tabs__tab[aria-selected="true"] { background: var(--surface); border-color: var(--rule-strong); color: var(--accent); margin-bottom: -1px; }
.tabs__panel { padding-top: 1.25rem; outline-offset: 4px; }
.tabs.is-enhanced .tabs__panel[hidden] { display: none; }

/* Pager */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 1.5rem; }
.pager__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.9rem; border: 1px solid var(--edge); border-radius: var(--radius); text-decoration: none; }
.pager__link.is-disabled { color: var(--ink-muted); border-style: dashed; }
.pager__status { font-size: 0.85rem; color: var(--ink-muted); }

/* Downloads and embeds */
.download-block { margin-top: 2rem; padding: 1.15rem; background: var(--surface-alt); border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); }
.download-block__note { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-muted); }
.download-block__links { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.embed-code { margin-top: 1rem; }
.embed-code summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.embed-code pre { overflow-x: auto; padding: 0.8rem; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); font-family: var(--mono); font-size: 0.8rem; }
.dataset-summary { margin-top: 1.5rem; padding: 1.15rem; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); }

.profile-head { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.profile-head h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.profile-head__symbol { font-size: 0.55em; color: var(--ink-muted); }
.profile-head__links { margin-top: 0.7rem; font-size: 0.92rem; }
.profile-head__chains, .profile-head__meta { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-muted); }

.page-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.9rem; }

/* Footer */
.site-footer { margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(2rem, 4vw, 3rem); background: var(--strip-bg); color: var(--strip-ink); }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-mark { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--strip-ink); }
.footer-about p + p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--strip-muted); }
.footer-note { font-size: 0.8rem; }
.footer-title { margin-bottom: 0.5rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; color: var(--strip-muted); }
.footer-nav ul { list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 0.75rem; color: var(--strip-ink); font-size: 0.94rem; }
.footer-nav a:hover { color: var(--strip-ink); text-decoration: underline; }
.footer-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.82rem; color: var(--strip-muted); }
.footer-base a { color: var(--strip-ink); }

/* Embed widgets: framed by third party sites with the credit visible */
.embed-body { margin: 0; padding: 0.9rem; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 0.9rem; }
.embed-title { font-family: var(--serif); font-size: 1rem; }
.embed-list { list-style: none; margin-top: 0.6rem; }
.embed-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem; padding-block: 0.45rem; border-top: 1px solid var(--rule); }
.embed-list li:first-child { border-top: 0; padding-top: 0; }
.embed-value { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.embed-credit { margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); font-size: 0.78rem; color: var(--ink-muted); }
.embed-credit span { display: block; }

/* Tablet */
@media (max-width: 899px) {
  .header-tools .btn-text { display: none; }
  .wordmark__text { font-size: 1.2rem; }
  /* Sections opens a full width panel so the collapsed header stays one row. */
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    margin: 0;
    padding: 0.35rem clamp(1rem, 4vw, 2.5rem) 1rem;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
  }
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .filter-bar__actions { grid-column: 1 / -1; }
  .data-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Desktop navigation and compositions */
@media (min-width: 900px) {
  .nav-disclosure { order: 2; flex-basis: auto; }
  .nav-toggle { display: none; }
  .nav-disclosure { display: none; }
  .site-nav--desktop { display: block; order: 2; }
  .site-nav {
    display: block;
    position: static;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0.15rem 1rem; }
  .site-nav a { padding-right: 0; }
  .nav-secondary { display: none; }
  .header-tools { order: 3; }
  .lead-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .card-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .article-grid { grid-template-columns: minmax(0, 680px) minmax(0, 1fr); align-items: start; }
  .article-side { display: block; min-width: 0; }
  .rail-sticky { position: sticky; top: 1.5rem; }
  .mobile-facts { display: none; }
}

@media (max-width: 1039px) {
  .article-side { display: none; }
}

/* desk-v2.css */
/*
  1.1.0 layout layer: masthead, home page, story page and footer.
  Loaded after desk.css; the tokens live there so every older page picks up the same palette.
*/

body { font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1240px; padding-left: 20px; padding-right: 20px; }

/* ---------- Utility bar ---------- */
.util-bar { border-bottom: 1px solid var(--rule); font-size: .8125rem; color: var(--ink-muted); background: var(--paper); }
.util-bar .wrap { display: flex; gap: 22px; align-items: center; height: 38px; overflow: hidden; white-space: nowrap; }
.util-bar__prices { display: flex; gap: 18px; font-family: var(--mono); font-size: .78rem; }
.util-bar__prices b { color: var(--ink); font-weight: 600; }
.util-bar__spacer { flex: 1; }
.util-bar a { color: var(--ink-muted); text-decoration: none; }
.util-bar a:hover { color: var(--ink); }
.up, .value-up { color: var(--up); }
.down, .value-down { color: var(--down); }

/* ---------- Masthead ---------- */
.masthead-bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.masthead-bar .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.6rem/1 var(--serif); letter-spacing: -0.035em; white-space: nowrap; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--btc); display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); flex: none; }
.logo__mark svg { width: 22px; height: 22px; }
.logo__dot { color: var(--btc); }
.logo:hover { color: var(--ink); }
.primary-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.primary-nav a:hover { background: var(--surface-alt); color: var(--ink); }
.primary-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.round-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; text-decoration: none; }
.round-btn:hover { border-color: var(--btc); }
.round-btn svg { width: 18px; height: 18px; }
.round-btn .glyph-sun { display: none; }
[data-theme="dark"] .round-btn .glyph-sun { display: block; }
[data-theme="dark"] .round-btn .glyph-moon { display: none; }
.menu-btn { display: none; }
.masthead-bar .mobile-nav { border-top: 1px solid var(--rule); padding: 10px 16px 14px; }
.masthead-bar .mobile-nav[hidden] { display: none; }
.mobile-nav a { display: inline-block; margin: 4px 6px 0 0; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; }

/* ---------- Shared bits ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--btc-deep); margin: 0; }
.kicker a { color: inherit; text-decoration: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--down) 20%, transparent); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .8125rem; color: var(--ink-muted); }
.src-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--btc-soft); color: var(--btc-ink); font-weight: 700; border-radius: 999px; padding: 4px 10px; font-size: .75rem; }
.coin-pill { display: inline-flex; align-items: center; gap: 5px; font: 600 .78rem/1 var(--mono); padding: 4px 8px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.thumb { border-radius: 12px; position: relative; overflow: hidden; background: linear-gradient(135deg, #FFE2B8, #F7931A); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb--1 { background: linear-gradient(135deg, #1B0F00, #7A4500); }
.thumb--2 { background: linear-gradient(135deg, #FFF1DE, #FFB347); }
.thumb--3 { background: linear-gradient(135deg, #2A1B08, #F7931A); }
.thumb--4 { background: linear-gradient(135deg, #1B0F00, #3A2100); }
.thumb__label { position: absolute; left: 10px; bottom: 8px; font: 800 .8rem/1 var(--serif); color: rgba(255,255,255,.92); letter-spacing: -0.01em; }
.thumb--2 .thumb__label, .thumb--0 .thumb__label { color: rgba(27,15,0,.8); }
a:hover .h { color: var(--btc-deep); }
.sec-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.sec-head h2 { font: 800 1.6rem/1 var(--serif); letter-spacing: -0.025em; margin: 0; }
.sec-head__bar { flex: 1; height: 2px; background: linear-gradient(90deg, var(--btc) 0 64px, var(--rule) 64px); }
.sec-head a { font-size: .8125rem; font-weight: 700; color: var(--btc-deep); text-decoration: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; }
.chips a { display: inline-block; border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .84rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.chips a:hover { border-color: var(--btc); }
.chips a[aria-current="page"] { background: var(--btc); border-color: var(--btc); color: #1B0F00; }
.box { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 18px 10px; margin-bottom: 20px; }
.box h2, .box h3 { font: 800 1.1rem/1 var(--serif); margin: 0 0 12px; letter-spacing: -0.015em; }
.box__foot { font-size: .78rem; color: var(--ink-muted); margin: 6px 0 8px; }
.more-link { display: block; text-align: center; margin: 18px 0 0; padding: 12px; border: 1px dashed var(--rule-strong); border-radius: 12px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.more-link:hover { border-color: var(--btc); color: var(--ink); }

/* ---------- Home ---------- */
.home-hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; padding: 28px 0 8px; }
.lead-card { display: block; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.lead-card__art { aspect-ratio: 16 / 8; background: linear-gradient(135deg, #F7931A 0%, #FFB347 45%, #FFE2B8 100%); }
.lead-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-card__body { padding: 22px 26px 26px; }
.lead-card h1 { font: 800 clamp(1.75rem, 3.2vw, 2.6rem)/1.08 var(--serif); letter-spacing: -0.03em; margin: 12px 0; }
.lead-card p.summary { font-size: 1.09rem; color: var(--ink-2); margin: 0 0 16px; max-width: 62ch; }
.side-stack { display: flex; flex-direction: column; gap: 14px; }
.side-stack__head { display: flex; justify-content: space-between; align-items: baseline; }
.side-stack__head h2 { font: 800 1.25rem/1 var(--serif); margin: 0; letter-spacing: -0.02em; }
.side-stack__head a { font-size: .8125rem; font-weight: 700; color: var(--btc-deep); text-decoration: none; }
.side-card-v2 { display: grid; grid-template-columns: 108px 1fr; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.side-card-v2 .thumb { aspect-ratio: 1 / 1; }
.side-card-v2 h3 { font: 700 1.08rem/1.22 var(--serif); letter-spacing: -0.015em; margin: 6px 0 8px; }

.pulse { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 26px 0 8px; }
.pulse__card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.pulse__card small { display: block; color: var(--ink-muted); font-size: .75rem; font-weight: 600; }
.pulse__card strong { font: 600 1.1rem/1.3 var(--mono); }
.pulse__card .ch { font: 600 .78rem var(--mono); margin-left: 4px; }
.pulse__card svg { display: block; width: 100%; height: 28px; margin-top: 6px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; padding: 26px 0 40px; }
.river { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.river li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.river time { font: 600 .8rem/1.6 var(--mono); color: var(--ink-muted); }
.river__body { text-decoration: none; color: var(--ink); }
.river h3 { font: 700 1.25rem/1.22 var(--serif); letter-spacing: -0.015em; margin: 6px 0; }
.river p { margin: 0 0 8px; color: var(--ink-2); font-size: .95rem; }
.river .thumb { aspect-ratio: 4 / 3; }
.bands { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.band { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px; }
.band h3 { font: 800 1.15rem/1 var(--serif); margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.band h3 span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--btc-soft); }
.band a.row { display: block; padding: 10px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.band a.row b { display: block; font: 700 1rem/1.3 var(--serif); }
.band a.row small { color: var(--ink-muted); font-size: .78rem; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule); }
.rank li::before { content: counter(r); font: 800 1.35rem/1 var(--serif); color: var(--btc); }
.rank a { font: 700 .97rem/1.3 var(--serif); text-decoration: none; }
.rank a:hover { color: var(--btc-deep); }
.cal { list-style: none; margin: 0; padding: 0; }
.cal li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); font-size: .875rem; }
.cal a { text-decoration: none; }
.cal__d { text-align: center; border-radius: 10px; background: var(--surface-alt); padding: 4px 0; font: 700 .68rem/1.2 var(--sans); text-transform: uppercase; color: var(--ink-muted); }
.cal__d b { display: block; font: 800 1.1rem/1.1 var(--serif); color: var(--ink); }
.cal__d--sym { background: var(--btc-soft); color: var(--btc-ink); }
.cal__d--sym b { font-size: .8rem; color: inherit; }
.cal__v { font: 600 .78rem var(--mono); text-align: right; }
.cal small { display: block; color: var(--ink-muted); }
.empty-note { color: var(--ink-muted); font-size: .9rem; padding: 12px 0; }

/* ---------- Listing pages ---------- */
.list-head { padding: 28px 0 8px; }
.list-head h1 { font: 800 clamp(1.9rem, 3.6vw, 2.8rem)/1.05 var(--serif); letter-spacing: -0.03em; margin: 8px 0 8px; }
.list-head p { color: var(--ink-2); max-width: 70ch; margin: 0; }

/* ---------- Story page ---------- */
.story-head { max-width: 860px; padding: 18px 0 10px; }
.story-head h1 { font: 800 clamp(2rem, 4.4vw, 3.2rem)/1.05 var(--serif); letter-spacing: -0.03em; margin: 12px 0 14px; }
.story-dek { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 20px; max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .875rem; color: var(--ink-muted); padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline__desk { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.byline__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--btc); display: grid; place-items: center; font: 800 .82rem var(--serif); color: #1B0F00; }
.share { margin-left: auto; display: flex; gap: 8px; }
.share a, .share button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; padding: 0; }
.share a:hover, .share button:hover { border-color: var(--btc); }
.share svg { width: 15px; height: 15px; }
.story-layout { display: grid; grid-template-columns: minmax(0, 720px) 320px; gap: 56px; padding: 28px 0 50px; justify-content: space-between; }
.story-hero { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 7; background: linear-gradient(135deg, #F7931A, #FFB347 55%, #FFE2B8); margin: 0 0 26px; }
.story-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.answer-box { background: var(--btc-soft); border-radius: 18px; padding: 20px 22px 18px; margin: 0 0 30px; }
.answer-box h2 { font: 800 .82rem/1 var(--sans) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--btc-deep); margin: 0 0 10px !important; }
.answer-box p { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.story-body h2 { font: 800 1.75rem/1.15 var(--serif); letter-spacing: -0.02em; margin: 40px 0 12px; }
.story-body p { margin: 0 0 18px; color: var(--ink-2); }
.story-body p a, .story-body li a { color: var(--btc-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-body .chart-figure, .story-body .data-blocks { border: 1px solid var(--rule); border-radius: 18px; padding: 16px; background: var(--surface); }
.point-list { list-style: none; padding: 0; margin: 0 0 18px; }
.point-list li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.point-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 3px; background: var(--btc); }
.point-list .item-date { display: block; font: 600 .8rem var(--mono); color: var(--btc-deep); }
.faq-v2 details { border-top: 1px solid var(--rule); padding: 14px 0; }
.faq-v2 details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq-v2 summary { cursor: pointer; font: 700 1.1rem/1.35 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-v2 summary::-webkit-details-marker { display: none; }
.faq-v2 summary::after { content: "+"; color: var(--btc-deep); font-size: 1.5rem; line-height: 1; }
.faq-v2 details[open] summary::after { content: "\2212"; }
.faq-v2 details p { margin: 10px 0 0; }
.source-cards { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.source-cards a, .source-cards div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); font-size: .94rem; text-decoration: none; color: var(--ink); }
.source-cards a:hover { border-color: var(--btc); }
.source-cards i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 800 .8rem var(--serif); color: #fff; font-style: normal; background: var(--ink); }
.source-cards b { display: block; }
.source-cards small { color: var(--ink-muted); font-size: .78rem; }
.update-log { border-left: 2px solid var(--btc); padding-left: 16px; margin: 0; list-style: none; }
.update-log li { font-size: .94rem; margin: 0 0 10px; }
.update-log time { font: 600 .78rem var(--mono); color: var(--ink-muted); display: block; }
.story-rail .sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.rail-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 16px 18px; }
.rail-card h2 { font: 800 1.05rem/1 var(--serif); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.rail-card h2 small { font: 600 .68rem var(--mono); color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); padding: 3px 7px; border-radius: 6px; }
.key-facts { width: 100%; border-collapse: collapse; font-size: .875rem; }
.key-facts th { text-align: left; font-weight: 600; color: var(--ink-muted); padding: 8px 8px 8px 0; vertical-align: top; width: 44%; border-top: 1px solid var(--rule); }
.key-facts td { padding: 8px 0; border-top: 1px solid var(--rule); font-weight: 600; overflow-wrap: anywhere; }
.key-facts a { color: var(--btc-deep); font-size: .72rem; margin-left: 4px; text-decoration: none; }
.coin-rows a { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.coin-rows i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 .62rem var(--sans); color: #1B0F00; font-style: normal; background: var(--btc); overflow: hidden; }
.coin-rows i img { width: 28px; height: 28px; }
.coin-rows b { font-size: .94rem; }
.coin-rows small { display: block; color: var(--ink-muted); font-size: .75rem; }
.coin-rows .p { text-align: right; font: 600 .82rem var(--mono); }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--rule); font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.toc a:hover { border-color: var(--btc); color: var(--ink); }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag-chips a { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--surface-alt); font-size: .8rem; font-weight: 600; text-decoration: none; }
.tag-chips a:hover { background: var(--btc-soft); }
.related-v2 { border-top: 1px solid var(--rule); padding: 36px 0 50px; }
.related-v2 h2 { font: 800 1.6rem var(--serif); margin: 0 0 16px; letter-spacing: -0.02em; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rel-grid a { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); }
.rel-grid .thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.rel-grid .b { padding: 12px 14px 16px; }
.rel-grid b { display: block; font: 700 1.03rem/1.25 var(--serif); margin-top: 6px; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--btc); width: 0; z-index: 60; }

/* ---------- Footer ---------- */
.site-footer-v2 { background: #121110; color: #CFC8BE; padding: 48px 0 26px; margin-top: 30px; }
.site-footer-v2 .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.site-footer-v2 h2 { color: #fff; font: 700 .875rem var(--sans); margin: 0 0 10px; letter-spacing: 0; }
.site-footer-v2 ul { list-style: none; margin: 0; padding: 0; }
.site-footer-v2 a { display: block; font-size: .9rem; padding: 4px 0; color: #CFC8BE; text-decoration: none; }
.site-footer-v2 a:hover { color: var(--btc); }
.site-footer-v2 .logo { color: #fff; margin-bottom: 12px; display: inline-flex; padding: 0; font-size: 1.6rem; }
.site-footer-v2 .logo:hover { color: #fff; }
.site-footer-v2 p { font-size: .9rem; margin: 0; max-width: 34ch; color: #CFC8BE; }
.site-footer-v2 .base { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; border-top: 1px solid #2A2724; margin-top: 32px; padding-top: 16px; font-size: .8rem; color: #8E877D; }
.site-footer-v2 .base nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-footer-v2 .base a { display: inline; font-size: .8rem; color: #8E877D; padding: 0; }
.site-footer-v2 .base a:hover { color: var(--btc); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .home-hero, .home-grid, .story-layout { grid-template-columns: minmax(0, 1fr); }
  .pulse { grid-template-columns: repeat(3, 1fr); }
  .primary-nav, .masthead-cta { display: none; }
  .menu-btn { display: grid; }
  .masthead-bar .wrap { justify-content: space-between; }
  .bands { grid-template-columns: 1fr; }
  .story-rail { order: -1; }
  .story-rail .sticky { position: static; }
  .story-rail .toc-card { display: none; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-v2 .cols { grid-template-columns: repeat(2, 1fr); }
  .site-footer-v2 .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .masthead-bar .wrap { gap: 10px; height: 60px; }
  .logo { font-size: 1.35rem; }
  .pulse { grid-template-columns: repeat(2, 1fr); }
  .pulse__card:nth-child(5) { display: none; }
  .river li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .river .thumb { display: none; }
  .side-card-v2 { grid-template-columns: 84px 1fr; }
  .util-bar__prices span:nth-child(n+3), .util-bar__links { display: none; }
  .share { margin-left: 0; }
  .story-dek { font-size: 1.1rem; }
  .rel-grid { grid-template-columns: 1fr; }
  .lead-card__body { padding: 18px; }
}

/* Story art: orange panel with the primary coin's recent price line. */
.art { position: relative; width: 100%; height: 100%; background: linear-gradient(135deg, #F7931A 0%, #FFB347 45%, #FFE2B8 100%); overflow: hidden; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art__tag { position: absolute; left: 7%; top: 12%; background: #1B0F00; color: #fff; border-radius: 16px; padding: 14px 20px; font-family: var(--serif); }
.art__tag small { display: block; font: 600 .82rem var(--mono); color: #FFB347; }
.art__tag b { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.art__tag--word b { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.breadcrumb--home { display: none; }
.story-body .source-cards a { text-decoration: none; color: var(--ink); }
.story-body .source-cards a b { color: var(--ink); }
@media (max-width: 640px) { .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .chips li { flex: none; } }

/* v1.2.0 cover images: hotlinked from the original publisher, credited, with bundled fallbacks */
.cover { position: relative; margin: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #F7931A 0%, #FFB347 45%, #FFE2B8 100%); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover__credit { position: absolute; right: 10px; bottom: 10px; max-width: 70%; padding: 4px 9px; border-radius: 999px; background: rgba(27,15,0,.72); color: #fff; font: 600 .72rem/1.3 var(--mono, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb img { position: absolute; inset: 0; }

/* v1.2.0 scrolling price ticker (top 10 by market cap) */
.ticker { flex: 1; min-width: 0; overflow: hidden; height: 100%; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 45s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; gap: 28px; padding-right: 28px; font-family: var(--mono); font-size: .78rem; }
.ticker__item { display: inline-flex; align-items: center; gap: 6px; }
.ticker__item img { width: 14px; height: 14px; border-radius: 50%; }
.ticker__item b { color: var(--ink); font-weight: 600; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation-duration: 120s; } }
@media (max-width: 720px) { .util-bar .wrap > span:first-child { display: none; } .util-bar .wrap { gap: 12px; } }

/* desk-v3.css */
/*
  1.3.0 "terminal" theme. Loaded after desk.css and desk-v2.css.
  Light and dark palettes follow the device by default (see the inline script in the layout);
  readers can pin Light or Dark from the header switch. Older pages pick up the palette
  through the shared tokens (--paper, --ink, --rule ...), which are remapped here.
*/

@font-face { font-family: "Inter"; src: url("fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-500.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-700.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }

:root, :root[data-theme="light"] {
  --bg: #F3F4F6; --panel: #FFFFFF; --panel-2: #F7F8FA; --line: #E3E6EA; --line-2: #D3D8DF;
  --text: #0E1116; --text-2: #2B3340; --muted: #5E6978; --faint: #7E8896;
  --acc: #E8590C; --acc-2: #FF6A00; --acc-soft: rgba(232, 89, 12, .09);
  --up: #0B8F4E; --down: #D12A3C; --up-soft: rgba(11, 143, 78, .10); --down-soft: rgba(209, 42, 60, .10); --amber: #B45309;
  --hover: #F1F3F6; --shade: 0 1px 2px rgba(15, 17, 22, .04);
  /* legacy tokens used by older pages */
  --paper: var(--bg); --surface: var(--panel); --surface-alt: var(--panel-2); --ink: var(--text); --ink-2: var(--text-2); --ink-muted: var(--muted);
  --accent: var(--acc); --accent-hover: #C2410C; --accent-ink: #fff; --highlight: var(--acc-soft); --btc: #FF6A00; --btc-deep: var(--acc); --btc-soft: var(--acc-soft); --btc-ink: var(--text);
  --rule: var(--line); --rule-strong: var(--line-2); --edge: var(--line-2); --shadow: var(--shade);
  --serif: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px; --radius-lg: 10px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A0C0F; --panel: #111418; --panel-2: #151920; --line: #1D232B; --line-2: #28303A;
  --text: #ECEEF1; --text-2: #C9CFD8; --muted: #8C96A3; --faint: #66707D;
  --acc: #FF7A1A; --acc-2: #FF9340; --acc-soft: rgba(255, 122, 26, .12);
  --up: #2BD483; --down: #FF5F6F; --up-soft: rgba(43, 212, 131, .12); --down-soft: rgba(255, 95, 111, .12); --amber: #F5A524;
  --hover: #161B22; --shade: none;
  --accent-hover: #FF9340; --accent-ink: #0A0C0F;
  --strip-bg: #0A0C0F; --strip-ink: #ECEEF1; --strip-muted: #8C96A3;
  color-scheme: dark;
}

body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1360px; padding-left: 20px; padding-right: 20px; margin-left: auto; margin-right: auto; }
.up { color: var(--up); } .down { color: var(--down); } .amber { color: var(--amber); }
::selection { background: var(--acc); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: var(--acc); z-index: 60; transform: scaleX(0); transform-origin: left center; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: none; animation: cd-blink 1.6s infinite; vertical-align: 1px; }
@keyframes cd-blink { 50% { opacity: .25; } }

/* ---------- ticker ---------- */
.util-bar { display: none; }
.tkr { height: 34px; border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; display: flex; align-items: center; font: 500 12px/1 var(--mono); color: var(--muted); }
.tkr__track { display: flex; width: max-content; animation: tkr 80s linear infinite; }
.tkr:hover .tkr__track, .tkr:focus-within .tkr__track { animation-play-state: paused; }
.tkr__set { display: flex; gap: 26px; padding-right: 26px; align-items: center; white-space: nowrap; }
.tkr__item { display: inline-flex; align-items: center; gap: 6px; }
.tkr__item img { width: 15px; height: 15px; border-radius: 50%; }
.tkr__item b { color: var(--text); font-weight: 600; }
.tkr__lbl { color: var(--faint); }
.tkr__sep { width: 1px; height: 14px; background: var(--line-2); }
@keyframes tkr { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tkr__track { animation-duration: 240s; } }

/* ---------- header ---------- */
.masthead-bar { display: none; }
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 22px; height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 20px/1 var(--sans); letter-spacing: -.045em; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo__mark { width: 30px; height: 30px; border-radius: 24%; flex: none; background: none; }
.logo__text { color: var(--text); }
.hdr__nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.hdr__nav::-webkit-scrollbar { display: none; }
.hdr__nav a { padding: 7px 10px; border-radius: 6px; color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
.hdr__nav a:hover { background: var(--hover); color: var(--text); }
.hdr__nav a[aria-current="page"] { background: var(--hover); color: var(--text); box-shadow: inset 0 -2px 0 var(--acc); }
.hdr__tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.hdr__search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--panel-2); color: var(--faint); width: 230px; }
.hdr__search:focus-within { border-color: var(--acc); }
.hdr__search svg { width: 14px; height: 14px; flex: none; }
.hdr__search input { border: 0; background: transparent; color: var(--text); font: 500 13px var(--sans); width: 100%; min-width: 0; outline: none; padding: 0; }
.hdr__search input::placeholder { color: var(--faint); }
.hdr__search kbd { font: 500 10.5px var(--mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 5px; color: var(--faint); }
.hdr__btn { width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--panel-2); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.hdr__btn svg { width: 16px; height: 16px; }
.hdr__search-btn, .hdr__menu { display: none; }
.theme-seg { display: flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; background: var(--panel-2); }
.theme-seg button { border: 0; background: transparent; padding: 0 9px; height: 32px; cursor: pointer; color: var(--faint); display: grid; place-items: center; }
.theme-seg button svg { width: 15px; height: 15px; }
.theme-seg button[aria-pressed="true"] { background: var(--panel); color: var(--acc); box-shadow: inset 0 0 0 1px var(--line-2); }
.mobile-nav { border-top: 1px solid var(--line); padding: 10px 20px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 6px; font: 500 13.5px var(--sans); text-decoration: none; color: var(--text-2); margin: 0; }
.mobile-nav a[aria-current="page"] { border-color: var(--acc); color: var(--acc); }
.breadcrumb { padding-top: 14px; font: 500 12px var(--mono); }
.breadcrumb ol { font-size: 12px; color: var(--faint); padding: 0; margin: 0; }
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--acc); }

/* ---------- panels ---------- */
.pnl { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shade); }
.pnl__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pnl__h b { color: var(--acc); font-weight: 600; }
.pnl__h a { color: var(--faint); letter-spacing: .04em; text-decoration: none; }
.pnl__h a:hover { color: var(--acc); }
.pnl__f { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--line); font: 500 10.5px var(--mono); color: var(--faint); }
.k { display: inline-block; font: 600 10.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--acc); }
.k a { color: inherit; text-decoration: none; }
.m { font: 500 11.5px var(--mono); color: var(--faint); }
.h { display: block; }
.srcdot { display: inline-flex; align-items: center; gap: 4px; }
.srcdot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--up); }
.ok { font: 600 10px/1 var(--mono); color: var(--up); background: var(--up-soft); padding: 4px 6px; border-radius: 4px; letter-spacing: .04em; white-space: nowrap; }
a:hover > .h, a:hover .b > .h, a:hover > span > .h { color: var(--acc); }
.thumb { border-radius: 4px; background: linear-gradient(135deg, #1B1208, #7A3B00); }
.thumb img { object-fit: cover; }

/* ---------- home ---------- */
.home3 { padding-top: 14px; padding-bottom: 8px; }
.h3-row1 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 330px; gap: 12px; margin-bottom: 12px; align-items: stretch; }
.h3-row2 { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; margin-bottom: 12px; align-items: start; }
.h3-stack { display: grid; gap: 12px; align-content: start; }
.h3-lead { display: flex; flex-direction: column; }
.h3-lead__link { display: block; text-decoration: none; color: var(--text); flex: 1; }
.h3-lead__img { aspect-ratio: 16 / 8.2; overflow: hidden; background: #111; }
.h3-lead__img .cover { border-radius: 0; }
.h3-lead__b { padding: 14px 16px 16px; }
.h3-lead h1 { font: 750 clamp(21px, 2vw, 26px)/1.2 var(--sans); letter-spacing: -.03em; margin: 8px 0; text-wrap: balance; }
.h3-lead p { color: var(--text-2); margin: 0 0 10px; font-size: 14.5px; }
.h3-lead__more { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.h3-lead__more a { padding: 10px 16px; font: 600 13px/1.38 var(--sans); text-decoration: none; color: var(--text); }
.h3-lead__more a + a { border-left: 1px solid var(--line); }
.h3-lead__more a:hover { color: var(--acc); background: var(--hover); }
.h3-feat__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.h3-feat__row:last-child { border-bottom: 0; }
.h3-feat__row:hover { background: var(--hover); }
.h3-feat__row .thumb { width: 84px; height: 58px; aspect-ratio: auto; }
.h3-feat__row .h { font: 650 14px/1.32 var(--sans); margin: 3px 0; letter-spacing: -.01em; }
.h3-wire ol, .h3-heads ol { list-style: none; margin: 0; padding: 0; }
.h3-wire li a, .h3-heads li a { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font: 500 13px/1.38 var(--sans); text-decoration: none; color: var(--text-2); }
.h3-wire li:last-child a { border-bottom: 0; }
.h3-wire li a:hover, .h3-heads li a:hover { background: var(--hover); color: var(--acc); }
.h3-wire time, .h3-heads time { font: 500 11px var(--mono); color: var(--acc); padding-top: 2px; }
.h3-wire .c, .h3-heads .c { display: block; font: 600 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.h3-wire .empty { padding: 14px 12px; color: var(--faint); font-size: 13px; }
.h3-tabs { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.h3-tabs a { font: 500 12.5px var(--sans); padding: 6px 10px; border-radius: 5px; color: var(--muted); white-space: nowrap; text-decoration: none; }
.h3-tabs a[aria-current="page"] { background: var(--acc-soft); color: var(--acc); }
.h3-tabs a:hover { color: var(--text); }
.h3-river article a { display: grid; grid-template-columns: 54px minmax(0, 1fr) 132px; gap: 14px; padding: 13px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.h3-river article:last-child a { border-bottom: 0; }
.h3-river article a:hover { background: var(--hover); }
.h3-river time { font: 500 11.5px/1.4 var(--mono); color: var(--faint); }
.h3-river time span { display: block; font-size: 10px; }
.h3-river .h { font: 650 16px/1.3 var(--sans); margin: 4px 0; letter-spacing: -.015em; }
.h3-river .p { display: block; margin: 0 0 5px; color: var(--muted); font-size: 13.5px; }
.h3-river .thumb { width: 132px; height: 80px; aspect-ratio: auto; }
.h3-heads ol { display: grid; grid-template-columns: 1fr 1fr; }
.h3-heads li:nth-child(odd) a { border-right: 1px solid var(--line); }
.h3-heads li a { padding: 10px 14px; font: 550 13.5px/1.38 var(--sans); color: var(--text); }
.h3-loadmore { display: block; text-align: center; padding: 12px; background: var(--panel-2); color: var(--text-2); font: 600 12px var(--mono); letter-spacing: .05em; text-decoration: none; border-top: 1px solid var(--line); }
.h3-loadmore:hover { color: var(--acc); }
.h3-empty { padding: 40px 24px; text-align: center; margin-bottom: 12px; }
.h3-empty h1 { font: 750 26px/1.2 var(--sans); letter-spacing: -.03em; margin: 0 0 8px; }
.h3-empty p { color: var(--muted); margin: 0; }

/* data rail */
.h3-rail, .st3-sticky { display: grid; gap: 12px; align-content: start; }
.kv { display: grid; grid-template-columns: 1fr 1fr; }
.kv > div { padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.kv > div:nth-child(odd) { border-right: 1px solid var(--line); }
.kv small { display: block; font: 500 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.kv b { display: block; font: 650 15.5px/1.35 var(--mono); letter-spacing: -.02em; margin-top: 2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv em { display: block; font: 500 11px var(--mono); font-style: normal; color: var(--faint); }
.kv em.up { color: var(--up); } .kv em.down { color: var(--down); }
.dom { padding: 10px 12px 12px; }
.dom__bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin: 6px 0 8px; }
.dom__rest { background: var(--line-2); }
.dom__lg { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 500 11px var(--mono); color: var(--muted); }
.dom__lg i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; }
.fg { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; padding: 12px; }
.fg svg { width: 132px; height: 78px; }
.fg__needle { stroke: var(--text); } .fg__hub { fill: var(--text); }
.fg__v { font: 700 28px/1 var(--mono); color: var(--text); }
.fg__l { font: 600 12px var(--mono); margin: 4px 0 8px; letter-spacing: .04em; }
.fg table { font: 500 11px var(--mono); color: var(--muted); border-collapse: collapse; width: 100%; }
.fg td { padding: 2px 0; }
.fg td:last-child { text-align: right; color: var(--text-2); }
.seg2 { display: flex; border-bottom: 1px solid var(--line); }
.seg2 button { flex: 1; border: 0; background: transparent; padding: 8px; font: 600 11px var(--mono); letter-spacing: .06em; color: var(--faint); cursor: pointer; border-bottom: 2px solid transparent; }
.seg2 button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--acc); }
.tbl { width: 100%; border-collapse: collapse; font: 500 12.5px var(--mono); }
.tbl[hidden] { display: none; }
.tbl td { padding: 7px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tbl td:first-child b { color: var(--text); font-weight: 600; }
.tbl td:first-child small { color: var(--faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; max-width: 84px; }
.tbl td.r { text-align: right; color: var(--text-2); }
.tbl tr:hover td { background: var(--hover); }
.tbl .coin { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.rank { color: var(--faint); width: 14px; font-size: 11px; flex: none; }
.ch { display: inline-block; min-width: 60px; text-align: right; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.ch.up { background: var(--up-soft); } .ch.down { background: var(--down-soft); }
.lst { list-style: none; margin: 0; padding: 0; }
.lst li + li { border-top: 1px solid var(--line); }
.lst a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; text-decoration: none; color: var(--text); }
.lst a:hover { background: var(--hover); }
.lst .d { font: 600 11px/1.1 var(--mono); text-align: center; border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 6px; color: var(--text-2); min-width: 42px; }
.lst .d small { display: block; font-size: 9px; color: var(--faint); font-weight: 500; }
.lst b { font-weight: 600; display: block; }
.lst .sub { display: block; font: 500 11px var(--mono); color: var(--faint); }
.lst .val { font: 600 12.5px var(--mono); text-align: right; }
.pill { font: 600 10px/1 var(--mono); padding: 4px 6px; border-radius: 4px; letter-spacing: .04em; white-space: nowrap; }
.pill--red { background: var(--down-soft); color: var(--down); }
.pill--amber { background: var(--acc-soft); color: var(--acc); }
.pill--green { background: var(--up-soft); color: var(--up); }

/* category blocks + CTA */
.h3-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.h3-blocks__top { display: block; padding: 12px; text-decoration: none; color: var(--text); }
.h3-blocks__top .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 10px; }
.h3-blocks__top .h { font: 650 15px/1.3 var(--sans); letter-spacing: -.01em; margin: 4px 0; }
.h3-blocks ul { list-style: none; margin: 0; padding: 0; }
.h3-blocks li a { display: block; padding: 9px 12px; border-top: 1px solid var(--line); font: 550 13px/1.38 var(--sans); text-decoration: none; color: var(--text); }
.h3-blocks li a:hover { color: var(--acc); background: var(--hover); }
.h3-blocks li .m { display: block; margin-top: 2px; }
.h3-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: linear-gradient(135deg, #FF7A1A, #E8490C); color: #fff; border-radius: 8px; margin: 0 0 20px; }
.h3-cta b { font: 700 15px var(--sans); }
.h3-cta p { margin: 2px 0 0; opacity: .9; font-size: 13px; }
.h3-cta__btns { margin-left: auto; display: flex; gap: 8px; }
.h3-cta .btn { background: #fff; color: #111; font: 600 13px var(--sans); padding: 9px 14px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.h3-cta .btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }

/* ---------- story ---------- */
.st3 { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; padding-top: 12px; margin-bottom: 12px; align-items: start; }
.st3-main { padding: 22px 26px 26px; }
.st3-head h1 { font: 780 clamp(27px, 3.3vw, 40px)/1.1 var(--sans); letter-spacing: -.035em; margin: 10px 0 12px; text-wrap: balance; max-width: 26ch; color: var(--text); }
.st3-dek { font-size: 17px; color: var(--text-2); margin: 0 0 16px; max-width: 66ch; line-height: 1.55; }
.st3-by { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; margin-bottom: 18px; }
.st3-by__mark { width: 36px; height: 36px; border-radius: 24%; flex: none; }
.st3-by b { font-size: 13.5px; }
.st3-share { margin-left: auto; display: flex; gap: 6px; }
.st3-share a, .st3-share button { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 7px; display: grid; place-items: center; color: var(--text-2); background: transparent; cursor: pointer; }
.st3-share a:hover, .st3-share button:hover, .st3-share .is-copied { color: var(--acc); border-color: var(--acc); }
.st3-share svg { width: 14px; height: 14px; }
.st3-hero { margin: 0 0 18px; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 8; background: #111; }
.st3-note { border: 1px solid var(--line-2); border-left: 3px solid var(--acc); padding: 10px 14px; border-radius: 6px; margin-bottom: 18px; background: var(--acc-soft); font-size: 14px; }
.st3-take { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); overflow: hidden; }
.st3-take h2 { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.st3-take h2::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--acc); }
.st3-take ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.st3-take li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.st3-take li:last-child { border-bottom: 0; }
.st3-take li::before { content: counter(t, decimal-leading-zero); font: 700 13px/1.6 var(--mono); color: var(--acc); }
.st3-take b { color: var(--text); }
.st3-prose { max-width: 720px; font-size: 16.5px; line-height: 1.72; color: var(--text-2); }
.st3-prose h2 { font: 700 21px/1.3 var(--sans); letter-spacing: -.02em; color: var(--text); margin: 28px 0 8px; }
.st3-prose p { margin: 0 0 16px; }
.st3-prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; }
.st3-prose .point-list { padding-left: 18px; }
.st3-prose .point-list li { margin-bottom: 8px; }
.st3-prose .item-date { font: 600 12px var(--mono); color: var(--acc); margin-right: 6px; }
.st3-chart { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin: 6px 0 22px; background: var(--panel-2); }
.st3-faq details { border-bottom: 1px solid var(--line); padding: 11px 0; }
.st3-faq summary { cursor: pointer; font: 600 15px/1.4 var(--sans); color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.st3-faq summary::-webkit-details-marker { display: none; }
.st3-faq summary::after { content: "+"; color: var(--acc); font: 600 16px var(--mono); }
.st3-faq details[open] summary::after { content: "\2212"; }
.st3-faq p { margin: 8px 0 0; font-size: 15px; }
.st3-sources { margin-top: 30px; max-width: 860px; }
.st3-sources h2 { font: 600 12px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.st3-sources h2 i { width: 8px; height: 8px; border-radius: 2px; background: var(--acc); }
.st3-sources ol { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--panel); }
.st3-sources li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.st3-sources li:last-child { border-bottom: 0; }
.fav { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font: 700 13px var(--sans); color: #fff; overflow: hidden; background: var(--line-2); }
.fav img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.st3-src__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 3px; }
.st3-src__meta b { color: var(--text-2); font-weight: 600; }
.st3-src__meta time { font: 500 12px var(--mono); color: var(--faint); }
.tier { font: 600 10px/1 var(--mono); padding: 4px 6px; border-radius: 4px; background: var(--hover); color: var(--muted); border: 1px solid var(--line-2); }
.tier--1 { color: var(--up); background: var(--up-soft); border-color: transparent; }
.first { font: 600 10px/1 var(--mono); padding: 4px 6px; border-radius: 4px; background: var(--acc-soft); color: var(--acc); }
.st3-src__title { font: 700 15.5px/1.35 var(--sans); color: var(--text); letter-spacing: -.01em; }
.out { position: relative; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: .15s; }
.out svg { width: 16px; height: 16px; }
.out:hover, .out:focus-visible { color: var(--acc); border-color: var(--acc); background: var(--acc-soft); }
.out::after { content: attr(data-tip); position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 11.5px var(--sans); background: var(--text); color: var(--bg); padding: 5px 8px; border-radius: 5px; opacity: 0; pointer-events: none; transition: .15s; }
.out:hover::after, .out:focus-visible::after { opacity: 1; }
.st3-log { margin-top: 28px; }
.st3-log h2 { font: 600 12px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.st3-log ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-2); }
.st3-log li { padding: 0 0 12px 14px; font-size: 14px; color: var(--text-2); }
.st3-log time { display: block; font: 500 11.5px var(--mono); color: var(--faint); }
.st3-sticky { position: sticky; top: 70px; }
.st3-facts { margin: 0; }
.st3-facts div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.st3-facts div:last-child { border-bottom: 0; }
.st3-facts dt { color: var(--muted); }
.st3-facts dd { margin: 0; font: 600 12.5px var(--mono); text-align: right; color: var(--text); }
.st3-facts dd a { color: var(--acc); text-decoration: none; }
.st3-topics { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; margin: 0; list-style: none; }
.st3-topics a { font: 500 12px var(--sans); padding: 5px 9px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; }
.st3-topics a:hover { border-color: var(--acc); color: var(--acc); }
.st3-toc a { display: block; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; text-decoration: none; color: var(--text-2); }
.st3-toc a:last-child { border-bottom: 0; }
.st3-toc a:hover { color: var(--acc); background: var(--hover); }
.st3-related { margin-bottom: 12px; }
.st3-related__h { font: 600 12px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 8px 0 12px; }
.st3-related .h3-blocks { margin-bottom: 0; }

/* ---------- older pages on the new palette ---------- */
main#main { min-height: 50vh; }
.list-head { padding: 22px 0 6px; }
.list-head h1 { font: 780 clamp(26px, 3vw, 36px)/1.1 var(--sans); letter-spacing: -.035em; }
.list-head .kicker, .kicker { font-family: var(--mono); letter-spacing: .07em; color: var(--acc); }
.river { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; }
.river li { border-bottom-color: var(--line); }
.river li:last-child { border-bottom: 0; }
.river h3 { font-family: var(--sans); font-weight: 650; }
.chips a { border-radius: 6px; background: var(--panel); border-color: var(--line-2); color: var(--text-2); }
.chips a[aria-current="page"] { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shade); }
.src-pill { background: var(--up-soft); color: var(--up); }
.coin-pill { background: var(--hover); color: var(--text-2); }
.pager__link { border-color: var(--line-2); border-radius: 6px; background: var(--panel); color: var(--text-2); text-decoration: none; }

/* ---------- footer ---------- */
.site-footer-v2 { display: none; }
.ftr { border-top: 1px solid var(--line); background: var(--panel); margin-top: 12px; }
.ftr__top { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; padding: 36px 0 28px; }
.ftr__brand p { color: var(--muted); font-size: 13.5px; margin: 12px 0 14px; max-width: 34ch; }
.ftr h2 { font: 600 11px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin: 6px 0 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--acc); }
.ftr__social { display: flex; gap: 6px; }
.ftr__social a { width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 7px; display: grid; place-items: center; color: var(--text-2); }
.ftr__social a:hover { border-color: var(--acc); color: var(--acc); }
.ftr__social svg { width: 15px; height: 15px; }
.ftr__data { display: flex; gap: 10px 20px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); font: 500 12px var(--mono); color: var(--faint); }
.ftr__data b { color: var(--muted); font-weight: 600; }
.ftr__base { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ftr__base nav { display: flex; gap: 16px; flex-wrap: wrap; }
.ftr__note { font-size: 12px; color: var(--faint); max-width: 90ch; margin: 0; padding: 0 0 26px; line-height: 1.55; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .h3-row1 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .h3-row1 .h3-wire { grid-column: 1 / -1; }
  .h3-row1 .h3-wire ol { display: grid; grid-template-columns: 1fr 1fr; }
  .h3-row1 .h3-wire li:nth-child(odd) a { border-right: 1px solid var(--line); }
  .h3-blocks { grid-template-columns: 1fr 1fr; }
  .ftr__top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
  .hdr__search { width: 170px; }
}
@media (max-width: 980px) {
  .hdr__nav, .hdr__search { display: none; }
  .hdr__search-btn, .hdr__menu { display: grid; }
  .h3-row1, .h3-row2, .st3 { grid-template-columns: minmax(0, 1fr); }
  .h3-row1 .h3-wire ol { grid-template-columns: 1fr; }
  .h3-row1 .h3-wire li:nth-child(odd) a { border-right: 0; }
  .h3-rail { grid-template-columns: 1fr 1fr; }
  .st3-sticky { position: static; }
  .h3-cta { flex-wrap: wrap; }
  .h3-cta__btns { margin-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 10px; padding-right: 10px; }
  .hdr__in { gap: 10px; }
  .h3-rail, .h3-blocks { grid-template-columns: minmax(0, 1fr); }
  .h3-river article a { grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; }
  .h3-river time { grid-column: 1 / -1; order: -1; display: flex; gap: 6px; }
  .h3-river time span { display: inline; }
  .h3-river .thumb { width: 92px; height: 64px; }
  .h3-river .p { display: none; }
  .h3-lead__more { grid-template-columns: 1fr; }
  .h3-lead__more a + a { border-left: 0; border-top: 1px solid var(--line); }
  .h3-heads ol { grid-template-columns: 1fr; }
  .h3-heads li:nth-child(odd) a { border-right: 0; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .st3-main { padding: 16px; }
  .st3-prose { font-size: 16px; }
  .st3-share { margin-left: 0; }
  .st3-sources li { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 10px; padding: 12px; }
  .fav { width: 34px; height: 34px; font-size: 11px; }
  .out::after { display: none; }
}

/* fit fixes */
.h3-lead__link { display: flex; flex-direction: column; }
.h3-lead__img { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; }
.h3-lead__img .cover { height: 100%; }
.tbl { table-layout: auto; }
.tbl td { padding: 7px 10px; }
.tbl td:first-child small { max-width: 64px; }
.h3-rail .ch { min-width: 54px; padding: 2px 5px; }
@media (max-width: 980px) { .h3-lead__img { min-height: 0; aspect-ratio: 16 / 8.2; } }
.tbl td:first-child { display: table-cell; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.tbl td:first-child > * { vertical-align: middle; }
.tbl td:first-child .rank { display: inline-block; margin-right: 6px; }
.tbl td:first-child .coin { display: inline-block; margin-right: 7px; }
.tbl td:first-child small { margin-left: 6px; display: inline-block; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- learn (1.4.0) ---------- */
.lrn-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.lrn-topics a { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 13px var(--sans); color: var(--text-2); text-decoration: none; background: var(--panel); }
.lrn-topics a:hover { color: var(--acc); border-color: var(--acc); }
.lrn-topics a[aria-current="page"] { background: var(--acc-soft); color: var(--acc); border-color: var(--acc); }
.lrn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.lrn-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 16px 16px; text-decoration: none; color: var(--text); }
.lrn-card img { width: calc(100% + 32px); margin: -14px -16px 6px; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; background: var(--panel-2); }
.lrn-card h2 { font: 700 17px/1.32 var(--sans); letter-spacing: -.015em; margin: 0; }
.lrn-card a:hover h2 { color: var(--acc); }
.lrn-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lrn-card__meta { margin-top: auto; padding-top: 6px; font: 500 11.5px var(--mono); color: var(--faint); }
.lrn-meta { font: 500 12px var(--mono); color: var(--faint); margin-top: 3px; }
.lrn-cover { margin: 0 0 18px; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.lrn-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.lrn-toc { max-width: 720px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); padding: 12px 16px; margin: 0 0 20px; }
.lrn-toc p { margin: 0 0 6px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lrn-toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.7; }
.lrn-toc a { color: var(--text-2); text-decoration: none; }
.lrn-toc a:hover { color: var(--acc); }
.lrn-prose h3 { font: 700 18px/1.35 var(--sans); color: var(--text); margin: 22px 0 6px; }
.lrn-prose h4 { font: 700 16px/1.4 var(--sans); color: var(--text); margin: 18px 0 6px; }
.lrn-prose h2, .lrn-prose h3 { scroll-margin-top: 80px; }
.lrn-prose ul, .lrn-prose ol { padding-left: 22px; margin: 0 0 16px; }
.lrn-prose li { margin-bottom: 6px; }
.lrn-prose img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 8px 0 16px; }
.lrn-prose figure { margin: 0 0 18px; }
.lrn-prose figcaption { font-size: 13px; color: var(--muted); margin-top: -8px; }
.lrn-prose blockquote { margin: 0 0 16px; padding: 8px 16px; border-left: 3px solid var(--acc); background: var(--panel-2); border-radius: 0 6px 6px 0; }
.lrn-prose code { font: 500 .9em var(--mono); background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
.lrn-prose pre { overflow-x: auto; background: var(--panel-2); padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line); }
.lrn-prose pre code { background: none; padding: 0; }
.lrn-prose .table-scroll { overflow-x: auto; margin: 0 0 18px; }
.lrn-prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.lrn-prose th, .lrn-prose td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.lrn-prose th { background: var(--panel-2); color: var(--text); }
.lrn-section { max-width: 720px; margin-top: 28px; }
.lrn-section h2 { font: 700 20px/1.3 var(--sans); letter-spacing: -.02em; color: var(--text); margin: 0 0 10px; }
.lrn-sources { padding-left: 20px; font-size: 14px; line-height: 1.7; }
.lrn-sources a { color: var(--text); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; }
.lrn-sources span { color: var(--faint); font: 500 12px var(--mono); }
.lrn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; }
.lrn-tags span { font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 7px; }
.lrn-disclaimer { margin: 22px 0 0; font-size: 12.5px; color: var(--faint); }
.lrn-related { list-style: none; margin: 0; padding: 0; }
.lrn-related li { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lrn-related li:last-child { border-bottom: 0; }
.lrn-related a { display: block; font: 600 14px/1.38 var(--sans); color: var(--text); text-decoration: none; }
.lrn-related a:hover { color: var(--acc); }
.lrn-related span { font: 500 11px var(--mono); color: var(--faint); }
.lrn-side-note { margin: 0; padding: 10px 12px; font-size: 14px; }
.lrn-side-note a { color: var(--acc); }
@media (max-width: 980px) { .st3 .st3-sticky { position: static; } }
.wrap.narrow > section + section, .wrap.narrow > .side-card + section { margin-top: 22px; }
.wrap.narrow > section > h2 { margin-bottom: 6px; }
