/* Theme control stays at the right edge of the existing sticky header. */
.header-inner { gap: 20px; }
.consultation-button.header-cta { margin-left: 0; }
.theme-toggle {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #51452f;
  border-radius: 50%;
  color: var(--gold);
  background: transparent;
  touch-action: manipulation;
  transition: background .2s, border-color .2s;
}
.theme-toggle:hover { background: #e8c36212; border-color: var(--gold); }
.theme-toggle svg { width: 22px; height: 22px; flex: none; }
.theme-icon-moon, [data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* A warm light palette preserves the campaign's gold brand accents. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --panel-light: #f2eee6;
  --text: #242119;
  --muted: #655f53;
  --gold: #855d0b;
  --line: #dfd8c9;
}
[data-theme="light"] .site-header { background: #fbfaf7f2; border-bottom-color: #dfd8c9; }
[data-theme="light"] img[src="assets/ruah-logo.svg"] { filter: brightness(.67); }
[data-theme="light"] .desktop-nav { color: #514b40; }
[data-theme="light"] .theme-toggle,
[data-theme="light"] .menu-toggle { border-color: #b9a780; }
[data-theme="light"] .mobile-menu { background: #fbfaf7; border-bottom-color: var(--line); }
[data-theme="light"] .gold-text {
  background: linear-gradient(105deg, #8c610e, #76500b 70%);
  background-clip: text;
  -webkit-background-clip: text;
}
[data-theme="light"] .muted,
[data-theme="light"] .hero-description,
[data-theme="light"] .microcopy,
[data-theme="light"] .brand-with-caption .eyebrow,
[data-theme="light"] .breadcrumb,
[data-theme="light"] .alert-date { color: var(--muted); }
[data-theme="light"] .breadcrumb > span:last-child { color: #454032; }
[data-theme="light"] .alert-label { color: #805a12; }
[data-theme="light"] .alert-date { border-left-color: #cfbf99; }
[data-theme="light"] .brand-divider { background: #d7cbb3; }
[data-theme="light"] .sf-flow { color: #855d0b; }
[data-theme="light"] .visual-topline { color: #6d6047; border-bottom-color: #dfd4bd; }
[data-theme="light"] .visual-caption {
  background: linear-gradient(110deg, #f2e7cc, #f7f1e3);
  border-color: #d8c59a;
}
[data-theme="light"] .visual-caption strong { color: #51432a; }
[data-theme="light"] .visual-caption > span,
[data-theme="light"] .illustration-note,
[data-theme="light"] .animation-toggle { color: #6e5c36; }
[data-theme="light"] .button-outline { border-color: #9d8d6e; }
[data-theme="light"] .button-light { background: #efe5ce; border-color: #c8b482; color: #302614; }
[data-theme="light"] .advisory-card { background: linear-gradient(135deg, #f6edd9, #fffdf8); border-color: #d7c59a; }
[data-theme="light"] .advisory-number,
[data-theme="light"] .step-number { color: #7f5e20; }
[data-theme="light"] .cve-list > a { background: #f0e5ca; border-color: #d2bd8a; color: #6e5018; }
[data-theme="light"] .text-link { color: #79540d; }
[data-theme="light"] .version-details { background: #f4f0e6; border-color: #dfd3b9; }
[data-theme="light"] .version-details summary { color: #4d4430; }
[data-theme="light"] .reviewed-date { color: var(--muted); }
[data-theme="light"] .details-toggle:before,
[data-theme="light"] .details-toggle:after { background: #806229; }
[data-theme="light"] .offers-section { background: #f2efe8; border-block-color: #e5ddce; }
[data-theme="light"] .offer-card { background: #fffdfa; border-color: #ded5c3; }
[data-theme="light"] .paid-card {
  background: radial-gradient(ellipse at 100% 0, #e8c36224, transparent 65%), #fffaf0;
  border-color: #b99345;
  box-shadow: 0 0 40px #b78d2e0c;
}
[data-theme="light"] .price { color: #5b503b; }
[data-theme="light"] .paid-card .price strong { color: #79540d; }
[data-theme="light"] .price > span,
[data-theme="light"] .offer-small,
[data-theme="light"] .features li,
[data-theme="light"] .offer-caveat,
[data-theme="light"] .scope-note,
[data-theme="light"] .comparison-scroll-hint { color: var(--muted); }
[data-theme="light"] .offer-divider { background: var(--line); }
[data-theme="light"] .feature-title,
[data-theme="light"] .offer-caveat strong { color: #4f4021; }
[data-theme="light"] .features li:before { border-color: #876418; }
[data-theme="light"] .consultation-strip { border-top-color: var(--line); }
[data-theme="light"] .comparison-scroll { background: #fffdfa; border-color: #ded5c3; }
[data-theme="light"] .comparison-table th,
[data-theme="light"] .comparison-table td { border-bottom-color: #e3dbc9; }
[data-theme="light"] .comparison-table th { color: #4f4021; }
[data-theme="light"] .comparison-table thead th { color: #765215; background: #efe6d3; }
[data-theme="light"] .comparison-table td { color: var(--muted); }
[data-theme="light"] .comparison-table a { color: #79540d; }
[data-theme="light"] .comparison-table a:hover { color: #442f05; }
[data-theme="light"] .process-grid article { background: linear-gradient(145deg, #f6eedb, #fffdfa 72%); border-color: #d7c59b; border-top-color: #b58e42; }
[data-theme="light"] .process-number { color: #805c16; text-shadow: none; }
[data-theme="light"] .process-label { color: #75603a; border-top-color: #c3ac7c; }
[data-theme="light"] .faq-section,
[data-theme="light"] .faq-list details,
[data-theme="light"] .footer-bottom { border-color: var(--line); }
[data-theme="light"] .faq-list summary { color: #413a2d; }
[data-theme="light"] .footer-partner .eyebrow,
[data-theme="light"] .footer-links,
[data-theme="light"] .footer-bottom { color: var(--muted); }
[data-theme="light"] .mobile-audit-bar { background: #fbfaf7f5; border-top-color: #c5ae7a; }
[data-theme="light"] .skip-link { color: #fff; }

@media (max-width: 1199px) {
  .header-inner { gap: 12px; }
  .consultation-button.header-cta { margin-left: auto; }
}
@media (max-width: 599px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 10px; }
  .consultation-button.header-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
}
