/* The "night" look (Alon, 2026-11-27: the wZP bridge page's design and colors for the mainnet pages).
   On when <html data-look="night">: each page's head sets it on navora.network (and with ?look=night anywhere, to preview).
   It only re-points the tokens the pages and the frame already share (--bg, --card, --ink … and --s-*), and restyles their
   common parts (section cards, stats, headings, tables, the header); pages keep their own layout and code. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root[data-look="night"] {
  color-scheme: dark;
  --bg: #07080b; --card: #0e1117; --ink: #eef0f4; --muted: #a9afbc; --faint: #8b92a0;
  --line: #1a1d24; --grid: #161a22; --accent: #84d1ef; --series: #84d1ef;   /* links and charts blue, buttons red (Alon, 2026-11-27) */
  --ok: #3ccf7f; --warn: #f0b33c; --bad: #ff6b6e; --warn-soft: #211a0b;
  --accent-soft: #12232e; --miner: #6b7180;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --red: #ef3c40;
  --s-bg: #07080b; --s-card: #07080b; --s-ink: #eef0f4; --s-muted: #a9afbc; --s-line: #1a1d24;
  --s-accent: #84d1ef; --s-accent-ink: #07080b; --s-test: #f0b33c; --s-test-bg: #211a0b;
}
[data-look="night"] body { background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
[data-look="night"] h1, [data-look="night"] .hero h1 { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; letter-spacing: -0.03em; }
[data-look="night"] main > h1:first-of-type, [data-look="night"] main > header h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.08; }
[data-look="night"] h2 { font-family: Inter, sans-serif; }
[data-look="night"] main a { color: var(--accent); }
[data-look="night"] main a:hover { color: #b6e4f6; }
[data-look="night"] .zs-brand { color: var(--ink); }
[data-look="night"] .zs-brand img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
[data-look="night"] .zs-foot a { color: var(--muted); }
[data-look="night"] .zs-foot a:hover { color: var(--ink); }
[data-look="night"] h1.withlogo { display: flex; align-items: center; gap: 16px; }
[data-look="night"] h1.withlogo img[hidden] { display: block; }
[data-look="night"] h1.withlogo img { display: block; width: 56px; height: 56px; border-radius: 14px; flex: none; }

/* cards: the pages' sections and boxes */
[data-look="night"] main section, [data-look="night"] .box1, [data-look="night"] .zp .card, [data-look="night"] .zp .stats {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
[data-look="night"] .panel { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
[data-look="night"] .stat .v, [data-look="night"] .panel .pv, [data-look="night"] .zp .stats .v { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 600; }
[data-look="night"] .stat .k, [data-look="night"] .panel .pk { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--faint); }

/* tables, inputs, buttons */
[data-look="night"] th { color: var(--faint); }
[data-look="night"] td, [data-look="night"] th { border-bottom-color: var(--line); }
[data-look="night"] tbody tr:hover td { background: rgba(239, 60, 64, .05); }
[data-look="night"] input:not([type=checkbox]):not([type=radio]), [data-look="night"] select, [data-look="night"] textarea {
  background: var(--bg); color: var(--ink); border: 1px solid #222632; border-radius: 12px; }
[data-look="night"] input:focus-visible, [data-look="night"] select:focus-visible { outline: 2px solid #7a2a2d; outline-offset: 1px; }
[data-look="night"] .range button { background: var(--card); border-color: #222632; }
[data-look="night"] .range button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
[data-look="night"] .cta, [data-look="night"] .zp .btn { background: var(--red); color: #fff; border-radius: 14px; }
[data-look="night"] .cta:hover, [data-look="night"] .zp .btn:hover { background: #ff5256; color: #fff; }
[data-look="night"] .tip { background: #11141a; border-color: #222632; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }

/* the pages' own light/dark pairs, set to their dark values whatever the visitor's system says */
[data-look="night"] .b-kind.k-Nomination, [data-look="night"] .pill.wait { color: #f0c96a; }
[data-look="night"] .pill.wait { border-color: #6b5a2a; }
[data-look="night"] .grp .need b.bad { color: var(--bad); }
[data-look="night"] .vt-Allocation { background: #12232e; color: #9fd8ef; }
[data-look="night"] .vt-Payout { background: #2a2033; color: #cfa8ec; }
[data-look="night"] .vt-Nomination { background: #2e2416; color: #f0c96a; }

/* the frame: header and footer */
[data-look="night"] .zs-head { background: rgba(7, 8, 11, .92); backdrop-filter: blur(8px); border-bottom-color: var(--line); font-family: Inter, sans-serif; }
[data-look="night"] .zs-brand { font-family: 'Space Grotesk', Inter, sans-serif; }
[data-look="night"] .zs-brand svg { color: var(--red); }
[data-look="night"] .zs-net { background: #1c0e10; color: #ffb3b5; border: 1px solid #5a2326; }
[data-look="night"] .zs-nav > a, [data-look="night"] .zs-nav > .zs-grp > button { color: var(--muted); }
[data-look="night"] .zs-nav > a:hover, [data-look="night"] .zs-nav > .zs-grp > button:hover { background: #11141a; color: var(--ink); }
[data-look="night"] .zs-nav [aria-current="page"] { color: var(--ink); background: #1c2230; }
[data-look="night"] .zs-other { border-color: #2a2f3a !important; color: var(--ink) !important; }
[data-look="night"] .zs-menu { background: var(--card); border-color: #222632; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
[data-look="night"] .zs-burger { border-color: #2a2f3a; }
[data-look="night"] .zs-foot { background: var(--bg); border-top-color: var(--line); font-family: Inter, sans-serif; }
@media (max-width: 860px) { [data-look="night"] .zs-nav { background: var(--bg); } }

/* red is the accent: what meant "good" in the accent colour stays green */
[data-look="night"] .grp .need b.ok, [data-look="night"] .okc, [data-look="night"] .b-kind.k-Payout { color: var(--ok); }
[data-look="night"] .grp .meter.thr.full i { background: var(--ok); }
