/* TokenValue (tokenvalue.si) — styles.
   Every colour is a token: light values on :root, dark values in the two dark blocks.
   Up/down colours follow the reader's convention via [data-updown] (default: red up, green down).
   System fonts only: no third-party font host, so pages load the same everywhere. */

:root {
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-2: #f8f7f3;
  --sunken: #edece7;
  --line: #e3e1da;
  --line-2: #cdcac1;
  --fg: #17191e;
  --fg-2: #464a52;
  --fg-3: #6f737c;
  --accent: #23408e;
  --accent-2: #3557b5;
  --accent-soft: #e6eaf5;
  --red: #c32a2a;
  --red-soft: #fbe8e6;
  --green: #11804b;
  --green-soft: #e2f2e9;
  --amber: #8d6610;
  --amber-soft: #f5edd6;
  --seal: #b5302a;
  --seal-fg: #fff8f0;
  --av-s: 52%;
  --av-l: 90%;
  --av-fg-l: 28%;
  --topbar-bg: rgb(243 242 238 / 0.88);
  --shadow: 0 1px 2px rgb(23 25 30 / 0.05), 0 6px 18px rgb(23 25 30 / 0.04);
  --node-l: 50%;
  --node-s: 55%;
  --g-insiders: #b4532a;
  --g-miners: #8d6610;
  --g-community: #3557b5;
  --g-treasury: #2a6c76;
  --g-staking: #8a8f99;
  --up: var(--red);
  --up-soft: var(--red-soft);
  --down: var(--green);
  --down-soft: var(--green-soft);
  --hold: var(--amber);
  --hold-soft: var(--amber-soft);

  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.875rem;
  --fs-base: 0.9375rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #161920;
    --surface-2: #1b1f27;
    --sunken: #12151a;
    --line: #272b34;
    --line-2: #363c48;
    --fg: #e9ebf0;
    --fg-2: #b5bac4;
    --fg-3: #8a909c;
    --accent: #93a9ff;
    --accent-2: #b0c0ff;
    --accent-soft: #1e2643;
    --red: #ff6d63;
    --red-soft: #3a1c1b;
    --green: #39c784;
    --green-soft: #13301f;
    --amber: #e2b652;
    --amber-soft: #352a12;
    --seal: #d8453b;
    --seal-fg: #fff6ee;
    --av-s: 38%;
    --av-l: 23%;
    --av-fg-l: 80%;
    --topbar-bg: rgb(15 17 21 / 0.88);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
    --node-l: 62%;
    --node-s: 50%;
    --g-insiders: #e38a5e;
    --g-miners: #e2b652;
    --g-community: #93a9ff;
    --g-treasury: #63b6c0;
    --g-staking: #8b929e;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #161920;
  --surface-2: #1b1f27;
  --sunken: #12151a;
  --line: #272b34;
  --line-2: #363c48;
  --fg: #e9ebf0;
  --fg-2: #b5bac4;
  --fg-3: #8a909c;
  --accent: #93a9ff;
  --accent-2: #b0c0ff;
  --accent-soft: #1e2643;
  --red: #ff6d63;
  --red-soft: #3a1c1b;
  --green: #39c784;
  --green-soft: #13301f;
  --amber: #e2b652;
  --amber-soft: #352a12;
  --seal: #d8453b;
  --seal-fg: #fff6ee;
  --av-s: 38%;
  --av-l: 23%;
  --av-fg-l: 80%;
  --topbar-bg: rgb(15 17 21 / 0.88);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  --node-l: 62%;
  --node-s: 50%;
  --g-insiders: #e38a5e;
  --g-miners: #e2b652;
  --g-community: #93a9ff;
  --g-treasury: #63b6c0;
  --g-staking: #8b929e;
  color-scheme: dark;
}

:root[data-updown="intl"] {
  --up: var(--green);
  --up-soft: var(--green-soft);
  --down: var(--red);
  --down-soft: var(--red-soft);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; color: var(--fg); }
h1 { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-base); }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--fg-3); }
.small { font-size: var(--fs-sm); }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 28px; } }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: 6px;
  background: var(--fg); color: var(--surface); font-size: var(--fs-sm);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); text-decoration: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--topbar-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); min-width: 0; }
.brand:hover { text-decoration: none; }
.seal {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 4px;
  background: var(--seal); color: var(--seal-fg);
  font-family: var(--font-serif); font-weight: 700; font-size: 18px; line-height: 1;
  box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px var(--seal-fg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text b { font-size: var(--fs-base); letter-spacing: 0.01em; white-space: nowrap; }
.brand-text small { font-size: var(--fs-xs); color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; align-items: center; gap: 4px; flex: none; }
.topnav a { padding: 6px 10px; border-radius: 6px; color: var(--fg-2); font-size: var(--fs-md); white-space: nowrap; }
.topnav a:hover { background: var(--sunken); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.updown {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 4px;
  padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-size: var(--fs-xs); color: var(--fg-2); white-space: nowrap;
}
.updown:hover { border-color: var(--fg-3); }
.updown i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.updown .u { background: var(--up); }
.updown .d { background: var(--down); }
@media (max-width: 520px) {
  .brand-text small { display: none; }
  .topnav a { padding: 6px 7px; }
  .updown .lbl { display: none; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 48px; background: var(--surface-2); }
.foot-in { padding-block: 24px 36px; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--fg-2); }
.foot-in p { max-width: 82ch; }
.foot-meta { color: var(--fg-3); }

/* ---------- generic ---------- */
#view { padding-block: 24px 8px; outline: none; }
.loading, .error { padding: 48px 0; color: var(--fg-3); text-align: center; }
.error b { color: var(--fg); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.page-head .sub { color: var(--fg-2); font-size: var(--fs-md); margin-top: 6px; max-width: 72ch; }
.paper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kicker { font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--fg-3); font-weight: 600; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 4px;
  font-size: var(--fs-xs); line-height: 1.6; background: var(--sunken); color: var(--fg-2); white-space: nowrap;
}
.ext::after { content: "↗"; font-size: 0.85em; margin-left: 2px; color: var(--fg-3); }
.stale {
  margin-bottom: 16px; padding: 10px 14px; border-radius: 8px; font-size: var(--fs-md);
  border: 1px solid color-mix(in srgb, var(--hold) 35%, transparent); background: var(--hold-soft); color: var(--fg);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--fg-3); margin-bottom: 14px; }
.crumbs a { color: var(--fg-2); }

/* avatar: hue from the category, lightness from theme tokens */
.av {
  --h: 220;
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: hsl(var(--h) var(--av-s) var(--av-l));
  color: hsl(var(--h) 70% var(--av-fg-l));
  font-weight: 700; font-size: 11px; letter-spacing: -0.02em;
}
.av.lg { width: 52px; height: 52px; font-size: 17px; }

/* change colours */
.chg { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--fg-3); }

/* score meter (0–100) */
.meter { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.meter .track { position: relative; width: 52px; height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.meter .fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--accent); }
.meter .mv { font-size: var(--fs-sm); color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 1.8em; text-align: right; }

/* ---------- list page ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .count { margin-left: auto; font-size: var(--fs-sm); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.search { flex: 1 1 200px; max-width: 300px; position: relative; }
.search input {
  width: 100%; padding: 7px 10px 7px 30px; border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--surface-2); color: var(--fg); font: inherit; font-size: var(--fs-md);
}
.search input::placeholder { color: var(--fg-3); }
.search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--fg-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 12px; border-bottom: 1px solid var(--line); }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 3px 10px;
  font-size: var(--fs-xs); color: var(--fg-2); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip .n { color: var(--fg-3); margin-left: 3px; font-variant-numeric: tabular-nums; }

.table-scroll { overflow-x: auto; }
table.tk { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.tk th {
  text-align: right; font-weight: 600; font-size: var(--fs-xs); color: var(--fg-3); letter-spacing: 0.02em;
  padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2);
}
.tk th[data-sort] { cursor: pointer; user-select: none; }
.tk th[data-sort]:hover { color: var(--fg); }
.tk th button { all: unset; cursor: pointer; }
.tk th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tk th .arr { display: inline-block; width: 0.8em; color: var(--accent); }
.tk td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.tk tr:last-child td { border-bottom: 0; }
.tk tbody tr { cursor: pointer; }
.tk tbody tr:hover td { background: var(--surface-2); }
.tk .l { text-align: left; }
.tk .rank { color: var(--fg-3); width: 36px; }
.tk .token { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.tk .token a { color: var(--fg); }
.tk .token .nm { font-weight: 600; }
.tk .token .meta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.tk .token .sub { font-size: var(--fs-xs); color: var(--fg-3); font-weight: 400; }
.tk .token .sym { color: var(--fg-3); font-weight: 500; margin-left: 5px; font-size: var(--fs-sm); }
.tk .spark { width: 112px; }
.tk .m-chg { display: none; }
.tk .gap { border-left: 1px solid var(--line); }
.tk .net small { color: var(--fg-3); margin-left: 2px; }
.tk .net i { font-style: normal; color: var(--line-2); margin: 0 5px; }
.tk .pending { color: var(--fg-3); font-size: var(--fs-xs); }
.tk td.empty { text-align: center; color: var(--fg-3); padding: 36px 12px; cursor: default; }
@media (max-width: 1240px) { .tk .h-spark { display: none; } }
@media (max-width: 1000px) { .tk .h-mc, .tk .h-7d { display: none; } }
@media (max-width: 760px) {
  .tk .rank, .tk .h-24h, .tk .h-net, .tk .token .nm { display: none; }
  .tk .m-chg { display: block; }
  .tk td, .tk th { padding: 10px 6px; }
  .tk td:first-child + td, .tk th:first-child + th { padding-left: 12px; }
  .tk td:last-child, .tk th:last-child { padding-right: 12px; }
  .tk .token { min-width: 0; gap: 8px; }
  .tk .token .sym { margin-left: 0; color: var(--fg); font-weight: 700; font-size: var(--fs-md); }
  .tk .av { width: 28px; height: 28px; }
  .tk .meter .track { width: 32px; }
  .toolbar { padding: 12px; }
  .chips { padding: 10px 12px 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .search { max-width: none; flex-basis: 100%; }
  .toolbar .count { margin-left: 0; }
}
@media (max-width: 420px) { .tk .h-cat { display: none; } }
.sparkline { display: block; width: 112px; height: 30px; }
.sparkline polyline { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sparkline .up { stroke: var(--up); }
.sparkline .down { stroke: var(--down); }

/* ---------- token page: price, links and the one-line introduction ---------- */
.tv-hero { padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; margin-bottom: 18px; }
.hero-id { display: flex; align-items: center; align-self: start; gap: 14px; min-width: 0; }
.hero-id h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero-id h1 .sym { font-size: var(--fs-base); color: var(--fg-3); font-weight: 600; }
.hero-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.hero-quote { display: grid; justify-items: end; align-content: start; gap: 6px; text-align: right; }
.hero-quote .px-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hero-quote .px { font-size: var(--fs-3xl); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-quote .chg { font-size: var(--fs-base); font-weight: 600; }
.hero-quote .asof { font-size: var(--fs-xs); color: var(--fg-3); }
.tv-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 7px;
  background: var(--accent); color: var(--surface); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
}
.tv-btn:hover { text-decoration: none; background: var(--accent-2); }
.tv-btn.alt { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tv-btn.alt:hover { background: var(--accent-soft); }
.tv-note { font-size: var(--fs-xs); color: var(--fg-3); max-width: 28ch; }
.tv-hero .stats {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; margin: 0;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.stats div { min-width: 0; }
.stats dt { font-size: var(--fs-xs); color: var(--fg-3); }
.stats dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats dd small { font-weight: 400; color: var(--fg-3); font-size: var(--fs-xs); margin-left: 4px; }
.intro { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.intro .one-liner { font-size: var(--fs-lg); line-height: 1.65; max-width: 62ch; color: var(--fg); }
.intro .refs { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-sm); color: var(--fg-3); }
@media (max-width: 720px) {
  .tv-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .hero-quote { justify-items: start; text-align: left; }
  .hero-quote .px-row { justify-content: flex-start; }
  .tv-hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro .one-liner { font-size: var(--fs-base); }
}

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 10px 16px; color: var(--fg-2); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-size: var(--fs-base);
}
.tabs a:hover { color: var(--fg); text-decoration: none; }
.tabs a[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.tab-n { display: inline-block; margin-left: 6px; min-width: 1.5em; padding: 0 5px; border-radius: 999px; background: var(--sunken); color: var(--fg-3); font-size: 10.5px; line-height: 1.6; text-align: center; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.tabs a[aria-selected="true"] .tab-n { background: var(--accent-soft); color: var(--accent); }

.report { padding: 4px 22px; }
.report > section { padding-block: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; min-width: 0; }
.report > section:first-child { border-top: 0; }
.report h2 { font-size: var(--fs-lg); }
.report .lede { font-size: var(--fs-base); color: var(--fg); max-width: 72ch; }
.report p, .report li { max-width: 78ch; }
.report li + li { margin-top: 4px; }
@media (max-width: 560px) { .report { padding: 4px 16px; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-xs); color: var(--fg-3); }
.legend i { display: inline-block; vertical-align: -1px; margin-right: 5px; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data th { text-align: left; font-weight: 600; color: var(--fg-3); font-size: var(--fs-xs); padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data tr:last-child td { border-bottom: 0; }
.data td.v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data td.note { color: var(--fg-2); min-width: 16em; }
.data td.src { min-width: 7em; }
.data td.src a { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  table.data.stack thead { display: none; }
  table.data.stack tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.data.stack tr:last-child { border-bottom: 0; }
  table.data.stack td { padding: 0; border: 0; min-width: 0; white-space: normal; }
  table.data.stack td:first-child { color: var(--fg-3); font-size: var(--fs-xs); }
  table.data.stack td:empty { display: none; }
  table.data.stack td[data-l]::before { content: attr(data-l) "　"; color: var(--fg-3); font-weight: 400; font-size: var(--fs-xs); }
}
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line-2); padding-bottom: 6px; font-size: var(--fs-sm); }
.kv dt { color: var(--fg-3); }
.kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hbar { display: flex; align-items: center; gap: 8px; }
.hbar .track { flex: 1; height: 8px; border-radius: 4px; background: var(--sunken); position: relative; overflow: hidden; min-width: 60px; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 4px; }
.hbar .v { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 2.6em; text-align: right; font-size: var(--fs-sm); }
.hbar .of { color: var(--fg-3); font-weight: 400; }

/* ---------- catalysts ---------- */
.events { list-style: none; padding: 0; display: grid; gap: 0; }
.report .events li { margin: 0; }
.events li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.events li:first-child { border-top: 0; }
.events .when { font-variant-numeric: tabular-nums; color: var(--fg-3); font-size: var(--fs-sm); }
.events .t { font-size: var(--fs-md); }
.sev { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 3px; font-weight: 600; vertical-align: 1px; margin-right: 6px; }
.sev.info { background: var(--sunken); color: var(--fg-3); }
.sev.watch { background: var(--hold-soft); color: var(--hold); }
.sev.critical { background: var(--down-soft); color: var(--down); }
.imp-tag { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 3px; font-weight: 600; margin-right: 6px; white-space: nowrap; }
.imp-tag.positive { background: var(--up-soft); color: var(--up); }
.imp-tag.negative { background: var(--down-soft); color: var(--down); }
.imp-tag.neutral { background: var(--sunken); color: var(--fg-3); }
.type-tag { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 3px; margin-right: 6px; color: var(--fg-2); border: 1px solid var(--line-2); white-space: nowrap; }
@media (max-width: 520px) { .events li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.signals { list-style: none; padding: 0; display: grid; gap: 6px; }
.signals li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: var(--fs-md); }
.unl-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--sunken); max-width: 640px; }
.unl-bar i { display: block; height: 100%; }
.unl-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); }
.report .unl-legend li { margin: 0; display: flex; align-items: center; gap: 6px; }
.unl-legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.g-insiders { background: var(--g-insiders); }
.g-miners { background: var(--g-miners); }
.g-community { background: var(--g-community); }
.g-treasury { background: var(--g-treasury); }
.g-staking { background: var(--g-staking); }
.unl-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 120px; max-width: 720px; }
.um { display: grid; grid-template-rows: 1fr auto; height: 100%; min-width: 0; }
.um-col { display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 100%; }
.um-col i { display: block; width: 100%; min-height: 1px; }
.um span { font-size: 9.5px; color: var(--fg-3); text-align: center; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ---------- business network tree: rounds -> project node -> partner groups ---------- */
.bn { position: relative; display: grid; padding-block: 4px; }
.bn-edges { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.bn-e { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.bn-e.p { stroke: hsl(var(--h) var(--node-s) var(--node-l)); stroke-opacity: 0.6; }
.bn-knot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.bn-cap { display: flex; gap: 8px; align-items: baseline; justify-content: center; font-size: var(--fs-xs); color: var(--fg-3); padding-block: 2px 10px; }
.bn-par + .bn-cap { padding-block: 10px 2px; }
.bn-cap b { color: var(--fg-2); letter-spacing: 0.08em; }
.bn-row { position: relative; display: flex; gap: 12px; justify-content: center; align-items: flex-start; }
.bn-card { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; max-width: 300px; display: grid; gap: 7px; align-content: start;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.bn-card header { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.bn-round header b { font-size: var(--fs-md); }
.bn-round header time { margin-left: auto; font-size: var(--fs-xs); color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bn-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bn-val { font-weight: 400; font-size: var(--fs-xs); color: var(--fg-3); }
.bn-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.report .bn-chips li { margin: 0; max-width: 100%; }
.bn-round .bn-chips li { font-size: var(--fs-xs); line-height: 1.5; padding: 1px 7px; border-radius: 999px; overflow-wrap: anywhere;
  color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--line); }
.bn-round .bn-chips li.lead { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.bn-round .bn-chips li.more { color: var(--fg-3); cursor: help; }
.bn-group header b { font-size: var(--fs-sm); }
.bn-group header .n { margin-left: auto; font-size: var(--fs-xs); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.bn-dot { flex: none; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) var(--node-s) var(--node-l)); }
.bn-p { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 1px 4px 1px 8px; border-radius: 999px;
  font-size: var(--fs-xs); line-height: 1.5; color: var(--fg); text-decoration: none; overflow-wrap: anywhere;
  background: color-mix(in srgb, hsl(var(--h) var(--node-s) var(--node-l)) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, hsl(var(--h) var(--node-s) var(--node-l)) 45%, var(--line)); }
.bn-p:hover, .bn-p:focus-visible { border-color: hsl(var(--h) var(--node-s) var(--node-l)); color: var(--fg); text-decoration: none; }
.bn-p.st-pilot { border-style: dashed; }
.bn-p.st-announced { border-style: dotted; border-width: 1.5px; }
.bn-p.st-ended { opacity: 0.55; text-decoration: line-through; }
.sk { flex: none; display: inline-block; font-style: normal; font-size: 10px; line-height: 1; padding: 2px 3px; border-radius: 3px; font-weight: 700;
  color: var(--fg-3); background: var(--sunken); }
.sk-official { color: var(--accent); background: var(--accent-soft); }
.sk-x { color: var(--surface); background: var(--fg-2); }
.sk-filing { color: var(--amber); background: var(--amber-soft); }
.about .sk { margin: 0 3px 0 6px; vertical-align: 1px; }
.bn-src { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--fg-3); text-decoration: none; overflow-wrap: anywhere; }
.bn-src:hover { color: var(--accent); }
.bn-none { margin: 0; font-size: var(--fs-xs); color: var(--fg-3); }
.bn-hub { position: relative; z-index: 1; display: flex; justify-content: center; padding-block: 44px; }
.bn-node { display: grid; justify-items: center; gap: 1px; padding: 9px 20px; border-radius: 999px; background: var(--accent); color: var(--surface);
  box-shadow: 0 0 0 6px var(--surface), var(--shadow); text-align: center; }
.bn-node b { font-size: var(--fs-lg); letter-spacing: 0.02em; }
.bn-node span { font-size: var(--fs-xs); opacity: 0.88; max-width: 36ch; }
.bn-legend { gap: 6px 14px; }
.bn-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.bn-legend .sk, .bn-legend i { margin-right: 0; }
.lg-chip { display: inline-block; width: 18px; height: 10px; border-radius: 999px; border: 1px solid var(--fg-3); }
.lg-chip.lead { border-color: var(--accent); background: var(--accent-soft); }
.lg-chip.st-pilot { border-style: dashed; }
.lg-chip.st-announced { border-style: dotted; border-width: 1.5px; }
.lg-chip.st-ended { opacity: 0.45; }
.bn-official a { margin-inline: 2px; }
.report td.nw, .report td .bn-src { white-space: nowrap; }
/* vertical tree: phones, or more branches than fit in one row */
.bn.list .bn-cap { justify-content: flex-start; padding-left: 30px; }
.bn.list .bn-row { flex-direction: column; align-items: stretch; gap: 10px; padding-left: 30px; }
.bn.list .bn-card { max-width: none; flex: none; }
.bn.list .bn-hub { justify-content: flex-start; padding: 22px 0 22px 30px; }
.bn.list .bn-node { justify-items: start; border-radius: 10px; text-align: left; box-shadow: var(--shadow); }
.ptype { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: var(--fs-xs); white-space: nowrap;
  color: hsl(var(--h) var(--node-s) calc(var(--node-l) - 8%)); background: color-mix(in srgb, hsl(var(--h) var(--node-s) var(--node-l)) 14%, transparent); }

/* ---------- team due diligence ---------- */
.dd-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 28px; align-items: start; }
@media (max-width: 640px) { .dd-score { grid-template-columns: minmax(0, 1fr); } }
.dd-total { display: grid; gap: 2px; }
.dd-total .big { font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dd-total .of { color: var(--fg-3); font-size: var(--fs-sm); }
.dd-parts { display: grid; gap: 8px; max-width: 560px; }
.dd-parts .r { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; font-size: var(--fs-sm); }
.flags { list-style: none; padding: 0; display: grid; gap: 6px; }
.flags li { display: flex; gap: 8px; align-items: baseline; font-size: var(--fs-md); }
.report .flags li { margin: 0; }
.flags li::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--hold-soft); color: var(--hold); font-weight: 700; font-size: 11px; }
.orgs { list-style: none; padding: 0; display: grid; gap: 8px; }
.report .orgs li { margin: 0; display: grid; gap: 1px; }
.orgs b { font-weight: 600; }
.orgs span { color: var(--fg-2); font-size: var(--fs-sm); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; align-content: start; background: var(--surface-2); min-width: 0; }
.person header { display: flex; gap: 10px; align-items: flex-start; }
.person .initial { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; flex: none; font-size: 14px; }
.person h3 { font-size: var(--fs-base); font-weight: 700; }
.person .role { font-size: var(--fs-sm); color: var(--fg-2); }
.person .status { font-size: var(--fs-xs); color: var(--fg-3); }
.person .edu { font-size: var(--fs-sm); color: var(--fg-2); }
.person .edu b { color: var(--fg-3); font-weight: 500; margin-right: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.report .timeline li { margin: 0; }
.timeline li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 3px 0 7px; position: relative; font-size: var(--fs-sm); }
.timeline li::before { content: ""; position: absolute; left: 97px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.timeline li::after { content: ""; position: absolute; left: 100px; top: 18px; bottom: -4px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--fg-3); font-variant-numeric: tabular-nums; text-align: right; padding-right: 8px; }
.timeline .what { padding-left: 14px; color: var(--fg-2); }
@media (max-width: 520px) {
  .timeline li { grid-template-columns: 70px minmax(0, 1fr); }
  .timeline li::before { left: 75px; }
  .timeline li::after { left: 78px; }
}
.person .notes { font-size: var(--fs-sm); color: var(--fg-2); background: var(--surface); border-radius: 6px; padding: 6px 10px; border: 1px dashed var(--line-2); }
.person .srcs { font-size: var(--fs-xs); display: flex; flex-wrap: wrap; gap: 4px 12px; }
details.rubric { font-size: var(--fs-sm); color: var(--fg-2); }
details.rubric summary { cursor: pointer; color: var(--fg-3); }
details.rubric ul { margin-top: 6px; }
.pending-note { padding: 28px 0; color: var(--fg-3); }

/* ---------- about page ---------- */
.about .defs { display: grid; gap: 12px; margin: 0; }
.about .defs dt { font-weight: 600; }
.about .defs dd { margin: 2px 0 0; color: var(--fg-2); max-width: 78ch; }
.steps { padding-left: 1.4em; display: grid; gap: 6px; }
.steps b { margin-right: 8px; }

/* ---------- server-rendered summary (shown until the script takes over, and without JavaScript) ---------- */
.ssr { display: grid; gap: 10px; padding-block: 8px; }
.ssr h1 small { font-size: var(--fs-base); color: var(--fg-3); font-weight: 600; }
.ssr h2 { font-size: var(--fs-base); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
