/* Theme toggle: the original dark look is the default; [data-theme=light] is the alternate. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;padding:0;margin-left:1rem;background:transparent;border:1px solid var(--line,#243040);border-radius:50%;color:var(--muted,#8b9aab);cursor:pointer;vertical-align:middle;-webkit-tap-highlight-color:transparent;flex:none}
.theme-toggle:hover,.theme-toggle:focus-visible{color:var(--copper,#c4843a);border-color:var(--copper,#c4843a)}
.theme-toggle svg{width:18px;height:18px;display:block}
.theme-toggle .sun{display:none}
html[data-theme=light] .theme-toggle .sun{display:block}
html[data-theme=light] .theme-toggle .moon{display:none}
.links .theme-toggle{margin-left:0}
#site-header .bar .theme-toggle{margin-left:auto;margin-right:0}
#site-header .bar nav + .theme-toggle{margin-left:1rem}
.theme-toggle.floating{position:fixed;right:14px;bottom:14px;z-index:50;margin:0;background:var(--bg,#07090d)}
@media (max-width:800px){#site-header .bar .theme-toggle{margin-right:.6rem}}

html[data-theme=light]{color-scheme:light;
  --bg:#f5f1ea;--surface:#ffffff;--raised:#ece5d9;--card:#ffffff;--field:#ece5d9;
  --fg:#161b22;--muted:#4f5a68;--copper:#a5631c;--line:#d6cbb8}
html[data-theme=light] body{background:var(--bg);color:var(--fg)}
html[data-theme=light] header,html[data-theme=light] header.nav,html[data-theme=light] #site-header{background:rgba(245,241,234,.94)!important}
html[data-theme=light] #site-header .drawer{background:var(--bg)}
html[data-theme=light] h1,html[data-theme=light] h2,html[data-theme=light] h3{color:var(--fg)}
html[data-theme=light] .pcb{opacity:.55}
html[data-theme=light] .traces{opacity:.22}
html[data-theme=light] nav a.cta,html[data-theme=light] .links a.cta,html[data-theme=light] .btn{color:#fff}
html[data-theme=light] .burger span{background:var(--fg)}
html[data-theme=light] .btn.ghost{color:var(--fg);border-color:var(--muted)}
html[data-theme=light] .dock .btn.ghost{color:#f4efe4}
