/* Theme toggle (light / dark). Dark colours live in *.dark.css next to each stylesheet. */
html{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
.theme-toggle{order:3;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:44px;margin-left:-8px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--ink);transition:background-color var(--fast) var(--ease),color var(--fast) var(--ease)}
.theme-toggle .icon{width:21px;height:21px}
.theme-toggle:hover{background:rgba(139,24,42,.08);color:var(--crimson)}
.theme-toggle:focus-visible{outline:2px solid var(--crimson);outline-offset:2px}
.theme-sun{display:none}
html[data-theme="dark"] .theme-moon{display:none}
html[data-theme="dark"] .theme-sun{display:block}
html[data-theme="dark"] .theme-toggle:hover{background:rgba(255,255,255,.08)}
@media(max-width:980px){.theme-toggle{order:0;margin-left:auto;margin-right:2px}}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
.navbar>.brand{margin-right:auto}
