.msls-language{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 12px;font:14px/1.4 system-ui,sans-serif;color:#17334b;max-width:100%;min-width:0}
.msls-language select{font:inherit;min-height:44px;max-width:100%;padding:8px 24px 8px 10px;border:1px solid #708498;border-radius:6px;background:#fff;color:#17334b}
.msls-language select:focus-visible{outline:3px solid #2458b9;outline-offset:2px}
.msls-language small{flex-basis:100%;max-width:42ch;font-size:12px;color:#394f62}
.msls-language [hidden]{display:none}
.msls-language-bar{background:#f2f6fa;padding:2px 12px}
html:is([lang=es],[lang=pt-BR],[lang=fr-CA],[lang=de]) button{white-space:normal;overflow-wrap:break-word}
@media(max-width:700px){.msls-language{flex-basis:100%;margin:8px 0}.msls-language small{max-width:100%}}
html:is([lang=es],[lang=pt-BR],[lang=fr-CA],[lang=de]) .neon-summary{flex-shrink:0;height:auto;min-height:max-content}

/* Language row cannot squeeze the existing navigation. */
header:has(> .msls-language){flex-wrap:wrap!important;height:auto!important}
.msls-language{flex:0 0 100%;margin:4px 0;justify-content:flex-end}
.msls-language>span,.msls-language small{display:none}
.msls-language .language-dropdown{min-width:0}
.msls-language summary{box-sizing:border-box;min-height:44px;padding:6px 10px}
@media(max-width:700px){.msls-language{margin:0;flex:0 0 100%}.msls-language summary{font-size:13px}.msls-language .language-options{max-width:calc(100vw - 32px)}}
.msls-language details.language-dropdown{margin:0;padding:0;border:0}
.msls-language details.language-dropdown>summary{margin:0}
@media(max-width:800px){
 .halo-header:has(>.msls-language){display:grid!important;grid-template-columns:1fr auto;gap:6px!important;padding:8px 12px!important}
 .halo-header>.msls-language{grid-column:2;grid-row:1;justify-self:end;margin:0}
 .halo-header>div:not(.msls-language){grid-column:1;grid-row:1;min-width:0}
 .halo-header>button{margin:0!important;min-width:0}
}

.msls-language .language-options small:not([hidden]){display:block;max-width:24ch;padding:8px;font-size:12px;white-space:normal}
@media(max-width:800px){
 body>header:has(>.brand):has(>.msls-language){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:8px 16px!important;align-items:center}
 body>header>.brand{grid-column:1;grid-row:1;min-width:0;flex-shrink:0}
 body>header>.msls-language{grid-column:2;grid-row:1;margin:0;justify-self:end}
 body>header:has(>.msls-language)>nav{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;min-width:0}
 body>header:has(>.msls-language)>.badge{display:none}
}

/* Translated home navigation is longer than the English one: its links wrap instead of pushing the language menu off-screen. */
@media(min-width:801px){html:is([lang=es],[lang=pt-BR],[lang=fr-CA],[lang=de]) body.home-refresh>header>nav{flex:1 1 0;min-width:0;flex-wrap:wrap;row-gap:8px}html:is([lang=es],[lang=pt-BR],[lang=fr-CA],[lang=de]) body.home-refresh>header>nav>*{white-space:nowrap}}
