/* ─────────────────────────────────────────────────────────────
   Light theme. Loaded after the page CSS on every page.
   [data-theme] is set on <html> by js/site-layout.js before the
   first paint (stored choice, else the device setting).
   1. Light tokens for the page.
   2. Dark islands: navbar, footer and the deep-green blocks keep
      the dark tokens (the logo has white lettering; the green
      blocks are part of the brand), so they look the same in
      both themes.
   3. The few components that need more than a token swap.
   ───────────────────────────────────────────────────────────── */

/* ── 1. Light tokens ── */
[data-theme="light"] {
    color-scheme: light;
    --nz-bg: #f3f6f4;
    --nz-ink: #0b1f17;
    --nz-ink-rgb: 11, 31, 23;
    --nz-ink-2: rgba(11, 31, 23, 0.74);
    --nz-ink-3: rgba(11, 31, 23, 0.56);
    --nz-line: rgba(11, 31, 23, 0.1);
    --nz-glass: rgba(255, 255, 255, 0.72);
    --nz-glass-strong: rgba(255, 255, 255, 0.95);
    --nz-green-soft: #08875a;
    --nz-green-text: #00995f;
    --nz-soft-bg: #ffffff;           /* readable green for text, icons and accents */
    --nz-w: 11, 31, 23;
    --nz-k: 16, 48, 34;
    --nz-ka: 0.32;
    --nz-gs: 0, 150, 98;
    --nz-d: 255, 255, 255;
    --nz-amber: #9a5b12;
    --nz-amber-rgb: 196, 124, 40;
    --nz-amber-bg: #fbf1e3;
    --nz-tint: #dcf2e6;
    --nz-section-alt: #e8efeb;
    --nz-field: #f1f6f3;
    --nz-field-hover: #e4f1e9;
    --nz-row-alt: #ecf3ef;
    --nz-sunk: #e6eee9;
    --nz-surface: #ffffff;
    --nz-surface-2: #eef4f0;
    --nz-card: #ffffff;
    --nz-glow: rgba(0, 192, 127, 0.14);
    /* Depth on light: white rim on top, hairline, soft green-grey shadow */
    --nz-shadow-sm: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(11, 31, 23, 0.06), 0 6px 18px -8px rgba(16, 48, 34, 0.18);
    --nz-shadow-md: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(11, 31, 23, 0.06), 0 18px 40px -20px rgba(16, 48, 34, 0.22);
    --nz-shadow-green: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 22px -8px rgba(0, 150, 98, 0.5);
    --nz-card-shadow: var(--nz-shadow-md);
}

/* ── 2. Dark islands: same tokens as the dark theme ── */
[data-theme="light"] :is(
    .nz-footer, .nz-drop__preview,
    .nz-why, .nz-belief, .nz-inc-sec, .nz-jy, .nz-sp-band, .nz-cta-box,
    .nz-pr__card--dark, .nz-way--featured, .nz-lb,
    .nz-stack__pane--system, .nz-orbit__core, .sv-hub__core, .sv-plat__core, .nz-sb__member, .nz-founder__disc,
    .nz-mk__card, .sv-mob__card--dark, .nz-ct__ic--deep, .nz-ct__ic--dark
) {
    color-scheme: dark;
    --nz-bg: #020C08;
    --nz-ink: #f2f7f4;
    --nz-ink-rgb: 242, 247, 244;
    --nz-ink-2: rgba(242, 247, 244, 0.72);
    --nz-ink-3: rgba(242, 247, 244, 0.5);
    --nz-line: rgba(255, 255, 255, 0.09);
    --nz-glass: rgba(12, 26, 20, 0.62);
    --nz-glass-strong: rgba(10, 22, 17, 0.94);
    --nz-green-soft: #76F1A0;
    --nz-green-text: #00c07f;
    --nz-soft-bg: rgba(255, 255, 255, 0.08);
    --nz-w: 255, 255, 255;
    --nz-k: 0, 0, 0;
    --nz-ka: 1;
    --nz-gs: 118, 241, 160;
    --nz-d: 2, 12, 8;
    --nz-amber: #f2c48d;
    --nz-amber-rgb: 242, 196, 141;
    --nz-amber-bg: #1b1810;
    --nz-tint: #0c2a1e;
    --nz-section-alt: #06150f;
    --nz-field: #0b1a14;
    --nz-field-hover: #0e2119;
    --nz-row-alt: #0d251b;
    --nz-sunk: #04100b;
    --nz-surface: #07130e;
    --nz-surface-2: #0b1c15;
    --nz-card: rgba(255, 255, 255, 0.035);
    --nz-glow: rgba(118, 241, 160, 0.14);
    --nz-shadow-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 6px 18px -6px rgba(255, 255, 255, 0.1);
    --nz-shadow-md: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 40px -18px rgba(255, 255, 255, 0.14);
    --nz-shadow-green: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px -6px rgba(0, 192, 127, 0.45);
    --nz-card-shadow: var(--nz-shadow-md);
}
/* Navbar: light glass; the logo swaps to the copy with dark lettering (same logo, the mark is untouched) */
.nz-logo-light { display: none !important; }
[data-theme="light"] .nz-nav__brand img:not(.nz-logo-light) { display: none; }
[data-theme="light"] .nz-nav__brand .nz-logo-light { display: block !important; }
[data-theme="light"] .nz-nav { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(11, 31, 23, 0.04), 0 14px 34px -14px rgba(16, 48, 34, 0.28); }
/* text color is inherited as a computed value, so each island sets it again (zero specificity: own colors win) */
:where([data-theme="light"]) :where(
    .nz-footer, .nz-drop__preview,
    .nz-why, .nz-belief, .nz-inc-sec, .nz-jy, .nz-sp-band, .nz-cta-box,
    .nz-pr__card--dark, .nz-way--featured, .nz-lb,
    .nz-stack__pane--system, .nz-orbit__core, .sv-hub__core, .sv-plat__core, .nz-sb__member, .sv-mob__card--dark
) { color: var(--nz-ink); }

/* ── 3. Components ── */
/* Green pill: the hover turns it white (dark text); the arrow disc stays black */
[data-theme="light"] .nz-cta__icon { background: var(--nz-ink-on-green); color: #76F1A0; }
@media (hover: hover) { [data-theme="light"] .nz-cta:not(.nz-cta--soft):hover,
[data-theme="light"] .nz-drop__talk:hover {
    background: #ffffff;
    color: var(--nz-ink-on-green);
    box-shadow: inset 0 0 0 1px rgba(0, 192, 127, 0.35), 0 12px 28px -10px rgba(0, 150, 98, 0.45);
}
[data-theme="light"] .nz-cta--soft:hover .nz-cta__icon { background: var(--nz-green); color: var(--nz-ink-on-green); } }

/* About · toolbox orbit: the same palette, a step deeper so rings and chips read on light;
   the "brand white" ring becomes brand ink */
[data-theme="light"] [data-ring="0"] { --ring: #10c983; }
[data-theme="light"] [data-ring="1"] { --ring: #4fc987; }
[data-theme="light"] [data-ring="2"] { --ring: #00a06a; }
[data-theme="light"] [data-ring="3"] { --ring: #3f7d6c; }
[data-theme="light"] [data-ring="4"] { --ring: #0b1f17; }
[data-theme="light"] .nz-orbit__rings ellipse { stroke-opacity: 0.45; filter: none; }
[data-theme="light"] .nz-orbit__rings ellipse.is-on { stroke-opacity: 0.95; }
@media (hover: hover) { [data-theme="light"] .nz-chip-tool[data-ring="4"]:is(.is-on, :hover) { color: #f2f7f4; } }

/* Service pages · systems hub: the active module's label sits on deep green */
[data-theme="light"] .sv-hub__node.is-on .sv-hub__name { color: #f2f7f4; }

