/* NXTlab research page styles, shared by the crypto pages (the older pages inline the same rules). */
:root {
  --lab-accent: #3b82f6; --lab-muted: var(--text-2); color-scheme: light;
  --bg: #f6f7f9; --surface: #ffffff; --border: #e3e6eb; --grid: #eceef2; --axis: #c9ced6;
  --text: #0f1520; --text-2: #4a5566; --muted: #6b7686;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --band: rgba(42,120,214,0.06); --accent: #2a78d6;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0c10; --surface: #121722; --border: rgba(255,255,255,0.08);
    --grid: rgba(255,255,255,0.06); --axis: rgba(255,255,255,0.18);
    --text: #e8edf4; --text-2: #a3b0c2; --muted: #7c8aa0;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --band: rgba(57,135,229,0.08); --accent: #5b9cf0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0c10; --surface: #121722; --border: rgba(255,255,255,0.08);
  --grid: rgba(255,255,255,0.06); --axis: rgba(255,255,255,0.18);
  --text: #e8edf4; --text-2: #a3b0c2; --muted: #7c8aa0;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --band: rgba(57,135,229,0.08); --accent: #5b9cf0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
.wrap { padding-bottom: 8px; }
.kick-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 18px; margin-bottom: 10px; }
.kick-row .lab-kicker { margin: 0; }
#theme { flex: none; font: inherit; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.lede-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.numbers { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
.numbers > div { max-width: 760px; }
.numbers h4 { font-size: 15px; margin-bottom: 4px; }
.numbers .cap { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.numbers table td.lbl { color: var(--text); white-space: normal; min-width: 120px; }
.numbers th:last-child, .numbers td:last-child { text-align: right; }
.numbers td[colspan] { text-align: left !important; }
.numbers .yr { color: var(--muted); }
@media (max-width: 520px) { .numbers table { font-size: 13px; } .numbers th, .numbers td { padding: 5px 6px; } .numbers .yr { display: block; font-size: 12px; } .numbers td.lbl { min-width: 0; } }
.numbers tr.now td { font-weight: 700; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 28px 0 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 20px 14px; }
.card h2 { font-family: var(--font-display); font-size: 18px; line-height: 1.3; }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); margin: 12px 0 4px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; position: relative; top: -1px; }
.legend i::after { content: ""; position: absolute; left: 5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 24px rgba(0,0,0,.18); opacity: 0; transition: opacity .12s; white-space: nowrap; z-index: 2; }
.tip .y { font-weight: 700; margin-bottom: 2px; }
.tip .row { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.tip .row b { color: var(--text); font-variant-numeric: tabular-nums; margin-left: auto; padding-left: 12px; }
.tip .sw { width: 10px; height: 10px; border-radius: 50%; }
.tip .src { color: var(--muted); font-size: 12px; margin-top: 2px; }
.source { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.source b { color: var(--text-2); }
section { margin-top: 36px; }
section h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
section p, section li { color: var(--text-2); max-width: 780px; }
section ul, section ol { padding-left: 20px; display: grid; gap: 8px; }
section strong { color: var(--text); }
details { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; }
summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.tablewrap { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 5px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th:first-child, td:first-child, th:last-child, td:last-child { text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr.low td { font-weight: 700; color: var(--text); }
td { color: var(--text-2); }
.dl { font-size: 14px; margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
/* PNG export: only the chart card, fixed width */
body.png { background: var(--surface); }
body.png .wrap { max-width: none; width: 1200px; padding: 0; }
body.png .card { border: 0; border-radius: 0; padding: 36px 44px 24px; }
body.png .card h2 { font-size: 28px; }
body.png .card .sub { font-size: 16px; }
body.png .legend { font-size: 15px; }
body.png .source { font-size: 14px; }
body.png .hide-png { display: none !important; }
/* additions for the crypto pages */
.series-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.series-nav a { font-size: 13px; text-decoration: none; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
.series-nav a[aria-current] { color: var(--text); border-color: var(--accent); }
.card + .card { margin-top: 20px; }
.legend i.bar { width: 12px; height: 12px; border: 0; border-radius: 3px; background: currentColor; top: 1px; }
.legend i.bar::after { display: none; }
.verdict { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 8px; }
.verdict.no { color: var(--text); background: var(--grid); }
.verdict.yes { color: #fff; background: var(--s3); }
td.neg { color: var(--text); }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 780px; }
