/* CFA L1 Hub — shared theme toggle button + base dark-mode rules.
 * Page-specific dark-mode overrides live in each page's own <style> block. */

.theme-toggle {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 90;
  background: #fff;
  border: 1px solid #c8d3b6;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  user-select: none;
}
.theme-toggle:hover { background: #f0f7e3; border-color: #76a839; }
.theme-toggle:active { transform: scale(0.97); }

@media (max-width: 480px) {
  .theme-toggle { top: 8px; right: 8px; padding: 5px 9px; font-size: 12px; }
}

html[data-theme="dark"] .theme-toggle {
  background: #161e10;
  color: #e4ead6;
  border-color: #2c3a1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .theme-toggle:hover { background: #1f2a14; border-color: #5f8a2c; }
