/* invest.sx1.nl — v6 editorial design system (no external assets, no CDN)
   Theme: LIGHT-FIRST paper/ink with a gold accent. :root carries the light
   palette; @media (prefers-color-scheme: dark) re-maps the SAME custom
   properties, so every rule below stays token-driven.
   v6 kill-list fixes: default-blue/coral → ink/gold editorial palette;
   real display/body type contrast; scoreboard band replaces cramped 2×2 KPI
   tiles; mobile tables pivot to data-label cards instead of clipping.
   8px spacing grid. System font stack (serif display / sans body split). */

:root {
  /* surfaces — warm paper */
  --bg: #f7f5f0;
  --surface: #fffdf9;
  --surface-2: #efece4;
  --border: #e0dcd1;
  --border-light: #c7c1b2;
  --hairline: #d5d0c3;

  /* text — ink */
  --text: #16181d;
  --text-2: #4c5158;
  --text-3: #787d86;

  /* accents — ink/gold editorial system */
  --pos: #1e7f5c;
  --neg: #b3402e;
  --accent: #9a742a;            /* antique gold */
  --accent-soft: rgba(154, 116, 42, 0.10);
  --accent-line: rgba(154, 116, 42, 0.38);
  --ink: #16181d;
  --warn: #a8720f;
  --warn-soft: rgba(168, 114, 15, 0.10);
  --warn-line: rgba(168, 114, 15, 0.38);

  /* metrics */
  --radius: 6px;
  --radius-sm: 4px;
  --nav-h: 56px;
  --maxw: 1120px;
  --font: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
             "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: 150ms ease;

  /* type scale (v6: real display/body contrast) */
  --fs-display: clamp(34px, 5.2vw, 54px);
  --fs-h2: clamp(22px, 2.6vw, 30px);
  --fs-body: 15px;
  --fs-small: 12.5px;
  --fs-micro: 10.5px;
}

/* dark palette re-mapped onto the SAME custom properties — every rule below
   reads tokens, so this block is the only theme switch. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e11;
    --surface: #15171c;
    --surface-2: #1b1e24;
    --border: #282c34;
    --border-light: #3a404b;
    --hairline: #2c313a;

    --text: #e9e6df;
    --text-2: #a3a8b2;
    --text-3: #7d838e;

    --pos: #46b98a;
    --neg: #e07a63;
    --accent: #c9a45c;
    --accent-soft: rgba(201, 164, 92, 0.12);
    --accent-line: rgba(201, 164, 92, 0.4);
    --ink: #e9e6df;
    --warn: #d9a441;
    --warn-soft: rgba(217, 164, 65, 0.10);
    --warn-line: rgba(217, 164, 65, 0.38);
  }
}

* { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- focus & selection ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: color-mix(in srgb, var(--accent) 72%, var(--text)); }

/* ---------- masthead (v6: newspaper nameplate + dateline) ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 var(--surface), 0 2px 0 var(--hairline);
}
.masthead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 12px 20px 8px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.brand .mark {
  width: 24px; height: 24px; flex: 0 0 24px;
  display: inline-block;
  align-self: center;
}
.brand .accent { color: var(--accent); }
.brand em {
  font-family: var(--font);
  font-style: italic;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text-3);
  white-space: nowrap;
}
.dateline {
  margin: 0;
  max-width: none;
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: normal;
}
.dateline .mono { text-transform: none; letter-spacing: 0.02em; }

.masthead nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 14px 6px;
}
.masthead nav::-webkit-scrollbar { display: none; }
.masthead nav a {
  position: relative;
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}
.masthead nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.masthead nav a.on { color: var(--text); background: var(--accent-soft); }
.masthead nav a.on::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
/* legacy .site chrome (kept token-styled in case any page still uses it) */
.site {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site nav {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 200px);
}
.site nav::-webkit-scrollbar { display: none; }
.site nav a {
  position: relative; color: var(--text-2); font-size: 0.92rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}
.site nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.site nav a.on { color: var(--text); background: var(--accent-soft); }
.site nav a.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}

/* ---------- typography ---------- */
h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 8px 0 16px;
  line-height: 1.12;
}
h2 {
  font-family: var(--display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 16px;
  color: var(--text);
  line-height: 1.2;
}
h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin: 20px 0 10px;
}
h1 .co, .pick h1 .co {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-2);
}

/* editorial kicker — small caps gold label above display lines */
.kicker {
  margin: 0 0 8px;
  max-width: none;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 72ch;
  color: var(--text-2);
  font-size: 16px;
  margin: 0 0 16px;
}
.lead strong { color: var(--text); font-weight: 600; }

p { max-width: 82ch; margin: 0 0 12px; }

.code, .mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: 0.01em;
}
.code {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- numbered editorial section rules (v6: 01 / 02) ---------- */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 20px;
  align-items: start;
  margin: 56px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.sec-num {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-line);
  font-variant-numeric: oldstyle-nums;
  padding-top: 4px;
}
.sec-head .kicker { margin-bottom: 4px; }
.sec-title {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.sec-sub {
  margin: 6px 0 0;
  max-width: 68ch;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- methodology formula callout ---------- */
.method-formula {
  margin: 16px 0 20px;
  padding: 14px 18px;
  max-width: 76ch;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.method-formula .mf-label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.method-formula code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
}
.method-formula .mf-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2);
}

/* EXP-provenance refs: footnote-like, not inline debug text. */
.exp-ref {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- semantic deltas ---------- */
.pos { color: var(--pos); font-weight: 600; }
.neg { color: var(--neg); font-weight: 600; }
.neu { color: var(--text-2); font-weight: 600; }
.num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
td.num small, th.num small { color: var(--text-3); font-weight: 400; }

/* ---------- cards (hairline border, editorial radius, no shadow) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: border-color var(--ease);
}
.card.wide { grid-column: 1 / -1; }
.card h2 { margin-top: 0; }
.card h3 { margin-top: 16px; }

/* ---------- hero (index, v6 editorial) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(900px 300px at 8% -20%, var(--accent-soft), transparent 62%),
    var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin: 8px 0 8px;
}
.hero-title {
  font-family: var(--display);
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.04;
  text-wrap: balance;
}
.hero-dek {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 54ch;
}
.hero-dek strong { color: var(--text); }
.hero-updated {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 12.5px;
  margin: 0 0 4px;
}
.hero-updated .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pos) 18%, transparent);
}
.hero-updated strong { color: var(--text); font-weight: 600; }

.hero-kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

/* ---------- scoreboard band (v6: replaces cramped 2×2 KPI tiles) ---------- */
.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  justify-content: stretch;
  margin: 20px 0 0;
  padding: 18px 0 4px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.sb-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 18px;
  min-width: 0;
}
.sb-item + .sb-item { border-left: 1px solid var(--hairline); }
.sb-item:first-child { padding-left: 0; }
.sb-item:last-child { padding-right: 0; }
.sb-num {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--text);
}
.sb-num.pos { color: var(--pos); }
.sb-num.neg { color: var(--neg); }
/* v6 hierarchy: the headline metric (first tile) is the only one in full
   display size; the rest step down so visitors see ONE number first. */
.scoreboard .sb-item:first-child .sb-num { font-size: clamp(32px, 3.6vw, 44px); color: var(--text); }
.scoreboard .sb-item:not(:first-child) .sb-num { font-size: clamp(20px, 2.2vw, 27px); }
.scoreboard .sb-item:not(:first-child) .sb-num { color: var(--text-2); }
.scoreboard .sb-item:not(:first-child) .sb-num.neg { color: var(--neg); }
.scoreboard .sb-item:not(:first-child) .sb-num.pos { color: var(--pos); }
.sb-label {
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  line-height: 1.35;
}
.sb-foot {
  font-size: 11.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* audit strip (v6: verdict spread under the scoreboard, not in hero prose) */
.sb-strip {
  grid-column: 1 / -1;
  max-width: none;
  margin: 14px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius-sm);
}
.sb-strip-lab {
  display: inline-block;
  margin-right: 8px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sb-strip a { font-weight: 600; }

/* ---------- hero curve visual (v6: the program's honest track) ---------- */
.hero-chart {
  margin: 28px 0 8px;
  padding: 22px 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hero-chart .kicker { margin-bottom: 12px; }
.hero-chart .price-chart {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 300px;
  display: block;
}
.hero-chart figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 92ch;
}
.hero-chart .carea { fill: var(--accent-soft); stroke: none; }
.hero-chart .cgrid { stroke: var(--hairline); stroke-width: 1; stroke-dasharray: 2 3; }
.hero-chart .clab { fill: var(--text-3); font-size: 11px; font-family: var(--mono); }
.hero-chart .clab.base100 { fill: var(--text-2); font-weight: 600; }
.hero-chart .clab.rend { font-weight: 700; font-size: 12px; }

/* ---------- KPI stat tiles (track record + class pages) ---------- */
.kpi {
  min-width: 132px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kpi-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
}
.kpi-num.pos { color: var(--pos); }
.kpi-num.neg { color: var(--neg); }
.kpi-num .arrow { font-size: 0.62em; vertical-align: baseline; margin-left: 2px; }
.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.kpi-sub {
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.kpi-delta { font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- asset-class grid (index + class pages) ---------- */
.cls-grid, .asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.cls-card, .asset-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  color: inherit;
  position: relative;
}
.cls-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.cls-card h2, .asset-card h2 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.cls-count {
  flex: 0 0 auto;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.asset-card h2 small {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  margin-top: 2px;
}
.cls-card .sparkline, .asset-card .sparkline {
  width: 260px;
  max-width: 100%;
  height: 56px;
  margin: 2px 0 12px;
  overflow: visible;
}
.cls-card .meta, .asset-card .meta {
  color: var(--text-2);
  font-size: 12.5px;
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}
.cls-card .meta strong, .asset-card .meta strong { font-weight: 600; }

/* v6 top-3: two lines per entry — ticker+score, then full company name. */
.cls-card .top3 {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cls-card .top3 li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
  color: var(--text-2);
}
.cls-card .top3 .t3a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.cls-card .top3 li .tick { color: var(--text); font-weight: 600; flex: 0 0 auto; }
.cls-card .top3 li .num { flex: 0 0 auto; font-size: 13px; color: var(--text); }
.cls-card .top3 li .nm {
  /* v6 no-truncation: the name gets its own full-width wrapped line. */
  width: 100%;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.35;
}

/* scope-reset — kill .card-inherited pill chrome on the top-3 links. */
.cls-card .top3 a {
  border: 0;
  padding: 0;
  background: none;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}

.more {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
}
a.more { text-decoration: none; }
a.more:hover { text-decoration: underline; }
.cls-card:hover .more, .asset-card:hover .more { color: color-mix(in srgb, var(--accent) 72%, var(--text)); }

/* interactive card hover: hairline lifts to gold */
.cls-card:hover, .asset-card:hover {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}
.cls-card.missing {
  border-style: dashed;
  background: transparent;
}
.cls-card.missing:hover { border-color: var(--border-light); }

/* ---------- sparklines (v6 spec: baseline + end dot + min/max dots) ---------- */
.sparkline { display: block; color: var(--text-2); }
.sparkline.up { color: var(--pos); }
.sparkline.down { color: var(--neg); }
.sparkline polyline {
  stroke-width: 1.6;
  filter: none;
}
.sparkline .sp-base {
  stroke: var(--hairline);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}
.sparkline .sp-end { fill: currentColor; stroke: var(--surface); stroke-width: 1.2; }
.sparkline .sp-mm { fill: var(--text-3); opacity: 0.75; }

/* ---------- data tables (hairline rows + right-aligned numerics) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}
thead th {
  position: static;
  background: var(--surface-2);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
thead th.num { text-align: right; }
th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--text) 3%, transparent); }
tbody tr:hover { background: var(--accent-soft); }
tbody tr:last-child td { border-bottom: none; }

td.tick, .tick {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.94em;
  color: var(--text);
}
a.tick:hover { color: var(--accent); }

td.thesis, .thesis-cell {
  color: var(--text-2);
  font-size: 12.5px;
  max-width: 340px;
  line-height: 1.45;
}
tr.excl td { color: var(--text-3); }
tr.excl { background: color-mix(in srgb, var(--neg) 5%, transparent) !important; }
tr.excl td:first-child { border-left: 2px solid var(--neg); }

/* rank column + company sub-line (aandelen top-10) */
td.rank {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-3);
  width: 34px;
  text-align: center !important;
}
td .sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: normal;
}

/* pool / top10 / snapshot table variants */
table.top10, table.pool { font-size: 13.5px; }
table.pool td { vertical-align: top; }
td .cat {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.asof {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
}
.marktcontext {
  border-left: 3px solid var(--accent-line);
  padding-left: 12px;
  margin: 10px 0 18px;
  max-width: 82ch;
}

/* text pills (v6: replaces emoji markers) */
.pmark {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.pmark-seated {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.pmark-excl {
  color: var(--neg);
  background: color-mix(in srgb, var(--neg) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--neg) 40%, transparent);
}

/* key-value tables (pick pages, TA panel) */
table.kv { background: transparent; border: none; border-radius: 0; overflow: visible; }
table.kv th {
  position: static;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-2);
  width: 46%;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
table.kv td {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
table.kv tbody tr:nth-child(even) { background: transparent; }
table.kv.wide { font-size: 14px; }

/* ---------- evidence badge (pill, amber outline) ---------- */
.ev-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- audit-debate badge (pill; FLAG/SUSTAIN/DOWNGRADE) ---------- */
.audit-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.audit-badge.audit-flag {
  color: var(--neg);
  background: color-mix(in srgb, var(--neg) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--neg) 45%, transparent);
}
.audit-badge.audit-downgrade {
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
}
.audit-badge.audit-sustain {
  color: var(--pos);
  background: color-mix(in srgb, var(--pos) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--pos) 40%, transparent);
}
.audit-badge.audit-other {
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
}

/* ---------- pick detail page ---------- */
.crumbs {
  margin: 4px 0 4px;
  font-size: 13px;
  color: var(--text-2);
}
.crumbs a { color: var(--accent); }
.pick h1 { margin-top: 8px; }
.pick .meta {
  color: var(--text-2);
  font-size: 13.5px;
  margin: 8px 0 20px;
  font-variant-numeric: tabular-nums;
}
.pick .meta strong { color: var(--text); }

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* ---------- chart (build-time inline SVG, no library) ---------- */
.chart-card .price-chart { width: 100%; height: auto; min-height: 200px; display: block; }
.price-chart .cgrid { stroke: var(--hairline); stroke-width: 1; stroke-dasharray: 2 3; }
.price-chart .clab { fill: var(--text-3); font-size: 11px; font-family: var(--mono); }
.price-chart .clab.base100 { fill: var(--text-2); font-weight: 600; }
.price-chart .clab.rend { font-weight: 700; font-size: 12px; }
.price-chart .clab-r { text-anchor: start; }
.price-chart .carea { fill: var(--accent-soft); stroke: none; }
.price-chart .cline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.price-chart .cband { fill: var(--warn-soft); }
.price-chart .cband.cpending { opacity: 0.45; }
.price-chart .cdot { fill: var(--warn); stroke: var(--surface); stroke-width: 1.5; }
.price-chart .cstop { stroke: var(--neg); stroke-width: 1.5; stroke-dasharray: 6 4; }
.price-chart .cstoplab { fill: var(--neg); font-size: 11px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-2); font-size: 12px; margin: 8px 0 0; }
.chart-legend .lg { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -2px; }
.chart-legend .lg-line { border-top: 2px solid var(--accent); height: 0; }
.chart-legend .lg-dot { border-radius: 50%; background: var(--warn); }
.chart-legend .lg-band { background: var(--warn-soft); border: 1px solid var(--warn-line); }
.chart-legend .lg-stop { border-top: 2px dashed var(--neg); height: 0; }

/* ---------- track record ---------- */
.night { margin-top: 16px; }
.night h2 { margin-bottom: 8px; }
.night > p { color: var(--text-2); font-size: 13.5px; margin-bottom: 12px; }
table.tr { font-size: 13.5px; }
/* collapsible nights (details/summary) + synthesis band */
details.night { padding: 0; }
details.night > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 600;
}
details.night > summary::-webkit-details-marker { display: none; }
details.night > summary::after {
  content: "▸";
  color: var(--text-3);
  font-size: 12px;
  transition: transform 0.15s ease;
  margin-left: auto;
}
details.night[open] > summary::after { transform: rotate(90deg); }
details.night > summary .night-h {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
}
details.night > summary .night-avg { font-variant-numeric: tabular-nums; font-weight: 600; }
details.night > p, details.night > table { margin-left: 18px; margin-right: 18px; }
details.night > table { width: calc(100% - 36px); margin-bottom: 16px; }
details.night.dup > summary { font-weight: 500; color: var(--text-2); }
details.night.dup > summary .night-h { font-family: var(--font); font-size: 14px; font-weight: 500; }
/* dup nights are plain inline lines, not card chrome */
.dup-note {
  margin: 6px 0 10px;
  padding: 0 2px;
  font-size: 12.5px;
  color: var(--text-3);
}
.track-kpis { margin: 14px 0 4px; }
.track-kpis .kpi { flex: 1 1 150px; }

/* ---------- KB findings ---------- */
.kb-card { margin-bottom: 14px; }
.kb-card h2 { margin: 0 0 8px; font-size: 16.5px; line-height: 1.3; }
.kb-card .meta {
  color: var(--text-3);
  font-size: 12.5px;
  margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
}
.kb-card .meta strong { color: var(--warn); }
.kb-card p:last-of-type { margin: 0; color: var(--text-2); }
/* editorialized KB cards — plain headline + conclusion, jargon in mono meta */
.kb-card h2 { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.3; }
.kb-concl { color: var(--text-2); font-size: 13.5px; margin: 0 0 8px; max-width: 88ch; }
.kb-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- colophon (index: trust section) ---------- */
.colophon {
  margin-top: 56px;
  padding: 28px 0 8px;
  border-top: 3px double var(--hairline);
  max-width: 76ch;
}
.colophon-h {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.colophon p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.colophon strong { color: var(--text); }

/* ---------- warning / disclaimer ---------- */
.warn {
  background: var(--warn-soft);
  color: color-mix(in srgb, var(--warn) 55%, var(--text));
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  margin: 12px 0;
}

.disc {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding: 20px 16px 32px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  color: var(--text-3);
  font-size: 12.5px;
}
.disc p { max-width: none; margin: 0; }
.disc strong { color: var(--text-2); font-weight: 600; }

.hint {
  color: var(--text-3);
  font-size: 12.5px;
  margin: 8px 0 0;
}

/* ---------- freshness badge + transparency layer ---------- */
.fresh-badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fresh-badge.ok {
  color: var(--pos);
  background: color-mix(in srgb, var(--pos) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--pos) 40%, transparent);
}
.fresh-badge.bad {
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
}
.whylist { margin: 8px 0 0; padding-left: 20px; }
.whylist li { margin: 10px 0; color: var(--text-2); }
.whylist li strong { color: var(--text); }

/* ---------- no-data state ---------- */
body.no-data .warn { margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cls-grid, .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .hero-kpis { justify-content: flex-start; }
  .scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .sb-item { padding: 2px 14px; }
  .sb-item:nth-child(odd) { padding-left: 0; }
  .sb-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .sb-item:nth-child(3), .sb-item:nth-child(4) { border-top: 1px solid var(--hairline); padding-top: 12px; }
  .sb-item:nth-child(4) { padding-right: 0; }
}

@media (max-width: 720px) {
  main { padding: 16px 12px 40px; }
  h1 { font-size: 26px; }
  .hero-title { font-size: clamp(30px, 9vw, 40px); }
  .hero { padding: 18px 16px; }
  .hero-dek { font-size: 15px; }
  .kpi { min-width: 0; flex: 1 1 130px; }
  .masthead-inner { padding: 10px 12px 6px; }
  .brand { font-size: 1.3rem; }
  .brand em { display: none; }
  .dateline { font-size: 9.5px; }
  .sec-head { grid-template-columns: 1fr; gap: 6px; margin-top: 40px; }
  .sec-num { -webkit-text-stroke: 0.8px var(--accent-line); }

  .scoreboard { grid-template-columns: 1fr 1fr; }

  /* ---- v6 card-pivot tables: rows become labeled cards, no clipping ---- */
  table.top10, table.pool, table.tr, table.kv.wide {
    display: block;
    border: none;
    background: transparent;
    overflow: visible;
    white-space: normal;
  }
  table.top10 thead, table.pool thead, table.tr thead, table.kv.wide thead { display: none; }
  table.top10 tbody, table.pool tbody, table.tr tbody, table.kv.wide tbody { display: block; }
  table.top10 tbody tr, table.pool tbody tr, table.tr tbody tr, table.kv.wide tbody tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 6px 14px 10px;
  }
  table.top10 tbody td, table.pool tbody td, table.tr tbody td, table.kv.wide tbody td {
    display: grid;
    grid-template-columns: minmax(84px, 38%) 1fr;
    gap: 12px;
    align-items: baseline;
    border-bottom: 1px dotted var(--border);
    padding: 8px 0;
    white-space: normal;
    text-align: left !important;
  }
  table.top10 tbody tr:last-child td, table.pool tbody tr:last-child td,
  table.tr tbody tr:last-child td, table.kv.wide tbody tr:last-child td { border-bottom: 1px dotted var(--border); }
  table.top10 tbody td:last-child, table.pool tbody td:last-child,
  table.tr tbody td:last-child, table.kv.wide tbody td:last-child { border-bottom: none; }
  table.top10 tbody td::before, table.pool tbody td::before,
  table.tr tbody td::before, table.kv.wide tbody td::before {
    content: attr(data-label);
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
  }
  td.thesis, .thesis-cell { max-width: none; }
  td.rank { width: auto; text-align: left !important; }
  tr.excl td:first-child { border-left: none; }
  tr.excl td { border-left: none; }
  tr.excl tbody, table.pool tr.excl { border-left: 3px solid var(--neg); }

  /* kv tables that are NOT wide stack naturally with labels already inline */
  table.kv:not(.wide) { display: table; white-space: normal; }

  .cols { grid-template-columns: 1fr; }
  .cls-grid, .asset-grid { grid-template-columns: 1fr; }
  .cls-card .sparkline, .asset-card .sparkline { width: 100%; }

  /* masthead nav: wrap onto full-width lines — every item visible/tappable */
  .masthead nav { overflow: visible; flex-wrap: wrap; row-gap: 2px; padding: 0 8px 6px; }
  .masthead nav a { padding: 6px 10px; font-size: 0.84rem; }
  .site { height: auto; flex-wrap: wrap; padding: 8px 12px 6px; row-gap: 4px; }
  .site nav { max-width: 100%; width: 100%; order: 2; overflow: visible; flex-wrap: wrap; row-gap: 2px; }
  .site nav a { padding: 6px 10px; font-size: 0.86rem; }
}



/* ---------- v7 close-out: calm accent system + provenance + staleness ---------- */
/* red ONLY for negatives; the antique-gold accent is the single calm signal
   color (KPI ink, charts, links). ev-badge was warning-khaki — now neutral. */
.ev-badge {
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* provenance microformat: mono, gray, icon-led, max 3 tokens */
.prov {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--text-3);
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
.prov-note { font-size: 11.5px; }

/* audit strip: hairline mono (was warning-khaki .sb-strip) */
.audit-strip {
  grid-column: 1 / -1;
  max-width: none;
  margin: 14px 0 0;
  padding: 9px 0 3px;
  font-size: 12px;
  color: var(--text-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.audit-strip .prov { font-size: 11.5px; }

/* staleness notes (signalen date-stamp, equity N-caveat) */
.stale-note {
  font-size: 12.5px;
  color: var(--text-2);
  border-left: 2px solid var(--accent-line);
  padding: 2px 0 2px 10px;
  margin: 10px 0 14px;
  max-width: 82ch;
}
.legend-line {
  font-size: 12px;
  color: var(--text-2);
  margin: 10px 0 4px;
  max-width: 82ch;
}
.legend-line .audit-badge { margin-left: 0; margin-right: 4px; }

/* equity curve: drawdown annotation */
.price-chart .cdd { fill: none; stroke: var(--neg); stroke-width: 1.4; }
.price-chart .clab.dd { fill: var(--neg); font-size: 11px; }

/* hero chart 16:9 with end labels breathing room */
.hero-chart .price-chart { max-height: none; aspect-ratio: 16 / 9; min-height: 220px; }

@media (max-width: 720px) {
  /* signalen: horizontally scrollable table (replaces card-pivot here) */
  #signalen .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border); border-radius: var(--radius); }
  #signalen table.kv.wide { display: table; border: none; background: var(--surface); white-space: nowrap; }
  #signalen table.kv.wide thead { display: table-header-group; }
  #signalen table.kv.wide tbody { display: table-row-group; }
  #signalen table.kv.wide tbody tr { display: table-row; background: transparent;
    border: none; padding: 0; margin: 0; }
  #signalen table.kv.wide tbody td { display: table-cell; border-bottom: 1px solid var(--border);
    padding: 11px 12px; white-space: nowrap; }
  #signalen table.kv.wide tbody td::before { content: none; }
  #signalen .stale-note { font-size: 11.5px; }
  .hero-chart { padding: 16px 14px 12px; }
}



/* ---------- v7 round 2: thesis layering, badge deflation, hero column ---------- */
/* raw audit log behind a toggle — the substance stays, the machinery folds */
details.audit-log { margin-top: 6px; }
details.audit-log > summary {
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  list-style: none;
}
details.audit-log > summary::-webkit-details-marker { display: none; }
details.audit-log > summary::before { content: "▸ "; color: var(--accent); }
details.audit-log[open] > summary::before { content: "▾ "; }
details.audit-log > summary:hover { color: var(--text); }
details.audit-log > p {
  margin: 6px 0 0;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* pool rank outside top-10: plain mono, no pill chrome */
.pool-rank { font-size: 11px; color: var(--text-3); margin-left: 6px; }

/* stop-column denominator note */
thead th small { font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--text-3); font-size: 10px; }

/* hero: single editorial column — stat band full-width below the prose */
@media (min-width: 721px) {
  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero-kpis { justify-content: stretch; }
}

/* reclaim dead space: tighter section rhythm around the hero chart */
.hero-chart { margin-top: 20px; }
.sec-head { margin: 44px 0 18px; }

/* mobile scroll affordance for the signalen table */
@media (max-width: 720px) {
  #signalen .table-wrap { position: relative; }
  #signalen .table-wrap::after {
    content: "→";
    position: sticky;
    float: right;
    right: 0; top: 50%;
    display: inline-block;
    margin-right: -2px;
    padding: 2px 6px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
    background: linear-gradient(to left, var(--surface) 55%, transparent);
    pointer-events: none;
  }
}



/* ---------- v7 round 3: editorial thesis, signalen collapse, mobile stacks ---------- */
.th-nl { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.th-nl .pos, .th-nl .neg { font-weight: 600; }

/* denominator legend under the hero scoreboard (mono provenance line) */
.prov-line { grid-column: 1 / -1; margin: 10px 0 0; }

/* signalen: collapsed all-WAIT table */
details.sig-dead { margin: 6px 0 4px; }
details.sig-dead > summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  list-style: none;
}
details.sig-dead > summary::-webkit-details-marker { display: none; }
details.sig-dead > summary::before { content: "▸ "; color: var(--accent); }
details.sig-dead[open] > summary::before { content: "▾ "; }
details.sig-dead > summary:hover { color: var(--text); border-color: var(--accent-line); }
details.sig-dead .table-wrap { margin-top: 10px; }

/* mobile: stats stack single column; nav single-row scroll; tighter chrome */
@media (max-width: 480px) {
  .scoreboard { grid-template-columns: 1fr; row-gap: 12px; }
  .sb-item + .sb-item { border-left: none; border-top: 1px solid var(--hairline); padding: 10px 0 0; }
  .sb-item { padding: 0; }
}
@media (max-width: 720px) {
  .masthead nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .masthead nav::-webkit-scrollbar { display: none; }
}



/* ---------- v7 round 4: verdict chips, chart framing, mobile tuning ---------- */
.vchip {
  display: inline-block;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  border-radius: 999px;
  white-space: nowrap;
}
.vchip.v-pos { color: var(--pos); background: color-mix(in srgb, var(--pos) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pos) 40%, transparent); }
.vchip.v-warn { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.vchip.v-neu { color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.vchip.v-neg { color: var(--neg); background: color-mix(in srgb, var(--neg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--neg) 40%, transparent); }

/* editorial frame sentence ABOVE the chart — the honest premise, stated first */
.chart-frame {
  margin: 0 0 14px;
  max-width: 72ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}

/* nav scroll affordance on mobile: right-edge fade */
@media (max-width: 720px) {
  .masthead nav {
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  /* hero stats: compact 2-col (not a 4-screen stack) */
  .scoreboard { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .sb-item + .sb-item { border-left: none; border-top: 1px solid var(--hairline); padding: 10px 0 0; }
  .sb-item { padding: 0 10px 0 0; }
  .sb-item:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--hairline); }
  .hero-chart .price-chart { min-height: 160px; }
}
@media (max-width: 480px) {
  .scoreboard { grid-template-columns: 1fr 1fr; }
}



/* ---------- v7 round 5: design-system pass on the data furniture ---------- */
/* provenance annotation: small-caps label + quiet text (no ≡ mono log look) */
.prov { font-family: var(--font); font-size: 12px; color: var(--text-3); }
.prov-lab {
  display: inline-block;
  margin-right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* reader strip: the one visible date/audit/drawdown explainer */
.reader-strip {
  margin: 10px 0 4px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--surface-2);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius-sm);
  max-width: 82ch;
}
.reader-strip em { font-style: normal; font-weight: 600; }

/* equity curve: softer area fill */
.price-chart .carea.carea-soft { fill: color-mix(in srgb, var(--accent) 6%, transparent); }

@media (max-width: 720px) {
  .hero-chart .price-chart { aspect-ratio: 16 / 10; min-height: 190px; }
  .reader-strip { font-size: 11px; }
  /* nav continuation hint */
  .masthead nav::after {
    content: "›";
    position: sticky; right: 0;
    padding: 6px 2px 6px 14px;
    color: var(--text-3);
    background: linear-gradient(to left, var(--bg) 40%, transparent);
  }
}



/* ---------- v7 round 6: global ink/contrast pass ---------- */
/* kimi-v7-r6: body/provenance text was washed-out gray on cream — crisp ink
   is the FT/Bloomberg craft baseline. Light theme only; dark is already ok. */
:root {
  --text-2: #3d4148;
  --text-3: #646a73;
}
.na { color: var(--text-3); font-size: 12px; }
.lead, .sb-foot, .prov, .reader-strip { max-width: 65ch; }

@media (max-width: 720px) {
  .price-chart .clab.dd { font-size: 10px; }
}

/* ---------- print (track-record / report-friendly) ---------- */
@media print {
  .masthead, .skip-link { position: static; backdrop-filter: none; }
  body { background: #fff; }
}
