.locale-control{display:flex;align-items:center}.locale-control select{width:130px;padding:9px 8px;background:#232730;color:#d6e7ee;border:1px solid #424b58;border-radius:7px;font:500 11px Inter,Arial,sans-serif;cursor:pointer}.locale-control select:focus-visible{outline:2px solid #a9f0fc;outline-offset:3px}.locale-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.locale-noscript{display:flex;flex-wrap:wrap;gap:15px;padding:15px 30px;background:#232730}.locale-noscript a{font-size:12px;color:#a9f0fc}.header-inner{gap:22px}.header nav{gap:20px}.header-actions{gap:10px}@media(max-width:1250px){.header-actions .button.small{display:none}.header-inner{gap:16px}.header nav{gap:14px}.locale-control select{width:110px}}@media(max-width:850px) and (min-width:701px){.header-inner{gap:10px}.header .brand{font-size:21px}.header .browse-menu button{padding:10px 12px}.header nav{gap:10px}.header nav a{font-size:12px}.locale-control select{width:85px}.header-actions{gap:6px;margin-left:0}}@media(max-width:700px){.header-inner{gap:10px}.locale-control select{width:125px;font-size:11px}.header-actions{flex-wrap:wrap}.header nav.open{gap:18px}}
/* Compact closed value; full language names remain in the native selector. */
.locale-control{position:relative;flex-shrink:0;width:62px;height:36px}.locale-control select{width:100%;height:100%;padding:0}.locale-control[data-code]::after{content:attr(data-code) " ▾";position:absolute;inset:1px;display:flex;align-items:center;justify-content:center;background:#232730;border-radius:6px;color:#d6e7ee;font:600 11px Inter,Arial,sans-serif;pointer-events:none}.header-inner{flex-wrap:nowrap}.header-actions{flex-wrap:nowrap;flex-shrink:0}.header nav a{white-space:nowrap}
@media(max-width:1050px){.header nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;padding:20px;background:#22252f;border-bottom:1px solid var(--line);flex-wrap:wrap}.header nav.open{display:flex}.mobile-toggle{display:block}.header-actions .button.small{display:none}}
@media(max-width:700px){.header-inner{height:72px;min-height:72px;padding-block:0;gap:8px;flex-wrap:nowrap}.header-inner>.brand{font-size:20px;margin:0;flex-shrink:0}.header .browse-menu{order:0;flex-basis:auto}.header .browse-menu button{width:34px;height:34px;padding:6px;font-size:0;gap:0;line-height:0}.header .browse-menu button .ti-layout-grid{font-size:18px}.header .browse-menu button .ti-chevron-down{display:none}.header-actions{order:0;margin-left:auto;gap:6px;flex-wrap:nowrap}.locale-control{width:50px;height:34px}.locale-control select{width:100%;font-size:11px}.header-actions .icon-button{height:34px;min-width:32px;padding:5px 7px;font-size:12px}.header-actions .mobile-toggle{font-size:16px;padding:4px 7px}.header nav{top:100%}}
@media(max-width:420px){.header-inner{gap:6px}.header-inner>.brand{font-size:17px}.header-actions{gap:4px}.locale-control{width:47px}.header .browse-menu button{width:32px}.header-actions .icon-button{padding:5px;min-width:30px}}
/* Match the language control to the rounded favorites button. */
.locale-control{height:40px}.locale-control select{border-radius:999px;background:transparent;border-color:var(--line)}.locale-control[data-code]::after{border-radius:999px;background:var(--bg,#191b23)}
@media(max-width:700px){.locale-control{height:34px}}
.header-actions #saved-open{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:999px}@media(max-width:700px){.header-actions #saved-open{height:34px}}
/* Native language popup follows the site's dark palette. */
.locale-control select{color-scheme:dark;background-color:#191b23;color:#d6e7ee}.locale-control select option{background-color:#232730;color:#e9edf5}.locale-control select option:checked{background-color:#354852;color:#b0f0fc}

/* Keep the language switch compact: no surrounding pill on any viewport. */
.locale-control{width:44px;height:40px}
.locale-control select{border:0;border-radius:0;background:transparent;color:transparent;box-shadow:none;appearance:none;-webkit-appearance:none}
.locale-control[data-code]::after{inset:0;background:transparent;border-radius:0;color:#d6e7ee}
@media(max-width:700px){.header .browse-menu{display:none}.locale-control{width:40px;height:34px}}
