/* Shared light/dark toggle (used on every page). */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;background:var(--subtle,rgba(127,160,190,.08));color:var(--fg,inherit);border:1px solid var(--border,rgba(127,160,190,.3));border-radius:6px;padding:.55rem .85rem;min-height:44px;font:600 .75rem/1 "Manrope",sans-serif;white-space:nowrap;cursor:pointer;transition:background-color .2s}
.theme-toggle:hover{background:var(--surface-2,rgba(127,160,190,.16))}
.theme-toggle:active{transform:translateY(1px)}
.theme-toggle:focus-visible{outline:2px solid var(--primary,#a4d5f2);outline-offset:2px}
.theme-icon{width:15px;height:15px;border:1.5px solid currentColor;border-radius:50%;display:block;box-shadow:0 -5px 0 -4px currentColor,0 5px 0 -4px currentColor,5px 0 0 -4px currentColor,-5px 0 0 -4px currentColor}
[data-theme="light"] .theme-icon{border:0;box-shadow:inset -4px -2px currentColor;transform:rotate(-25deg)}
@media (max-width:720px){.theme-toggle .theme-label{display:none}.theme-toggle{width:44px;padding:0}}

/* Icon-only toggle: sun in dark mode (switch to light), moon in light mode. */
.theme-toggle{width:44px;height:44px;min-height:44px;padding:0!important;gap:0}
.theme-toggle .theme-label{display:none}
.theme-toggle .theme-icon{width:18px;height:18px;border:0!important;box-shadow:none!important;transform:none!important;border-radius:0;display:block;line-height:0}
.theme-toggle .theme-icon .theme-sun{display:block}
.theme-toggle .theme-icon .theme-moon{display:none}
[data-theme="light"] .theme-toggle .theme-icon .theme-sun{display:none}
[data-theme="light"] .theme-toggle .theme-icon .theme-moon{display:block}
