/* A small rotating switch changes appearance with one click. */
.appearance-control[hidden]{display:none!important}
/* appearance.js marks <html> in the head, so the switch takes its place from the first paint
   instead of pushing the navigation sideways at DOMContentLoaded. Without scripting it stays hidden. */
html[data-appearance] .appearance-control[hidden]{display:grid!important}
.appearance-control{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--brand-muted);cursor:pointer;z-index:180;-webkit-tap-highlight-color:transparent}
.appearance-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;pointer-events:none;transform:rotate(0deg);transition:transform .45s cubic-bezier(.22,.61,.36,1)}
:root[data-theme="dark"] .appearance-icon{transform:rotate(180deg)}
.appearance-control:hover{background:var(--brand-wash);color:var(--brand-ink)}
.appearance-control:focus-visible{outline:2px solid var(--brand-focus);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.appearance-icon{transition:none}}
.site-header .nav{gap:18px}
@media(min-width:881px) and (max-width:1180px){.site-header .nav{gap:12px}}
@media(max-width:880px){.site-header .nav{gap:12px}.appearance-control{margin-left:auto}.nav-toggle{flex:none}}
@media(max-width:480px){.site-header .nav{gap:8px}.site-header .logo-nav .navlogo-img,.site-header.scrolled .logo-nav .navlogo-img{width:140px}}

/* Direct email remains available when scripting is unavailable. */
form[data-mail-form][hidden]{display:none!important}
