/* The approved header control. Page typography and content layout are unchanged. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-width:91px;height:36px;padding:0 11px;border:1px solid var(--nav-border,#666);border-radius:10px;background:transparent;color:var(--nav-text,#fff);font:650 12px/1 Inter,ui-sans-serif,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.theme-toggle:hover{background:var(--nav-hover,#242424);border-color:var(--nav-muted,#b9b9b9)}
.theme-toggle:focus-visible{outline:2px solid var(--nav-accent,#ff8249);outline-offset:4px}
.theme-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-moon{display:none}
html[data-theme="diehard"] .theme-toggle .theme-sun{display:none}
html[data-theme="diehard"] .theme-toggle .theme-moon{display:block}
@media(max-width:1180px){.nav-links,.nav-actions{display:none}.nav{gap:12px}.theme-toggle{margin-left:auto}.menu-toggle{display:flex;margin-left:0;flex:0 0 auto}}
@media(max-width:520px){.theme-toggle{min-width:70px;padding:0 9px}.theme-toggle svg{display:none!important}.nav{gap:10px}}
@media(max-width:360px){.nav{gap:8px}.theme-toggle{min-width:64px;padding:0 6px}.menu-toggle{width:36px}}

/* Meet the existing mobile touch-target requirement. */
.theme-toggle[hidden]{display:none}
@media(max-width:768px){.theme-toggle{height:44px}}
