.language-selector{position:relative;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.4;letter-spacing:normal;text-transform:none}
.language-toggle{display:flex;align-items:center;gap:8px;min-height:44px;max-width:175px;padding:8px 10px;border:1px solid transparent;border-radius:24px;background:transparent;color:#fff;font:inherit;font-size:13px;cursor:pointer;transition:background .18s,color .18s}
.language-toggle:hover,.language-toggle[aria-expanded="true"]{background:rgba(255,255,255,.14)}
.language-toggle svg{flex-shrink:0}
.language-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.language-chevron{transition:transform .18s}
.language-toggle[aria-expanded="true"] .language-chevron{transform:rotate(180deg)}
nav.s .language-toggle{color:var(--ink)}
nav.s .language-toggle:hover,nav.s .language-toggle[aria-expanded="true"]{background:#f1f3f2}
.language-panel{position:absolute;top:calc(100% + 12px);right:0;width:340px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;max-height:min(570px,calc(100dvh - 100px));background:#fff;color:#182422;border:1px solid #e4e8e6;border-radius:18px;box-shadow:0 16px 48px #112c2424;overflow:hidden;text-align:left;isolation:isolate}
.language-panel[hidden],.language-selector [hidden]{display:none!important}
.language-panel-head{padding:20px 20px 14px}
.language-panel-head h2{margin:0 0 12px;font:500 15px/1.4 Inter,-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:0}
.language-search-label{display:block}
.language-search-label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.language-search{box-sizing:border-box;display:block;width:100%;min-height:44px;padding:10px 12px;border:1px solid #d8dfdb;border-radius:9px;background:#f8faf9;color:#182422;font:400 16px/1.4 Inter,-apple-system,BlinkMacSystemFont,sans-serif;outline-offset:2px}
.language-search::placeholder{color:#64736c}
.language-list{overflow-y:auto;overscroll-behavior:contain;padding:0 10px 12px;scrollbar-width:thin;min-height:0}
.language-group h3{margin:0;padding:15px 10px 7px;font:500 11px/1.4 Inter,-apple-system,BlinkMacSystemFont,sans-serif;color:#69786f;letter-spacing:.06em;text-transform:uppercase}
.language-option{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:54px;padding:8px 12px;border-radius:8px;color:#182422;text-decoration:none;line-height:1.5}
.language-option span{font-size:14px}
.language-option small{font-size:11px;color:#64736c}
.language-option:hover,.language-option:focus-visible{background:#f0f5f2}
.language-option[aria-current="true"]{background:#edf4ef}
.language-option[aria-current="true"] span::after{content:' ✓';color:#376446}
.language-selector :focus-visible{outline:2px solid #477657;outline-offset:2px}
.language-toggle:focus-visible{outline-color:currentColor}
.language-note{flex-shrink:0;margin:0;padding:12px 20px;border-top:1px solid #e7ebe8;background:#fafbf9;color:#64736c;font-size:11px;line-height:1.5}
.language-empty{padding:16px 20px 24px;margin:0;font-size:13px;color:#64736c}
@media(max-width:1050px) and (min-width:769px){.nmid{gap:1.1rem}.nright{gap:.5rem}}
@media(max-width:768px){.nright{gap:6px}.language-toggle{padding:8px;max-width:130px}.language-panel{position:fixed;top:76px;left:16px;right:16px;width:auto;max-width:none;max-height:calc(100dvh - 92px)}}
@media(max-width:380px){.language-current{max-width:56px}.language-toggle{gap:5px}.nright .ncta{padding:.6rem .85rem}nav .nav-i{padding:0 1rem}}
@media(prefers-reduced-motion:reduce){.language-toggle,.language-chevron{transition:none}}

/* Let translated copy wrap without changing the English art direction. */
html:not([lang="en"]) .hero h1{font-size:clamp(2.4rem,5.2vw,5.7rem);line-height:1.18;overflow-wrap:anywhere}
html:not([lang="en"]) .hero h1 .w{display:block;white-space:normal}
html:not([lang="en"]) .hsub{line-height:1.7}
html:not([lang="en"]) .nmid a{white-space:nowrap}
html[dir="rtl"] .nav-i{direction:ltr}
html[dir="rtl"] .nmid,html[dir="rtl"] .language-panel{direction:rtl}
html[dir="rtl"] .language-panel{text-align:right}
html[dir="rtl"] .language-option small{direction:ltr;text-align:right}
.language-load-error{position:fixed;top:76px;left:16px;right:16px;max-width:420px;margin-left:auto;padding:12px;background:white;border:1px solid #d8dfdb;border-radius:10px;color:#182422;font-size:13px}
@media(max-width:1100px){html:not([lang="en"]) .nmid{display:none}}
@media(max-width:600px){html:not([lang="en"]) .hero h1{font-size:clamp(2rem,8vw,3.1rem)}html:not([lang="en"]) .nright .ncta{max-width:115px;text-align:center;justify-content:center;line-height:1.3}}

html:not([lang="en"]) .p4-head-l{min-width:0;max-width:100%}
html:not([lang="en"]) h2,html:not([lang="en"]) h3{overflow-wrap:anywhere}
html:not([lang="en"]) .stitle{line-height:1.2}
@media(max-width:600px){html:not([lang="en"]) .nright .ncta{font-size:12px;white-space:nowrap;padding:.6rem .8rem;max-width:none}}

.language-toggle:disabled{opacity:.65;cursor:wait}
