/* TokenValue (tokenvalue.si) — styles.
   Brand colours from the logo: navy #16142b, purple #6b4eff, gold #ffc53d. Light theme is white and
   purple, dark theme black and purple. Every colour is a token: light values on :root, dark values in
   the two dark blocks (system preference, or the reader's choice in [data-theme]).
   Up/down colours follow the reader's convention via [data-updown].
   System fonts only: no third-party font host, so pages load the same everywhere. */

:root {
  --bg: #f7f6fc;
  --surface: #ffffff;
  --surface-2: #faf9fe;
  --sunken: #efedf8;
  --line: #e7e4f3;
  --line-2: #d3cee9;
  --fg: #16142b;
  --fg-2: #45415e;
  --fg-3: #6c6886;
  --accent: #6b4eff;
  --accent-2: #5638ec;
  --accent-soft: #efebff;
  --gold: #e9a915;
  --gold-soft: #fff4d6;
  --glow: rgb(107 78 255 / 0.10);
  --red: #d0342c;
  --red-soft: #fdeceb;
  --green: #0f8a52;
  --green-soft: #e3f5ec;
  --amber: #9a6a00;
  --amber-soft: #fbf0d4;
  --av-s: 60%;
  --av-l: 92%;
  --av-fg-l: 30%;
  --topbar-bg: rgb(247 246 252 / 0.86);
  --shadow: 0 1px 2px rgb(22 20 43 / 0.05), 0 8px 24px rgb(76 54 180 / 0.06);
  --node-l: 52%;
  --node-s: 60%;
  --g-insiders: #e0703a;
  --g-miners: #d9a21b;
  --g-community: #6b4eff;
  --g-treasury: #2a8c96;
  --g-staking: #9a96b0;
  --up: var(--green);
  --up-soft: var(--green-soft);
  --down: var(--red);
  --down-soft: var(--red-soft);
  --hold: var(--amber);
  --hold-soft: var(--amber-soft);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK SC", "Noto Sans KR", sans-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: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0b1c;
    --surface: #161229;
    --surface-2: #1b1632;
    --sunken: #120e23;
    --line: #2a2446;
    --line-2: #3b3462;
    --fg: #eeebff;
    --fg-2: #c0b9e2;
    --fg-3: #8f88b3;
    --accent: #9a86ff;
    --accent-2: #b4a5ff;
    --accent-soft: #261f4e;
    --gold: #ffc53d;
    --gold-soft: #3a2d0c;
    --glow: rgb(122 92 255 / 0.20);
    --red: #ff6b62;
    --red-soft: #3c1a22;
    --green: #3ccf8a;
    --green-soft: #12302a;
    --amber: #f0bf55;
    --amber-soft: #382b10;
    --av-s: 45%;
    --av-l: 22%;
    --av-fg-l: 82%;
    --topbar-bg: rgb(14 11 28 / 0.84);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 8px 24px rgb(0 0 0 / 0.25);
    --node-l: 66%;
    --node-s: 60%;
    --g-insiders: #f08a5a;
    --g-miners: #ffc53d;
    --g-community: #9a86ff;
    --g-treasury: #5cc2cc;
    --g-staking: #8f88b3;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e0b1c;
  --surface: #161229;
  --surface-2: #1b1632;
  --sunken: #120e23;
  --line: #2a2446;
  --line-2: #3b3462;
  --fg: #eeebff;
  --fg-2: #c0b9e2;
  --fg-3: #8f88b3;
  --accent: #9a86ff;
  --accent-2: #b4a5ff;
  --accent-soft: #261f4e;
  --gold: #ffc53d;
  --gold-soft: #3a2d0c;
  --glow: rgb(122 92 255 / 0.20);
  --red: #ff6b62;
  --red-soft: #3c1a22;
  --green: #3ccf8a;
  --green-soft: #12302a;
  --amber: #f0bf55;
  --amber-soft: #382b10;
  --av-s: 45%;
  --av-l: 22%;
  --av-fg-l: 82%;
  --topbar-bg: rgb(14 11 28 / 0.84);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 8px 24px rgb(0 0 0 / 0.25);
  --node-l: 66%;
  --node-s: 60%;
  --g-insiders: #f08a5a;
  --g-miners: #ffc53d;
  --g-community: #9a86ff;
  --g-treasury: #5cc2cc;
  --g-staking: #8f88b3;
  color-scheme: dark;
}

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

/* logo variants: the dark one has a light cat and wordmark */
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1100px 420px at 50% -140px, var(--glow), transparent 72%) no-repeat, 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); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.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(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 8px 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--fg); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark img { display: block; width: 36px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; min-width: 0; }
.brand-word img { display: block; height: 20px; width: auto; }
.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: 2px; margin-left: auto; }
.topnav a { padding: 6px 11px; border-radius: 8px; color: var(--fg-2); font-size: var(--fs-md); white-space: nowrap; }
.topnav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.tools { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn, .lang-menu summary, .updown {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--fg-2);
  cursor: pointer; font-size: var(--fs-xs); white-space: nowrap;
}
.icon-btn { width: 32px; padding: 0; }
.icon-btn:hover, .lang-menu summary:hover, .updown:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg, .lang-menu summary svg { width: 15px; height: 15px; }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; padding: 0 10px; font-weight: 600; letter-spacing: 0.02em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { border-color: var(--accent); color: var(--accent); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 132px; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.lang-menu a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--fg); font-size: var(--fs-md); }
.lang-menu a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.lang-menu a[aria-current="true"]::after { content: "✓"; float: right; margin-left: 12px; }
.updown { padding: 0 10px; }
.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: 720px) {
  .topbar-in { flex-wrap: wrap; padding-block: 8px 4px; min-height: 0; }
  .tools { margin-left: auto; }
  .topnav { order: 3; width: 100%; margin: 0 -11px; padding-bottom: 2px; }
  .brand-text small { display: none; }
  .updown .lbl { display: none; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 56px; background: var(--surface-2); }
.foot-in { padding-block: 24px 36px; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--fg-2); }
.foot-disclaimer { max-width: none; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.foot-contact a { color: var(--fg-2); }

.graph-link { margin: 18px 0 0; }
.graph-link a { font-weight: 600; }
.ix-e .graph-link { margin: 0; padding: 0 16px 14px 40px; }
@media (max-width: 720px) { .ix-e .graph-link { padding-left: 16px; } }

/* ---------- network page shell ----------
 * The graph pages (the network, and the trace page since 2026-10-30) fill the window: top bar, the map (main.ng-main)
 * and a one-line footer, with no page scroll so the wheel can zoom the map. graph.css draws inside main. Until graph.js runs, main scrolls and shows the
 * server-rendered list of tokens. */
body:is([data-page="network"], [data-page="chain"]) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
body:is([data-page="network"], [data-page="chain"]) .topbar { position: relative; top: auto; flex: none; }
.ng-main { flex: 1 1 auto; min-height: 0; position: relative; overflow: auto; }
body:is([data-page="network"], [data-page="chain"]) #view { padding: 0; }
.ng-ssr { max-width: 760px; margin: 0 auto; padding: 24px 16px 32px; }
.ng-ssr h1 { margin-bottom: 8px; }
.ng-ssr ul { list-style: none; margin: 8px 0 0; padding: 0; columns: 2 280px; column-gap: 28px; }
.ng-ssr li { break-inside: avoid; padding: 3px 0; }
.foot-lite { margin-top: 0; flex: none; position: relative; z-index: 25; font-size: var(--fs-xs); color: var(--fg-2); }
.foot-lite-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px)); }
.foot-lite a { color: var(--fg-2); }
.foot-disc summary { cursor: pointer; list-style: none; text-decoration: underline dotted; text-underline-offset: 3px; }
.foot-disc summary::-webkit-details-marker { display: none; }
.foot-disc summary:focus-visible { outline: 2px solid #ffc53d; outline-offset: 2px; }
.foot-disc p {
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: 40; margin: 0; max-width: none; padding: 12px 16px;
  background: var(--surface-2); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
}

/* ---------- 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 h1 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
.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);
}
.note-i18n {
  margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; font-size: var(--fs-md);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-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; }
/* project icons: a white disc keeps dark logos visible on the dark theme */
.av-img { display: inline-block; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* 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; }
.list-more { display: flex; justify-content: center; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.list-more .chip { padding: 7px 20px; font-size: var(--fs-sm); }
.list-more[hidden] { display: none; }
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-cat, .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; }
}
.tk th .ls { display: none; }
@media (max-width: 420px) {
  .tk th .lf, .tk .net .n-r, .tk .net small, .tk .meter .track { display: none; }
  .tk th .ls { display: inline; }
  .tk .token { gap: 6px; }
  .tk .av { width: 24px; height: 24px; }
  .tk td:last-child, .tk th:last-child { padding-right: 8px; }
}
@media (max-width: 374px) {
  .tk .h-team { display: none; }
  .tk .h-net { padding-right: 12px; }
  .tk .token .sym, .tk .token .sub { display: block; max-width: 5.5em; overflow: hidden; text-overflow: ellipsis; }
}
.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: flex-start; align-self: start; gap: 14px; min-width: 0; }
.hero-name { 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-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
/* contract address: its own block above the official links. The chains of the token are listed on the left (a column that
   scrolls when there are many, one row on a phone), the address of the chosen chain on the right with the chain's logo */
.ct { display: grid; gap: 8px; margin-top: 12px; max-width: 720px; }
.ct-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 24px; }
.ct-l { font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.04em; color: var(--fg-3); text-transform: uppercase; }
.ct-n { font-size: var(--fs-xs); color: var(--fg-3); }
.ct-body { display: grid; grid-template-columns: minmax(132px, 200px) minmax(0, 1fr); gap: 10px; align-items: start; }
.ct-side { display: flex; flex-direction: column; gap: 2px; max-height: 176px; overflow-y: auto; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overscroll-behavior: contain; }
.ct-chain { flex: none; display: flex; align-items: center; gap: 8px; min-height: 32px; width: 100%; padding: 3px 10px 3px 8px; border: 0; border-radius: 7px; background: none; color: var(--fg-2); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.ct-chain:hover { color: var(--accent); }
.ct-chain[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; box-shadow: inset 0 0 0 1px var(--accent); }
.ct-cn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-logo { flex: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.ct-logo[hidden] { display: none; }
.ct-chain:focus-visible, .ct-copy:focus-visible, .ct-ex:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px 4px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); min-width: 0; }
.ct-addr { position: relative; flex: 1 1 auto; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--fg); background: none; padding: 0; overflow-wrap: anywhere; }
.ct-addr[hidden] { display: none; }
.ct-short { display: none; white-space: nowrap; }
.ct-addr.is-long .ct-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ct-addr.is-long .ct-short { display: inline; }
.ct-copy { flex: none; min-height: 28px; padding: 2px 12px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--fg-2); font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.ct-copy:hover { border-color: var(--accent); color: var(--accent); }
.ct-copy[hidden] { display: none; }
.ct-ex { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--fg-3); }
.ct-ex:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.ct-ex[hidden] { display: none; }
.ct-ex svg { width: 15px; height: 15px; }
.ct-note { flex: 1 1 auto; color: var(--fg-3); font-size: var(--fs-sm); padding-block: 4px; }
.ct-note[hidden] { display: none; }
.ct-wait { font-style: italic; }
.hl {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px 3px 10px; max-width: 100%;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--fg); font-size: var(--fs-sm);
}
.hl:hover, .hl:focus-visible { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.hl svg { flex: none; width: 14px; height: 14px; }
.hl-k { font-weight: 600; white-space: nowrap; }
.hl-v { color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl:hover .hl-v, .hl:focus-visible .hl-v { color: inherit; }
.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); }
.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) {
  .ct-addr:not(.is-long) .ct-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ct-addr:not(.is-long) .ct-short { display: inline; }
  .ct-body { grid-template-columns: minmax(0, 1fr); }
  .ct-side { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; }
  .ct-chain { width: auto; min-height: 36px; padding: 4px 13px 4px 9px; white-space: nowrap; scroll-snap-align: start; }
  .ct-row { padding-left: 10px; }
  .ct-copy { min-height: 32px; padding: 4px 14px; }
  .ct-ex { width: 32px; height: 32px; }
  .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; }
  .intro .one-liner { font-size: var(--fs-base); }
}

/* ---------- token page: price chart and, beside it, the market data block ---------- */
.tv-main { display: grid; gap: 18px; margin-bottom: 18px; }
@media (min-width: 1024px) { .tv-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; } }
.mkt-card { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 14px 16px; }
.mkt { display: grid; margin: 0; }
.mk { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; min-width: 0; padding: 7px 0; border-bottom: 1px dotted var(--line-2); font-size: var(--fs-sm); }
.mk dt { color: var(--fg-3); white-space: nowrap; }
.mk dt[title] { cursor: help; text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
.mk dd { margin: 0; min-width: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk dd small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--fg-3); }
.mk dd small .chg { font-weight: 600; }
.mk.wide { flex-direction: column; align-items: stretch; gap: 6px; }
.mk.wide dd { text-align: left; }
.mk-note { font-size: var(--fs-xs); color: var(--fg-3); }
.sbar, .rng-t { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--sunken); }
.sbar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--accent); }
.rng { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 10px; font-weight: 500; font-size: var(--fs-xs); }
.rng-t { background: linear-gradient(90deg, var(--down-soft), var(--up-soft)); }
.rng-t i { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 2px var(--surface); }
.perf { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 4px; font-size: var(--fs-sm); }
.perf b { margin-right: 6px; font-weight: 400; color: var(--fg-3); }
@media (min-width: 640px) and (max-width: 1023px) {
  .mkt { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
.chart-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px 10px; }
.card-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.card-h h2 { font-size: var(--fs-base); }
.tv-sym { font-size: var(--fs-xs); color: var(--fg-3); letter-spacing: 0.02em; }
.tv-open { margin-left: auto; }
.tv-frame { position: relative; flex: 1 0 460px; border-radius: 8px; overflow: hidden; }
.tv-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.tv-wait { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-sm); color: var(--fg-3); }
.tv-attr { font-size: var(--fs-xs); }
/* self-hosted price chart (tokens TradingView has no market for): range buttons, the chart with its legend on top, notes.
   The 7-day line fills the same box until the chart is drawn, so the card does not change size. */
.oc-bar { display: inline-flex; align-self: flex-start; gap: 3px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.oc-bar[hidden], .oc-r[hidden], .oc-fallback[hidden], .oc-chart[hidden], .oc-legend[hidden], .own-chart .tv-attr[hidden] { display: none; }
.oc-r { min-height: 26px; padding: 2px 13px; border: 0; border-radius: 999px; background: none; color: var(--fg-2); font: inherit; font-size: var(--fs-xs); cursor: pointer; white-space: nowrap; }
.oc-r:hover { color: var(--accent); }
.oc-r[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; box-shadow: inset 0 0 0 1px var(--accent); }
.oc-r:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.oc-plot { position: relative; flex: 1 0 400px; min-height: 0; border-radius: 8px; overflow: hidden; }
.oc-chart { position: absolute; inset: 0; }
.oc-fallback { position: absolute; inset: 0; display: flex; }
.oc-fallback .pl-wrap { flex: 1 1 auto; }
.oc-legend { position: absolute; left: 6px; top: 4px; z-index: 3; max-width: calc(100% - 12px); padding: 1px 7px; border-radius: 6px; pointer-events: none;
  font-size: var(--fs-xs); color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: pre; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--surface) 80%, transparent); }
.tv-attr a { color: var(--fg-3); }
.tv-attr a:hover { color: var(--accent); }
.pl-wrap { position: relative; flex: 1 0 220px; }
.pl { display: block; width: 100%; height: 100%; }
.pl polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pl polygon { stroke: none; opacity: 0.12; }
.pl.up polyline { stroke: var(--up); }
.pl.up polygon { fill: var(--up); }
.pl.down polyline { stroke: var(--down); }
.pl.down polygon { fill: var(--down); }
.pl.flat polyline { stroke: var(--fg-3); }
.pl.flat polygon { fill: var(--fg-3); opacity: 0.06; }
.pl-hi, .pl-lo {
  position: absolute; right: 0; padding: 0 4px; border-radius: 4px; background: var(--surface);
  font-size: var(--fs-xs); color: var(--fg-3); font-variant-numeric: tabular-nums;
}
.pl-hi { top: 0; }
.pl-lo { bottom: 0; }
@media (max-width: 720px) {
  .chart-card { padding: 12px; }
  .tv-frame { flex-basis: 380px; }
  .oc-plot { flex-basis: 330px; }
  .oc-r { min-height: 32px; padding: 4px 14px; }
  .oc-legend { white-space: normal; }
}

.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; overflow-wrap: anywhere; }
.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; }
/* only an ended partnership is marked: a faded chip, the name struck through, a small "Ended" tag */
.bn-p.st-ended { background: none; border-color: var(--line); }
.bn-p.st-ended .bn-pn { color: var(--fg-3); text-decoration: line-through; }
.bn-end { flex: none; display: inline-block; font-style: normal; font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 3px; font-weight: 600;
  color: var(--fg-3); background: var(--sunken); text-decoration: none; }
.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; }
/* with a logo: the token's own icon in a circle (a white disc keeps dark logos visible on the dark theme), name below */
.bn-node.has-logo { gap: 8px; padding: 0; border-radius: 0; background: none; color: var(--fg); box-shadow: none; }
.bn-logo { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: contain; background: #fff;
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line-2), var(--shadow); }
.bn-node.has-logo .bn-name { font-size: var(--fs-md); font-weight: 700; opacity: 1; max-width: 36ch; }
.bn-legend { gap: 6px 14px; }
.bn-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.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-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); }
.bn.list .bn-node.has-logo { grid-auto-flow: column; align-items: center; gap: 12px; border-radius: 0; box-shadow: none; }
.bn.list .bn-logo { width: 48px; height: 48px; }
.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); }

.bn-round .bn-chips li a { color: inherit; }
.bn-portfolio { margin: 14px 0 6px; display: grid; gap: 6px; }
.bn-portfolio h3 { margin: 0; font-size: var(--fs-sm); }
.bn-portfolio .bn-chips li { font-size: var(--fs-xs); padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); }
.bn-portfolio p { margin: 0; }
.bn-round .bn-chips li a:hover { color: var(--accent); }

/* ---------- institutions page ---------- */
.ix-recent { margin-bottom: 18px; }
.ix-more { justify-self: start; }
.ix-sym { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 700; }
.ix-sym:hover { text-decoration: none; background: var(--accent); color: var(--surface); }
.ix-entities { list-style: none; margin: 0; padding: 0; }
.ix-e { border-bottom: 1px solid var(--line); }
.ix-e summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 11px 16px; cursor: pointer; list-style: none; }
.ix-e summary::-webkit-details-marker { display: none; }
.ix-e summary::before { content: "▸"; flex: none; width: 1em; color: var(--fg-3); }
.ix-e details[open] summary::before { content: "▾"; }
.ix-e summary:hover, .ix-e.ix-hit summary { background: var(--surface-2); }
.ix-e.ix-hit summary { box-shadow: inset 3px 0 0 var(--accent); }
.ix-name { font-weight: 600; }
.ix-n { font-size: var(--fs-xs); color: var(--fg-3); }
.ix-toks { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.ix-tok { padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--fg-2); font-size: var(--fs-xs); }
.ix-tok:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.ix-links { list-style: none; display: grid; gap: 6px; margin: 0; padding: 2px 16px 14px 40px; }
.ix-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: var(--fs-sm); }
.ix-role { padding: 0 6px; border-radius: 3px; background: var(--sunken); color: var(--fg-2); font-size: 10.5px; font-weight: 600; }
.ix-role.r-lead { background: var(--accent-soft); color: var(--accent); }
.ix-what { color: var(--fg-2); }
.ix-list .empty { padding: 28px 16px; text-align: center; color: var(--fg-3); }
.ix-note { padding: 12px 16px 16px; }
@media (max-width: 560px) {
  .ix-toks { width: 100%; margin-left: 0; }
  .ix-links { padding-left: 16px; }
}

/* ---------- 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; } }
