/* Language controls only; production shared styles remain unchanged. */

.mw-header .mw-language-links { align-items:center; flex-shrink:0; gap:2px; font-size:12px; color:#555d56; white-space:nowrap; }
.mw-header .mw-language-links a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:10px 8px; }
@media(min-width:981px) { .mw-header .mw-actions > .mw-language-desktop { display:flex; } }
@media(max-width:980px) {
 .mw-header .mw-nav { column-gap:8px; }
 .mw-header .mw-actions { gap:4px; }
 .mw-header .mw-language-desktop { display:flex; font-size:16px; }
 .mw-header .mw-language-desktop a { padding:10px 4px; min-height:44px; }
 .mw-header .mw-language-mobile { display:none; }
 .mw-header .mw-menu { font-size:16px; max-height:calc(100vh - 76px); max-height:calc(100dvh - 76px); overflow-y:auto; overscroll-behavior:contain; padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* Keep full language labels and touch targets visible on narrow phones. */
@media(max-width:360px) { .mw-header .mw-header-logo { width:100px; } .mw-header .mw-nav { column-gap:4px; } .mw-header .mw-actions { gap:0; } }

/* Persistent header language controls; independent of the expandable menu. */
@media(max-width:980px) {
 .mw-header .mw-actions > .mw-language-desktop { display:flex; visibility:visible; opacity:1; position:static; width:auto; max-width:none; flex:0 0 auto; flex-wrap:nowrap; white-space:nowrap; transform:none; overflow:visible; }
 .mw-header .mw-actions { flex:0 0 auto; }
 .mw-header .mw-menu-toggle { flex:0 0 auto; }
}

/* Mobile language typography only; desktop rules remain unchanged. */
@media(max-width:980px) {
 .mw-header .mw-actions > .mw-language-desktop { font-size:14px; font-weight:400; gap:0; }
 .mw-header .mw-language-desktop > span[aria-hidden="true"] { margin-inline:7px; }
}
