﻿/* Shared header controls: independent of country-specific page styles. */
.site-topbar-inner > .law-theme-toggle{order:1;margin-left:auto}
.site-topbar-inner > .market-switcher{order:2;position:relative;top:auto;right:auto;flex:none}
.law-theme-toggle,.market-switcher-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #ffffff40;border-radius:12px;background:#ffffff0d;color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;flex-shrink:0}
.law-theme-toggle:hover,.market-switcher-button:hover,.market-switcher-button[aria-expanded=true]{background:#ffffff21;border-color:#ffffff70}
.law-theme-icon{width:18px;height:18px;flex:none}
.market-switcher{position:fixed;top:10px;right:16px;z-index:2200;font-family:var(--site-font-family),sans-serif}
.market-switcher-button{height:44px;min-width:0;backdrop-filter:none}
.market-switcher-button-label{display:inline-flex;align-items:center;gap:8px;font-size:12px}
.market-switcher .market-switcher-flag-svg{width:20px;height:20px;object-fit:cover;border-radius:50%;flex:none}
.market-switcher-current-language{font-weight:500;opacity:.8;padding-left:8px;border-left:1px solid #ffffff40}
.market-switcher-chevron{font-size:16px;line-height:1;opacity:.8}
.market-switcher-menu{position:absolute;top:calc(100% + 10px);right:0;box-sizing:border-box;width:min(304px,calc(100vw - 24px));max-height:min(640px,70dvh);overflow:auto;overscroll-behavior:contain;padding:12px;border:1px solid #dbe3ed;border-radius:16px;background:#fff;color:#16324f;box-shadow:0 16px 48px #0f172a26;scrollbar-gutter:stable}
.market-switcher-menu[hidden],.market-switcher-languages[hidden]{display:none!important}
.market-switcher-title{padding:6px 10px 12px;font-size:13px;line-height:1.5;font-weight:800;letter-spacing:0;color:#536880;text-transform:none}
.market-switcher-country-group + .market-switcher-country-group{margin-top:4px}
.market-switcher-country{width:100%;min-height:44px;display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:0;border-radius:10px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.market-switcher-country:hover,.market-switcher-country[aria-expanded=true]{background:#edf4fc}
.market-switcher-country-chevron{font-size:12px;color:#61738a}
.market-switcher-languages{display:grid;gap:4px;margin:4px 0 8px 20px;padding-left:10px;border-left:2px solid #dbe3ed}
.market-switcher-option,.market-switcher-languages .market-switcher-option{width:100%;min-height:44px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:13px;cursor:pointer}
.market-switcher-option:hover{background:#edf4fc}
.market-switcher-option.is-active{background:#e4effc;color:#174d8b}
.market-switcher-name{font-size:13px;line-height:1.5;font-weight:600}
.market-switcher-check{color:inherit;font-weight:800}
.law-theme-toggle:focus-visible,.market-switcher button:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
html[data-law-theme=dark] .market-switcher-menu{background:#192b39;border-color:#395262;color:#edf4fa;box-shadow:0 16px 48px #0006}
html[data-law-theme=dark] .market-switcher-title,html[data-law-theme=dark] .market-switcher-country-chevron{color:#b4c6d4}
html[data-law-theme=dark] .market-switcher-country:hover,html[data-law-theme=dark] .market-switcher-country[aria-expanded=true],html[data-law-theme=dark] .market-switcher-option:hover{background:#253b4c}
html[data-law-theme=dark] .market-switcher-option.is-active{background:#244965;color:#d9edff}
html[data-law-theme=dark] .market-switcher-languages{border-color:#395262}
@media(max-width:600px){.law-theme-toggle{width:44px;padding:0}.law-theme-label,.market-switcher-current-language{display:none}.market-switcher-button{padding:0 10px;gap:6px}.market-switcher-button-label{gap:6px}.site-topbar-inner{gap:6px}.site-topbar-brand{font-size:16px!important}.market-switcher-menu{max-height:65dvh}}
