/* BigCapital — "Bento mono" design system (owner's choice, 2026-11-08).
   Calm Apple-like canvas, white tiles, black type with one blue, the key
   figure on a black tile, a floating pill menu. Geist for text and headings,
   Geist Mono for figures. Light by default; dark only via the theme button.
   Class names are shared by every page type (see pipeline/pages/README.md) —
   change the look here, never the names. */

@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --track: #eef0f3;
  /* "graphite": the solid accents (menu pill, key tile, icons, logo) are dark
     gray, not black. For the pure "mono" look use #1d1d1f for --solid and
     --tile-dark, and #1d1d1f for --ink. */
  --solid: #3c4149;
  --solid-ink: #ffffff;
  --tile-dark: linear-gradient(155deg, #4b515a 0%, #363b42 100%);
  --chip-active: var(--solid);
  --chip-active-ink: var(--solid-ink);
  --ink: #24272c;
  --ink-2: #4b5058;
  --muted: #868b93;
  --border: rgba(0, 0, 0, 0.07);
  --grid: rgba(0, 0, 0, 0.07);
  --axis: rgba(0, 0, 0, 0.16);
  --hover: #f2f4f8;
  --accent: #0071e3;
  --accent-ink: #0066cc;
  --accent-soft: #e8f2fd;
  --hero-line: #0071e3;
  --line-gray: #a1a1a6;
  --good: #1e8e3e;
  --good-soft: #e6f4ea;
  --bad: #d93025;
  --bad-soft: #fce8e6;
  /* one color per asset — the same table for the site, videos and thumbnails */
  --btc: #ff9500;
  --gold: #e0a800;
  --spx: #0071e3;
  --ndq: #5e5ce6;
  --home: #34c759;
  --bond: #30b0c7;
  --cash: #ff3b30;
  /* the same colors, dark enough for text and big numbers on white (≥ 3:1) */
  --btc-ink: #c25e00;
  --gold-ink: #946f00;
  --spx-ink: #0066cc;
  --ndq-ink: #4b49c7;
  --home-ink: #1b8a3a;
  --bond-ink: #167a8d;
  --cash-ink: #d70015;
  /* generic series order for charts that are not about one asset */
  --s1: #0071e3;
  --s2: #ff9500;
  --s3: #30b0c7;
  --s4: #e0a800;
  --s5: #5e5ce6;
  --s6: #a1a1a6;
  --radius: 12px;
  --r: 26px;
  --radius-lg: 26px; /* older name of --r, kept for pages that use it */
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 6px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 16px 44px rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.8);
  --font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --dawn: linear-gradient(120deg, #1d1d1f 0%, #0071e3 100%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --surface: #1c1c1e;
  --surface-2: #161618;
  --track: #2c2c2e;
  --chip-active: #f5f5f7;
  --chip-active-ink: #1d1d1f;
  --ink: #f5f5f7;
  --ink-2: #c7c7cc;
  --muted: #8e8e93;
  --border: rgba(255, 255, 255, 0.09);
  --grid: rgba(255, 255, 255, 0.08);
  --axis: rgba(255, 255, 255, 0.2);
  --hover: #26262a;
  --accent: #2997ff;
  --accent-ink: #5cb0ff;
  --accent-soft: rgba(41, 151, 255, 0.16);
  --hero-line: #2997ff;
  --line-gray: #8e8e93;
  --good: #30d158;
  --good-soft: rgba(48, 209, 88, 0.16);
  --bad: #ff453a;
  --bad-soft: rgba(255, 69, 58, 0.16);
  --btc: #ff9f0a; --gold: #ffd60a; --spx: #2997ff; --ndq: #7d7aff; --home: #30d158; --bond: #40c8e0; --cash: #ff453a;
  --btc-ink: #ffb340; --gold-ink: #ffd60a; --spx-ink: #5cb0ff; --ndq-ink: #a5a3ff; --home-ink: #4ade80; --bond-ink: #64d2ff; --cash-ink: #ff6961;
  --s1: #2997ff; --s2: #ff9f0a; --s3: #40c8e0; --s4: #ffd60a; --s5: #7d7aff; --s6: #8e8e93;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 44px rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(28, 28, 30, 0.82);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.num { font-variant-numeric: tabular-nums; }
.d { font-family: var(--display); }
.mono { font-family: var(--mono); }

/* ---------- menu bar: full width, solid, a hairline below ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -0.03em; }
.brand svg { width: 28px; height: 28px; flex: none; color: var(--solid); }
.tag { display: none; }
.top .spacer { flex: 1; }
.nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font: 500 14px/1 var(--font); padding: 10px 13px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--track); }
.nav a[aria-current="page"] { background: var(--chip-active); color: var(--chip-active-ink); font-weight: 600; }
.langs { display: flex; gap: 2px; font: 600 13px var(--font); }
.langs a { color: var(--muted); text-decoration: none; padding: 7px 9px; border-radius: 999px; }
.langs a[aria-current="page"] { color: var(--ink); background: var(--track); }
.icon-btn { background: var(--track); border: 0; color: var(--ink-2); border-radius: 999px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- page head ---------- */
.intro { padding: 56px 0 10px; display: grid; gap: 16px; }
.eyebrow { font: 600 12px/1.4 var(--font); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0; }
h1 { font: 700 clamp(38px, 6.4vw, 80px)/0.98 var(--display); letter-spacing: -0.05em; margin: 0; max-width: 15ch; text-wrap: balance; }
h1 .g { color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 56ch; margin: 0; text-wrap: pretty; }
h2 { font: 700 clamp(24px, 3vw, 34px)/1.1 var(--display); letter-spacing: -0.035em; margin: 0 0 14px; text-wrap: balance; }
h3 { font: 600 17px/1.3 var(--font); margin: 0 0 8px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 30px 0 -30px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .sep { margin: 0 7px; color: var(--axis); }

/* ---------- the big number ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 22px 0 6px; }
.hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.hero-value { font: 600 clamp(46px, 6vw, 72px)/1 var(--mono); letter-spacing: -0.06em; color: var(--ink); }
.hero-value.neg { color: var(--bad); }
.hero-text { color: var(--ink-2); max-width: 50ch; margin: 0; font-size: 15px; line-height: 1.55; }
.hero-text strong { color: var(--ink); font-weight: 600; }
.hero-card-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.hero-spark { display: block; width: 100%; height: 96px; margin: 10px 0 8px; overflow: visible; }
.hero-spark .ln { stroke: var(--hero-line); stroke-width: 2.4; }
.big { font: 600 clamp(40px, 5.2vw, 60px)/1 var(--mono); letter-spacing: -0.06em; }
.mid { font: 600 30px/1.05 var(--mono); letter-spacing: -0.05em; }

/* pills: growth and decline always carry a sign, not only a color */
.delta, .pill { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1 var(--font); border-radius: 999px; padding: 7px 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta.up, .pill.up { color: var(--good); background: var(--good-soft); }
.delta.down, .pill.down { color: var(--bad); background: var(--bad-soft); }
.pill.soft { color: var(--ink-2); background: var(--track); }
/* signed values in text and tables */
.up-v, td.up { color: var(--good); }
.down-v, td.down { color: var(--bad); }

/* text "in an asset's color": in this calm design big numbers stay black;
   only losses (cash / inflation / drawdowns) keep their red */
.txt-btc, .txt-gold, .txt-spx, .txt-ndq, .txt-home, .txt-bond { color: var(--ink); }
.txt-cash { color: var(--cash-ink); }

/* asset icons: quiet dark squares (the colors live in the chart lines) */
.ico { width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; color: var(--solid-ink); background: var(--solid); font: 700 13px/1 var(--display); flex: none; letter-spacing: -0.02em; }
.ico.s { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.ico.l { width: 54px; height: 54px; border-radius: 15px; font-size: 16px; }
.ico.w { width: auto; min-width: 40px; padding: 0 9px; }
.ico.s.w { min-width: 28px; padding: 0 6px; }
.ico svg { width: 55%; height: 55%; }
.i-btc, .i-gold, .i-spx, .i-ndq, .i-home, .i-cash, .i-bond { background: var(--solid); }
.i-gray { background: var(--line-gray); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--track); color: var(--ink); }

/* ---------- switches ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 22px 0 14px; }
.chips, .seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--track); border-radius: 13px; padding: 4px; }
.chip, .seg button { font: 500 13px/1 var(--font); color: var(--ink-2); background: transparent; border: 0; border-radius: 9px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.chip:hover, .seg button:hover { color: var(--ink); }
.chip[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--chip-active); color: var(--chip-active-ink); font-weight: 600; }
.range { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--font); color: var(--muted); }
.range select { font: 600 13px var(--font); color: var(--ink); background: var(--track); border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.seg { margin-left: 0; }
.toggle { width: 46px; height: 28px; border-radius: 999px; background: var(--axis); position: relative; flex: none; border: 0; cursor: pointer; transition: background 0.15s ease; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease; }
.toggle[aria-checked="true"] { background: var(--good); }
.toggle[aria-checked="true"]::after { transform: translateX(18px); }

/* ---------- tiles (legend + toggles of a chart) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0 0 14px; }
.tile { text-align: left; font: inherit; color: inherit; background: var(--surface); border: 0; border-radius: 20px; padding: 14px 16px; cursor: pointer; display: grid; grid-template-columns: 1fr; gap: 3px; box-shadow: var(--shadow); transition: box-shadow 0.15s ease, opacity 0.15s ease; }
.tile:hover { box-shadow: var(--shadow-lg); }
.tile[aria-pressed="false"] { opacity: 0.4; }
.tile[aria-pressed="false"] .tile-value { text-decoration: line-through; text-decoration-color: var(--muted); }
.tile.hero-tile { box-shadow: 0 0 0 2px var(--hero-line), var(--shadow); }
.tile svg { width: 22px; height: 8px; display: inline-block; vertical-align: middle; margin-right: 6px; flex: none; }
.tile-label { font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.3; display: flex; align-items: center; }
.tile-value { font: 600 22px/1.2 var(--mono); letter-spacing: -0.05em; }
.tile-sub { font-size: 12px; color: var(--muted); }

/* ---------- cards ---------- */
.card { display: block; background: var(--surface); border-radius: var(--r); padding: 22px; color: inherit; text-decoration: none; box-shadow: var(--shadow); min-width: 0; }
a.card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card.dark { background: var(--tile-dark); color: #f5f5f7; --hero-line: #5aa9ff; --muted: rgba(245, 245, 247, 0.62); --ink-2: rgba(245, 245, 247, 0.78); --ink: #f5f5f7; --good: #30d158; --good-soft: rgba(48, 209, 88, 0.16); --bad: #ff453a; --bad-soft: rgba(255, 69, 58, 0.16); }
:root[data-theme="dark"] .card.dark { background: #2c2c2e; }
.card-title { font-weight: 600; line-height: 1.3; }
.card-meta { font-size: 13px; color: var(--muted); }
.card-value { font: 600 24px/1.15 var(--mono); letter-spacing: -0.05em; margin-top: 6px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.label { font-size: 13px; color: var(--muted); font-weight: 500; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spark { display: block; width: 100%; height: 56px; margin-top: 10px; overflow: visible; }

/* bento grid for showcases (home and section fronts) */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0 0; }
.bento .w2 { grid-column: span 2; }
.bento .w4 { grid-column: 1 / -1; }
@media (max-width: 920px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .w4 { grid-column: 1 / -1; } }
@media (max-width: 560px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento .w2 { grid-column: auto; } }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; margin-top: 14px; }
.apps > * { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); text-align: center; text-decoration: none; }
.apps.apps-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 640px) { .apps.apps-6 { grid-template-columns: repeat(3, 1fr); } }
.sentence { font: 600 clamp(18px, 2.3vw, 23px)/1.8 var(--font); letter-spacing: -0.015em; margin: 6px 0 0; }
.dd { display: inline-flex; align-items: center; gap: 6px; background: var(--track); border-radius: 10px; padding: 2px 11px; margin-inline: 2px; white-space: nowrap; }
.result { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; align-items: flex-end; }
.result .btn { margin-left: auto; }

/* ---------- home: chart + key figure + legend tiles ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 16px; margin: 36px 0 0; align-items: stretch; }
.home-chart { grid-row: 1 / span 2; display: flex; flex-direction: column; padding: 20px 20px 10px; }
.home-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 8px; }
.home-chart-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.home-chart .controls { margin: 0; gap: 8px; }
.home-chart .chart { box-shadow: none; padding: 4px 0 0; border-radius: 0; flex: 1; background: transparent; }
.home-range { display: flex; flex-wrap: wrap; gap: 12px; padding: 6px 2px 2px; }
.home-hero { padding: 24px 24px 20px; }
.home-tiles { grid-column: 2; margin: 0; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-tiles .tile-value { font-size: 20px; }
@media (max-width: 920px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-chart, .home-tiles { grid-row: auto; grid-column: auto; }
}

/* ---------- chart card ---------- */
.chart { margin: 0; position: relative; background: var(--surface); border-radius: var(--r); padding: 16px 10px 6px; box-shadow: var(--shadow); }
.chart svg { display: block; width: 100%; height: auto; outline: none; touch-action: pan-y; overflow: visible; }
.chart svg:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 12px; }
.gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.tick { fill: var(--muted); font: 500 11px var(--mono); font-variant-numeric: tabular-nums; }
.event line { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 2 4; }
.event text { fill: var(--muted); font: 500 11px var(--font); }
.ln { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ln-p { stroke: var(--line-gray); stroke-width: 1.6; stroke-dasharray: 5 4; }
.ln-rp { stroke: var(--line-gray); stroke-width: 1.8; }
.ln-tr { stroke: var(--hero-line); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: 0.85; }
.ln-rtr { stroke: var(--hero-line); stroke-width: 3; }
.area-rtr { stroke: none; }
.endlabel { fill: var(--ink); font: 600 12px var(--mono); font-variant-numeric: tabular-nums; }
.endlabel.sub { fill: var(--muted); }
.cross { stroke: var(--ink-2); stroke-width: 1; shape-rendering: crispEdges; opacity: 0.45; }
.dot { stroke: var(--surface); stroke-width: 2; }
.dot-p, .dot-rp { fill: var(--line-gray); }
.dot-tr, .dot-rtr { fill: var(--hero-line); }
.tip { position: absolute; top: 12px; pointer-events: none; background: var(--surface); border-radius: 16px; padding: 11px 13px; font-size: 12px; line-height: 1.55; min-width: 230px; box-shadow: var(--shadow-lg); z-index: 5; }
.tip[hidden] { display: none; }
.tip-date { font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.tip-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; color: var(--ink-2); }
.tip-row b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tip-row svg { width: 22px; height: 8px; }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 12px; color: var(--muted); padding: 6px 10px 6px; }

/* full screen (common.js): a button in the corner of every chart card */
.has-full { position: relative; }
.full-btn { position: absolute; top: 10px; right: 10px; z-index: 4; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: var(--track); color: var(--ink-2); cursor: pointer; opacity: 0.75; transition: opacity 0.15s; }
.full-btn:hover, .full-btn:focus-visible { opacity: 1; color: var(--ink); }
.full-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.has-full > .legend, .has-full > .home-chart-head { padding-right: 40px; }
.is-full { position: fixed; inset: 0; z-index: 100; margin: 0; max-width: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; overflow: auto; background: var(--surface); padding: 22px max(24px, env(safe-area-inset-right)) 14px max(24px, env(safe-area-inset-left)); }
.is-full > .full-btn { top: 14px; right: 14px; }
.is-full .bc-chart { flex: 1 1 0; min-height: 240px; overflow: hidden; }
.is-full #chart { flex: 1 1 0; min-height: 300px; overflow: hidden; }
html.full-lock { overflow: hidden; }

/* ---------- text blocks ---------- */
.findings { margin: 16px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.findings p { margin: 0; color: var(--ink-2); background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); font-size: 15px; }
.findings strong { display: block; color: var(--ink); font-weight: 650; font-size: 18px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 8px; }
@media (max-width: 820px) { .findings { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin: 32px 0 10px; font-size: clamp(22px, 2.6vw, 28px); }
.prose li { margin: 0 0 6px; }
.prose b { color: var(--ink); }
.section { margin: 56px 0 0; }
.note { font-size: 13px; color: var(--muted); }
.method { margin: 56px 0 0; padding: 26px 28px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.method h2 { font-size: clamp(20px, 2.4vw, 26px); }
.method ul { margin: 0; padding-left: 20px; color: var(--ink-2); max-width: 82ch; }
.method li { margin: 0 0 8px; }

/* ---------- tables: white tile, hairline rows, signed figures ---------- */
details.table { margin: 16px 0 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
details.table summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px; }
.table-scroll { max-height: 460px; overflow: auto; border-top: 1px solid var(--border); }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 18px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-weight: 500; font-size: 13px; border-bottom: 1px solid var(--border); z-index: 1; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
td.num, td .num { font-variant-numeric: tabular-nums; }
td small, th small { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 6px; }
table.text th, table.text td { text-align: left; white-space: normal; vertical-align: top; }
table.text td.num { white-space: nowrap; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--ink); }
th[aria-sort="ascending"]::after { content: " ↑"; }
th[aria-sort="descending"]::after { content: " ↓"; }

/* ---------- shared blocks for every page type ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--surface); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat-label { font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.stat-value { font: 600 22px/1.25 var(--mono); letter-spacing: -0.05em; }
.stat-sub { font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0 0 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 22px; height: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 14px; }
.search { font: 500 15px var(--font); color: var(--ink); background: var(--surface); border: 0; border-radius: 999px; padding: 12px 18px; min-width: min(100%, 300px); box-shadow: var(--shadow); }
.search:focus { outline: 2px solid var(--accent); }

/* ---------- BC.lineChart / BC.barChart (js/charts.js) ---------- */
.bc-chart { position: relative; }
.bc-chart svg { display: block; width: 100%; height: auto; outline: none; touch-action: pan-y; overflow: visible; }
.bc-chart svg:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 12px; }
.ln.c1 { stroke: var(--s1); } .ln.c2 { stroke: var(--s2); } .ln.c3 { stroke: var(--s3); }
.ln.c4 { stroke: var(--s4); } .ln.c5 { stroke: var(--s5); } .ln.c6 { stroke: var(--s6); }
.ln.c1, .ln.c2, .ln.c3, .ln.c4, .ln.c5, .ln.c6, .ln.a-btc, .ln.a-gold, .ln.a-spx, .ln.a-ndq, .ln.a-home, .ln.a-bond, .ln.a-cash { stroke-width: 2.2; }
.ln.thin { stroke-width: 1.6; }
.ln.bold { stroke-width: 3; }
.ln.dash { stroke-dasharray: 5 4; }
.ln.a-btc { stroke: var(--btc); } .ln.a-gold { stroke: var(--gold); } .ln.a-spx { stroke: var(--spx); } .ln.a-ndq { stroke: var(--ndq); }
.ln.a-home { stroke: var(--home); } .ln.a-bond { stroke: var(--bond); } .ln.a-cash { stroke: var(--cash); }
.dot.c1, .bar.c1, .area.c1 { fill: var(--s1); } .dot.c2, .bar.c2, .area.c2 { fill: var(--s2); } .dot.c3, .bar.c3, .area.c3 { fill: var(--s3); }
.dot.c4, .bar.c4, .area.c4 { fill: var(--s4); } .dot.c5, .bar.c5, .area.c5 { fill: var(--s5); } .dot.c6, .bar.c6, .area.c6 { fill: var(--s6); }
.dot.a-btc, .bar.a-btc, .area.a-btc { fill: var(--btc); } .dot.a-gold, .bar.a-gold, .area.a-gold { fill: var(--gold); }
.dot.a-spx, .bar.a-spx, .area.a-spx { fill: var(--spx); } .dot.a-ndq, .bar.a-ndq, .area.a-ndq { fill: var(--ndq); }
.dot.a-home, .bar.a-home, .area.a-home { fill: var(--home); } .dot.a-bond, .bar.a-bond, .area.a-bond { fill: var(--bond); }
.dot.a-cash, .bar.a-cash, .area.a-cash { fill: var(--cash); }
.bar.neg { fill: var(--bad); opacity: 0.85; }
.bar.muted { opacity: 0.4; }
.shade { fill: var(--track); opacity: 0.9; }
.shade-label { fill: var(--muted); font: 600 11px var(--font); }
.area { stroke: none; opacity: 0.14; }
.spark .ln { stroke-width: 2.2; }
.sw-sq { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-sq.c1 { background: var(--s1); } .sw-sq.c2 { background: var(--s2); } .sw-sq.c3 { background: var(--s3); }
.sw-sq.c4 { background: var(--s4); } .sw-sq.c5 { background: var(--s5); } .sw-sq.c6 { background: var(--s6); }
.sw-sq.a-btc { background: var(--btc); } .sw-sq.a-gold { background: var(--gold); } .sw-sq.a-spx { background: var(--spx); }
.sw-sq.a-ndq { background: var(--ndq); } .sw-sq.a-home { background: var(--home); } .sw-sq.a-bond { background: var(--bond); } .sw-sq.a-cash { background: var(--cash); }

/* ---------- footer ---------- */
footer { margin: 80px 0 0; padding: 0 0 48px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 22px; }
footer a { color: var(--ink-2); }
.foot-note { flex-basis: 100%; }

@media (prefers-reduced-motion: reduce) {
  a.card, .tile, .toggle, .toggle::after { transition: none; }
}
@media (max-width: 860px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
  .nav { order: 5; flex-basis: 100%; margin: 0 -4px; }
  .intro { padding-top: 34px; }
}
@media (max-width: 640px) {
  .controls { justify-content: flex-start; }
  th, td { padding: 9px 12px; }
  .method { padding: 20px; }
  .tile-value { font-size: 19px; }
  .card { padding: 18px; }
}
