@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&f[]=cabinet-grotesk@700,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.1vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);

  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;

  --bg:        oklch(0.155 0.012 42);
  --bg-deep:   oklch(0.115 0.010 42);
  --surface:   oklch(0.205 0.014 42);
  --surface-2: oklch(0.248 0.016 44);
  --border:    oklch(0.315 0.018 46);
  --border-sub:oklch(0.255 0.014 44);
  --text:      oklch(0.945 0.008 70);
  --muted:     oklch(0.700 0.014 58);
  --faint:     oklch(0.560 0.014 55);

  --gold:      oklch(0.815 0.135 86);
  --gold-dim:  oklch(0.60 0.095 86);
  --up:        oklch(0.760 0.155 158);
  --down:      oklch(0.655 0.190 24);
  --ritual:    oklch(0.660 0.185 348);
  --info:      oklch(0.760 0.115 232);

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --shadow: 0 1px 2px oklch(0.10 0 0 / 0.4), 0 8px 24px oklch(0.08 0 0 / 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  -webkit-font-smoothing: antialiased;
}
.num, td.n, th.n { font-variant-numeric: tabular-nums lining-nums; font-family: var(--font-mono); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; grid-template-rows: auto 1fr; height: 100dvh; }

.sidebar {
  grid-row: 1 / -1; background: var(--bg-deep);
  border-right: 1px solid var(--border-sub);
  padding: var(--space-5) var(--space-4);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: var(--space-5);
}
/* Stacked, not side-by-side. At 30px the emblem was unreadable — you could not tell
   it was a dragon around an orb. The 250px sidebar has room to give it real presence,
   and stacking means a large mark costs the wordmark no width, so nothing wraps or
   truncates the way it did when the mark simply grew in the horizontal layout. */
.brand { display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
         text-align: center; padding-bottom: var(--space-2); margin: 0 calc(-1 * var(--space-2)); }
.brand svg { flex: none; color: var(--gold); }
/* The Brined Seal. Raster rather than SVG: the dragon relief and the liquid inside
   the orb are painted detail that vector shapes cannot carry at this size. */
/* Fills the sidebar's content width — as large as it can be without stealing any
   width from the data table. Served from a 456px source so it stays crisp at 2x DPR
   and would still be sharp if the sidebar ever grows. */
.brand .mark {
  /* min(100%, 26vh): fills the column on normal and tall screens, and shrinks a
     little on short ones so the exchange rates and attribution stay above the fold
     instead of forcing a scroll. */
  flex: none; width: min(100%, 26vh); max-width: 100%; height: auto;
  aspect-ratio: 1; display: block;
  filter: drop-shadow(0 3px 14px oklch(0 0 0 / 0.65))
          drop-shadow(0 0 26px oklch(0.76 0.155 158 / 0.18));
}
.brand > div { min-width: 0; }
.brand h1 { white-space: nowrap; }
.brand h1 { font-family: var(--font-display); font-size: 1.25rem; margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
.brand p { margin: 2px 0 0; font-size: var(--text-xs); color: var(--faint); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label, .side-label {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--faint); font-weight: 700; margin-bottom: var(--space-2);
}
.nav button {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; text-align: left; background: none; border: 0;
  color: var(--muted); font: inherit; font-size: var(--text-sm);
  padding: var(--space-3); border-radius: var(--r-sm); cursor: pointer;
  transition: background .15s, color .15s;
}
.nav button:hover { background: var(--surface); color: var(--text); }
.nav button[aria-current="true"] { background: var(--surface-2); color: var(--text); font-weight: 700; }
.nav button[aria-current="true"] .dot { background: var(--gold); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex: none; }

.rate-list { display: flex; flex-direction: column; gap: var(--space-2); }
.rate {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); background: var(--surface);
  border: 1px solid var(--border-sub); border-radius: var(--r-sm);
}
.rate span:first-child { font-size: var(--text-xs); color: var(--muted); }
.rate span:last-child { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; }

.side-note { font-size: var(--text-xs); color: var(--faint); line-height: 1.5; margin-top: auto; }
.side-note a { color: var(--gold-dim); }

/* ---------- header ---------- */
.header {
  grid-column: 2; position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-sub);
  padding: var(--space-4) var(--space-6);
  display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
}
.header h2 { font-family: var(--font-display); font-size: var(--text-lg); margin: 0; letter-spacing: -0.01em; }
.header .sub { font-size: var(--text-xs); color: var(--faint); margin-top: 2px; }
.hdr-spacer { flex: 1 1 auto; }
.stamp {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--muted);
  font-family: var(--font-mono);
  border: 1px solid var(--border-sub); background: var(--surface);
  padding: var(--space-2) var(--space-3); border-radius: 999px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px color-mix(in oklab, var(--up) 25%, transparent); }

/* ---------- main ---------- */
.main {
  grid-column: 2; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-6);
}
.view[hidden] { display: none; }

/* ---------- KPI ---------- */
.kpis[hidden] { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.kpi {
  background: var(--surface); border: 1px solid var(--border-sub);
  border-radius: var(--r-md); padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-1);
  position: relative; overflow: hidden;
}
.kpi::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--border); }
.kpi.gold::before { background: var(--gold); }
.kpi.up::before { background: var(--up); }
.kpi.down::before { background: var(--down); }
.kpi.ritual::before { background: var(--ritual); }
.kpi .k-label { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.kpi .k-val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.kpi .k-note { font-size: var(--text-xs); color: var(--faint); line-height: 1.4; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border-sub);
  border-radius: var(--r-lg); margin-bottom: var(--space-6);
}
.card-head {
  padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-sub);
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.card-head h3 { font-family: var(--font-display); font-size: var(--text-base); margin: 0; }
.card-head p { margin: 2px 0 0; font-size: var(--text-xs); color: var(--faint); max-width: 68ch; line-height: 1.5; }
.card-body { padding: var(--space-5); }
.card-body.flush { padding: 0; }

/* ---------- controls ---------- */
.controls { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip {
  background: var(--surface-2); border: 1px solid var(--border-sub); color: var(--muted);
  font: inherit; font-size: var(--text-xs); font-weight: 500;
  padding: var(--space-2) var(--space-3); border-radius: 999px; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--border); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: oklch(0.18 0.02 60); font-weight: 700; }
input[type="search"], select {
  background: var(--surface-2); border: 1px solid var(--border-sub); color: var(--text);
  font: inherit; font-size: var(--text-sm); padding: var(--space-2) var(--space-3);
  border-radius: var(--r-sm); min-width: 0;
}
input[type="search"] { width: 220px; }
input[type="search"]:focus-visible, select:focus-visible, .chip:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.slider-wrap { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--muted); }
input[type="range"] { accent-color: var(--gold); width: 110px; }
.btn {
  background: var(--surface-2); border: 1px solid var(--border-sub); color: var(--text);
  font: inherit; font-size: var(--text-xs); font-weight: 700;
  padding: var(--space-2) var(--space-3); border-radius: var(--r-sm); cursor: pointer;
}
.btn:hover { border-color: var(--gold-dim); }

/* ---------- table ---------- */
.table-scroll { max-height: none; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-xs); }
thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface-2); color: var(--muted);
  text-align: left; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--border);
  white-space: nowrap; cursor: pointer; user-select: none;
}
thead th.n, tbody td.n { text-align: right; }
thead th.static { cursor: default; }
thead th:hover:not(.static) { color: var(--text); }
thead th .arrow { opacity: 0; margin-left: 4px; }
thead th[data-dir] .arrow { opacity: 1; color: var(--gold); }
tbody td { padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--border-sub); vertical-align: middle; }
tbody tr:hover td { background: color-mix(in oklab, var(--surface-2) 60%, transparent); }
tbody tr.is-divine td { background: color-mix(in oklab, var(--gold) 9%, transparent); }
tbody tr.is-divine:hover td { background: color-mix(in oklab, var(--gold) 14%, transparent); }
tbody tr.sel td { box-shadow: inset 2px 0 0 var(--info); }

.asset { display: flex; align-items: center; gap: var(--space-2); min-width: 186px; }
.asset img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.asset .ico-fallback { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--surface-2); flex: none; }
.asset .nm { font-size: var(--text-xs); font-weight: 500; line-height: 1.3; }
.asset .sub { font-size: 0.6875rem; color: var(--faint); line-height: 1.2; }
.up { color: var(--up); }
.down { color: oklch(0.73 0.165 24); }
.flat { color: oklch(0.74 0.012 55); }
.tag {
  display: inline-block; font-size: 0.6875rem; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
}
.tag.g-Currency { color: var(--gold); border-color: var(--gold-dim); }
.tag.g-Omens { color: var(--ritual); border-color: color-mix(in oklab, var(--ritual) 55%, transparent); }
.tag.g-Expedition { color: var(--info); border-color: color-mix(in oklab, var(--info) 55%, transparent); }
.tag.g-Fragments { color: oklch(0.80 0.12 300); border-color: oklch(0.55 0.10 300); }
.tag.g-Unique { color: oklch(0.82 0.11 190); border-color: oklch(0.55 0.09 190); }

.bar-cell { display: flex; align-items: center; gap: var(--space-2); justify-content: flex-end; }
.bar { height: 6px; border-radius: 3px; background: var(--border); min-width: 1px; }
.bar.up { background: var(--up); } .bar.down { background: var(--down); }
.bar-track { width: 42px; height: 6px; border-radius: 3px; background: var(--border-sub); position: relative; overflow: hidden; flex: none; }
.bar-track > i { position: absolute; top: 0; bottom: 0; }

.spark { display: block; }
.badge-flag {
  font-size: 0.625rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: var(--r-sm); white-space: nowrap;
}
.badge-flag.hot { background: color-mix(in oklab, var(--up) 22%, transparent); color: var(--up); border: 1px solid color-mix(in oklab, var(--up) 45%, transparent); }
.badge-flag.cold { background: color-mix(in oklab, var(--down) 20%, transparent); color: var(--down); border: 1px solid color-mix(in oklab, var(--down) 45%, transparent); }
.badge-flag.thin { background: var(--surface-2); color: var(--faint); border: 1px solid var(--border-sub); }

.empty { padding: var(--space-12); text-align: center; color: var(--faint); font-size: var(--text-sm); }
.chart-box { position: relative; height: 340px; }
.chart-box.tall { height: 420px; }
.legend-note { font-size: var(--text-xs); color: var(--faint); margin-top: var(--space-3); line-height: 1.5; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

.picker { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pick {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--surface-2); border: 1px solid var(--border-sub); color: var(--muted);
  font: inherit; font-size: var(--text-xs); padding: var(--space-2) var(--space-3);
  border-radius: 999px; cursor: pointer;
}
.pick[aria-pressed="true"] { color: var(--text); border-color: currentColor; }
.pick i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.prose { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; max-width: 84ch; }
.prose h4 { font-family: var(--font-display); color: var(--text); font-size: var(--text-base); margin: var(--space-6) 0 var(--space-2); }
.prose h4:first-child { margin-top: 0; }
.prose code { font-family: var(--font-mono); font-size: 0.8125em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--gold); }
.prose a { color: var(--gold-dim); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold); }
.prose ul { padding-left: var(--space-5); }
.prose li { margin-bottom: var(--space-2); }
.callout {
  border-left: 3px solid var(--gold); background: color-mix(in oklab, var(--gold) 7%, transparent);
  padding: var(--space-4); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: var(--space-4) 0;
  font-size: var(--text-xs); line-height: 1.6; color: var(--text);
}
.callout strong { color: var(--gold); }

/* skeleton */
.skeleton { display: grid; gap: var(--space-3); padding: var(--space-5); }
.sk { height: 34px; border-radius: var(--r-sm); background:
  linear-gradient(90deg, var(--surface-2) 25%, var(--border-sub) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: sh 1.3s ease infinite; }
@keyframes sh { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 900px) {
  html, body { overflow: auto; }
  /* minmax(0,1fr), not 1fr: a wide data table inside would otherwise stretch the
     single grid column past the viewport and clip the whole page. */
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; height: auto; min-height: 100dvh; }
  .sidebar, .header, .main, .card, .card-head, .card-body, .table-scroll { min-width: 0; }
  .sidebar {
    grid-row: auto; grid-column: 1; border-right: 0;
    border-bottom: 1px solid var(--border-sub);
    overflow: visible; gap: var(--space-4);
    padding: var(--space-4);
  }
  .header, .main { grid-column: 1; }
  .main { overflow: visible; padding: var(--space-4); }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .header { position: static; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: var(--space-2); }
  .nav .nav-label { flex: 1 0 100%; margin-bottom: 0; }
  .nav button { width: auto; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-sub); }
  .rate-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .side-note { margin-top: 0; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
  .kpi .k-val { font-size: 1.25rem; }
  .chart-box, .chart-box.tall { height: 300px; }
  .card-head { padding: var(--space-4); }
  .card-body { padding: var(--space-4); }
  input[type="search"] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---------- recommendation pill ---------- */
.rec {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent; cursor: help;
}
.rec-sb { background: color-mix(in oklab, var(--up) 26%, transparent); color: oklch(0.88 0.15 158); border-color: var(--up); }
.rec-b  { background: color-mix(in oklab, var(--up) 13%, transparent); color: var(--up); border-color: color-mix(in oklab, var(--up) 45%, transparent); }
.rec-h  { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.rec-s  { background: color-mix(in oklab, var(--down) 13%, transparent); color: oklch(0.74 0.165 24); border-color: color-mix(in oklab, var(--down) 45%, transparent); }
.rec-ss { background: color-mix(in oklab, var(--down) 26%, transparent); color: oklch(0.80 0.18 24); border-color: var(--down); }
.rec-n  { background: transparent; color: oklch(0.70 0.014 55); border-color: var(--border-sub); font-weight: 600; }
.rec-base { background: color-mix(in oklab, var(--gold) 16%, transparent); color: var(--gold); border-color: var(--gold-dim); }
.rec i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.rec.conf-low i { opacity: 0.35; }
.rec.conf-medium i { opacity: 0.7; }

/* ---------- sticky asset column ---------- */
#tbl thead th:first-child, #tbl tbody td:first-child,
#hist-tbl thead th:first-child, #hist-tbl tbody td:first-child {
  position: sticky; left: 0; z-index: 6;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--border-sub);
}
#tbl thead th:first-child, #hist-tbl thead th:first-child { z-index: 8; background: var(--surface-2); }
#tbl tbody tr:hover td:first-child { background: oklch(0.248 0.016 44); }
#tbl tbody tr.is-divine td:first-child { background: oklch(0.245 0.035 70); }

/* ---------- reading guide ---------- */
.guide { border-bottom: 1px solid var(--border-sub); }
.guide summary {
  cursor: pointer; padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs); font-weight: 700; color: var(--gold);
  letter-spacing: 0.04em; text-transform: uppercase; list-style: none;
  display: flex; align-items: center; gap: var(--space-2);
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary::before { content: '▸'; transition: transform .15s; }
.guide[open] summary::before { transform: rotate(90deg); }
.guide summary:hover { color: var(--text); }
.guide-body {
  padding: 0 var(--space-5) var(--space-5);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3) var(--space-6);
}
.guide-body dl { margin: 0; }
.guide-body dt { font-size: var(--text-xs); font-weight: 700; color: var(--text); font-family: var(--font-mono); }
.guide-body dd { margin: 2px 0 var(--space-3); font-size: var(--text-xs); color: var(--muted); line-height: 1.5; }
.rec-legend { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }

/* ---------- detail drawer ---------- */
.drawer-back {
  position: fixed; inset: 0; background: oklch(0.08 0 0 / 0.6);
  backdrop-filter: blur(2px); z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .18s;
}
.drawer-back[data-open] { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  background: var(--bg); border-left: 1px solid var(--border);
  z-index: 91; transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.drawer[data-open] { transform: none; }
.drawer-head {
  padding: var(--space-5); border-bottom: 1px solid var(--border-sub);
  display: flex; align-items: flex-start; gap: var(--space-4);
}
.drawer-head img, .drawer-head .ico-fallback { width: 40px; height: 40px; object-fit: contain; flex: none; }
.drawer-head h3 { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.15; }
.drawer-head .sub { font-size: var(--text-xs); color: var(--faint); margin-top: 3px; }
.drawer-close {
  margin-left: auto; background: var(--surface-2); border: 1px solid var(--border-sub);
  color: var(--muted); width: 30px; height: 30px; border-radius: var(--r-sm);
  cursor: pointer; font-size: 15px; line-height: 1; flex: none;
}
.drawer-close:hover { color: var(--text); border-color: var(--gold-dim); }
.drawer-body { padding: var(--space-5); overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.dstat { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.dstat > div { background: var(--surface); border: 1px solid var(--border-sub); border-radius: var(--r-sm); padding: var(--space-3); }
.dstat dt { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 700; }
.dstat dd { margin: 3px 0 0; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; }
.why { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.why li {
  font-size: var(--text-xs); color: var(--muted); line-height: 1.5;
  padding: var(--space-2) 0 var(--space-2) var(--space-4); position: relative;
  border-bottom: 1px solid var(--border-sub);
}
.why li::before { content: '·'; position: absolute; left: var(--space-2); color: var(--gold); font-weight: 900; }
.drawer h4 {
  font-family: var(--font-display); font-size: var(--text-sm); margin: var(--space-5) 0 var(--space-3);
  color: var(--text); text-transform: none;
}
.drawer h4:first-child { margin-top: 0; }
.drawer .chart-box { height: 220px; }
tbody tr[data-clickable] { cursor: pointer; }

/* ---------- column presets ---------- */
th[data-hidden], td[data-hidden] { display: none; }

/* Hysteresis marker: a call the score has begun to argue against but that has not
   yet been confirmed across two snapshots. */
sup.held {
  color: var(--gold); font-size: 9px; font-weight: 700; cursor: help;
  margin-left: 3px; vertical-align: super; line-height: 1;
}
