/* Language controls and readable English at iPhone widths. */
.language-switch{display:inline-flex;gap:2px;align-items:center;flex-shrink:0;border:1px solid #738697;border-radius:12px;padding:3px;background:#fff;color:#173344;max-width:100%;}
.language-switch button{font:600 13px/1.2 system-ui,sans-serif;min-height:44px;min-width:72px;padding:9px 12px;border:0;border-radius:9px;color:#173344;background:transparent;white-space:nowrap;cursor:pointer;}
.language-switch button[aria-pressed="true"]{background:#173344;color:#fff;}
.language-switch button:focus-visible{outline:3px solid #368fe1;outline-offset:1px;}
html[lang="en"] body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;}
html[lang="en"] h1,html[lang="en"] h2,html[lang="en"] h3{letter-spacing:normal;overflow-wrap:break-word;}
html[lang="en"] button,html[lang="en"] label,html[lang="en"] .chip{overflow-wrap:break-word;}
html[lang="en"] .topbar{flex-wrap:wrap;}
html[lang="en"] .topbar .page-switch{max-width:100%;}
html[lang="en"] .appbar h1{letter-spacing:normal;}
html[lang="en"] .pwToolbar button{white-space:normal;}
@media(max-width:760px){
 .language-switch{margin-left:auto;}
 html[lang="en"] .dock strong{font-size:13px;}
 html[lang="en"] .dock small{font-size:11px;}
 html[lang="en"] .dock>button{max-width:48%;white-space:normal;}
 html[lang="en"] .sidebar nav button{font-size:11px;line-height:1.2;min-width:0;white-space:normal;}
 html[lang="en"] .sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr));}
 html[lang="en"] .pwBottom button{min-width:0;white-space:normal;}
 html[lang="en"] .appbar{flex-wrap:wrap;}
 html[lang="en"] .tabs button{white-space:normal;min-width:0;}
}
@media print{.language-switch{display:none!important;}}

.appbar-inner,.topbar-inner{flex-wrap:wrap;}
@media(max-width:800px){.appbar-inner{gap:8px;padding-block:10px;}.appbar-inner .language-switch{margin-left:0;}.appbar-inner .header-project{max-width:100%;}}

@media(max-width:800px){
 .appbar-inner .brand{order:1;flex:1;min-width:0;}
 .appbar-inner .brand h1 small{font-size:11px;letter-spacing:0;white-space:normal;}
 .appbar-inner .language-switch{order:2;margin-left:auto;}
 .appbar-inner .header-actions{order:3;flex-basis:100%;flex-direction:row;gap:8px;justify-content:flex-end;}
 .appbar-inner .header-actions .manual-link{font-size:12px;min-height:36px;}
}

@media(max-width:760px){
 .topbar>.page-switch{grid-column:1;min-width:0;}
 .topbar>.page-switch .page-switch-link{font-size:12px;padding:8px 10px;white-space:normal;line-height:1.3;}
 .topbar>.language-switch{grid-column:2;grid-row:3;justify-self:end;margin:0;}
}
