/* ============ THEME SWITCH (KB #2385, 2026-10-24) ============
   Dark (brand) is the default and needs nothing. html[data-theme="light"] re-maps the navy band
   tokens to paper so the page reads light; paper sections already are. Chosen in the nav, kept per
   device in localStorage "av-theme", resolved by the head script before first paint. */

html[data-theme="light"] {
  color-scheme: light;
  --color-body: #ffffff;
  --color-card: #f4f6fb;
  --color-card-hover: #e9eef7;
  --color-text: #0d1117;
  --color-text-heading: #0d1117;
  --color-text-muted: #4b5563;
  --color-border: rgba(0, 82, 204, 0.18);
  --color-input-bg: #ffffff;
  --color-input-border: rgba(0, 82, 204, 0.3);
  --ink-soft: #4b5563;
  --ink-blue: #0052cc;
  --deep: #e9eef7;
}
html[data-theme="light"] .band-grid { background-image: radial-gradient(rgba(0, 82, 204, 0.12) 1px, transparent 1px); }
html[data-theme="light"] .nav--scrolled { background: rgba(255, 255, 255, 0.96); }
html[data-theme="light"] .nav-logo-brand,
html[data-theme="light"] .footer-logo { filter: invert(1); }
html[data-theme="light"] .nav-cta:hover { color: #fff; }
html[data-theme="light"] .seal text { fill: var(--paper-muted); }
html[data-theme="light"] .form-message.error { color: #9b1c1c; }
html[data-theme="light"] .form-message.success { color: #0d7a35; }

/* the switch */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 12px;
  border: 1px solid var(--color-border); background: transparent; color: var(--color-text); cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.theme-toggle:hover { border-color: var(--color-accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .sun { display: block; }
html[data-theme="light"] .theme-toggle .moon { display: none; }
.nav-right { display: flex; align-items: center; }
