/* Dark mode (added 2026-12-01). Light mode is unchanged. Toggle: /assets/theme.js */
html[data-theme="dark"]{
  color-scheme: dark;
  --ink:#ECEDE8; --ink-2:#C4C8CD; --ink-3:#979EA7;
  --paper:#0F1215; --white:#171B20; --line:#2A3038; --line-dk:#2A3038;
  --accent:#7CC6A1; --accent-2:#95D4B3; --accent-soft:#16241D;
  --gold:#D2B676; --gold-lt:#E2C88E; --gold-soft:#241F14;
  --forest:#0B1F17; --forest-2:#10291E;
  --on-dark:#EEF0EC; --on-dark-2:rgba(238,240,236,.72);
}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
/* bands and blocks that use the ink colour as a dark background stay dark */
html[data-theme="dark"] .dark,
html[data-theme="dark"] .calc-result,
html[data-theme="dark"] footer,
html[data-theme="dark"] #yt-banner,
html[data-theme="dark"] .pax-call,
html[data-theme="dark"] .mt-band,
html[data-theme="dark"] .mt-cover,
html[data-theme="dark"] .pop.pop-dark,
html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .ty-dl,
html[data-theme="dark"] .engage-card.gold,
html[data-theme="dark"] .vs-good,
html[data-theme="dark"] #skillstore .box{background:#08090B !important;color:var(--on-dark)}
html[data-theme="dark"] footer{border-top:1px solid var(--line)}
/* primary buttons: light button, dark text */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .mobile-cta-bar .btn-primary,
html[data-theme="dark"] .sbtn-dark,
html[data-theme="dark"] .nf-form button,
html[data-theme="dark"] .pop .nf-form button,
html[data-theme="dark"] .contact-form-card .hs-form .hs-button,
html[data-theme="dark"] .jump-panel .jump-foot a.go,
html[data-theme="dark"] .team-toggle button[aria-pressed="true"],
html[data-theme="dark"] .filter a[aria-pressed="true"],
html[data-theme="dark"] .tface.now{background:#ECEDE8 !important;color:#14171C !important;border-color:#ECEDE8 !important}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .sbtn-dark:hover,
html[data-theme="dark"] .nf-form button:hover{background:var(--accent) !important;color:#0F1215 !important}
html[data-theme="dark"] .btn-outline:hover,
html[data-theme="dark"] .sbtn-line:hover,
html[data-theme="dark"] .copy-btn:hover{background:#ECEDE8 !important;color:#14171C !important}
/* sticky header (was a light translucent bar) */
html[data-theme="dark"] .site-header{background:rgba(15,18,21,.94) !important;border-bottom-color:rgba(210,182,118,.25)}
html[data-theme="dark"] .jump-panel{background:var(--white);color:var(--ink)}
/* form fields */
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#11151A;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] ::placeholder{color:#7D848D}
html[data-theme="dark"] img:not([src$=".svg"]){filter:brightness(.92)}
/* the toggle itself */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;flex:none;padding:0}
.theme-toggle:hover{border-color:var(--gold)}
.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.theme-toggle svg{width:18px;height:18px}
.theme-toggle.floating{position:fixed;left:16px;bottom:16px;z-index:60;background:var(--white);box-shadow:0 6px 20px rgba(0,0,0,.18)}
html[data-theme="dark"] .theme-toggle .sun{display:block}html[data-theme="dark"] .theme-toggle .moon{display:none}
html:not([data-theme="dark"]) .theme-toggle .sun{display:none}html:not([data-theme="dark"]) .theme-toggle .moon{display:block}
/* hard-coded light boxes -> dark surface */
html[data-theme="dark"] .vs-card,
html[data-theme="dark"] .setup-card,
html[data-theme="dark"] .st.you,
html[data-theme="dark"] #skillstore .ss-head,
html[data-theme="dark"] #skillstore .shelf,
html[data-theme="dark"] .nf-form .nf-chip span,
html[data-theme="dark"] th{background:var(--white) !important;color:var(--ink)}
html[data-theme="dark"] .contact-form-card .hs-form select{background:#11151A !important;color:var(--ink)}
html[data-theme="dark"] .lf-error{background:#3a1717 !important;color:#ffd9d9}
/* white buttons keep dark text */
html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .dark .btn-primary{background:#ECEDE8 !important;color:#14171C !important}
html[data-theme="dark"] .dark .btn-outline:hover{background:#ECEDE8 !important;color:#14171C !important}
/* bright accent / gold buttons need dark text in dark mode */
html[data-theme="dark"] .btn-accent,
html[data-theme="dark"] .btn-accent:hover,
html[data-theme="dark"] .sbtn-gold,
html[data-theme="dark"] .sbtn-gold:hover,
html[data-theme="dark"] .btn-gold{color:#0F1215 !important}
html[data-theme="dark"] .vs-tag{color:#FF9C8F !important}
