/* Token Tracker — design tokens, layout, components, charts, motion. */

:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e8e7e1;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.09);
  --border-strong: rgba(11, 11, 11, 0.2);
  --wash: rgba(11, 11, 11, 0.035);
  --link: #1c5cab;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
  --other: #b5b3ab;
  /* Status (fixed hues) — always paired with a direction glyph and a text label. The warning
     step is darkened on light surfaces so thin arrows stay legible. */
  --good: #0ca30c; --warning: #fab219; --critical: #d03b3b;
  --tone-good: #0ca30c; --tone-warning: #b7791f; --tone-critical: #d03b3b; --tone-neutral: #898781;
  --up: #006300; --down: #c22f2f;
  /* Diverging poles for signed values (growth, change). */
  --pos: #2a78d6; --neg: #e34948;
  --glow-1: rgba(42, 120, 214, 0.09); --glow-2: rgba(27, 175, 122, 0.06);
  --shadow-1: 0 1px 2px rgba(11, 11, 11, 0.04);
  --shadow-2: 0 18px 40px -24px rgba(11, 11, 11, 0.28), 0 2px 6px -2px rgba(11, 11, 11, 0.06);
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font);
  font-optical-sizing: auto;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #161615; --surface-2: #1c1c1b; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
    --grid: #262624; --axis: #383835; --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.22);
    --wash: rgba(255, 255, 255, 0.045); --link: #86b6ef;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --other: #5c5b56;
    --tone-warning: #fab219; --tone-neutral: #898781;
    --up: #0ca30c; --down: #ff7b72;
    --pos: #3987e5; --neg: #e66767;
    --glow-1: rgba(57, 135, 229, 0.14); --glow-2: rgba(25, 158, 112, 0.08);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 18px 40px -20px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #161615; --surface-2: #1c1c1b; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
  --grid: #262624; --axis: #383835; --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.22);
  --wash: rgba(255, 255, 255, 0.045); --link: #86b6ef;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --other: #5c5b56;
  --tone-warning: #fab219; --tone-neutral: #898781;
  --up: #0ca30c; --down: #ff7b72;
  --pos: #3987e5; --neg: #e66767;
  --glow-1: rgba(57, 135, 229, 0.14); --glow-2: rgba(25, 158, 112, 0.08);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 18px 40px -20px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
}

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
/* Between pages the header holds still and a company's name glides into its page title. */
.site-header { view-transition-name: site-header; }
#co-title { view-transition-name: co-title; }
html.theming .site-header { view-transition-name: none; }
::view-transition-group(co-title) { animation-duration: 460ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(co-title), ::view-transition-new(co-title) { animation-duration: 300ms; }
html.theming::view-transition-old(root), html.theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theming::view-transition-new(root) { z-index: 2; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1100px 560px at 12% -8%, var(--glow-1), transparent 70%),
    radial-gradient(900px 480px at 88% 0%, var(--glow-2), transparent 70%),
    var(--page);
  background-repeat: no-repeat;
  color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased;
  font-size: 15px; font-feature-settings: "cv11", "ss03";
}
a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--page); font-weight: 600; text-decoration: none; transition: top 150ms; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--page) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 200ms;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.top { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 16px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 16px; height: 16px; }
.brand-mark path { stroke: var(--page); }
.top-nav { display: flex; gap: 2px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transition: color 150ms, background 150ms; }
.top-nav a:hover { background: var(--wash); color: var(--ink); }
.top-nav a[aria-current="true"] { color: var(--ink); background: var(--wash); font-weight: 560; }
.top-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; cursor: pointer; color: var(--ink-2); transition: background 150ms, border-color 150ms, transform 150ms; }
.icon-btn:hover { background: var(--wash); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 16px; height: 16px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: 1px; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(12, 163, 12, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(12, 163, 12, 0); } 100% { box-shadow: 0 0 0 0 rgba(12, 163, 12, 0); } }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 4px; }
  .top-nav { order: 3; width: 100%; margin: 0 -10px; }
  .top-meta #updated { display: none; }
}

/* Companies menu */
.co-menu { position: relative; }
.co-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 14px; color: var(--ink); font-weight: 560; padding: 5px 9px 5px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); transition: background 150ms, border-color 150ms; white-space: nowrap; }
.co-menu > summary::-webkit-details-marker { display: none; }
.co-menu > summary:hover { background: var(--wash); border-color: var(--border-strong); }
.co-menu > summary svg { width: 14px; height: 14px; color: var(--muted); transition: transform 200ms var(--ease); }
.co-menu[open] > summary svg { transform: rotate(180deg); }
.co-menu-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: min(640px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-2); padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; animation: pop 160ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.99); } to { opacity: 1; transform: none; } }
.co-menu-group { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.co-menu-title { font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 6px; }
.co-menu-group a { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.co-menu-group a:hover { background: var(--wash); }
.co-menu-group a[aria-current="page"] { background: var(--wash); font-weight: 620; }
.mi-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-ticker { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.co-menu-note { grid-column: 1 / -1; margin: 8px 0 0; padding: 10px 8px 0; border-top: 1px solid var(--grid); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.co-menu-note span { display: inline-flex; gap: 3px; }
.glyph { width: 10px; height: 10px; flex: none; }
.glyph.tone-good { fill: var(--tone-good); }
.glyph.tone-warning { fill: var(--tone-warning); }
.glyph.tone-critical { fill: var(--tone-critical); }
.glyph.tone-neutral { fill: var(--tone-neutral); }
@media (max-width: 640px) {
  .co-menu-panel { position: fixed; top: 58px; left: 16px; right: 16px; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 72vh; overflow: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 44px 0 8px; }
.kicker { font-size: 12.5px; font-weight: 620; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.kicker .sep { opacity: 0.5; }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 68px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.hl { background-image: linear-gradient(var(--hl, var(--tone-good)), var(--hl, var(--tone-good))); background-repeat: no-repeat; background-position: 0 94%; background-size: 0% 0.085em; transition: background-size 1100ms var(--ease) 450ms; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl.in { background-size: 100% 0.085em; }
.lede { margin: 22px 0 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 620; }
.hero-chart { margin: 20px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--border); }
.stat { padding: 18px 18px 4px 0; min-width: 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--border); }
.stat-value { font-size: clamp(26px, 2.8vw, 34px); font-weight: 680; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.stat-value small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
.stat-label { font-size: 13px; color: var(--ink-2); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--grid); font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 520px) { .mini-stats { grid-template-columns: minmax(0, 1fr); } }
.mini-stats div { display: flex; flex-direction: column; gap: 2px; }
.mini-stats strong { font-size: 20px; color: var(--ink); font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini-stats .chip { align-self: flex-start; }

/* ---------- sections ---------- */
.section { margin: 104px 0 0; }
@media (max-width: 640px) { .section { margin-top: 72px; } }
.section-head { margin-bottom: 26px; max-width: 780px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.032em; line-height: 1.1; text-wrap: balance; }
.section-head .sub { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 66ch; text-wrap: pretty; }
.section-head .sub strong { color: var(--ink); font-weight: 620; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-1); min-width: 0; }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.012em; }
.panel .sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; max-width: 70ch; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; max-width: 100%; }
.note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); max-width: 92ch; line-height: 1.55; }
@media (max-width: 640px) { .panel { padding: 18px 16px; } }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 2px; background: var(--surface-2); flex: none; }
.seg button { border: 0; background: transparent; padding: 4px 11px; font-size: 13px; color: var(--ink-2); cursor: pointer; border-radius: 8px; transition: background 150ms, color 150ms, box-shadow 150ms; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 580; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border); }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 5px 11px; font-size: 13px; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background 150ms, border-color 150ms, color 150ms; }
.btn:hover { background: var(--wash); color: var(--ink); border-color: var(--border-strong); }
.btn svg { width: 14px; height: 14px; }
.btn.link { border-color: transparent; background: transparent; padding: 5px 0; color: var(--link); font-weight: 560; }
.btn.link:hover { background: transparent; text-decoration: underline; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: -6px -4px 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { border: 0; background: none; padding: 8px 12px 11px; font-size: 14px; color: var(--ink-2); cursor: pointer; position: relative; white-space: nowrap; transition: color 150ms; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tabs { position: relative; }
.tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); width: 0; transition: transform 380ms var(--ease), width 380ms var(--ease); pointer-events: none; }
[role="tabpanel"]:not([hidden]) { animation: fadein 260ms var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Collapsible */
.collapse { border-top: 1px solid var(--border); }
.collapse:last-child { border-bottom: 1px solid var(--border); }
.collapse > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 2px; font-size: 19px; font-weight: 650; letter-spacing: -0.018em; }
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary .sum-sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.collapse > summary svg { width: 20px; height: 20px; color: var(--muted); transition: transform 220ms var(--ease); flex: none; }
.collapse[open] > summary svg { transform: rotate(180deg); }
.collapse > summary:hover svg { color: var(--ink); }
.collapse > .collapse-body { padding: 0 0 30px; animation: fadein 260ms var(--ease); }

/* ---------- pills, chips, verdicts ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; padding: 4px 12px 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); white-space: nowrap; }
.pill svg { width: 11px; height: 11px; }
.pill.tone-good { background: color-mix(in srgb, var(--good) 12%, var(--surface)); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.pill.tone-good svg { fill: var(--tone-good); }
.pill.tone-warning { background: color-mix(in srgb, var(--warning) 15%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 55%, transparent); }
.pill.tone-warning svg { fill: var(--tone-warning); }
.pill.tone-critical { background: color-mix(in srgb, var(--critical) 10%, var(--surface)); border-color: color-mix(in srgb, var(--critical) 40%, transparent); }
.pill.tone-critical svg { fill: var(--tone-critical); }
.pill.tone-neutral svg { fill: var(--tone-neutral); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 560; color: var(--ink); padding: 2px 9px 2px 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; line-height: 1.5; }
.chip svg { width: 10px; height: 10px; flex: none; }
.chip.tone-good { background: color-mix(in srgb, var(--good) 11%, var(--surface)); border-color: color-mix(in srgb, var(--good) 38%, transparent); }
.chip.tone-good svg { fill: var(--tone-good); }
.chip.tone-warning { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 55%, transparent); }
.chip.tone-warning svg { fill: var(--tone-warning); }
.chip.tone-critical { background: color-mix(in srgb, var(--critical) 10%, var(--surface)); border-color: color-mix(in srgb, var(--critical) 40%, transparent); }
.chip.tone-critical svg { fill: var(--tone-critical); }
.chip.tone-neutral svg { fill: var(--muted); }
.chip.plain { color: var(--ink-2); font-weight: 500; }
.ticker-chip { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; background: var(--surface-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--ink-2); }
.key-line { display: inline-block; width: 14px; height: 3px; border-radius: 2px; flex: none; }
.key-rect { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.key-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.countdown { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.countdown svg { width: 15px; height: 15px; color: var(--muted); }
.countdown strong { color: var(--ink); font-weight: 620; }

/* ---------- spotlight / verdict panels ---------- */
.spotlight { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .spotlight { grid-template-columns: minmax(0, 1fr); } }
.spot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px 20px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 20px; min-width: 0; position: relative; overflow: hidden; transition: box-shadow 250ms var(--ease), border-color 250ms; }
.spot:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.spot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent, var(--s1)); opacity: 0.9; }
@media (max-width: 640px) { .spot { padding: 20px 16px 16px; } }
.spot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.spot-name { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.spot-name a { color: inherit; text-decoration: none; }
.spot-name a:hover { text-decoration: underline; }
.spot-spark { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11px; color: var(--muted); }
.spot-verdict { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.block-title { font-size: 11.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; display: flex; justify-content: space-between; gap: 12px; }
.block-title .aside { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pullquote { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--grid); font-size: 14.5px; line-height: 1.55; color: var(--ink); display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.pullquote svg { width: 18px; height: 18px; color: var(--muted); margin-top: 2px; }
.pullquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.pullquote cite a { color: inherit; }
.spot-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--grid); margin-top: auto; }
.spot-note { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.spot-note strong { color: var(--ink); font-weight: 600; }
.events { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.events:empty { display: none; }
.events-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.events-label svg { width: 15px; height: 15px; }
.event strong { color: var(--ink); font-weight: 620; font-variant-numeric: tabular-nums; }
.event a { color: var(--ink-2); }

.spot .mcard { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.spot .mcard:hover { transform: none; box-shadow: none; border-color: var(--border); }
.spot-head .pill { font-size: 13.5px; padding: 5px 13px 5px 11px; }

.tab-sub { margin: 0 0 12px !important; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .end-label { fill: var(--ink-2); font-size: 12px; font-weight: 500; font-variant-numeric: normal; }
.chart .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .zero { stroke: var(--ink-2); stroke-width: 1; opacity: 0.45; shape-rendering: crispEdges; }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .dot:focus { outline: none; stroke: var(--ink); }
.chart .bar, .chart .gbar { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity 120ms; }
.chart .gbar.neg { transform-origin: 50% 0%; }
.chart.hovering .bar.dim, .chart.hovering .gbar.dim { opacity: 0.35; }
.chart .partial { opacity: 0.45; }
.chart .bar-callout { fill: var(--ink); font-size: 12px; font-weight: 650; }

/* hero chart */
.chart .hero-line { stroke-width: 3; }
.chart .arc { stroke: var(--ink-2); stroke-width: 1.5; fill: none; opacity: 0.75; }
.chart .arc-head { fill: var(--ink-2); opacity: 0.75; }
.chart .arc-label { fill: var(--ink); font-size: 28px; font-weight: 720; letter-spacing: -0.03em; font-variant-numeric: normal; }
.chart .arc-sub { fill: var(--muted); font-size: 12px; font-variant-numeric: normal; }
.chart .end-value { fill: var(--ink); font-size: 15px; font-weight: 680; }
.chart .end-sub { fill: var(--muted); font-size: 11.5px; }

/* flow: share of tokens into share of spend */
.chart .flow-row { transition: opacity 150ms; }
.chart .flow-ribbon { opacity: 0.24; transition: opacity 150ms; }
.chart .flow-row.active .flow-ribbon { opacity: 0.5; }
.chart.hovering .flow-row:not(.active) { opacity: 0.3; }
.chart .flow-label { fill: var(--ink); font-size: 11.5px; font-weight: 640; font-variant-numeric: normal; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.chart .flow-axis { fill: var(--ink-2); font-size: 12px; font-weight: 620; font-variant-numeric: normal; }
.chart .flow-brace path { fill: none; stroke: var(--muted); stroke-width: 1.2; opacity: 0.7; }
.chart .flow-group { fill: var(--ink-2); font-size: 11.5px; font-weight: 620; font-variant-numeric: normal; }

/* arrow charts, board */
.chart .arow-band { fill: transparent; transition: fill 150ms; }
.chart .arow.active .arow-band, .chart .brow.active .arow-band { fill: var(--wash); }
.chart .arow-label { fill: var(--ink); font-size: 13.5px; font-weight: 600; font-variant-numeric: normal; }
.chart .arow-sub { fill: var(--muted); font-size: 11.5px; font-variant-numeric: normal; }
.chart .arow-value { fill: var(--ink); font-size: 14px; font-weight: 650; }
.chart .arow-verdict { fill: var(--ink-2); font-size: 11.5px; font-variant-numeric: normal; }
.chart .arrow-shaft { stroke-width: 2.75; }
.chart .arrow-from { fill: var(--surface); stroke-width: 2; }
.chart .col-title { fill: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: normal; }
.chart .rank { fill: var(--muted); font-size: 12px; }
.chart .vol-bar { fill: var(--ink-2); opacity: 0.25; }
.chart .brow.active .vol-bar { opacity: 0.42; }
.chart .vol-label { fill: var(--ink-2); font-size: 12px; font-weight: 560; }
.chart .add-value { font-size: 13px; font-weight: 620; }
.chart .add-value.up { fill: var(--up); }
.chart .add-value.down { fill: var(--down); }
.chart .brow { transition: transform 600ms var(--ease), opacity 350ms; }

.tooltip { position: absolute; pointer-events: none; z-index: 5; min-width: 170px; max-width: 290px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; font-size: 12px; color: var(--ink-2); box-shadow: var(--shadow-2); opacity: 0; transform: translateY(4px); transition: opacity 120ms, transform 120ms; }
.tooltip.show { opacity: 1; transform: none; }
.tooltip[hidden] { display: none; }
.tooltip .tt-title { color: var(--ink); margin-bottom: 5px; font-weight: 600; }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.tooltip .tt-row strong { color: var(--ink); font-weight: 620; font-variant-numeric: tabular-nums; }
.tooltip .tt-row > span:last-child { margin-left: auto; padding-left: 10px; }
.tooltip .tt-note { margin-top: 6px; color: var(--muted); line-height: 1.45; }
.tooltip .chip { margin-top: 6px; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend button { display: flex; align-items: center; gap: 7px; border: 0; background: none; padding: 2px 0; cursor: pointer; color: inherit; font-size: inherit; transition: opacity 150ms; }
.legend button[aria-pressed="false"] { opacity: 0.4; text-decoration: line-through; }

/* growth rate rows */
.rate-rows { display: grid; border-top: 1px solid var(--grid); }
.rate-row { display: grid; grid-template-columns: minmax(170px, 1.1fr) auto minmax(150px, 1fr) 150px; gap: 8px 22px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--grid); }
.rate-row .rr-label { font-weight: 600; font-size: 14px; min-width: 0; }
.rate-row .rr-label a { color: var(--ink); text-decoration: none; }
.rate-row .rr-label a:hover { text-decoration: underline; }
.rate-row .m-basis { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.rate-row .rr-chart { width: auto; }
.rate-row .rr-text { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rate-row .rr-text small { display: block; font-size: 12px; color: var(--muted); }
.rate-row .rr-chip { justify-self: end; }
.chart .rb-val { fill: var(--ink); font-size: 11px; font-weight: 620; }
.chart .rb-per { fill: var(--muted); font-size: 10.5px; }
@media (max-width: 860px) {
  .rate-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rate-row .rr-chart { grid-column: 1 / -1; order: 3; overflow-x: auto; }
  .rate-row .rr-text { order: 4; grid-column: 1 / -1; }
}

/* horizontal bars (HTML) */
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 76px; align-items: center; gap: 12px; font-size: 13px; }
.hbar .name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font-weight: 520; }
a.name:hover { text-decoration: underline; }
.hbar .track { position: relative; height: 18px; }
.hbar .axis0 { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--axis); }
.hbar .fill { position: absolute; top: 2px; height: 14px; background: var(--pos); border-radius: 0 4px 4px 0; transform-origin: left; transform: scaleX(var(--k, 1)); transition: transform 900ms var(--ease); }
.hbar .fill.neg { background: var(--neg); border-radius: 4px 0 0 4px; transform-origin: right; }
.hbar .fill.other { background: var(--other); }
.hbar-head .track { height: 14px; }
.hbar-head .axis-label { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.hbar .val { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink); font-weight: 560; }
.hbar .val span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wide-table table { min-width: 760px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
th { color: var(--muted); font-weight: 520; white-space: nowrap; font-size: 12.5px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr { transition: background 120ms; }
tbody tr:hover { background: var(--wash); }
td .muted { color: var(--muted); }
.search { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 6px 11px; font: inherit; font-size: 13px; color: var(--ink); min-width: 200px; }
.search:focus { outline: 2px solid var(--s1); outline-offset: 0; border-color: transparent; }
.board-foot { display: flex; justify-content: center; margin-top: 12px; }

/* compare tool */
.picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.picker button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: all 150ms; }
.picker button:hover { border-color: var(--border-strong); color: var(--ink); }
.picker button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-2); font-weight: 560; background: var(--surface-2); }
.picker button .key-dot { background: var(--axis); }

/* ---------- company pages ---------- */
.hero-co { padding: 44px 0 8px; }
.hero-co h1 { font-size: clamp(40px, 6.4vw, 72px); max-width: none; }
.hero-co .lede { margin-top: 12px; font-size: 17px; }
.verdict-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 22px 44px; margin-top: 30px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
@media (max-width: 900px) { .verdict-panel { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; } }
.verdict-charts { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; align-items: center; }
.stats.co-stats { margin-top: 26px; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; }
.quote { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--grid); }
.quote:first-child { padding-top: 4px; }
.quote .when { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quote .when strong { display: block; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.quote blockquote { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.55; }
.quote .who { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.quote .who a { color: inherit; }
@media (max-width: 640px) { .quote { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-1); }
.kpi .kpi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kpi .kpi-label { font-size: 13px; color: var(--ink-2); }
.kpi .kpi-value { font-size: 26px; font-weight: 680; letter-spacing: -0.02em; }
.kpi .kpi-value small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }
.kpi .kpi-delta { font-size: 13px; color: var(--ink-2); }
.kpi .kpi-steps { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kpi .kpi-src { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.kpi .kpi-src a { color: inherit; }
.model-list { margin-top: 20px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--border); }
.pager a { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); font-weight: 620; font-size: 17px; }
.pager a span { font-size: 12px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.pager a span svg { width: 13px; height: 13px; }
.pager a.next { text-align: right; align-items: flex-end; margin-left: auto; }
.pager a:hover { color: var(--link); }

/* ---------- misc ---------- */
.empty { color: var(--muted); font-size: 14px; margin: 16px 0; }
.badge { display: inline-block; font-size: 10px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--muted); vertical-align: 1px; }
.badge-co { color: var(--ink-2); background: var(--wash); }
.method { color: var(--ink-2); font-size: 14px; }
.method h3 { font-size: 14px; color: var(--ink); margin: 18px 0 4px; }
.method h3:first-child { margin-top: 0; }
.method p { margin: 0 0 8px; max-width: 84ch; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 40px; }
footer { color: var(--muted); font-size: 12.5px; padding: 32px 0 64px; margin-top: 104px; border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { color: var(--ink); font-size: 14px; }
footer p { margin: 0 0 8px; max-width: 110ch; }
@media (max-width: 760px) { footer { grid-template-columns: minmax(0, 1fr); } }
/* .wrap's margin and padding would otherwise override footer's; the rule is drawn inside the gutters
   so it lines up with the content above. */
footer.wrap { margin-top: 112px; padding-top: 28px; padding-bottom: 56px; border-top: 0;
  background: linear-gradient(var(--border), var(--border)) no-repeat 24px 0 / calc(100% - 48px) 1px; }
@media (max-width: 640px) { footer.wrap { margin-top: 80px; background-position: 16px 0; background-size: calc(100% - 32px) 1px; } }
.error { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; color: var(--ink-2); margin-top: 40px; }
.spark { flex: none; overflow: visible; display: block; }
.spark .line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { opacity: 0.12; }
.spark .dot { stroke: var(--surface); stroke-width: 2; }

/* ---------- cards: a number, a tiny chart, a verdict ---------- */
.mcards { display: grid; gap: 14px; }
.mcards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1020px) { .mcards.cols-4, .mcards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .mcards.cols-4, .mcards.cols-3, .mcards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mcards .mcard { padding: 12px 12px 10px; }
  .mcards .mcard-value { font-size: 22px; }
  .mcards .mcard-value small { font-size: 11.5px; margin-left: 3px; }
  .mcards .mcard-tag { display: none; }
  .mcards .mcard-foot { flex-wrap: wrap; row-gap: 2px; font-size: 12px; }
  .mcards .mcard-foot .ftext { white-space: normal; overflow: visible; }
  .spot .spot-head { flex-wrap: wrap; }
}
@media (max-width: 340px) { .mcards.cols-4, .mcards.cols-3, .mcards.cols-2 { grid-template-columns: minmax(0, 1fr); } }
.mcard { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 16px 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-1); color: inherit; text-decoration: none; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms; }
a.mcard:hover, .mcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.mcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mcard-title { font-size: 13px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard-tag { font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mcard-value { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; white-space: nowrap; }
.mcard-value small { font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 5px; }
.mcard-chart { margin: 8px 0 6px; }
.mcard-foot { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); min-width: 0; margin-top: auto; }
.mcard-foot .vlabel { font-weight: 600; color: var(--ink); white-space: nowrap; }
.mcard-foot .sep { color: var(--muted); }
.mcard-foot .ftext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chart .m-axis { fill: var(--muted); font-size: 10px; }
.chart .m-rank { fill: var(--ink-2); font-size: 11px; font-weight: 560; font-variant-numeric: normal; }
.chart .m-leg { fill: var(--ink-2); font-size: 10.5px; font-variant-numeric: normal; }
.chart .m-row { transition: opacity 150ms; }
.chart.hovering .m-row:not(.active) { opacity: 0.35; }

/* answer cards (hero): each opens its section */
.mcard.answer .mcard-title { color: var(--ink); font-weight: 650; }
.mcard.answer .mcard-top::after { content: "→"; order: 3; margin-left: 2px; font-size: 13px; color: var(--muted); transition: transform 250ms var(--ease), color 250ms; }
.mcard.answer:hover .mcard-top::after, .mcard.answer:focus-visible .mcard-top::after { transform: translateX(3px); color: var(--link); }
.mcard.answer .mcard-tag { margin-left: auto; }
.chart .m-val { fill: var(--ink); font-size: 11px; font-weight: 650; }
.chart .trend { stroke: var(--ink-2); stroke-width: 1.25; stroke-dasharray: 3 4; fill: none; opacity: 0.6; }
.chart .donut-track { fill: none; stroke: var(--grid); stroke-width: 9; }
.chart .donut-arc { fill: none; stroke-width: 9; stroke-linecap: round; }
.chart .donut-val { fill: var(--ink); font-size: 13px; font-weight: 650; }
.chart .gauge-track { stroke: var(--grid); stroke-width: 8; stroke-linecap: round; }
.chart .hover-ring { fill: none; stroke: var(--ink); stroke-width: 2; }
.chart .pulse { transform-box: fill-box; transform-origin: center; animation: ping 2.4s cubic-bezier(0, 0, .2, 1) 2.2s infinite; opacity: 0; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(3.4); opacity: 0; } }

/* every lab */
.lab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1020px) { .lab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) {
  /* Phones keep two compact columns: 17 labs in nine short rows instead of a long single file. */
  .lab-grid { gap: 10px; }
  .lab-grid .lab-card { padding: 12px 12px 8px; border-radius: 14px; }
  .lab-grid .lab-top { flex-direction: column; align-items: flex-start; gap: 1px; }
  .lab-grid .lab-name { font-size: 14.5px; max-width: 100%; }
  .lab-grid .lab-v { font-size: 11.5px; }
  .lab-grid .lab-num { margin-top: 4px; }
  .lab-grid .lab-num strong { font-size: 19px; }
  .lab-grid .lab-num .delta { margin-left: 4px; font-size: 12px; }
}
@media (max-width: 330px) { .lab-grid { grid-template-columns: minmax(0, 1fr); } }
.lab-card { display: flex; flex-direction: column; gap: 3px; padding: 15px 15px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-1); color: inherit; text-decoration: none; min-width: 0; transition: box-shadow 250ms var(--ease), border-color 250ms, transform 250ms var(--ease); }
.lab-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.lab-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lab-name { font-weight: 680; font-size: 15.5px; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-v { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.lab-meta { font-size: 12px; color: var(--muted); }
.lab-num { font-size: 13px; margin-top: 6px; display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.lab-num strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.lab-num .delta { margin-left: 6px; font-size: 13px; }
.lab-chart { margin-top: 4px; }

/* model share bars */
.mbars { display: grid; gap: 9px; margin-top: 22px; }
.mbar { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr) 104px 58px; gap: 14px; align-items: center; font-size: 13.5px; }
.mbar-price { text-align: right; color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mbar-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 560; }
.mbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbar-track { height: 12px; background: var(--wash); border-radius: 6px; overflow: hidden; }
.mbar-track .fill { display: block; height: 100%; border-radius: 6px; transform-origin: left; transform: scaleX(var(--k, 1)); transition: transform 900ms var(--ease); }
.mbar-val { display: flex; justify-content: flex-end; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .mbar { grid-template-columns: minmax(0, 1fr) 96px; } .mbar-track { grid-column: 1 / -1; order: 3; } .mbar-price { display: none; } }

/* explanations on demand */
.info { position: relative; display: inline-flex; vertical-align: middle; margin-left: 6px; }
.info-btn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); font-size: 11px; font-weight: 700; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; padding: 0; transition: background 150ms, color 150ms; }
.info-btn:hover, .info.open .info-btn { background: var(--ink); color: var(--page); border-color: var(--ink); }
.info-pop { display: none; position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(calc(-50% + var(--dx, 0px))); width: min(300px, calc(100vw - 20px)); padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--page); font-size: 12.5px; font-weight: 450; line-height: 1.5; letter-spacing: 0; text-transform: none; box-shadow: var(--shadow-2); z-index: 20; pointer-events: none; }
.info:hover .info-pop, .info:focus-within .info-pop, .info.open .info-pop { display: block; animation: pop-in 160ms var(--ease); }
@keyframes pop-in { from { opacity: 0; margin-top: -4px; } to { opacity: 1; margin-top: 0; } }

/* reading progress */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--s1), var(--s3)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* split panel: key numbers beside the chart */
.split { display: grid; grid-template-columns: minmax(200px, 0.32fr) minmax(0, 1fr); gap: 24px 36px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.big-stats { display: flex; flex-direction: column; gap: 18px; }
.split.align-start { align-items: start; }
/* Stats stay beside a long chart while it scrolls, but only when they sit beside it (two columns);
   stacked on a phone they would float over the chart. */
@media (min-width: 861px) { .split.align-start .big-stats { position: sticky; top: 96px; } }
.big-stat .n { font-size: 44px; font-weight: 720; letter-spacing: -0.04em; line-height: 1; }
.big-stat .n.sm { font-size: 26px; }
.big-stat .ring { width: 96px; }
.big-stat .ring .donut-val { font-size: 19px; font-weight: 700; fill: var(--ink); letter-spacing: -0.02em; }
.big-stat .l { font-size: 13px; color: var(--ink-2); margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 860px) { .big-stats { flex-direction: row; flex-wrap: wrap; gap: 16px 28px; } }
.subhead { display: flex; align-items: center; gap: 4px; margin: 34px 0 14px; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar .tools { gap: 10px; }
.skeleton { background: linear-gradient(90deg, var(--wash) 25%, color-mix(in srgb, var(--wash) 30%, transparent) 50%, var(--wash) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.hero-sub { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.co-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.co-title-row .pill { font-size: 14px; padding: 6px 14px 6px 12px; }

/* ---------- motion ---------- */
.words .w { display: inline-block; opacity: 0; transform: translateY(0.32em); filter: blur(8px); animation: word-in 850ms var(--ease) forwards; animation-delay: calc(var(--wi) * 70ms + 80ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hl { background-size: 100% 0.085em; }
  .words .w { opacity: 1; transform: none; filter: none; }
  .chart .pulse { display: none; }
}
@media print {
  .site-header, .tools, .seg, .top-nav, .co-menu { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Panels shown by a tab or view switch fade up into place. */
.entering { animation: enter 380ms var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* market map */
.tm-legend { margin: 0 0 12px; }
.tm-legend li { gap: 7px; }
.tm-swatch { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--tm) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tm) 50%, transparent); }
.tm-swatch .glyph { width: 9px; height: 9px; }
.tmap { position: relative; }
.tm-tile { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 11px 13px 8px; border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none;
  background: color-mix(in srgb, var(--tm) 15%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tm) 32%, transparent);
  transition: left 650ms var(--ease), top 650ms var(--ease), width 650ms var(--ease), height 650ms var(--ease), opacity 300ms, transform 350ms var(--ease), background 150ms, border-color 150ms; }
.tm-tile:hover, .tm-tile:focus-visible { background: color-mix(in srgb, var(--tm) 26%, var(--surface)); border-color: color-mix(in srgb, var(--tm) 60%, transparent); }
.tmap.hovering .tm-tile:not(.active):not(.gone) { opacity: 0.55; }
.tm-tile.gone { opacity: 0; transform: scale(0.92); pointer-events: none; }
.tm-name { display: block; min-width: 0; max-width: 100%; font-weight: 680; font-size: 14.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-num { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-num strong { color: var(--ink); font-weight: 650; }
.tm-num .glyph { width: 9px; height: 9px; }
.tm-name, .tm-num { flex-shrink: 0; line-height: 1.25; }
.tm-spark { margin-top: auto; }
.tm-tile.md { padding: 8px 10px 6px; }
.tm-tile:not(.lg):not(.xl) .tm-spark { display: none; }
.tm-tile.lg .tm-name { font-size: 17px; }
.tm-tile.lg .tm-num { font-size: 13px; }
.tm-tile.xl { padding: 14px 16px 10px; }
.tm-tile.xl .tm-name { font-size: 20px; letter-spacing: -0.02em; }
.tm-tile.xl .tm-num { font-size: 15px; gap: 8px; margin-top: 2px; }
.tm-tile.xl .tm-num strong { font-size: 28px; font-weight: 720; letter-spacing: -0.03em; }
.tm-tile.xl .tm-num .glyph { width: 11px; height: 11px; }
.tm-tile.sm { padding: 5px 7px; }
.tm-tile.sm .tm-name { font-size: 11.5px; }
.tm-tile.sm .tm-num { display: none; }
.tm-tile.xs { padding: 0; }
.tm-tile.xs > * { display: none; }
@media (prefers-reduced-motion: reduce) { .entering { animation: none; } .tm-tile { transition: none; } }

/* Chapters: each section's kicker carries its number, so the reading order is plain. */
main { counter-reset: chapter; }
.section > .section-head .kicker::before { counter-increment: chapter; content: counter(chapter, decimal-leading-zero); display: inline-block; margin-right: 10px; padding-right: 10px; border-right: 1px solid var(--border-strong); color: var(--link); font-weight: 750; }
.chip.rank strong { font-weight: 720; color: var(--ink); }
/* Five measures in one swipeable row on a phone, rather than three wrapped rows. */
@media (max-width: 640px) {
  #ct-tools { min-width: 0; max-width: 100%; }
  #ct-tools .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  #ct-tools .seg::-webkit-scrollbar { display: none; }
  #ct-tools .seg button { flex-shrink: 0; }
}

/* hero projection */
.chart .proj-band { fill: var(--s1); opacity: 0.1; }
.chart .proj-line { fill: none; stroke: var(--s1); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.hero-sub .seg { margin-left: auto; }
@media (max-width: 760px) { .hero-sub .seg { margin-left: 0; } }

/* since your last visit */
.since-items { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.since { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 22px; padding: 8px 6px 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 13px; color: var(--ink-2); width: fit-content; max-width: 100%; animation: enter 500ms var(--ease) both; }
.since-label { font-weight: 620; color: var(--ink); margin-right: 4px; }
.since-item { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--wash); color: var(--ink); text-decoration: none; white-space: nowrap; }
a.since-item:hover { background: var(--border); }
.since-item .glyph { width: 9px; height: 9px; }
.since-x { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 8px; border-radius: 8px; cursor: pointer; margin-left: 2px; }
.since-x:hover { background: var(--wash); color: var(--ink); }

/* leader bars (top models) */
.lbars { display: grid; gap: 4px; }
.lbar { display: grid; grid-template-columns: 22px minmax(170px, 1.15fr) minmax(0, 2fr) 104px 64px; gap: 14px; align-items: center; font-size: 13.5px; color: inherit; text-decoration: none; padding: 7px 8px; border-radius: 10px; transition: background 150ms; }
a.lbar:hover { background: var(--wash); }
.lbar-head { padding-top: 0; padding-bottom: 6px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lbar-head span:nth-child(4), .lbar-head span:nth-child(5) { text-align: right; }
.lbar-rank { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.lbar-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lbar-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 620; }
.lbar-title .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbar-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lbar-sub .key-dot { width: 7px; height: 7px; }
.lbar-val { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lbar-price { text-align: right; color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .lbar { grid-template-columns: 16px minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 4px; }
  .lbar-track { grid-column: 2 / -1; order: 3; }
  .lbar-price { display: none; }
  .lbar-head { display: none; }
}

/* scatter */
.chart .free-lane { fill: var(--wash); }
.chart .sdot { stroke: var(--surface); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.chart .slabel { fill: var(--ink); font-size: 11.5px; font-weight: 560; font-variant-numeric: normal; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.chart .axis-title { fill: var(--muted); font-size: 11.5px; font-variant-numeric: normal; }

/* bump chart (rank race) */
.chart .bump { transition: opacity 150ms; }
.chart .bump-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .bump:not(.strong) .bump-line { stroke-width: 1.75; }
.chart .bump-label { fill: var(--ink); font-size: 12.5px; font-weight: 600; font-variant-numeric: normal; }
.chart .bump-start { fill: var(--muted); font-size: 11.5px; font-variant-numeric: normal; }
.chart .bump-hit { stroke: transparent; stroke-width: 16; cursor: pointer; pointer-events: stroke; }
.chart.hovering .bump:not(.active) { opacity: 0.18; }
.chart .bump.active .bump-line { stroke-width: 3.5; }
.chip.link-chip { color: var(--link); text-decoration: none; border-color: color-mix(in srgb, var(--link) 35%, var(--border)); }
.chip.link-chip svg { width: 12px; height: 12px; transition: transform 200ms var(--ease); }
.chip.link-chip:hover svg { transform: translateX(2px); }

/* task treemap (uses) */
.ttmap { position: relative; }
.tt-tile { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 11px 7px; border-radius: 9px; overflow: hidden; color: var(--ink);
  background: color-mix(in srgb, var(--tm) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tm) 38%, transparent); cursor: default; outline: none;
  transition: background 150ms, border-color 150ms, opacity 200ms; }
.tt-tile:hover, .tt-tile:focus-visible { background: color-mix(in srgb, var(--tm) 30%, var(--surface)); border-color: color-mix(in srgb, var(--tm) 70%, transparent); }
.ttmap.hovering .tt-tile:not(.active) { opacity: 0.55; }
.tt-tile .tm-name { font-size: 13.5px; }
.tt-val { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.tt-sub { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; flex-shrink: 0; }
.tt-tile.lg .tm-name { font-size: 15px; }
.tt-tile.lg .tt-val { font-size: 24px; }
.tt-tile.md .tt-sub, .tt-tile.sm .tt-sub, .tt-tile.sm .tt-val { display: none; }
.tt-tile.md .tt-val { font-size: 15px; }
.tt-tile.sm { padding: 4px 6px; }
.tt-tile.sm .tm-name { font-size: 11px; }
.tt-tile.xs > * { display: none; }

/* two lists side by side (movers, images & video) */
.movers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 36px; }
.movers-grid .lbar { grid-template-columns: 22px minmax(120px, 1fr) minmax(0, 1.1fr) 132px; }
.movers-grid .lbar-price { display: none; }
@media (max-width: 860px) { .movers-grid { grid-template-columns: minmax(0, 1fr); } }
.lbar-rank { font-size: 12px; }
#where-bars .lbar-rank { font-size: 17px; line-height: 1; }
/* The number never breaks; its unit may drop to the next line in a narrow card. */
.mcard-value { white-space: normal; min-width: 0; }
.mcard-value .mv { white-space: nowrap; }
@media (max-width: 560px) { .hide-narrow { display: none; } }
/* Mid-size screens: the header keeps every section link; the update date shrinks to its dot (the date is its tooltip). */
@media (min-width: 861px) and (max-width: 1200px) { #updated .upd-text { display: none; } #updated .live-dot { margin-right: 0; } }

/* earnings watch */
.watch { margin-top: 20px; }
.watch-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.watch-head h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.watch-note { margin: 4px 0 16px; font-size: 13.5px; color: var(--muted); }
.watch-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
.watch-cols.one { grid-template-columns: minmax(0, 1fr); }
.watch-cols.one .watch-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 860px) { .watch-cols, .watch-cols.one .watch-rows { grid-template-columns: minmax(0, 1fr); } .watch-cols { gap: 20px; } }
.watch-col h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.watch-col h4 a { color: inherit; text-decoration: none; }
.watch-col h4 a:hover { text-decoration: underline; }
.watch-col h4 .aside { margin-left: auto; }
.watch-empty { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--wash); font-size: 13px; color: var(--ink-2); }
.watch-row { display: grid; gap: 7px; padding: 12px 0; border-top: 1px solid var(--grid); }
.watch-rows > .watch-row:first-child { border-top: 0; padding-top: 2px; }
@media (min-width: 861px) { .watch-cols.one .watch-rows > .watch-row:nth-child(2) { border-top: 0; padding-top: 2px; } }
.watch-name { display: flex; justify-content: space-between; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; }
.watch-name > span { color: var(--muted); font-size: 12px; }
.watch-name b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.watch-zones { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 3px; font-size: 13px; font-variant-numeric: tabular-nums; }
.watch-zones .z { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 4px; line-height: 1.25; text-align: center; min-width: 0; }
.watch-zones .z:first-child { border-radius: 8px 3px 3px 8px; }
.watch-zones .z:last-child { border-radius: 3px 8px 8px 3px; }
.watch-zones .z small { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.watch-zones .z small svg { width: 11px; height: 11px; }
.watch-zones .below { background: color-mix(in srgb, var(--tone-warning) 13%, var(--surface)); }
.watch-zones .below small { color: var(--tone-warning); }
.watch-zones .on { background: var(--wash); font-weight: 650; border-radius: 3px; }
.watch-zones .above { background: color-mix(in srgb, var(--tone-good) 13%, var(--surface)); }
.watch-zones .above small { color: var(--tone-good); }
.watch-row.neutral .watch-zones .below, .watch-row.neutral .watch-zones .above { background: var(--surface-2); }
.watch-row.neutral .watch-zones small { color: var(--muted); }
.watch-row.scored .watch-zones .z:not(.hit) { opacity: 0.45; }
.watch-zones .z.hit { box-shadow: inset 0 0 0 2px var(--ink); }
.watch-result { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 420px) { .watch-zones { font-size: 12px; } .watch-zones .z small { font-size: 9.5px; letter-spacing: 0.03em; } }

/* tokens x price = spend */
.equation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 4px 0 22px; }
.eq-term { padding: 14px 16px; border-radius: 12px; background: var(--wash); min-width: 0; }
.eq-term.result { background: var(--ink); color: var(--surface); }
.eq-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.eq-term.result .eq-label, .eq-term.result .eq-sub { color: color-mix(in srgb, var(--surface) 72%, transparent); }
.eq-value { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.eq-sub { font-size: 12.5px; color: var(--muted); }
.eq-op { font-size: 26px; font-weight: 500; color: var(--muted); }
@media (max-width: 640px) {
  .equation { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .eq-op { text-align: center; font-size: 20px; line-height: 1; }
  .eq-term { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; padding: 10px 14px; }
  .eq-value { grid-row: span 2; font-size: 28px; }
}
