/* Design tokens. Dark ("night sky") is the default; light is a toggle. Components live in app.css / explore.css.
   Class names every page may use (web-core defines them in app.css):
   .card .card--flat .grid .stack .row .muted .small .mono .chip .chip--good/--warn/--bad/--moon .badge
   .cite (citation chip) .type-dot[data-type] .btn .btn--primary .btn--ghost .table .kpi .kpi__value .kpi__label
   .empty .page-head .page-head__title .page-head__sub .tabs .prose (wiki body) .infobox .feed .feed__item
   Also in app.css: .stack-lg .eyebrow .section-head (h2 + .more link) .side-card .side-card__title .crumbs .callout
   .callout--bad .meter .ent (entity pill) .chip--filter(.is-on) .chip--status .filterbar .filter-chips .filter-input
   .empty-line .nowrap .num .btn--small .icon-btn .table-wrap .kpi__sub .badge--warm. Jinja macros: _macros.html. */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060a14;
  --bg-2: #080d1a;
  --surface: #0c1323;
  --surface-2: #111a2e;
  --surface-3: #16213a;
  --line: rgba(150, 172, 220, 0.11);
  --line-2: rgba(150, 172, 220, 0.2);
  --line-3: rgba(150, 172, 220, 0.32);
  --text: #e8edf7;
  --text-2: #a7b2c8;
  --text-3: #6d7891;
  --moon: #bcd0ff;
  --moon-2: #8eaaf0;
  --moon-ink: #0b1430;
  --moon-bg: rgba(142, 170, 240, 0.12);
  --moon-bg-2: rgba(142, 170, 240, 0.2);
  --warm: #f2b866;
  --warm-bg: rgba(242, 184, 102, 0.12);
  --bad: #f07a7d;
  --bad-bg: rgba(240, 122, 125, 0.12);
  --good: #86d6ae;
  --good-bg: rgba(134, 214, 174, 0.12);
  --mark: rgba(242, 184, 102, 0.22);
  --mark-line: rgba(242, 184, 102, 0.8);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glass: rgba(10, 16, 30, 0.78);

  /* entity types (same as ontology/brain.yaml colors) */
  --t-Brand: #bcd0ff;
  --t-Organization: #7aa7ff;
  --t-ProductLine: #5fd6c6;
  --t-Product: #7fe0b0;
  --t-Market: #b99cff;
  --t-Category: #f2b866;
  --t-Topic: #c9df7a;
  --t-Event: #ff9cba;
  --t-Channel: #9fb0c8;
  /* company brains (ontology profile "company") */
  --t-Person: #ffb4a2;
  --t-Layer: #8ecbff;
  --t-Capability: #6ee7f2;
  --t-Plan: #ffe08a;
  --t-Decision: #ff8f8f;
  --t-Study: #e7a6ff;
  --t-Metric: #d9f99d;
  --t-Idea: #ffd6e8;
  --t-Term: #d0d7e2;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f9;
  --bg-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --surface-3: #eceff6;
  --line: rgba(22, 32, 64, 0.09);
  --line-2: rgba(22, 32, 64, 0.16);
  --line-3: rgba(22, 32, 64, 0.28);
  --text: #0f1526;
  --text-2: #4a5470;
  --text-3: #7d869b;
  --moon: #2f52b8;
  --moon-2: #4a6cd0;
  --moon-ink: #ffffff;
  --moon-bg: rgba(47, 82, 184, 0.08);
  --moon-bg-2: rgba(47, 82, 184, 0.15);
  --warm: #b26a00;
  --warm-bg: rgba(178, 106, 0, 0.1);
  --bad: #c23b3f;
  --bad-bg: rgba(194, 59, 63, 0.08);
  --good: #1f8a5a;
  --good-bg: rgba(31, 138, 90, 0.09);
  --mark: rgba(255, 196, 0, 0.28);
  --mark-line: rgba(178, 106, 0, 0.8);
  --shadow: 0 14px 40px rgba(20, 30, 60, 0.12);
  --glass: rgba(255, 255, 255, 0.82);

  --t-Brand: #2f52b8;
  --t-Organization: #2f6fe0;
  --t-ProductLine: #0f9e8c;
  --t-Product: #1f8a5a;
  --t-Market: #7a52d6;
  --t-Category: #b26a00;
  --t-Topic: #6c8a10;
  --t-Event: #d0457a;
  --t-Channel: #5a6780;
  --t-Person: #c2452d;
  --t-Layer: #1a6fc0;
  --t-Capability: #0b7f8f;
  --t-Plan: #9a6a00;
  --t-Decision: #c0302f;
  --t-Study: #9b38c9;
  --t-Metric: #4d7c0f;
  --t-Idea: #b03a72;
  --t-Term: #4a5568;
}

:root {
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-read: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 16px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --sidebar-w: 232px;
  --content-max: 1180px;
  --read-max: 760px;
}
