/* Sovereign Tech Services - light theme + toggle (shared with /connect, key: eb6-theme) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin-right: 1.1rem; padding: 0;
  background: none; border: 1px solid rgba(201,168,76,0.35); border-radius: 50%;
  color: var(--gold-light); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: rgba(201,168,76,0.12); border-color: var(--gold); }
.theme-toggle:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (max-width: 600px) { .theme-toggle { margin-right: 0.6rem; width: 1.8rem; height: 1.8rem; } }

/* Light palette */
html[data-theme="light"] {
  --bg:#f7f5fb; --bg-mid:#f1eef8; --bg-surface:#ffffff; --bg-card:#ffffff;
  --white:#15122e; --text-bright:#15122e; --text-mid:#2a2648; --text-soft:#4a4470; --text-muted:#5f5890;
  --sky-bright:#2d2660; --sky-pale:#2d2660; --sky-mist:#4a42a0; --sky-bright:#2d2660;
  --indigo-light:#4a42a0;
  --gold:#8a6c1c; --gold-light:#7d6216; --gold-pale:#5e4810;
  --divider:#ddd8ee;
  color-scheme: light;
}
html[data-theme="light"] body { background:#f7f5fb; }
html[data-theme="light"] ::selection { color:#fff; background:#7d6216; }

/* Nav */
html[data-theme="light"] nav { background:rgba(255,255,255,0.9); box-shadow:0 1px 24px rgba(74,66,160,0.08); border-bottom-color:rgba(138,108,28,0.25); }
html[data-theme="light"] .nav-dropdown-menu { background:#fff; border-color:#e3d6ae; box-shadow:0 12px 32px rgba(21,18,46,0.12); }
html[data-theme="light"] .nav-dropdown-menu a { border-bottom-color:#eeeaf6; }
html[data-theme="light"] .nav-dropdown-menu a:hover { background:#fbf7ea; }
html[data-theme="light"] .theme-toggle { border-color:rgba(125,98,22,0.45); }

/* Hero */
html[data-theme="light"] .hero { background:linear-gradient(175deg,#efebf9 0%,#f7f5fb 45%,#f4efe2 100%); }
html[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(122,114,200,0.22) 0%, rgba(122,114,200,0.08) 30%, transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(201,168,76,0.25) 0%, rgba(201,168,76,0.08) 40%, transparent 65%);
}
html[data-theme="light"] .hero-fade { background:linear-gradient(to bottom, transparent 0%, rgba(247,245,251,0.6) 40%, rgba(247,245,251,0.92) 75%, #f7f5fb 100%); }

/* Surfaces */
html[data-theme="light"] .pain-item,
html[data-theme="light"] .card,
html[data-theme="light"] .principle,
html[data-theme="light"] .typebot-wrap { background:#fff; border-color:#e3d6ae; box-shadow:0 2px 12px rgba(21,18,46,0.04); }
html[data-theme="light"] .pain-item { border-left-color:#c9a84c; }
html[data-theme="light"] .card:hover,
html[data-theme="light"] .principle:hover { background:#fffdf6; border-color:#c9a84c; box-shadow:0 8px 28px rgba(74,66,160,0.12); }
html[data-theme="light"] .tag { background:rgba(74,66,160,0.08); border-color:rgba(74,66,160,0.2); }
html[data-theme="light"] .social-link:hover { background:#fbf7ea; }
html[data-theme="light"] .cta-btn.ghost { border-color:rgba(74,66,160,0.35); }
html[data-theme="light"] .cta-btn.ghost:hover { background:rgba(74,66,160,0.08); }

/* Gold-filled hovers need light text */
html[data-theme="light"] .cta-btn:not(.ghost):hover,
html[data-theme="light"] .nav-cta:hover,
html[data-theme="light"] .hero-path-link:hover,
html[data-theme="light"] .btn:hover { color:#fff !important; }

/* Inline-styled dark panels */
html[data-theme="light"] [style*="background:rgba(30,28,58"],
html[data-theme="light"] [style*="background:rgba(20,18,45"] { background:#fff !important; border-color:#e3d6ae !important; }
html[data-theme="light"] [style*="background:rgba(74,66,160,0.18)"] { background:rgba(74,66,160,0.08) !important; }
