.language-control{display:flex;align-items:center;flex-shrink:0;gap:5px;margin-inline-start:8px}
.language-control svg{width:17px;height:17px;flex-shrink:0;opacity:.7}
.language-control select{width:100px;min-height:34px;border:0;border-radius:5px;background:transparent;color:inherit;font:inherit;font-size:12px;padding:4px 18px 4px 4px;cursor:pointer}
.language-control select:focus-visible{outline:2px solid var(--accent,#4a83c8);outline-offset:2px}
.language-control option{background:var(--bg,#f5f3ef);color:var(--text,#1e293b)}
.i18n-source{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;padding:20px;font-size:11px;color:var(--text-muted,#737c89)}
.i18n-source a{color:inherit;text-decoration:underline;text-underline-offset:2px}
html[dir=rtl] .site-header,html[dir=rtl] #app{text-align:start}
html[dir=rtl] input[name*=tag],html[dir=rtl] [data-army-profile-input],html[dir=rtl] pre,html[dir=rtl] code{direction:ltr;text-align:start}
html[dir=rtl] .home-feature-copy,html[dir=rtl] .home-directory-group{text-align:start}
html[dir=rtl] .home-feature-action i{display:inline-block;transform:scaleX(-1)}
html[dir=rtl] .entity-meta,html[dir=rtl] .ab-unit-count,html[dir=rtl] .number,html[dir=rtl] .base-layout-card img{unicode-bidi:plaintext}
@media(min-width:761px){
  html[dir=rtl] body.home-route .home-product-hero-art img{left:0;right:auto}
  html[dir=rtl] body.home-route .home-product-hero-scrim{background:linear-gradient(270deg,#09111d 2%,rgba(9,17,29,.97) 27%,rgba(9,17,29,.65) 56%,rgba(9,17,29,.1) 100%)}
}
@media(max-width:900px){.language-control{margin-inline-start:0}.language-control select{width:85px;font-size:11px}.language-control svg{width:15px}}
@media(max-width:430px){.language-control{gap:2px}.language-control select{width:73px;padding-inline-end:8px}.site-header{column-gap:8px}.i18n-source{padding:16px}}
html[data-theme] .site-header{grid-template-columns:auto minmax(0,1fr) auto auto auto}
html[data-theme] body.home-route .site-header{grid-template-columns:auto minmax(0,1fr) auto auto auto}
.site-header .brand{order:0}.site-header .home-shortcuts{order:1}.site-header .header-nav{order:1}.site-header .nav-toggle{order:2}.site-header .language-control{order:3}.site-header .theme-toggle{order:4}.site-header .mobile-search-button{order:5}.site-header .header-nav.is-open{order:6}
body.home-route .language-control{color:var(--home-ink)}
@media(max-width:980px){html[data-theme] body.home-route .site-header{grid-template-columns:minmax(0,1fr) auto auto auto}}
@media(max-width:720px){html[data-theme] .site-header{grid-template-columns:minmax(0,1fr) auto auto auto auto}html[data-theme] body.home-route .site-header{grid-template-columns:minmax(0,1fr) auto auto auto}.brand{min-width:0}.brand>span:last-child{overflow:hidden;text-overflow:ellipsis}.site-header .language-control{margin:0}}

.language-control .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
html[data-theme] body.army-builder-route .site-header{grid-template-columns:auto minmax(0,1fr) auto auto}
@media(max-width:1120px){html[data-theme] body.army-builder-route .site-header{grid-template-columns:minmax(0,1fr) auto auto auto}}

/* Wrap shared navigation within its column, including translated labels. */
html[data-theme] .header-nav{flex-wrap:wrap;row-gap:4px}
html[data-theme] .brand-shield{flex-shrink:0}
html[data-theme] .header-nav.is-open a{white-space:normal;overflow-wrap:anywhere}
html[data-theme] body.home-route .header-nav.is-open{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;padding:8px 0 4px;border-top:1px solid var(--home-line)}
html[data-theme] body.home-route .header-nav.is-open a{min-height:44px;padding:12px;font-size:12px;text-align:center}
@media(max-width:400px){html[data-theme] body.home-route .header-nav.is-open{grid-template-columns:repeat(2,minmax(0,1fr))}}
