/* =========================================================
   PM ATLAS — institutional research terminal
   Light-first. Inter everywhere. Refined dark mode.
   ========================================================= */
:root {
  /* Tier palette — refined, calm */
  --t-CO: #6B43E8;  /* continuous — Dekant lane */
  --t-BI: #1F4FB5;  /* binary on-chain */
  --t-SC: #0E7C7B;  /* scalar */
  --t-EV: #B45309;  /* CFTC / regulated */
  --t-SP: #4D7C0F;  /* sports */
  --t-DE: #7C2D8C;  /* decision */
  --t-IN: #BE185D;  /* info markets */
  --t-MU: #0369A1;  /* multiverse */
  --t-OP: #C2410C;  /* opinion */
  --t-FC: #166534;  /* forecasting */
  --t-DR: #B45309;  /* scalar derivatives */
  --t-IF: #475569;  /* infrastructure */

  /* Concept-category palette */
  --c-info: #6B43E8;
  --c-mech: #1F4FB5;
  --c-liq:  #0E7C7B;
  --c-orac: #B45309;
  --c-gov:  #7C2D8C;
  --c-biz:  #BE185D;

  --good: #15803D;
  --warn: #B45309;
  --bad:  #B91C1C;
  --neutral: #6B7280;

  --live:      #15803D;
  --beta:      #1F4FB5;
  --pre:       #6B43E8;
  --prelaunch: #6B43E8;
  --dormant:   #B45309;
  --defunct:   #71717A;
  --suspended: #B91C1C;

  --r-xs: 4px; --r-sm: 6px; --r-md: 9px; --r-lg: 13px; --r-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(15,17,20,0.04);
  --shadow-md: 0 1px 2px rgba(15,17,20,0.04), 0 10px 26px -14px rgba(15,17,20,0.16);
  --shadow-lg: 0 2px 6px rgba(15,17,20,0.05), 0 28px 60px -26px rgba(15,17,20,0.22);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- Type scale (8 steps + display) — v2 ---- */
  --fs-2xs: 10px;   /* tiny mono labels, kbd, badges */
  --fs-xs:  11px;   /* eyebrows, captions, axis ticks */
  --fs-sm:  12px;   /* sub-labels, table secondary, chips */
  --fs-base:13px;   /* UI text, nav, table cells */
  --fs-md:  15px;   /* body copy */
  --fs-lg:  17px;   /* lede */
  --fs-xl:  22px;   /* panel headings, kpi unit */
  --fs-2xl: 32px;   /* big numbers, compact titles */
  --fs-display: clamp(30px, 4.2vw, 48px); /* section hero titles */
  --fs-hero: clamp(40px, 6vw, 72px);      /* overview hero */

  /* ---- Spacing scale (4px base) — v2 ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ---- Neutral brand accent (decoupled from tier colors) — v2 ----
     Brand violet for UI chrome only; tier colors stay reserved for data. */
  --brand:      #5B4BFF;   /* vivid electric indigo */
  --brand-soft: rgba(91,75,255,0.12);
  --brand-hi:   rgba(91,75,255,0.06);
}

/* ---------- light (default) ---------- */
[data-theme="light"] {
  --bg:        #FAF8F3;       /* warm, light & clean */
  --bg-1:      #FDFCFA;
  --bg-2:      #F1EEE6;
  --bg-3:      #E7E2D6;
  --panel:     #FFFFFF;
  --panel-soft:#FBFAF6;
  --hair:        rgba(15,17,20,0.10);
  --hair-strong: rgba(15,17,20,0.20);
  --hair-soft:   rgba(15,17,20,0.05);
  --ink:   #0E0F11;
  --ink-2: #3D4047;
  --ink-3: #585B63;          /* v2: darkened to keep a step above muted */
  --muted: #6B6E76;          /* v2: was #8A8D95 (failed AA); now 4.64:1 */
  --accent:      var(--brand);      /* v2: decoupled from --t-CO */
  --accent-soft: var(--brand-soft);
  --highlight:   var(--brand-hi);
  --us:          var(--t-CO);
  --us-soft:     rgba(107,67,232,0.08);
  --grid:        rgba(15,17,20,0.05);
}

/* ---------- dark ---------- */
[data-theme="dark"] {
  --t-CO: #B69CFF;
  --t-BI: #93C5FD;
  --t-SC: #5EEAD4;
  --t-EV: #FDBA74;
  --t-SP: #BEF264;
  --t-DE: #E9D5FF;
  --t-IN: #F9A8D4;
  --t-MU: #7DD3FC;
  --t-OP: #FB923C;
  --t-FC: #86EFAC;
  --t-DR: #FDBA74;
  --t-IF: #CBD5E1;

  --c-info: #B69CFF;
  --c-mech: #93C5FD;
  --c-liq:  #5EEAD4;
  --c-orac: #FDBA74;
  --c-gov:  #E9D5FF;
  --c-biz:  #F9A8D4;

  --good: #4ADE80;
  --warn: #FBBF24;
  --bad:  #F87171;
  --live: #4ADE80;
  --beta: #93C5FD;
  --pre:  #B69CFF;
  --prelaunch: #B69CFF;
  --dormant: #FBBF24;
  --defunct: #71717A;
  --suspended: #F87171;

  --bg:        #0B0C0F;
  --bg-1:      #111317;
  --bg-2:      #181B21;
  --bg-3:      #20242C;
  --panel:     #15171D;       /* clearly lifted off the bg — surface illumination */
  --panel-soft:#1A1D24;
  --hair:        rgba(255,255,255,0.07);
  --hair-strong: rgba(255,255,255,0.15);
  --hair-soft:   rgba(255,255,255,0.045);
  --ink:   #F3F1EB;
  --ink-2: #B7BAC2;
  --ink-3: #80838C;
  --muted: #7A7D85;          /* v2: was #62656D (failed AA); now 4.75:1 */
  --brand:      #8C7CFF;            /* vivid violet, glows on dark */
  --brand-soft: rgba(140,124,255,0.18);
  --brand-hi:   rgba(140,124,255,0.08);
  --accent:      var(--brand);      /* v2: decoupled from --t-CO */
  --accent-soft: var(--brand-soft);
  --highlight:   var(--brand-hi);
  --us:          var(--t-CO);
  --us-soft:     rgba(182,156,255,0.10);
  --grid:        rgba(255,255,255,0.05);
}

* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
[data-theme="dark"] html, html[data-theme="dark"] { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  font-feature-settings: "cv11", "ss01";
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num  { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
em { font-style: italic; font-weight: 500; }
a { color: var(--accent); text-decoration: none; transition: color 0.12s; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* v2 · A11y — visible keyboard focus everywhere (mouse clicks unaffected) */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
/* don't double-up native outline on mouse focus */
:focus:not(:focus-visible) { outline: none; }

/* v2 · A11y — respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Inline links used for cross-navigation (project, concept, mechanism) */
.xlink {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(transparent 90%, var(--accent-soft) 0);
  background-size: 100% 100%;
  padding: 0 1px;
  border-radius: 2px;
  transition: background-color 0.12s, color 0.12s;
  cursor: pointer;
}
.xlink:hover {
  color: var(--accent);
  text-decoration: none;
  background-color: var(--accent-soft);
  background-image: none;
}
.xlink-mech { color: var(--ink); }
.xlink-proj { color: var(--ink); }
.xlink-conc { color: var(--ink); }

/* =========================================================
   SHELL — sidebar + main
   ========================================================= */
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  border-right: 1px solid var(--hair);
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 22px 18px 18px;
  z-index: 50;
}
@media (max-width: 900px) {
  .sidebar {
    position: sticky; top: 0; height: auto;
    flex-direction: row; align-items: center; gap: 14px;
    padding: 10px 14px;
    border-right: 0; border-bottom: 1px solid var(--hair);
    overflow-x: auto;
  }
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 15px;
  color: var(--ink);
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--ink);
  color: var(--bg);
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px; line-height: 1;
}
.brand-tag {
  display: block;
  margin-top: 4px;
  font-size: 11px; color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase; font-family: var(--font-mono); font-weight: 500;
}
@media (max-width: 900px) { .brand-tag { display: none; } }

.sidebar-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.02em;
  display: flex; flex-direction: column; gap: 6px;
  line-height: 1.4;
}
.sidebar-meta .line { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.sidebar-meta .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 var(--good);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 40%, transparent); }
  70% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--good) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 0%, transparent); }
}
.sidebar-meta kbd {
  font-family: var(--font-mono);
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 0 4px;
  font-size: 10px;
}
.sidebar-meta .muted-line { opacity: 0.7; }
@media (max-width: 900px) { .sidebar-meta { display: none; } }

/* ---- nav ---- */
.nav {
  display: flex; flex-direction: column; gap: 1px;
  margin-top: 22px;
}
.nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0 10px 10px;
  font-weight: 500;
}
@media (max-width: 900px) {
  .nav { flex-direction: row; margin-top: 0; }
  .nav-label { display: none; }
}

.topnav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.1s ease, color 0.1s ease;
}
.topnav-btn:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.topnav-btn.active {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
}
.topnav-btn.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px;
  bottom: 6px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}

/* Section icon */
.nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--ink-3);
  transition: color 0.1s ease;
}
.topnav-btn:hover .nav-icon,
.topnav-btn.active .nav-icon {
  color: var(--ink);
}
.topnav-btn.active .nav-icon {
  color: var(--accent);
}

/* Section name */
.nav-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keyboard hint — ghost, shows only on hover */
.nav-kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--hair-soft);
  color: var(--muted);
  border: 0;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.topnav-btn:hover .nav-kbd,
.topnav-btn.active .nav-kbd {
  opacity: 1;
}

@media (max-width: 900px) {
  .topnav-btn { white-space: nowrap; height: auto; }
  .nav-kbd { display: none; }
}

/* ---- sidebar tools ---- */
.sidebar-tools {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
@media (max-width: 900px) {
  .sidebar-tools { flex-direction: row; gap: 8px; margin-top: 0; margin-left: auto; }
}
.search-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 9px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px;
  color: var(--muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 7px 28px 7px 28px;
  background: var(--bg-1);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.12s;
}
.search-input:focus { border-color: var(--accent); }
.search-kbd {
  position: absolute;
  right: 9px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--muted);
}
.search-results {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: var(--panel);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
  max-height: 360px; overflow-y: auto;
  padding: 4px;
}
.search-results.open { display: block; }
.sr-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  border-radius: var(--r-xs);
  cursor: pointer;
  font-size: 13px;
}
.sr-item:hover, .sr-item.active { background: var(--bg-2); }
.sr-item .pname { font-weight: 500; flex: 1; }
.sr-item .sr-meta { color: var(--muted); font-size: 11px; }
.sr-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 12px; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--bg-1);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}
.theme-toggle:hover { background: var(--bg-2); color: var(--ink); }

/* =========================================================
   MAIN
   ========================================================= */
main {
  padding: 38px 44px 80px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 1000px) {
  main { padding: 28px 22px 60px; }
}

.section { display: none; animation: fadein 0.18s ease-out; }
.section.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
  max-width: 20ch;
}
.page-title em { font-style: normal; color: var(--accent); font-weight: 800; }
.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0 0 32px;
}
.lede em { font-style: italic; color: var(--ink); }

/* v2 · Section masthead — title left, lede right (fills the hero void) */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0 var(--space-7);
  align-items: end;
  margin: 0 0 var(--space-7);
}
.sec-head .eyebrow { grid-column: 1; margin-bottom: var(--space-3); }
.sec-head .page-title { grid-column: 1; margin: 0; max-width: 18ch; }
.sec-head .lede { grid-column: 2; margin: 0 0 var(--space-1); max-width: 52ch; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 0; }
  .sec-head .lede { grid-column: 1; margin-top: var(--space-4); }
}
/* H2 · hide the section masthead when an article/profile view is open */
.section.in-article .sec-head { display: none; }

.note { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.spacer-md { height: 24px; }

/* =========================================================
   01 · OVERVIEW
   ========================================================= */
/* v2: removed orphaned .ov-eyebrow / .ov-headline / .ov-lede (dead code) */

.ov-chart-wrap {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  padding: 24px 22px 20px;
  margin: 0 0 36px;
  box-shadow: var(--shadow-md);
}
.ov-chart-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ov-chart-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
}
.ov-chart-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.ov-chart-legend {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  font-size: 11px;
  color: var(--ink-2);
}
.ov-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  cursor: default;
}
.ov-legend-swatch {
  width: 10px; height: 10px; border-radius: 2px;
  display: inline-block;
}
.ov-chart { width: 100%; height: 460px; position: relative; }
.ov-chart svg { width: 100%; height: 100%; display: block; }
.ov-chart-foot {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.01em;
  display: flex; gap: 8px; align-items: center;
}
.dot-square { display: inline-block; width: 7px; height: 7px; background: var(--muted); border-radius: 1px; }

/* SVG chart styling */
.ov-chart .layer { transition: opacity 0.15s; }
.ov-chart .layer.dim { opacity: 0.15; }
.ov-chart .axis-line { stroke: var(--hair); stroke-width: 1; }
.ov-chart .axis-tick { font-family: var(--font-mono); font-size: 10px; fill: var(--muted); }
.ov-chart .axis-label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.ov-chart .grid-line { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 2 3; }
.ov-chart .anno-line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 2; }
.ov-chart .anno-dot { fill: var(--ink); stroke: var(--bg); stroke-width: 1.5; }
.ov-chart .anno-label { font-family: var(--font-display); font-weight: 600; font-size: 11px; fill: var(--ink); }
.ov-chart .anno-sub { font-family: var(--font-mono); font-size: 10px; fill: var(--muted); letter-spacing: 0.02em; }
.ov-chart .hover-line { stroke: var(--ink); stroke-width: 1; opacity: 0.4; pointer-events: none; }
.ov-chart .layer-label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink); font-weight: 500; pointer-events: none; }

.ov-tip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
  min-width: 160px;
  z-index: 5;
  display: none;
}
.ov-tip-year { font-family: var(--font-mono); font-size: 10px; color: color-mix(in srgb, var(--bg) 60%, transparent); margin-bottom: 4px; letter-spacing: 0.04em; }
.ov-tip-row { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 11px; }
.ov-tip-row .lab { display: inline-flex; align-items: center; gap: 6px; }
.ov-tip-row .lab .dt { width: 7px; height: 7px; border-radius: 1px; }
.ov-tip-row .vl { font-weight: 600; }
.ov-tip-total { border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); margin-top: 6px; padding-top: 6px; font-weight: 700; }

/* v2: removed orphaned .ov-stats / .ov-stat / .ovs-* (dead code) */

.ov-section-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 48px;
}
@media (max-width: 1000px) { .ov-section-grid { grid-template-columns: repeat(2, 1fr); } }
.ov-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 18px 16px 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.ov-card:hover {
  transform: translateY(-1px);
  border-color: var(--hair-strong);
  box-shadow: var(--shadow-md);
}
.ovc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  font-weight: 500;
}
.ovc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.ovc-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  flex: 1;
}
.ovc-arrow {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  transition: color 0.12s, transform 0.12s;
}
.ov-card:hover .ovc-arrow { color: var(--accent); transform: translateX(2px); }

.ov-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.01em;
  border-top: 1px solid var(--hair);
  padding-top: 22px;
}
.ov-foot a { color: var(--ink-2); border-bottom: 1px dotted var(--ink-3); }
.ov-foot a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* =========================================================
   02 · MECHANISM ATLAS
   ========================================================= */
.mech-controls {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mech-search {
  position: relative;
  flex: 1; max-width: 380px;
}
.mech-search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--muted);
}
.mech-search input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.mech-search input:focus { border-color: var(--accent); }
.mech-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.mech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.mech-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--c, var(--ink));
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
  display: flex; flex-direction: column;
  text-align: left;
  font-family: inherit;
}
.mech-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--hair));
}
.mech-card-foot .arr { transition: transform .12s; }
.mech-card:hover .arr { transform: translateX(3px); }
.mech-card-head {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
}
.mech-card-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c, var(--ink));
  font-weight: 700;
  letter-spacing: 0.06em;
}
.mech-card-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.mech-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 4px 0 10px;
}
.mech-card-simple {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 12px;
  /* uniform 3-line teaser so cards in a row align without ragged gaps */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.5em * 3);
}
.mech-card-foot { margin-top: auto; }
.mech-card-foot {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-top: 10px;
  border-top: 1px solid var(--hair-soft);
}
.mech-card-foot .arr { margin-left: auto; color: var(--c, var(--accent)); font-weight: 600; }

/* =========================================================
   ARTICLE (used by both Mechanism Atlas and Concept wiki)
   ========================================================= */
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  transition: color 0.1s;
}
.article-back:hover { color: var(--accent); }

.article {
  max-width: 760px;
}
.article-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c, var(--muted));
  font-weight: 600;
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
}
.article-tagline {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 32px;
  font-weight: 400;
}
.article-tagline em { font-style: italic; color: var(--ink); }

/* legacy .article-section-label (now overridden by details > summary rules below) */
.article-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  font-weight: 600;
}
.article-section-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.article-section-body p { margin: 0 0 14px; }
.article-section-body strong { color: var(--ink); font-weight: 600; }
.article-section-body em { font-style: italic; }

.article-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.article-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.article-bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}
.article-bullets li strong { color: var(--ink); font-weight: 600; }
.article-bullets li em { font-style: italic; }

.article-quotes {
  display: flex; flex-direction: column; gap: 16px;
}
.article-quote {
  border-left: 2px solid var(--c, var(--accent));
  padding: 6px 0 6px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.article-quote-text { font-style: italic; }
.article-quote-cite {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.02em;
}

.article-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}

.article-proj-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; align-items: start;
}
.article-proj-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.article-proj-item:hover {
  border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--hair));
  box-shadow: 0 2px 4px rgba(15,17,20,.04), 0 12px 26px -16px rgba(15,17,20,.22);
  transform: translateY(-1px);
}
/* logo or tier-chip face, top-aligned and fixed size */
.article-proj-item > .logo,
.article-proj-item > .logo-img,
.article-proj-item > .logo-mono { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.article-proj-item > .tier-chip { flex: none; margin-top: 1px; }
.api-main { flex: 1; min-width: 0; }
.api-top { display: flex; align-items: center; gap: 8px; }
.article-proj-item .pname {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.article-proj-item .relation-pill {
  flex: none; margin-left: auto;
  font-family: var(--font-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-3);
  padding: 2px 6px;
  background: var(--panel-soft);
  border: 1px solid var(--hair-soft);
  border-radius: 999px;
}
.article-proj-item .pnote {
  font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-proj-item .arr { color: var(--muted); font-size: 12px; align-self: center; flex: none; transition: transform .12s ease, color .12s ease; }
.article-proj-item:hover .arr { color: var(--c, var(--accent)); transform: translateX(2px); }
@media (max-width: 720px) { .article-proj-list { grid-template-columns: 1fr; } }

.article-related {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.article-related-chip {
  font-family: inherit;
  background: var(--panel-soft);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.12s, color 0.12s;
  border-left-width: 2px;
}
.article-related-chip:hover { color: var(--accent); border-color: var(--accent); }

.article-authors {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.article-author-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--hair-soft);
  padding: 4px 8px;
  border-radius: var(--r-xs);
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.article-sources {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  counter-reset: src;
}
.article-source {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair-soft);
  align-items: baseline;
  font-size: 13px;
}
.article-source:last-child { border-bottom: 0; }
.article-source::before {
  counter-increment: src;
  content: counter(src);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.article-source-main a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px dotted var(--ink-3);
}
.article-source-main a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.article-source-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.01em;
}
.article-source-status {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--panel-soft);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--hair-soft);
}

/* Two-column block for use-cases / advantages / limits */
.article-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 720px) { .article-grid-2 { grid-template-columns: 1fr; } }

.article-mech-refs {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--ink-2);
}
.article-mech-refs li { padding: 8px 0; border-bottom: 1px solid var(--hair-soft); }
.article-mech-refs li:last-child { border-bottom: 0; }
.article-mech-refs .ref-author { color: var(--muted); }
.article-mech-refs .ref-date {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.article-mech-refs a { color: var(--ink); border-bottom: 1px dotted var(--ink-3); }
.article-mech-refs a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.article-sibling-row {
  display: flex; flex-direction: column; gap: 12px;
}
.article-sibling {
  display: grid; grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px;
  background: var(--panel-soft);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit; text-align: left;
}
.article-sibling:hover { border-color: var(--accent); }
.article-sibling .sib-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--bg-2);
  padding: 2px 6px; border-radius: 3px;
  font-weight: 700; letter-spacing: 0.04em;
  text-align: center;
}
.article-sibling .sib-name { font-weight: 500; color: var(--ink); font-size: 13px; }
.article-sibling .sib-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.article-sibling .arr { color: var(--muted); font-size: 13px; }
.article-sibling:hover .arr { color: var(--accent); }

/* =========================================================
   03 · CAPITAL
   ========================================================= */
.cap-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 0 0 24px;
}
@media (max-width: 900px) { .cap-stats { grid-template-columns: repeat(2, 1fr); } }
.cap-stat {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 14px 14px;
}
.cap-stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.cap-stat .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cap-stat .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.panel.tight { padding: 0; }
.panel-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 14px;
}
.panel-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}
.panel-head h3 em { color: var(--accent); font-style: italic; font-weight: 700; }
.ph-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.ph-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-left: auto;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-side { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-2-side { grid-template-columns: 1fr; } }

.scatter {
  position: relative;
  width: 100%; height: 420px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
}
.scatter-pt {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.1s ease;
  border: 1.5px solid var(--panel);
  z-index: 2;
}
.scatter-pt:hover {
  transform: translate(-50%, -50%) scale(1.5);
  z-index: 5;
}
.scatter-grid {
  position: absolute;
  background: var(--hair-soft);
  pointer-events: none;
  z-index: 0;
}
.scatter-grid-v { width: 1px; }
.scatter-grid-h { height: 1px; }
.scatter-tick {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 1;
}
.scatter-tick-x { transform: translateX(-50%); }
.scatter-tick-y { text-align: right; transform: translateY(-50%); }
.scatter-lbl {
  position: absolute;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}
.scatter-axis-y {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.scatter-axis-x {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.scatter-tooltip {
  position: absolute;
  display: none;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  pointer-events: none;
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.scatter-tooltip strong { font-weight: 600; }
.scatter-tooltip .l { font-family: var(--font-mono); margin-top: 4px; opacity: 0.85; }

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) 1.5fr auto;
  gap: 10px;
  padding: 6px 0;
  align-items: center;
  font-size: 13px;
}
.bar-row + .bar-row { border-top: 1px dashed var(--hair-soft); }
.bar-label { display: flex; align-items: center; gap: 7px; }
.bar-track {
  height: 7px;
  background: var(--bg-2);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 3px;
}
.bar-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tier-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--bg-2);
  color: var(--ink);
}

/* Color tier-chips by tier */
.tier-chip.BI, .bar-fill.BI { background: var(--t-BI); color: white; }
.tier-chip.CO, .bar-fill.CO { background: var(--t-CO); color: white; }
.tier-chip.SC, .bar-fill.SC { background: var(--t-SC); color: white; }
.tier-chip.EV, .bar-fill.EV { background: var(--t-EV); color: white; }
.tier-chip.SP, .bar-fill.SP { background: var(--t-SP); color: white; }
.tier-chip.DE, .bar-fill.DE { background: var(--t-DE); color: white; }
.tier-chip.IN, .bar-fill.IN { background: var(--t-IN); color: white; }
.tier-chip.MU, .bar-fill.MU { background: var(--t-MU); color: white; }
.tier-chip.OP, .bar-fill.OP { background: var(--t-OP); color: white; }
.tier-chip.FC, .bar-fill.FC { background: var(--t-FC); color: white; }
.tier-chip.DR, .bar-fill.DR { background: var(--t-DR); color: white; }
.tier-chip.IF, .bar-fill.IF { background: var(--t-IF); color: white; }
[data-theme="dark"] .tier-chip { color: var(--bg); }
[data-theme="dark"] .bar-fill { color: var(--bg); }

/* =========================================================
   04 · WHITE SPACE
   ========================================================= */
.matrix-wrap { overflow-x: auto; }
.matrix {
  display: grid;
  gap: 4px;
  font-size: 11px;
  min-width: 600px;
}
.mx-head, .mx-row { display: grid; gap: 4px; }
.mx-cell {
  background: var(--panel-soft);
  border: 1px solid var(--hair-soft);
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--ink-2);
  min-height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  transition: transform .1s, box-shadow .1s, border-color .1s;
}
.mx-cell.has:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 3px 10px -4px color-mix(in srgb, var(--accent) 50%, transparent); cursor: default; }
.mx-legend { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mx-legend i { width: 13px; height: 13px; border-radius: 3px; border: 1px solid var(--hair-soft); }
.mx-legend i:nth-of-type(1) { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.mx-legend i:nth-of-type(2) { background: color-mix(in srgb, var(--brand) 19%, transparent); }
.mx-legend i:nth-of-type(3) { background: color-mix(in srgb, var(--brand) 28%, transparent); }
.mx-legend i:nth-of-type(4) { background: color-mix(in srgb, var(--brand) 35%, transparent); }
.mx-legend i:nth-of-type(5) { background: color-mix(in srgb, var(--brand) 42%, transparent); }
.mx-cell-h {
  background: transparent;
  border: 0;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 6px 4px;
  text-align: center;
}
.mx-cell-rowh {
  background: transparent; border: 0;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 8px;
  text-align: right;
  justify-content: flex-end;
}
.mx-cell.has {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--ink);
  font-weight: 600;
}
.mx-cell.empty {
  background: var(--panel-soft);
  color: var(--muted);
  opacity: 0.6;
}

.region-bar {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 12px; align-items: center;
  padding: 7px 0;
  font-size: 13px;
}
.region-bar + .region-bar { border-top: 1px dashed var(--hair-soft); }
.region-bar .name { color: var(--ink); font-weight: 500; }
.region-bar .track { height: 7px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.region-bar .fill { height: 100%; background: var(--accent); border-radius: 3px; }
.region-bar .val { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

.compos-item {
  padding: 10px 0;
  border-top: 1px dashed var(--hair-soft);
  font-size: 13px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  align-items: baseline;
}
.compos-item:first-child { border-top: 0; }
.compos-item strong { color: var(--ink); font-weight: 600; }
.compos-item .why { color: var(--ink-2); display: block; margin-top: 4px; font-size: 13px; }
.compos-item .ttag {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  padding: 2px 6px; border: 1px solid var(--hair-soft); border-radius: 2px;
}

/* =========================================================
   05 · CONCEPTS  (grid)
   ========================================================= */
.concept-controls {
  display: flex; flex-wrap: wrap;
  gap: 16px; align-items: center;
  margin-bottom: 12px;
}
.concept-search {
  position: relative;
  flex: 1; min-width: 240px; max-width: 380px;
}
.concept-search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--muted);
}
.concept-search input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  font-size: 13px;
  outline: none;
}
.concept-search input:focus { border-color: var(--accent); }

.concept-cat-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.concept-cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 40px;
  padding: 5px 11px 5px 11px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.1s, border-color 0.1s;
}
.concept-cat-chip:hover { border-color: var(--ink-3); }
.concept-cat-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.concept-cat-chip .cdot { width: 7px; height: 7px; border-radius: 50%; }
.concept-cat-chip .ct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}
.concept-cat-chip.active .ct { color: color-mix(in srgb, var(--bg) 70%, transparent); }

.concept-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 22px;
}

.concept-stack {
  display: flex; flex-direction: column; gap: 32px;
}
.concept-cat-block { }
.concept-cat-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}
.cc-dot { width: 9px; height: 9px; border-radius: 50%; }
.cc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.cc-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.concept-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--c, var(--ink));
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  display: flex; flex-direction: column;
  text-align: left;
  font-family: inherit;
}
.concept-card { transition: transform .12s, box-shadow .12s, border-color .12s; }
.concept-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--hair)); }
.concept-card .cc-arrow { transition: transform .12s; }
.concept-card:hover .cc-arrow { transform: translateX(3px); }
.cc-top {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.cc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.012em;
  color: var(--ink);
  flex: 1;
  line-height: 1.3;
}
.cc-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c, var(--muted));
  font-weight: 600;
  white-space: nowrap;
}
.cc-def {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 0 0 8px;
}
.cc-insight {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0 0 10px;
  flex: 1;
}
.cc-foot {
  display: flex; align-items: center; gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--hair-soft);
  font-size: 11px;
}
.cc-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.cc-badge strong { color: var(--ink); font-weight: 600; }
.cc-badge.zero strong { color: var(--muted); }
.cc-spacer { flex: 1; }
.cc-arrow {
  color: var(--c, var(--accent));
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.concept-empty {
  background: var(--panel-soft);
  border: 1px dashed var(--hair);
  border-radius: var(--r-md);
  padding: 32px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   06 · GRAPH
   ========================================================= */
.conn-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
}
.crumb {
  background: transparent; border: 0;
  color: var(--ink-3);
  padding: 4px 8px;
  font-family: inherit;
  font-size: 13px;
  border-radius: var(--r-xs);
  cursor: pointer;
  font-weight: 500;
}
.crumb:hover { color: var(--accent); background: var(--bg-2); }
.crumb.current { color: var(--ink); font-weight: 600; }
.crumb-sep { color: var(--muted); }

.conn-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); /* v2: 3×2 — no empty trailing cells */
  gap: 14px;
}
@media (max-width: 900px) { .conn-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .conn-tiles { grid-template-columns: 1fr; } }
.conn-tile {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--c, var(--ink));
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.12s, box-shadow 0.12s;
  display: flex; flex-direction: column; gap: 10px;
}
.conn-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ct-head { display: flex; align-items: center; gap: 8px; }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ct-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.ct-stats { display: flex; gap: 16px; }
.ct-stat { display: flex; flex-direction: column; }
.ct-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.ct-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ct-list { font-size: 12px; }
.ct-list-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  font-weight: 600;
}
.ct-list-items {
  display: flex; flex-wrap: wrap; gap: 6px;
  color: var(--ink-2);
}
.ct-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; background: var(--panel-soft);
  border: 1px solid var(--hair-soft); border-radius: 999px;
  font-size: 11.5px; color: var(--ink-2); white-space: nowrap;
}
.ct-chip .logo, .ct-chip .logo-img, .ct-chip .logo-mono { width: 15px; height: 15px; border-radius: 4px; flex: none; margin-left: -2px; }
.conn-tile .ct-cta { transition: transform .12s ease; }
.conn-tile:hover .ct-cta { transform: translateX(3px); }
.ct-cta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--hair-soft);
  color: var(--c, var(--accent));
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.conn-l2-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  flex-wrap: wrap;
}
.conn-search {
  position: relative; flex: 1; max-width: 360px;
}
.conn-search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--muted);
}
.conn-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  font-size: 13px;
  outline: none;
}
.conn-search input:focus { border-color: var(--accent); }
.conn-l2-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.conn-concept-rows { display: flex; flex-direction: column; gap: 4px; }
.conn-concept-row {
  display: grid; grid-template-columns: 1fr auto; gap: 18px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--c, var(--ink));
  border-radius: var(--r-md);
  padding: 12px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
}
.conn-concept-row:hover { background: var(--panel-soft); }
.ccr-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin-bottom: 2px;
}
.ccr-insight { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.ccr-meta { display: flex; align-items: center; gap: 10px; }
.ccr-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.ccr-badge strong { color: var(--ink); font-weight: 600; }
.ccr-arrow { color: var(--c, var(--accent)); font-weight: 600; }

.conn-l3-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px;
}
@media (max-width: 900px) { .conn-l3-layout { grid-template-columns: 1fr; } }
.conn-mini-graph {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 14px;
}
.graph-container {
  position: relative;
  width: 100%; height: 480px;
  background: var(--panel-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
#mini-graph-svg { width: 100%; height: 100%; display: block; }
.graph-tip {
  position: absolute;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  pointer-events: none;
  display: none;
  z-index: 5;
  max-width: 220px;
  box-shadow: var(--shadow-md);
}
.tip-title { font-weight: 600; font-size: 12px; }
.tip-sub { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; margin-top: 2px; }
.tip-meta { font-family: var(--font-mono); font-size: 11px; opacity: 0.8; margin-top: 4px; }
.tip-note { margin-top: 4px; font-size: 11px; opacity: 0.85; }
.graph-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center; padding: 24px;
}

.conn-mini-legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hair-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.cml-row { display: inline-flex; align-items: center; gap: 6px; }
.cml-circle { width: 11px; height: 11px; border-radius: 50%; background: var(--c-mech); }
.cml-square { width: 11px; height: 11px; border-radius: 2px; background: var(--ink-3); }
.cml-line { width: 18px; height: 2px; border-radius: 1px; }

.conn-concept-panel {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
}
.ccp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 600;
  margin-bottom: 10px;
}
.ccp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.ccp-def { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.ccp-insight-label, .ccp-related-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 8px;
}
.ccp-insight { font-size: 13px; color: var(--ink); line-height: 1.55; }
.ccp-row { display: flex; gap: 8px; margin-top: 14px; }
.ccp-btn {
  font-family: inherit;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.ccp-btn.primary:hover { background: var(--accent); border-color: var(--accent); color: white; }
.ccp-related { display: flex; flex-wrap: wrap; gap: 6px; }
.ccp-related-chip {
  font-family: inherit;
  background: var(--panel-soft);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
}
.ccp-related-chip:hover { color: var(--accent); border-color: var(--accent); }

/* graph node/edge classes */
.g-edge { transition: stroke-opacity 0.12s; }
.g-node-c, .g-node-p { transition: opacity 0.12s; }

/* =========================================================
   07 · UNIVERSE
   ========================================================= */
.plat-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 900px) { .plat-stats { grid-template-columns: repeat(2, 1fr); } }
.plat-stat {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 14px 14px;
}
.ps-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.ps-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ps-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-bottom: 18px;
}
.fb-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fb-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  margin-right: 4px;
}
.chip {
  font-family: inherit;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 40px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
  transition: background 0.1s, border-color 0.1s;
}
.chip:hover { border-color: var(--ink-3); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .ct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}
.chip.active .ct { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.chip-tcode {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.t-wrap { overflow-x: auto; }
.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.t col.col-platform { width: 34%; }
.t col.col-category { width: 26%; }
.t col.col-primitive { width: 14%; }
.t col.col-chain { width: 18%; }
.t col.col-status { width: 12%; }
.t col.col-founded { width: 10%; }
.t col.col-funding { width: 10%; }
.t col.col-valuation { width: 9%; }
.t col.col-volume { width: 8%; }

.t th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 1;
}
.t th.sortable:hover { color: var(--ink); }
.t th.sort-asc::after  { content: " ↑"; color: var(--accent); margin-left: 4px; }
.t th.sort-desc::after { content: " ↓"; color: var(--accent); margin-left: 4px; }
.t th.numeric { text-align: right; }
.t td {
  padding: 16px;
  border-bottom: 1px solid var(--hair-soft);
  vertical-align: middle;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t td.t-multiline {
  white-space: normal;
  overflow: visible;
}
.t td.numeric {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.t tbody tr {
  cursor: pointer;
  transition: background 0.08s;
}
.t tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.t tbody tr.dim { opacity: 0.55; }
.t tbody tr:last-child td { border-bottom: 0; }
.p-row { display: flex; align-items: center; gap: 8px; }
.p-row .pname { font-weight: 500; color: var(--ink); }

/* Project logo (favicon w/ monogram fallback) */
.plogo {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 20px; height: 20px;
  border-radius: 5px;
  overflow: hidden;
  vertical-align: middle;
  background: color-mix(in srgb, var(--lc, var(--ink-3)) 16%, var(--panel));
}
.plogo::before {
  content: attr(data-mono);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  color: color-mix(in srgb, var(--lc, var(--ink-2)) 75%, var(--ink));
}
.plogo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--panel);
  border-radius: inherit;
}
.plogo-lg { width: 34px; height: 34px; border-radius: 8px; margin-right: 10px; }
.plogo-lg::before { font-size: 17px; }

/* Chain/network icons in the Universe table */
.chain-cell { display: inline-flex; align-items: center; gap: 4px; }
.cic {
  position: relative;
  display: inline-flex; flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--cc, var(--ink-3)) 20%, var(--panel));
}
.cic::before {
  content: attr(data-mono);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 9px;
  color: color-mix(in srgb, var(--cc, var(--ink-2)) 80%, var(--ink));
}
.cic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--panel); }
.chain-more { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.chain-txt { font-size: 12px; color: var(--ink-2); }
.cat-name { color: var(--muted); font-size: 12px; margin-left: 4px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.dot-Live { background: var(--live); }
.dot-Beta { background: var(--beta); }
.dot-Pre-launch, .dot-Pre { background: var(--pre); }
.dot-Dormant { background: var(--dormant); }
.dot-Defunct { background: var(--defunct); }
.dot-Suspended { background: var(--suspended); }
.dot-Unknown { background: var(--neutral); opacity: 0.5; }
.undisclosed { color: var(--muted); font-style: italic; }
.un-mark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--hair);
  padding: 0 3px;
  border-radius: 2px;
  margin-left: 4px;
}

/* =========================================================
   08 · BOOK
   ========================================================= */
.book-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 36px;
  align-items: flex-start;
}
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } }

.book-cover {
  background: linear-gradient(135deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 88%, var(--accent)) 100%);
  border-radius: var(--r-md);
  aspect-ratio: 3/4;
  padding: 22px;
  color: var(--bg);
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.book-cover-inner {
  display: flex; flex-direction: column; height: 100%;
}
.bc-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 14px;
}
.bc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.bc-title em { font-style: italic; font-weight: 800; color: color-mix(in srgb, var(--bg) 88%, var(--accent)); }
.bc-sub {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.bc-foot {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.5;
}

.book-meta {
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.bm-row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  font-family: var(--font-mono);
}
.bm-row + .bm-row { border-top: 1px dashed var(--hair-soft); }
.bm-row span:first-child { color: var(--muted); }
.bm-row span:last-child { color: var(--ink); }

.bs-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.book-synopsis p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
.book-synopsis p em { font-style: italic; color: var(--ink); }
.book-synopsis { margin-bottom: 26px; }

.book-toc { margin-bottom: 26px; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 12px; align-items: center;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--hair-soft);
}
.tc-num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.tc-title { color: var(--ink); font-weight: 500; }
.tc-page { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.book-cta {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-md);
  text-decoration: none;
  margin-bottom: 26px;
}
.book-cta:hover { background: var(--accent); color: white; text-decoration: none; }
.bcta-main { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.015em; grid-column: 1; }
.bcta-sub { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; grid-column: 1; }
.bcta-arrow { font-size: 22px; grid-row: 1 / 3; grid-column: 2; }

.book-method p { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; }
.book-coi { padding: 12px 14px; background: color-mix(in srgb, var(--warn) 6%, var(--panel-soft)); border-left: 2px solid var(--warn); border-radius: 0 var(--r-xs) var(--r-xs) 0; }

/* =========================================================
   DRAWER (platform profile)
   ========================================================= */
.drawer-overlay {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  z-index: 200;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(640px, 92vw);
  height: 100vh;
  background: var(--bg-1);
  border-left: 1px solid var(--hair);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.22s ease-out;
  z-index: 210;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--hair);
  background: var(--panel);
}
.drawer-head .row1 {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.drawer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  flex: 1;
}
.tier-chip-big {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg-2);
  color: var(--ink);
}
.drawer-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  cursor: pointer;
  line-height: 1;
}
.drawer-close:hover { background: var(--bg-2); color: var(--ink); }
.drawer-tagline { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.row-flex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 3px 7px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; }
.drawer-body {
  padding: 18px 26px 36px;
  overflow-y: auto;
  flex: 1;
}
.drawer-block { padding: 16px 0; border-top: 1px solid var(--hair-soft); }
.drawer-block:first-child { border-top: 0; padding-top: 4px; }
.drawer-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 12px;
}
.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 4px 0;
  font-size: 13px;
}
.kv .k { color: var(--muted); font-size: 12px; }
.kv .v { color: var(--ink); }
.kv .v.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.kv-foot { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 8px; }
.list-strengths { padding-left: 18px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.list-strengths li { margin-bottom: 5px; }
.list-strengths.pro li::marker { color: var(--good); }
.list-strengths.con li::marker { color: var(--bad); }

/* Drawer v2 · briefing-card layout */
.d-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 2px 0 4px;
}
.d-stat {
  background: var(--panel-soft);
  border-radius: var(--r-md);
  padding: 11px 12px;
  min-width: 0;
}
.d-stat-k { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.d-stat-v {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  word-break: break-word;
}
.d-stat-v.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.d-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 24px;
}
.d-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hair-soft);
  font-size: 13px;
}
.d-fact-k { color: var(--muted); flex: none; }
.d-fact-v { color: var(--ink); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.d-fact-v a { color: var(--ink); }
.d-prose { margin-bottom: 14px; }
.d-prose:last-child { margin-bottom: 0; }
.d-prose-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.d-prose-v {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 64ch;
}
.d-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.d-sw-card { border-radius: var(--r-md); padding: 12px 13px; }
.d-sw-card.pro { background: color-mix(in srgb, var(--good) 9%, transparent); }
.d-sw-card.con { background: color-mix(in srgb, var(--bad) 9%, transparent); }
.d-sw-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.d-sw-h.pro { color: var(--good); }
.d-sw-h.con { color: var(--bad); }
.d-links { display: flex; flex-wrap: wrap; gap: 8px; }
.d-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel-soft);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.d-linkbtn:hover { border-color: var(--accent); background: var(--bg-2); }
@media (max-width: 560px) {
  .d-sw { grid-template-columns: 1fr; }
  .d-fact { padding: 6px 0; }
}
.vs-box {
  background: var(--panel-soft);
  border-left: 2px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* =========================================================
   KEYBOARD MODAL
   ========================================================= */
.kbd-modal {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--ink) 40%, transparent);
  display: none;
  align-items: center; justify-content: center;
  z-index: 300;
  padding: 24px;
}
.kbd-modal.open { display: flex; }
.kbd-card {
  background: var(--panel);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-md);
  padding: 22px 24px 18px;
  width: 380px; max-width: 100%;
  box-shadow: var(--shadow-lg);
}
.kbd-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.kbd-head h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: -0.015em; margin: 0; color: var(--ink);
}
.kbd-rows { display: flex; flex-direction: column; gap: 6px; }
.kbd-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hair-soft);
  font-size: 13px;
}
.kbd-row span { margin-left: auto; color: var(--ink-2); }
.kbd-row kbd {
  font-family: var(--font-mono);
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 11px;
}

/* =========================================================
   Misc
   ========================================================= */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hair-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ==========================================================================
   OVERVIEW REDESIGN — Blockworks-style bento
   ========================================================================== */

#section-overview {
  padding: 0 !important;
  max-width: none !important;
}

/* --- Dark hero KPI strip --- */
/* Light, typography-led hero — no contrast block */
.ov-hero {
  padding: 8px 4px 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--hair);
}
.ov-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.ov-hero-eyebrow { color: var(--ink); font-weight: 600; }
.ov-hero-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--hair-strong); }
.ov-hero-date { color: var(--ink-2); }
.ov-hero-pulse { display: inline-flex; align-items: center; gap: 6px; color: #16a34a; }
[data-theme="dark"] .ov-hero-pulse { color: #4ADE80; }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse-anim 2s ease-out infinite;
}
@keyframes pulse-anim {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

.ov-hero-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: stretch;
}
.ov-kpi {
  padding: 4px 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.ov-kpi:first-child { padding-left: 0; }
.ov-kpi:last-child  { padding-right: 0; }
.ov-kpi + .ov-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--hair);
}
.ov-kpi-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.ov-kpi-unit {
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.035em;
  margin-left: 0;
}
.ov-kpi-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
}
.ov-kpi-sep { display: none; }

@media (max-width: 1100px) {
  .ov-hero-kpis { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .ov-kpi { padding: 4px 18px; }
  .ov-kpi-num, .ov-kpi-unit { font-size: 38px; }
  .ov-kpi:nth-child(3n+1) { padding-left: 0; }
  .ov-kpi:nth-child(3n+1)::before { display: none; }
}
@media (max-width: 640px) {
  .ov-hero-kpis { grid-template-columns: repeat(2, 1fr); }
  .ov-kpi-num, .ov-kpi-unit { font-size: 32px; }
  .ov-kpi:nth-child(2n+1) { padding-left: 0; }
  .ov-kpi:nth-child(2n+1)::before { display: none; }
}

/* --- Chart wrap (now within a clean panel) --- */
#section-overview .ov-chart-wrap {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 22px 24px 18px;
  margin: 0 0 28px;
}
#section-overview .ov-chart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.ov-chart-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 4px;
}
#section-overview .ov-chart-title {
  font-family: var(--font-display));
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
#section-overview .ov-chart { height: 380px; }

/* --- Bento grid --- */
.ov-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 32px;
}
.ov-tile {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ov-tile:hover { border-color: var(--hair-strong); }
.ov-tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}
.ov-tile-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
}
.ov-tile-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.ov-tile-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Rows inside top-volume / top-funded tiles */
.ov-rowlink {
  display: grid;
  grid-template-columns: 28px 1fr 80px 64px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.12s;
}
.ov-rowlink:hover { opacity: 0.7; }
.ov-row-tier {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 3px 5px;
  border-radius: 4px;
  text-align: center;
  background: var(--accent);
}
.ov-row-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-row-bar {
  height: 6px;
  background: var(--hair);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.ov-row-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.ov-row-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}

/* Status breakdown tile */
.ov-status-stack {
  display: flex;
  height: 16px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--hair);
}
.ov-status-seg { display: block; min-width: 2px; }
.ov-status-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ov-status-row {
  display: grid;
  grid-template-columns: 10px 1fr 32px 38px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.ov-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.ov-status-name { text-transform: capitalize; color: var(--ink); }
.ov-status-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}
.ov-status-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
}

/* Event rows for raises / launches / shutdowns */
.ov-eventrow {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--hair);
  transition: opacity 0.12s;
}
.ov-eventrow:last-child { border-bottom: 0; }
.ov-eventrow:hover { opacity: 0.7; }
.ov-event-main { min-width: 0; }
.ov-event-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-event-meta {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.ov-event-year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.ov-empty {
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
}

/* Section nav strip — pills */
.ov-nav-strip {
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--hair);
}
.ov-nav-strip-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 12px;
}
.ov-nav-strip-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.ov-navpill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, transform 0.12s;
}
.ov-navpill:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.ovnp-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
}
.ovnp-name {
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ovnp-arrow {
  color: var(--ink-3);
  font-size: 13px;
}

/* Foot */
#section-overview .ov-foot {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  padding: 16px 0 8px;
}

/* Dark theme adjustments */
[data-theme="dark"] #section-overview .ov-chart-wrap,
[data-theme="dark"] .ov-tile,
[data-theme="dark"] .ov-navpill { background: var(--panel); }

/* Responsive */
@media (max-width: 1100px) {
  .ov-bento { grid-template-columns: repeat(2, 1fr); }
  .ov-nav-strip-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .ov-hero-kpis { grid-template-columns: 1fr; gap: 14px; }
  .ov-kpi-sep { display: none; }
  .ov-bento { grid-template-columns: 1fr; }
  .ov-nav-strip-grid { grid-template-columns: repeat(2, 1fr); }
  #section-overview .ov-chart { height: 280px; }
}

/* ==========================================================================
   ARTICLE ACCORDION (concept wiki collapsible sections)
   ========================================================================== */

details.article-section {
  border-top: 1px solid var(--hair);
  padding: 0;
  margin: 0;
}
details.article-section:last-of-type {
  border-bottom: 1px solid var(--hair);
}

details.article-section > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border: 0;
  user-select: none;
  transition: color 0.12s;
}
details.article-section > summary::-webkit-details-marker { display: none; }
details.article-section > summary::marker { content: ""; }

details.article-section > summary::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(-45deg) translateY(-1px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
details.article-section[open] > summary::before {
  transform: rotate(45deg) translateY(-2px);
}

details.article-section > summary:hover {
  color: var(--accent);
}
details.article-section > summary:hover::before {
  border-color: var(--accent);
}

.article-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  background: var(--hair-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Force-hide everything except summary when closed (defeats any conflicting rules) */
details.article-section:not([open]) > *:not(summary) {
  display: none !important;
}

/* Style children when open */
details.article-section[open] > *:not(summary) {
  padding-bottom: 22px;
  animation: accordion-slide 0.22s ease;
}

@keyframes accordion-slide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   UNIVERSE TABLE · cleaner row design
   ========================================================================== */
.t .p-row { display: flex; align-items: center; gap: 10px; }
.t .pname {
  font-weight: 500;
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t .cat-name {
  color: var(--ink-3);
  font-size: 12px;
  margin-left: 8px;
}
.t .t-chain {
  color: var(--ink-2);
  font-size: 13px;
}
.t .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--hair-soft);
  color: var(--ink-2);
}
.t .status-pill.status-Live { background: color-mix(in srgb, var(--good, #16a34a) 14%, transparent); color: var(--good, #16a34a); }
.t .status-pill.status-Beta { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.t .status-pill.status-Pre-launch,
.t .status-pill.status-Prelaunch { background: color-mix(in srgb, var(--ink-3) 14%, transparent); color: var(--ink-3); }
.t .status-pill.status-Dormant { background: color-mix(in srgb, var(--warn, #ca8a04) 14%, transparent); color: var(--warn, #ca8a04); }
.t .status-pill.status-Defunct { background: color-mix(in srgb, var(--bad, #dc2626) 12%, transparent); color: var(--bad, #dc2626); }
.t .status-pill.status-Suspended { background: color-mix(in srgb, var(--bad, #dc2626) 12%, transparent); color: var(--bad, #dc2626); }

.sr-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--warn, #ca8a04) 14%, transparent);
  color: var(--warn, #ca8a04);
  vertical-align: middle;
}

.undisclosed { color: var(--ink-3); opacity: 0.5; }

/* tier chip lighter in table context */
.t .tier-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border-radius: 3px;
  color: #fff;
  background: var(--accent);
}
.t .tier-chip.BI { background: var(--t-BI); }
.t .tier-chip.CO { background: var(--t-CO); }
.t .tier-chip.SC { background: var(--t-SC); }
.t .tier-chip.EV { background: var(--t-EV); }
.t .tier-chip.SP { background: var(--t-SP); }
.t .tier-chip.DE { background: var(--t-DE); }
.t .tier-chip.IN { background: var(--t-IN); }
.t .tier-chip.MU { background: var(--t-MU); }
.t .tier-chip.OP { background: var(--t-OP); }
.t .tier-chip.FC { background: var(--t-FC); }
.t .tier-chip.DR { background: var(--t-DR); }
.t .tier-chip.IF { background: var(--t-IF); }

/* ==========================================================================
   SIDEBAR FOOTER · Built by Mo + Twitter
   ========================================================================== */
.sidebar-meta {
  padding: 14px 0 4px !important;
  border-top: 1px solid var(--hair);
  margin-top: 8px;
}
a.built-by {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink) !important;
  text-decoration: none !important;
  padding: 4px 0;
  width: auto !important;
  height: auto !important;
  transition: color 0.12s;
}
a.built-by:hover { color: var(--ink) !important; }
svg.built-by-x {
  width: 11px !important;
  height: 11px !important;
  min-width: 11px !important;
  max-width: 11px !important;
  min-height: 11px !important;
  max-height: 11px !important;
  flex-shrink: 0;
  display: inline-block !important;
  color: currentColor;
  fill: currentColor;
  transition: transform 0.15s;
}
a.built-by:hover svg.built-by-x { transform: scale(1.1); }

/* ==========================================================================
   UNIVERSE FILTERS · Airtable/Notion style
   ========================================================================== */
.uni-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
}

/* Search input */
.uni-search {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 360px;
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  transition: border-color 0.12s;
}
.uni-search:focus-within { border-color: var(--ink-2); }
.uni-search svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  flex-shrink: 0;
  margin-right: 8px;
}
.uni-search input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  height: 100%;
  min-width: 0;
}
.uni-search input::placeholder { color: var(--ink-3); }

/* Filter button group */
.uni-filter-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Filter button (details + summary) */
.uni-filter {
  position: relative;
}
.uni-filter > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 36px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  user-select: none;
  transition: border-color 0.12s, background 0.12s;
  white-space: nowrap;
}
.uni-filter > summary::-webkit-details-marker { display: none; }
.uni-filter > summary::marker { content: ""; }
.uni-filter > summary:hover { border-color: var(--hair-strong); color: var(--ink); }
.uni-filter[open] > summary {
  border-color: var(--ink-2);
  background: var(--panel-soft);
  color: var(--ink);
}
.uf-active {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.uf-active.show { display: inline-flex; }
.uf-chev {
  width: 12px;
  height: 12px;
  color: var(--ink-3);
  transition: transform 0.18s;
  flex-shrink: 0;
}
.uni-filter[open] > summary .uf-chev { transform: rotate(180deg); }

/* Popover */
.uni-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--hair-strong);
  border-radius: 10px;
  box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--ink) 18%, transparent),
              0 4px 8px -4px color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 6px;
  animation: uni-pop-in 0.14s ease-out;
}
.uni-popover-wide { min-width: 320px; }
@keyframes uni-pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Popover row */
.uop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  transition: background 0.08s;
  user-select: none;
}
.uop-row:hover { background: var(--panel-soft); }
.uop-row.active { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.uop-row input[type=checkbox] {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.uop-tcode {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border-radius: 3px;
  color: #fff;
  margin-right: 4px;
  vertical-align: middle;
}
.uop-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* Reset button */
.uni-reset {
  height: 36px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.12s, background 0.12s;
}
.uni-reset:hover { color: var(--ink); background: var(--panel-soft); }

/* Active filter chips below */
.uni-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}
.uni-active-chips:empty { display: none; }
.uni-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 0;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.12s;
}
.uni-chip:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.uni-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}
.uni-chip:hover .uni-chip-x { background: color-mix(in srgb, var(--accent) 35%, transparent); }

/* ==========================================================================
   GRAPH SECTION · Full network (below the drill-down)
   ========================================================================== */
.conn-full {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}
.conn-full-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.conn-full-titles { flex: 1; min-width: 280px; }
.conn-full-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.conn-full-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 4px;
}
.conn-full-sub {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 540px;
}
.conn-full-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--panel-soft);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 3px;
}
.cf-ctrl {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.cf-ctrl:hover { color: var(--ink); }
.cf-ctrl.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 10%, transparent);
}

/* Canvas */
.conn-full-canvas {
  position: relative;
  width: 100%;
  height: 640px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
}
.conn-full-canvas svg { width: 100%; height: 100%; display: block; cursor: grab; }
.conn-full-canvas svg:active { cursor: grabbing; }
.conn-full-canvas .graph-tip {
  position: absolute;
  display: none;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 10;
  max-width: 240px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 25%, transparent);
}
.conn-full-canvas .graph-tip .t { font-family: var(--font-mono); font-size: 11px; opacity: 0.75; }

/* Node hover effect */
.fg-node { transition: filter 0.12s, transform 0.12s; }
.fg-node:hover { filter: brightness(1.08); }

/* Legend below */
.conn-full-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 14px 18px;
  background: var(--panel-soft);
  border: 1px solid var(--hair);
  border-radius: 10px;
  font-size: 12px;
}
.fg-legend-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.fg-legend-section.fg-legend-help {
  flex: 1;
  min-width: 220px;
  color: var(--ink-3);
  font-style: italic;
  font-size: 11px;
}
.fg-legend-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}
.fg-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 12px;
  text-transform: capitalize;
}
.fg-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-3);
  display: inline-block;
}
.fg-leg-sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--ink-3);
  display: inline-block;
}
.fg-leg-line {
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink-3);
  display: inline-block;
}

/* Mechanism map · ranked bar map (replaces radial dendrogram) */
.mech-barmap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.mbar {
  display: grid;
  grid-template-columns: 184px 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  padding: 5px 8px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.mbar:hover { background: var(--panel-soft); }
.mbar:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.mbar-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.mbar-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c, var(--ink-2));
  width: 22px;
  flex: none;
}
.mbar-name {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mbar-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mbar-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 24px;
  display: flex;
  align-items: stretch;
  background: var(--panel-soft);
  border: 1px solid var(--hair-soft);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.mbar-fill-live {
  background: var(--c, var(--ink-3));
  opacity: 0.82;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.mbar-fill-dead {
  background: var(--c, var(--ink-3));
  opacity: 0.22;
}
.mbar-leaders {
  position: absolute;
  left: 9px;
  top: 0;
  height: 24px;
  line-height: 24px;
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  pointer-events: none;
  max-width: calc(100% - 14px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.mbar-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  width: 26px;
  text-align: right;
  flex: none;
}
.mbar-key {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.mbar-key-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-2);
}
.mbar-key-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--ink-3);
  display: inline-block;
}
.mbar-key-swatch.live { opacity: 0.82; }
.mbar-key-swatch.dead { opacity: 0.22; }
.mbar-infra { margin-top: 8px; border-top: 1px dashed var(--hair); padding-top: 11px; }
.mbar-infra .mbar-code { color: var(--muted); }
.mbar-infra-note {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .mbar { grid-template-columns: 128px 1fr; gap: 10px; }
  .mbar-leaders { display: none; }
}

/* =========================================================
   v2 ADDITIONS — components, legends, responsive
   ========================================================= */

/* Drawer chip expander (DR1) */
.chip-more { margin-top: 8px; }
.chip-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--accent); padding: 3px 9px; border-radius: 999px;
  border: 1px dashed var(--hair-strong); background: var(--brand-hi);
}
.chip-more > summary::-webkit-details-marker { display: none; }
.chip-more[open] > summary { color: var(--muted); }
.chip-more > summary:hover { border-color: var(--accent); }

/* Universe category group sub-headers (U3) */
.t tbody tr.t-group td {
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  font-weight: 600;
  padding: 7px 12px;
  border-top: 1px solid var(--hair);
  position: sticky; left: 0;
}
.t tbody tr.t-group:hover td { background: var(--bg-2); cursor: default; }
.t-group-count { color: var(--muted); font-weight: 500; margin-left: 4px; }

/* White Space — header label never wraps awkwardly (W1) */
.mx-cell-h { white-space: nowrap; }

/* Matrices scroll horizontally instead of squishing (R3) */
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { min-width: 680px; }

/* =========================================================
   v2 RESPONSIVE — 640 / 900 / 1200 system
   ========================================================= */

/* Overview KPI hero → 2-col grid on mobile (R1), instead of 5 tall rows */
@media (max-width: 640px) {
  .ov-hero-kpis {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4) var(--space-5);
  }
  .ov-kpi-sep { display: none !important; }
}

/* Universe table stays readable via horizontal scroll on small screens (R2) */
@media (max-width: 760px) {
  .t { min-width: 620px; }
}

/* Tablet band (~768) — collapse 2-up panel grids that previously only broke at 900 (R4/S4) */
@media (max-width: 1024px) {
  .grid-2, .grid-2-side { grid-template-columns: 1fr; }
}

/* =========================================================
   v2 · MECHANISM ARTICLE — flat sections need rhythm + dividers
   (concept articles use details.article-section, styled separately)
   ========================================================= */
div.article-section {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hair);
}
/* the label sits clearly above its body */
div.article-section > .article-section-label {
  display: block;
  margin-bottom: var(--space-3);
}
/* comfortable reading measure for prose; grids/cards stay full width */
div.article-section > .article-section-body,
div.article-section > .article-bullets { max-width: 64ch; }
/* Use cases / Advantages / Limitations bullets get a touch more room above */
div.article-section .article-grid-2 { margin-top: var(--space-1); }

/* v2 · Mechanism article — computed depth sections */
.mech-stats { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.ms-num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ms-lbl { font-size: var(--fs-sm); color: var(--ink-3); margin-top: var(--space-1); }
.mech-chains { margin-top: var(--space-3); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.02em; }
.mech-leaders { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.mech-leader { display: inline-flex; align-items: baseline; gap: var(--space-2); padding: 6px 11px; background: var(--panel-soft); border: 1px solid var(--hair); border-radius: var(--r-sm); cursor: pointer; font-family: inherit; transition: border-color .12s, background .12s; }
.mech-leader:hover { border-color: var(--accent); background: var(--panel); }
.ml-name { font-size: var(--fs-base); font-weight: 500; color: var(--ink); }
.ml-metric { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }

/* ============================================================
   v4 ADDITIONS · search refinement, submit modal, book lock, motion
   ============================================================ */

/* --- search results: give the dropdown room so content doesn't squish --- */
.search-results { width: min(344px, calc(100vw - 36px)); right: auto; }
.sr-item .pname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item .sr-meta { white-space: nowrap; flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; }
.sr-item .tier-chip { flex: none; }

/* --- submit-a-project button --- */
.submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 8px 10px;
  background: var(--ink); color: var(--bg-1);
  border: 1px solid var(--ink); border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.submit-btn:hover { opacity: .9; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
@media (max-width: 900px) { .submit-btn { width: auto; } }

/* --- modal (submit a project) --- */
body.modal-lock { overflow: hidden; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 24px;
  background: color-mix(in srgb, #0b0c0f 55%, transparent);
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; animation: ovIn .16s ease both; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative; width: min(620px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--hair-strong);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: 28px 28px 22px;
  animation: cardIn .2s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 14px; right: 16px; background: transparent; border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); width: 30px; height: 30px; border-radius: var(--r-sm); }
.modal-x:hover { background: var(--bg-2); color: var(--ink); }
.modal-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.modal-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 6px; color: var(--ink); }
.modal-sub { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 0 0 18px; max-width: 52ch; }
.submit-form { display: flex; flex-direction: column; gap: 12px; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-field { display: flex; flex-direction: column; gap: 5px; }
.sf-field.sf-full { grid-column: 1 / -1; }
.sf-lbl { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.sf-lbl i { color: var(--bad); font-style: normal; }
.sf-field input, .sf-field select, .sf-field textarea {
  width: 100%; padding: 9px 11px; background: var(--bg-1);
  border: 1px solid var(--hair); border-radius: var(--r-sm);
  color: var(--ink); font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.sf-field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.sf-field input:focus, .sf-field select:focus, .sf-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.sf-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; }
.sf-note { font-size: 11px; color: var(--muted); }
.sf-submit { padding: 9px 18px; background: var(--ink); color: var(--bg-1); border: 1px solid var(--ink); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .12s, opacity .12s; }
.sf-submit:hover { opacity: .9; transform: translateY(-1px); }
.sf-submit.ghost { background: transparent; color: var(--ink); }
.sf-submit.ghost:hover { background: var(--bg-2); }
.submit-success { text-align: center; padding: 20px 8px 10px; animation: cardIn .24s ease both; }
.ss-check { width: 52px; height: 52px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.ss-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.ss-sub { font-size: 13px; color: var(--ink-2); line-height: 1.55; max-width: 40ch; margin: 0 auto 16px; }
@media (max-width: 560px) { .sf-grid { grid-template-columns: 1fr; } .sf-actions { flex-direction: column; align-items: stretch; } }

/* --- The Book · locked / coming soon --- */
.book-locked { position: relative; }
.book-blur { filter: blur(6px) saturate(.85); opacity: .5; pointer-events: none; user-select: none; }
.book-lock-overlay { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 24px; }
.book-lock-card { text-align: center; max-width: 420px; background: var(--panel); border: 1px solid var(--hair-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 30px 30px 26px; animation: cardIn .3s cubic-bezier(.2,.7,.3,1) both; }
.book-lock-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 5px 11px; border-radius: 999px; }
.book-lock-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 14px 0 8px; }
.book-lock-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0 auto 18px; max-width: 38ch; }
.book-lock-cta { display: inline-block; font-size: 13px; font-weight: 600; color: var(--bg-1); background: var(--ink); padding: 9px 18px; border-radius: var(--r-sm); text-decoration: none; transition: transform .12s, opacity .12s; }
.book-lock-cta:hover { opacity: .9; transform: translateY(-1px); }

/* --- motion (respects reduced-motion) --- */
.section.active { animation: sectionIn .34s cubic-bezier(.2,.7,.3,1) both; }
@keyframes sectionIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.topnav-btn { transition: background .14s ease, color .14s ease, transform .1s ease; }
.topnav-btn:active { transform: scale(.985); }
.mech-card, .ov-navpill, .article-related-chip, .d-linkbtn { transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease; }
.mech-card:hover, .ov-navpill:hover { transform: translateY(-2px); }
.mbar, .ov-rowlink, .ov-eventrow { transition: background .14s ease, opacity .14s ease, transform .12s ease; }
@media (prefers-reduced-motion: reduce) {
  .section.active, .modal-overlay.open, .modal-card, .book-lock-card, .submit-success { animation: none !important; }
  .topnav-btn, .mech-card, .ov-navpill, .mbar, .ov-rowlink, .ov-eventrow, .submit-btn, .sf-submit, .book-lock-cta { transition: none !important; }
  .mech-card:hover, .ov-navpill:hover, .submit-btn:hover, .sf-submit:hover, .book-lock-cta:hover { transform: none !important; }
}

/* ============================================================
   v4 ADDITIONS · collapsible concept categories + book-lock scrim
   ============================================================ */
/* Collapsible concept categories */
.concept-cat-block { margin-bottom: 8px; }
.concept-cat-block > summary.concept-cat-head { cursor: pointer; list-style: none; user-select: none; align-items: center; }
.concept-cat-block > summary.concept-cat-head::-webkit-details-marker { display: none; }
.concept-cat-head .cc-count { margin-left: auto; }
.concept-cat-head .cc-chevron { margin-left: 10px; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s ease; }
.concept-cat-block[open] > summary .cc-chevron { transform: rotate(90deg); }
/* Concept article · "show more insights" toggle */
.insights-more { margin-top: 6px; }
.insights-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; color: var(--accent); padding: 4px 0; user-select: none; }
.insights-more > summary::-webkit-details-marker { display: none; }
.insights-more > summary::before { content: "+"; font-weight: 600; }
.insights-more[open] > summary::before { content: "\2212"; }
.insights-more > summary:hover { text-decoration: underline; }
.insights-more[open] > summary { color: var(--muted); }

.concept-cat-block > summary.concept-cat-head:hover .cc-name { color: var(--accent); }
.concept-cat-block > summary.concept-cat-head:hover .cc-chevron { color: var(--accent); }
/* Collapsed categories sit tighter and read as a clickable bar */
.concept-cat-block:not([open]) { margin-bottom: 4px; }
.concept-cat-block:not([open]) > summary.concept-cat-head { margin-bottom: 0; padding: 10px 12px; border-radius: var(--r-sm); border-bottom: 1px solid transparent; background: var(--panel-soft); transition: background .12s; }
.concept-cat-block:not([open]) > summary.concept-cat-head:hover { background: var(--bg-2); }
.concept-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.cc-toggle-all {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-2); background: var(--panel-soft);
  border: 1px solid var(--hair); border-radius: var(--r-sm);
  padding: 5px 11px; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.cc-toggle-all:hover { background: var(--bg-2); border-color: var(--accent); color: var(--ink); }

/* Book lock · soft scrim so the coming-soon card reads cleanly over the blurred content */
.book-lock-overlay { background: color-mix(in srgb, var(--bg-1) 58%, transparent); border-radius: var(--r-lg); }

/* ============================================================
   v4 · Compare section
   ============================================================ */
.cmp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 22px; }
.cmp-types { display: inline-flex; gap: 4px; background: var(--panel-soft); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 3px; }
.cmp-type { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: var(--r-sm); background: transparent; border: 0; color: var(--ink-2); cursor: pointer; transition: background .12s, color .12s; }
.cmp-type:hover { color: var(--ink); }
.cmp-type.active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
/* Searchable A-vs-B picker */
.cmp-picks { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 12px; margin: 0 0 22px; }
.cmp-slot { position: relative; min-width: 0; }
.cmp-slot-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 11px 14px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r-md); color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: border-color .12s, box-shadow .12s, background .12s; }
.cmp-slot-btn:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--hair)); }
.cmp-slot.open .cmp-slot-btn { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.cmp-slot-face { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.cmp-slot-face .logo, .cmp-slot-face .logo-img, .cmp-slot-face .logo-mono { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.cmp-face-name { font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-face-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-face-tag { flex: none; font-size: 9.5px; }
.cmp-slot-ph { flex: 1; color: var(--muted); font-size: 13.5px; }
.cmp-slot-caret { flex: none; color: var(--muted); font-size: 10px; transition: transform .15s; }
.cmp-slot.open .cmp-slot-caret { transform: rotate(180deg); }
.cmp-pick-vs { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-soft); border: 1px solid var(--hair); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--muted); flex: none; }
.cmp-swap { flex: none; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--panel-soft); border: 1px solid var(--hair); color: var(--ink-2); font-size: 16px; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.cmp-swap:hover { background: var(--panel); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--hair)); }

/* Popover */
.cmp-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; min-width: 260px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: 0 12px 40px -12px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.10); overflow: hidden; }
.cmp-pop-search { padding: 10px; border-bottom: 1px solid var(--hair-soft); }
.cmp-pop-input { width: 100%; padding: 8px 11px; background: var(--bg-1); border: 1px solid var(--hair); border-radius: var(--r-sm); color: var(--ink); font: inherit; font-size: 13px; outline: none; transition: border-color .12s; }
.cmp-pop-input:focus { border-color: var(--accent); }
.cmp-pop-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.cmp-opt { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; background: transparent; border: 0; border-radius: var(--r-sm); cursor: pointer; text-align: left; color: var(--ink); transition: background .1s; }
.cmp-opt:hover:not(.dis) { background: var(--panel-soft); }
.cmp-opt.sel { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cmp-opt.dis { opacity: .38; cursor: not-allowed; }
.cmp-opt-face { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.cmp-opt-face .logo, .cmp-opt-face .logo-img, .cmp-opt-face .logo-mono { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.cmp-opt-check { flex: none; color: var(--accent); font-size: 12px; }
.cmp-opt-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 12.5px; }
.cmp-output { margin-top: 2px; }

/* Modern comparison card */
.cmp-card { border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -18px rgba(0,0,0,.30); }
.cmp-grid { display: grid; grid-template-columns: 1fr 148px 1fr; align-items: stretch; }

/* Header band */
.cmp-heads { background: linear-gradient(180deg, var(--panel-soft), color-mix(in srgb, var(--panel-soft) 60%, var(--panel))); border-bottom: 1px solid var(--hair); }
.cmp-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; min-width: 0; }
.cmp-head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ac); opacity: .9; }
.cmp-head .logo, .cmp-head .logo-img, .cmp-head .logo-mono { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.cmp-head .tier-chip { flex: none; }
.cmp-htext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmp-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-hsub { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-hsub .tier-chip { font-size: 10px; }

/* VS badge */
.cmp-heads .cmp-vs { display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--hair-soft); border-right: 1px solid var(--hair-soft); }
.cmp-heads .cmp-vs span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel); border: 1px solid var(--hair); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* Body rows */
.cmp-body .cmp-row { border-bottom: 1px solid var(--hair-soft); transition: background .12s; }
.cmp-body .cmp-row:last-child { border-bottom: 0; }
.cmp-body .cmp-row:nth-child(even) { background: color-mix(in srgb, var(--panel-soft) 45%, transparent); }
.cmp-cell { padding: 13px 20px; font-size: 13px; color: var(--ink-2); line-height: 1.5; min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; }
.cmp-cell a { color: var(--accent); text-decoration: none; }
.cmp-cell a:hover { text-decoration: underline; }
.cmp-key { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 13px 10px; background: color-mix(in srgb, var(--panel-soft) 55%, transparent); border-left: 1px solid var(--hair-soft); border-right: 1px solid var(--hair-soft); }
.cmp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.cmp-row.diff .cmp-cell { color: var(--ink); font-weight: 500; }
.cmp-row.diff .cmp-key { color: var(--ink-2); }
.cmp-empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--hair); border-radius: var(--r-lg); }

@media (max-width: 720px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-heads .cmp-vs { display: none; }
  .cmp-head { padding: 16px 16px 14px; }
  .cmp-head:last-child { border-top: 1px solid var(--hair); }
  .cmp-key { justify-content: flex-start; text-align: left; border: 0; border-top: 1px dashed var(--hair-soft); background: transparent; padding: 12px 16px 4px; }
  .cmp-cell { padding: 4px 16px 10px; }
  .cmp-cell:first-of-type { padding-top: 10px; }
  .cmp-picks { grid-template-columns: 1fr auto; grid-template-areas: "a swap" "vs swap" "b swap"; gap: 10px; }
  .cmp-slot[data-slot="a"] { grid-area: a; }
  .cmp-pick-vs { grid-area: vs; justify-self: start; }
  .cmp-slot[data-slot="b"] { grid-area: b; }
  .cmp-swap { grid-area: swap; align-self: center; }
  .cmp-pop { min-width: 0; }
}

/* ============================================================
   v4 · Overview editorial landing
   ============================================================ */
.ov-hero-title { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); margin: 18px 0 10px; max-width: 20ch; }
.ov-hero-title em { font-style: normal; color: var(--accent); }
.ov-hero-lede { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; margin: 0 0 26px; }
.ov-recent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.ov-recent-col { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 16px 18px; }
.ov-recent-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--hair-soft); }
@media (max-width: 720px) { .ov-recent { grid-template-columns: 1fr; } }

/* ============================================================
   v5 · DEPTH + MOTION — make it feel alive, keep it calm
   ============================================================ */

/* Section eyebrow gets a small accent tick so headers read as authored */
.sec-head .eyebrow,
.ov-chart-eyebrow,
.article-eyebrow { position: relative; }
.sec-head .eyebrow::before {
  content: ""; display: inline-block; width: 14px; height: 2px;
  background: var(--accent); border-radius: 2px; vertical-align: middle;
  margin-right: 8px; transform: translateY(-2px);
}

/* Layered elevation: panels and cards lift off the parchment with real depth */
.panel, .ov-recent-col, .conn-tile, .cmp-card,
.ov-chart-wrap, .mech-card, .concept-card {
  box-shadow: 0 1px 1px rgba(15,17,20,.03), 0 2px 6px rgba(15,17,20,.04);
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.panel:hover, .ov-recent-col:hover, .ov-chart-wrap:hover {
  box-shadow: 0 2px 4px rgba(15,17,20,.05), 0 14px 34px -16px rgba(15,17,20,.22);
}

/* Stat tiles: hover gives a quiet lift + accent tick */
.ov-kpi { transition: transform .14s ease; }
.plat-stat, .mech-stat { transition: transform .14s ease, box-shadow .14s ease; border-radius: var(--r-md); }
.plat-stat:hover, .mech-stat:hover { transform: translateY(-2px); }

/* Directory rows: clearer hover affordance */
#universe-table tbody tr { transition: background .12s ease; }
#universe-table tbody tr[data-slug] { cursor: pointer; }
#universe-table tbody tr[data-slug]:hover { background: var(--accent-soft); }

/* Cross-link anchors animate their underline */
.xlink { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .2s ease; }
.xlink:hover { background-size: 100% 1.5px; }

/* KPI count-up: start hidden, JS reveals with a rise */
.ov-kpi-num.counting { will-change: contents; }

/* Entrance reveal — ONLY for render-once containers (never filter-driven grids,
   so it won't re-flash on every keystroke). Staggered for a composed feel. */
.section.active .ov-hero-kpis .ov-kpi,
.section.active .ov-recent-col,
.section.active .ov-navpill,
.section.active .conn-tile { animation: pmRise .5s cubic-bezier(.2,.7,.3,1) both; }
.section.active .ov-navpill:nth-child(1),
.section.active .conn-tile:nth-child(1) { animation-delay: .02s; }
.section.active .ov-navpill:nth-child(2),
.section.active .conn-tile:nth-child(2) { animation-delay: .06s; }
.section.active .ov-navpill:nth-child(3),
.section.active .conn-tile:nth-child(3) { animation-delay: .10s; }
.section.active .ov-navpill:nth-child(4),
.section.active .conn-tile:nth-child(4) { animation-delay: .14s; }
.section.active .ov-navpill:nth-child(5),
.section.active .conn-tile:nth-child(5) { animation-delay: .18s; }
.section.active .ov-navpill:nth-child(6),
.section.active .conn-tile:nth-child(6) { animation-delay: .22s; }
@keyframes pmRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .section.active .ov-hero-kpis .ov-kpi,
  .section.active .ov-recent-col,
  .section.active .ov-navpill,
  .section.active .conn-tile { animation: none !important; }
  .panel:hover, .ov-recent-col:hover, .ov-chart-wrap:hover,
  .plat-stat:hover, .mech-stat:hover { transform: none !important; }
}

/* Concept article · at-a-glance orientation strip */
.article-glance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--hair-soft); font-size: 12.5px; color: var(--ink-2); }
.article-glance .ag-item { display: inline-flex; align-items: center; gap: 6px; }
.article-glance .ag-item b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.article-glance .ag-cat { font-weight: 600; color: var(--ink); }
.article-glance .ag-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.article-glance .ag-item:not(:last-child)::after { content: ""; }

/* ============================================================
   v6 · refined warm-editorial — sharper type, airier rhythm
   (radii/shadows/surfaces handled at the token level above)
   ============================================================ */
.ov-hero-title { letter-spacing: -.04em; line-height: 1.02; }
.page-title { letter-spacing: -.035em; line-height: 1.05; }
.article-title { letter-spacing: -.035em; line-height: 1.06; }
.lede, .ov-hero-lede, .article-tagline { line-height: 1.62; }
.eyebrow, .article-eyebrow, .ov-chart-eyebrow, .nav-label, .ph-sub, .mx-legend { letter-spacing: .13em; }
/* panels breathe a touch more now that borders are quieter */
.panel { padding: 22px 23px; box-shadow: var(--shadow-md); }
.ov-chart-wrap { padding: 20px 22px; }
/* faint inner ring instead of a hard border on the hero chart + cards */
.cmp-card, .ov-recent-col { border-color: var(--hair-soft); }

/* Overview · logo wall — recognizable platforms, proves coverage */
.ov-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 30px; }
.ov-logo { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; background: var(--panel); border: 1px solid var(--hair); border-radius: 999px; cursor: pointer; font-family: inherit; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.ov-logo:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--hair)); }
.ov-logo .logo, .ov-logo .logo-img, .ov-logo .logo-mono { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.ov-logo-name { font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.ov-logo:hover .ov-logo-name { color: var(--ink); }
.ov-logo-more { display: inline-flex; align-items: center; padding: 7px 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; color: var(--accent); text-decoration: none; border-radius: 999px; transition: background .14s ease; }
.ov-logo-more:hover { background: var(--accent-soft); }
@media (max-width: 720px) { .ov-logo-name { display: none; } .ov-logo { padding: 7px; } }

/* ============================================================
   v7 · brand block, Built-by-Mo card, About modal, Dekant lead
   ============================================================ */
/* Brand — clickable home, refined mark, sentence-case tag */
.brand-wrap { display: flex; flex-direction: column; }
.brand { background: transparent; border: 0; padding: 6px 8px; margin: -6px -8px 0; width: calc(100% + 16px); border-radius: var(--r-md); cursor: pointer; text-align: left; font-family: inherit; gap: 11px; transition: background .12s ease; }
.brand:hover { background: var(--panel-soft); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0; }
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-name { font-weight: 800; letter-spacing: -.02em; font-size: 15px; color: var(--ink); line-height: 1; }
.brand-tag { display: block; margin: 0; font-size: 10.5px; color: var(--muted); letter-spacing: .02em; text-transform: none; font-family: var(--font-mono); font-weight: 500; }
.brand-by { align-self: flex-start; margin: 9px 0 0 2px; background: transparent; border: 0; padding: 0; cursor: pointer; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); transition: color .12s ease; }
.brand-by:hover { color: var(--accent); }
@media (max-width: 900px) { .brand-tag, .brand-by { display: none; } }

/* Built-by-Mo follow card */
.bymo-card { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.bymo-top { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.bymo-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.bymo-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bymo-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.bymo-role { font-size: 11px; color: var(--muted); }
.bymo-role a { color: var(--accent); text-decoration: none; }
.bymo-role a:hover { text-decoration: underline; }
.bymo-actions { display: flex; gap: 8px; }
.bymo-follow { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); font-size: 12px; font-weight: 600; text-decoration: none; transition: opacity .12s ease; }
.bymo-follow:hover { opacity: .9; }
.bymo-x { width: 12px; height: 12px; }
.bymo-about { background: transparent; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 7px 11px; font-family: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; transition: border-color .12s ease, color .12s ease; }
.bymo-about:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--hair)); color: var(--ink); }

/* About modal */
.about-body { font-size: 14.5px; line-height: 1.66; color: var(--ink-2); }
.about-body p { margin: 0 0 14px; }
.about-body a { color: var(--accent); text-decoration: none; }
.about-body a:hover { text-decoration: underline; }
.about-coi { font-size: 13px; color: var(--muted); background: var(--panel-soft); border: 1px solid var(--hair-soft); border-radius: var(--r-md); padding: 12px 14px; }
.about-coi strong { color: var(--ink-2); }
.about-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.about-follow { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity .12s ease; }
.about-follow:hover { opacity: .9; }
.about-dekant { display: inline-flex; align-items: center; padding: 9px 16px; background: transparent; border: 1px solid var(--hair); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; transition: border-color .12s ease; }
.about-dekant:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--hair)); }

/* Footer CTA */
.ov-foot p { margin: 0 0 4px; }
.ov-foot a { color: var(--accent); text-decoration: none; }
.ov-foot a:hover { text-decoration: underline; }
.foot-link { background: transparent; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.foot-link:hover { text-decoration: underline; }
.ov-foot-sub { font-size: 12px; color: var(--muted); }

/* Submit · consent + honeypot */
.sf-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin: 6px 0 2px; }
.sf-consent input { margin-top: 2px; flex: none; }
.sf-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Mechanism · Dekant lead (Continuous/Distribution only) */
.mech-dekant-lead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 4px; padding: 14px 16px; background: color-mix(in srgb, var(--t-CO) 7%, var(--panel)); border: 1px solid color-mix(in srgb, var(--t-CO) 26%, var(--hair)); border-left: 3px solid var(--t-CO); border-radius: var(--r-md); text-decoration: none; transition: box-shadow .14s ease, transform .14s ease; }
.mech-dekant-lead:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.mdl-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--t-CO); background: color-mix(in srgb, var(--t-CO) 12%, transparent); padding: 3px 8px; border-radius: 999px; flex: none; }
.mdl-body { flex: 1; min-width: 220px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.mdl-body strong { color: var(--ink); }
.mdl-cta { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--t-CO); white-space: nowrap; }

/* ============================================================
   v8 · auth (Privy email login) — sidebar button + modal
   ============================================================ */
.auth-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin-top: 8px; padding: 9px 12px;
  background: transparent; border: 1px solid var(--hair); border-radius: var(--r-md);
  color: var(--ink-2); font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.auth-btn svg { flex: none; }
.auth-btn:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--hair)); color: var(--ink); }
.auth-btn.authed { color: var(--ink); border-color: var(--hair-strong); }
.auth-btn.authed #auth-label { font-family: var(--font-mono); font-size: 11.5px; }
@media (max-width: 900px) { .auth-btn { display: none; } }

.modal-card.modal-sm { max-width: 400px; }
.auth-step { display: flex; flex-direction: column; gap: 12px; }
.auth-step .sf-submit { width: 100%; }
.auth-hint { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.auth-hint strong { color: var(--ink); }
.auth-err { font-size: 12.5px; color: var(--bad); margin: 12px 0 0; min-height: 1em; }
#auth-code { font-family: var(--font-mono); letter-spacing: .3em; font-size: 16px; }

/* ============================================================
   v9 · modern modal + form system (frosted overlay, defined inputs)
   ============================================================ */
/* fix: [hidden] must always hide, even when a rule sets display:flex */
[hidden] { display: none !important; }

/* Frosted, premium overlay (blur on the overlay, never behind inputs) */
.modal-overlay {
  background: color-mix(in srgb, #16130d 46%, transparent);
  backdrop-filter: blur(12px) saturate(118%);
  -webkit-backdrop-filter: blur(12px) saturate(118%);
  padding: 28px;
}
.modal-card {
  width: min(640px, 100%);
  border: 1px solid var(--hair);
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 70px -28px rgba(15,17,20,.45), 0 8px 24px -16px rgba(15,17,20,.30);
  padding: 30px 30px 24px;
}
.modal-card.modal-sm { width: min(420px, 100%); }
.modal-x { width: 32px; height: 32px; border-radius: 9px; font-size: 20px; }
.modal-eyebrow { letter-spacing: .16em; }
.modal-title { font-size: 25px; letter-spacing: -.025em; }

/* Modern, clearly-defined form controls (filled → white-on-focus with a ring) */
.modal-card input:not([type=checkbox]),
.modal-card select,
.modal-card textarea {
  width: 100%; padding: 11px 13px;
  background: var(--bg-2);
  border: 1.5px solid var(--hair-strong);
  border-radius: 11px;
  color: var(--ink); font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.modal-card select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6E76' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.modal-card input::placeholder, .modal-card textarea::placeholder { color: var(--muted); }
.modal-card input:hover:not(:focus), .modal-card select:hover:not(:focus), .modal-card textarea:hover:not(:focus) { border-color: color-mix(in srgb, var(--accent) 28%, var(--hair-strong)); }
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus {
  border-color: var(--accent); background: var(--panel);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.sf-field { gap: 7px; }
.sf-lbl { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .005em; }
.sf-grid { gap: 14px; }
.submit-form { gap: 14px; }

/* Buttons — bigger, rounder, with motion */
.sf-submit { padding: 11px 20px; border-radius: 11px; font-size: 13.5px; letter-spacing: .005em; box-shadow: 0 1px 2px rgba(15,17,20,.10); }
.sf-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(15,17,20,.5); }
.sf-submit:active { transform: translateY(0); }
.auth-step .sf-submit { width: 100%; }

/* Consent row reads like a control, not stray text */
.sf-consent { background: var(--panel-soft); border: 1px solid var(--hair-soft); border-radius: 11px; padding: 11px 13px; }

/* ============================================================
   v10 · bold modern — vivid accent buttons, glow, heavier type
   ============================================================ */
/* Primary CTAs ride the accent with a soft glow (ghost stays neutral) */
.sf-submit:not(.ghost) {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.sf-submit:not(.ghost):hover { background: color-mix(in srgb, var(--accent) 88%, #000); transform: translateY(-1px); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.book-lock-cta { background: var(--accent); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent); }

/* Heavier, tighter display type for presence */
.ov-hero-title { font-weight: 800; }
.page-title, .article-title { font-weight: 800; }
.ov-kpi-num { font-weight: 800; letter-spacing: -.02em; }

/* Active nav reads with a vivid spine */
.topnav-btn.active { color: var(--ink); }
.topnav-btn.active::before { background: var(--accent); }
.topnav-btn.active .nav-icon { color: var(--accent); }

/* Submit (primary sidebar action) goes accent too — it's the main CTA */
.submit-btn { background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.submit-btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

/* The accent-tinted "mapped" word + xlinks pop more now (uses --accent token) */
.ov-logo:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--hair)); }

/* ============================================================
   v11 · sidebar tidy + report card position
   ============================================================ */
/* Theme + Sign in share one row instead of two stacked full-width buttons */
.sidebar-tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sidebar-tool-row .theme-toggle,
.sidebar-tool-row .auth-btn { margin: 0; width: 100%; justify-content: center; }
.sidebar-tool-row .auth-btn span,
.sidebar-tool-row .theme-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-tools { gap: 10px; }

/* Report coming-soon card sits high, not floating mid-page */
.book-lock-overlay { align-items: flex-start; padding-top: 52px; }

/* ============================================================
   v12 · Built-by-Mo card — clean Inter, modern, refined
   (overrides the mono inheritance from .sidebar-meta)
   ============================================================ */
.bymo-card { font-family: var(--font-body); background: var(--panel); border: 1px solid var(--hair); border-radius: 14px; padding: 14px; box-shadow: 0 1px 2px rgba(15,17,20,.04), 0 12px 28px -18px rgba(15,17,20,.22); }
.bymo-top { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.bymo-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.bymo-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.bymo-name { font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: var(--ink); }
.bymo-role { font-family: var(--font-body); font-size: 12px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.bymo-role a { color: var(--accent); font-weight: 600; text-decoration: none; }
.bymo-role a:hover { text-decoration: underline; }
.bymo-actions { display: flex; gap: 8px; }
.bymo-follow { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; background: var(--ink); color: var(--bg); border-radius: 10px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .005em; text-decoration: none; transition: opacity .12s ease, transform .12s ease; }
.bymo-follow:hover { opacity: .92; transform: translateY(-1px); }
.bymo-x { width: 13px; height: 13px; }
.bymo-about { padding: 9px 14px; background: transparent; border: 1px solid var(--hair-strong); border-radius: 10px; font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color .12s ease, color .12s ease, background .12s ease; }
.bymo-about:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--hair-strong)); color: var(--ink); background: var(--panel-soft); }

/* ============================================================
   v13 · About modal — personable header, stat chips, refined callout
   ============================================================ */
.about-id { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.about-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.about-id-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.about-id-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.about-id-sub { font-size: 12.5px; color: var(--muted); }
.about-id-sub a { color: var(--accent); font-weight: 600; text-decoration: none; }
.about-id-sub a:hover { text-decoration: underline; }
.about-id-follow { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); border-radius: 11px; transition: opacity .12s ease, transform .12s ease; }
.about-id-follow:hover { opacity: .9; transform: translateY(-1px); }
.about-id-follow .bymo-x { width: 15px; height: 15px; }

.about-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.about-stat { font-size: 12.5px; color: var(--ink-2); background: var(--panel-soft); border: 1px solid var(--hair-soft); border-radius: 999px; padding: 6px 13px; }
.about-stat b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.about-coi { font-size: 12.5px; line-height: 1.6; color: var(--muted); background: var(--panel-soft); border: 1px solid var(--hair-soft); border-left: 3px solid var(--accent); border-radius: 12px; padding: 13px 15px; }
.about-coi strong { color: var(--ink); font-weight: 700; }

.about-id { padding-right: 34px; }

/* ============================================================
   v14 · consistency pass — buttons, button text, stray colors
   ============================================================ */
/* FIX: prose-link color was bleeding into the action buttons (violet text). */
.about-actions a, .about-actions a:hover { text-decoration: none; }
.about-actions .about-follow { color: var(--bg); }
.about-actions .about-follow .bymo-x { color: var(--bg); }
.about-actions .about-dekant { color: var(--ink); }

/* One radius for the whole action-button family (was a mix of 6 / 10 / 11px). */
.sf-submit, .about-follow, .about-dekant, .bymo-follow, .bymo-about,
.book-lock-cta, .submit-btn, .theme-toggle, .auth-btn { border-radius: 11px; }

/* Stray hardcoded green → the live token, so status colors stay consistent. */
.ov-hero-pulse { color: var(--live); }

/* ============================================================
   v15 · Theme as a compact icon button beside Submit
   ============================================================ */
.sidebar-tool-row { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; grid-template-columns: none; }
.sidebar-tool-row .submit-btn { flex: 1; margin: 0; }
.sidebar-tool-row .theme-icon { flex: none; width: 44px; padding: 0; justify-content: center; margin: 0; }
.theme-icon span { display: none; }

/* ============================================================
   v16 · Unified article template (concept + mechanism inside-pages)
   One reading spine: hero, numbered read-body sections with strong
   boundaries, collapsed "Going deeper" shelf, sticky on-this-page TOC.
   ============================================================ */
.article { max-width: 1060px; }
.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
.article-main { min-width: 0; max-width: 720px; }

/* sticky on-this-page nav */
.article-toc { position: sticky; top: 22px; align-self: start; }
.atoc-head {
  font-family: var(--font-mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); font-weight: 600; margin-bottom: 12px; padding-left: 12px;
}
.atoc-item {
  display: flex; align-items: baseline; gap: 9px;
  padding: 7px 11px; border-left: 2px solid transparent;
  color: var(--ink-3); text-decoration: none; cursor: pointer;
  line-height: 1.35; transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.atoc-item:hover { color: var(--ink); }
.atoc-item.active {
  color: var(--c, var(--accent));
  border-left-color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 8%, transparent);
}
.atoc-n { font-family: var(--font-mono); font-size: 10px; color: var(--muted); flex: none; min-width: 15px; }
.atoc-item.active .atoc-n { color: var(--c, var(--accent)); }
.atoc-l { flex: 1; font-size: 12.5px; font-weight: 500; }
.atoc-c { font-family: var(--font-mono); font-size: 10px; color: var(--muted); flex: none; }
.atoc-item.atoc-deep { margin-top: 9px; padding-top: 14px; border-top: 1px solid var(--hair); }

/* read-body section: numbered heading, real boundary, generous rhythm */
.art-sec { scroll-margin-top: 22px; padding: 28px 0; border-top: 1px solid var(--hair); }
.art-sec:first-of-type { border-top: 0; padding-top: 4px; }
.art-sec-head { display: flex; align-items: baseline; gap: 13px; margin-bottom: 16px; }
.art-sec-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--c, var(--accent)); flex: none; letter-spacing: 0.02em; padding-top: 3px;
}
.art-sec-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.18; letter-spacing: -0.012em;
  color: var(--ink); margin: 0; flex: 1;
}
.art-sec-count {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  background: var(--panel-soft); border: 1px solid var(--hair-soft);
  border-radius: 999px; padding: 2px 9px; flex: none; align-self: center;
}
.art-sec-body { font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* hero extras (mechanism aka chips + where-it-ships line) */
.article-chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.article-chips-lbl {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin-right: 2px;
}
.article-where { font-size: 13px; color: var(--muted); margin: 0 0 26px; }

/* advantages / limitations sub-heads */
.trade-head {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600; margin-bottom: 11px;
}
.trade-good { color: var(--good); }
.trade-bad { color: var(--bad); }

/* collapsed reference shelf */
.art-deeper { margin-top: 38px; scroll-margin-top: 22px; }
.art-deeper-rule {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px;
}
.art-deeper-rule::before, .art-deeper-rule::after { content: ""; height: 1px; background: var(--hair); flex: 1; }
.art-deep { border-bottom: 1px solid var(--hair); }
.art-deep > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 15px 2px; list-style: none; }
.art-deep > summary::-webkit-details-marker { display: none; }
.art-deep-l { font-weight: 600; font-size: 14px; color: var(--ink); }
.art-deep-c { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.art-deep-chev { margin-left: auto; color: var(--muted); font-size: 16px; transition: transform 0.15s ease; }
.art-deep[open] > summary .art-deep-chev { transform: rotate(90deg); }
.art-deep-body { padding: 2px 2px 20px; }

/* inline "show N more" for long project lists */
.proj-more { margin-top: 4px; }
.proj-more > summary {
  cursor: pointer; list-style: none; padding: 10px 0 2px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--c, var(--accent)); font-weight: 600;
}
.proj-more > summary::-webkit-details-marker { display: none; }
.proj-more[open] > summary { color: var(--muted); }

@media (max-width: 900px) {
  .article { max-width: 100%; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-main { max-width: 100%; }
  .article-toc {
    position: sticky; top: 0; z-index: 5; margin: 0 0 18px; padding: 9px 0;
    background: var(--bg); border-bottom: 1px solid var(--hair);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .atoc-inner { display: flex; gap: 4px; }
  .atoc-head { display: none; }
  .atoc-item { border-left: 0; border-bottom: 2px solid transparent; padding: 6px 10px; white-space: nowrap; }
  .atoc-item.active { border-left: 0; border-bottom-color: var(--c, var(--accent)); background: transparent; }
  .atoc-c { display: none; }
  .atoc-item.atoc-deep { margin-top: 0; padding-top: 6px; border-top: 0; }
}

/* ============================================================
   v17 · Concepts Grid|Graph mode switch (Network folded in)
   ============================================================ */
.concept-modeswitch {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--panel-soft); border: 1px solid var(--hair);
  border-radius: 10px; margin: 0 0 20px;
}
.cms-btn {
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 18px; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
.cms-btn:hover { color: var(--ink); }
.cms-btn.active {
  background: var(--panel); color: var(--accent);
  box-shadow: 0 1px 2px rgba(15, 17, 20, 0.06);
}
.concept-graph-intro {
  font-size: 15px; line-height: 1.6; color: var(--ink-2);
  max-width: 62ch; margin: 0 0 24px;
}
.section.in-article .concept-modeswitch { display: none; }

/* ============================================================
   v18 · Network graph view — slim toolbar + zoom controls
   (drill-down removed; this is just the full network)
   ============================================================ */
.netgraph-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
}
.nf-ctrl-label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); font-weight: 600;
  padding: 0 8px 0 4px; align-self: center;
}
.netgraph-zoom {
  display: inline-flex; gap: 3px; padding: 3px; flex: none;
  background: var(--panel-soft); border: 1px solid var(--hair); border-radius: 8px;
}
.netgraph-zoom button {
  min-width: 32px; height: 28px; padding: 0 10px; border: 0; border-radius: 5px;
  background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; line-height: 1;
  transition: background 0.1s ease, color 0.1s ease;
}
.netgraph-zoom button:hover { background: var(--panel); color: var(--ink); }
.netgraph-zoom button[data-z="reset"] { font-size: 11px; letter-spacing: 0.04em; }

/* ============================================================
   v19 · Concepts grid density — all categories collapse to a tight
   index by default; expand control rides the count row.
   ============================================================ */
.concept-modeswitch { margin: 0 0 14px; }
.concept-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 6px 0 12px;
}
.concept-meta > span { min-width: 0; }
.concept-stack { gap: 6px; }
.concept-cat-block[open] { margin: 6px 0 26px; }
.concept-cat-block[open]:first-child { margin-top: 0; }

/* ============================================================
   v20 · Category index rows as clean, informative cards
   ============================================================ */
.concept-cat-head { align-items: center; gap: 13px; }
.cc-dot { flex: none; align-self: center; }
.cc-headmain { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cc-preview {
  font-family: var(--font-sans); font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.concept-cat-head .cc-count {
  margin-left: auto; flex: none; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
}

/* collapsed → a real card with hover affordance */
.concept-cat-block:not([open]) > summary.concept-cat-head {
  padding: 13px 16px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.concept-cat-block:not([open]) > summary.concept-cat-head:hover {
  background: var(--panel);
  border-color: color-mix(in srgb, var(--c, var(--accent)) 42%, var(--hair));
  box-shadow: 0 2px 4px rgba(15, 17, 20, 0.03), 0 10px 24px -18px rgba(15, 17, 20, 0.25);
}
.concept-cat-block:not([open]) > summary.concept-cat-head:hover .cc-chevron { transform: translateX(2px); }

/* open → a section header (preview line is redundant beside the grid) */
.concept-cat-block[open] > summary.concept-cat-head {
  padding: 0 2px 10px; background: transparent; border: 0;
  border-bottom: 1px solid var(--hair); border-radius: 0; margin-bottom: 16px;
}
.concept-cat-block[open] .cc-preview { display: none; }
.concept-cat-block[open] .cc-name { font-size: 17px; }
.concept-cat-block[open] .cc-chevron { transform: rotate(90deg); }

/* v20 · drawer status detail rides its own muted line, never the pill */
.d-status-note {
  flex-basis: 100%; margin-top: 4px;
  font-size: 12px; line-height: 1.45; color: var(--muted);
}

/* ============================================================
   v21 · Early-access gate
   ============================================================ */
.access-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--bg);
}
html.pma-unlocked .access-gate { display: none; }
html.pma-locked, html.pma-locked body { overflow: hidden; }
.access-gate.access-hide { opacity: 0; pointer-events: none; transition: opacity 0.26s ease; }
.access-card {
  width: 100%; max-width: 420px; text-align: center;
  background: var(--panel); border: 1px solid var(--hair);
  border-radius: var(--r-xl); padding: 36px 32px;
  box-shadow: 0 2px 8px rgba(15, 17, 20, 0.05), 0 30px 70px -30px rgba(15, 17, 20, 0.35);
}
.access-mark {
  width: 46px; height: 46px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  border-radius: 12px; font-family: Georgia, serif; font-size: 26px; line-height: 1;
}
.access-title {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px;
}
.access-sub { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 22px; }
.access-form { display: flex; gap: 8px; }
.access-input {
  flex: 1; min-width: 0; padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--hair); border-radius: 11px;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.08em;
  color: var(--ink); outline: none; text-transform: uppercase;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.access-input::placeholder { letter-spacing: 0.02em; text-transform: none; color: var(--muted); }
.access-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--panel); }
.access-input.access-shake { animation: accessShake 0.42s ease; border-color: var(--bad); }
.access-btn {
  flex: none; padding: 11px 20px; border: 0; border-radius: 11px;
  background: var(--accent); color: #fff; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  transition: filter 0.12s ease, transform 0.05s ease;
}
.access-btn:hover { filter: brightness(1.06); }
.access-btn:active { transform: translateY(1px); }
.access-error { margin-top: 12px; font-size: 13px; color: var(--bad); }
.access-foot { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.5; }
@keyframes accessShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .access-input.access-shake { animation: none; } }

/* v21 · avatar photo (Built-by-Mo card + About modal) */
.bymo-avatar img, .about-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.bymo-avatar:has(img), .about-avatar:has(img) { background: none; overflow: hidden; }

/* v22 · brand + access-gate logo image, and responsive safety nets */
.brand-mark:has(img), .access-mark:has(img) { background: none !important; }
.brand-mark img, .access-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* never let an image or media element force horizontal scroll on small screens */
img, svg, canvas, video { max-width: 100%; }

/* ============================================================
   v23 · Overview hero KPI band — tidy, evenly spaced, real dividers
   (was a 5-col grid holding 4 items -> dead column + missing rules)
   ============================================================ */
.ov-hero-kpis {
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: 0; row-gap: 18px;
}
.ov-hero-kpis .ov-kpi {
  padding: 2px 30px; border-left: 1px solid var(--hair);
  position: relative;
}
.ov-hero-kpis .ov-kpi::before { display: none !important; }
.ov-hero-kpis .ov-kpi:first-child { padding-left: 0; border-left: 0; }
.ov-hero-kpis .ov-kpi-num, .ov-hero-kpis .ov-kpi-unit { font-size: 42px; }
@media (max-width: 680px) {
  .ov-hero-kpis .ov-kpi { flex: 1 0 42%; padding: 2px 20px; }
  .ov-hero-kpis .ov-kpi:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ov-hero-kpis .ov-kpi-num, .ov-hero-kpis .ov-kpi-unit { font-size: 34px; }
}

/* v23 · balanced line-wrapping for the big titles (cleaner two-line breaks) */
.page-title, .article-title { text-wrap: balance; }
/* hero title: single line on desktop (drop the 20ch cap that forced a wrap) */
.ov-hero-title { max-width: none; text-wrap: nowrap; }
@media (max-width: 760px) { .ov-hero-title { text-wrap: balance; white-space: normal; } }

/* v24 · drawer Links as icon buttons */
.d-links { gap: 9px; }
.d-iconlink {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hair); border-radius: var(--r-md);
  background: var(--panel); color: var(--ink-2); text-decoration: none;
  transition: color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.d-iconlink svg { width: 19px; height: 19px; display: block; }
.d-iconlink-x svg { width: 15px; height: 15px; }
.d-iconlink:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--hair));
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 17, 20, 0.04), 0 10px 22px -16px rgba(15, 17, 20, 0.25);
}

/* v25 · Built-by team card (Umbra Labs · multiple members) */
.bymo-head { margin-bottom: 12px; line-height: 1.35; }
.bymo-head .bymo-name { display: block; }
.bymo-head .bymo-name a { color: var(--accent); font-weight: 700; text-decoration: none; }
.bymo-head .bymo-name a:hover { text-decoration: underline; }
.bymo-members { display: flex; flex-direction: column; gap: 8px; margin-bottom: 13px; }
.bymo-member { display: flex; align-items: center; gap: 10px; }
.bymo-member .bymo-avatar { width: 30px; height: 30px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent); }
.bymo-mname { flex: 1; min-width: 0; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bymo-x-link {
  flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hair); border-radius: 8px; color: var(--ink-2);
  transition: color 0.12s ease, border-color 0.12s ease, transform 0.12s ease, background 0.12s ease;
}
.bymo-x-link:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.bymo-x-link .bymo-x { width: 12px; height: 12px; }
.bymo-card .bymo-about { width: 100%; text-align: center; }
