/* Shared theme controls. The two palette files are the single source of colors. */
.theme-toggle {display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:44px;min-height:44px;padding:10px 12px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface);color:var(--color-brand-orange);font:inherit;line-height:1.4;cursor:pointer;box-sizing:border-box}
.theme-toggle svg {width:22px;height:22px;flex:0 0 22px}
.theme-toggle .theme-sun {display:none}
html[data-theme="dark"] .theme-toggle .theme-sun {display:block}
html[data-theme="dark"] .theme-toggle .theme-moon {display:none}
.theme-toggle:hover {background:var(--color-surface-elevated)}
.theme-toggle:focus-visible {outline:3px solid var(--color-focus);outline-offset:3px}
.theme-desktop .theme-toggle-label {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.theme-control-desktop {display:flex!important;align-items:center;justify-content:center}
.mobile-theme-control {margin-top:16px;padding-top:16px;border-top:1px solid var(--color-border)}
.mobile-theme-control .theme-toggle {width:100%;justify-content:flex-start}
html.theme-switching,html.theme-switching :is(body,.nav-container,.nav-standard,.footer-main-standard,.footer-main-standard-after,.mobile-drawer,.contact-map-card,.contact-location,.theme-toggle) {transition:background-color .18s ease,color .18s ease,border-color .18s ease}
@media(prefers-reduced-motion:reduce){html.theme-switching,html.theme-switching * {transition:none!important}}
html.theme-switching .mobile-drawer {transition:transform .25s ease,visibility .25s,background-color .18s ease,color .18s ease,border-color .18s ease}
@media(prefers-reduced-motion:reduce){html.theme-switching .mobile-drawer{transition:none!important}}

/* One language control shared by the desktop navigation and mobile drawer. */
.language-control-desktop{display:flex!important;align-items:center;padding:0 6px}
.language-switch{display:inline-flex;align-items:center;border:1px solid var(--color-border);border-radius:6px;overflow:hidden;background:var(--color-surface);color:var(--color-brand-orange);flex-shrink:0}
.language-switch button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:0;background:transparent;color:inherit;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.language-switch button[aria-pressed="true"]{background:var(--color-surface-elevated);text-decoration:underline;text-underline-offset:4px}
.language-switch button:hover{background:var(--color-surface-elevated)}
.language-switch button:focus-visible{outline:2px solid var(--color-focus);outline-offset:-3px}
.mobile-language-control{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--color-border)}
.language-switch-label{font-size:16px}
