/* Locale controls use the approved white field, black border and gold arrow. */
.language-bar .languages[data-locale-selector]{position:relative;letter-spacing:0}
.language-bar .languages .locale-options{display:flex;align-items:center;justify-content:flex-end;gap:0;padding:0;border:0;background:none;text-shadow:none}
.language-bar .languages .locale-options a{padding:5px 9px;white-space:nowrap;color:var(--paper);font-size:13px;line-height:24px;text-decoration:none;text-shadow:0 1px 2px rgb(0 0 0 / 55%)}
.language-bar .languages .locale-options a[aria-current="true"],.language-bar .languages .locale-options a:hover{text-decoration:underline;text-underline-offset:5px;color:var(--paper)}
.language-bar .languages .locale-options a:focus-visible{outline:2px solid var(--paper);outline-offset:-2px}
.language-bar .languages .locale-toggle{display:none}
html[lang="zh-CN"] body{font-family:Söhne,"Noto Sans CJK SC","PingFang SC","Microsoft YaHei",sans-serif}
html[lang="zh-CN"] h1,html[lang="zh-CN"] h2,html[lang="zh-CN"] h3{font-family:"Tiempos Fine","Songti SC","Noto Serif CJK SC",serif}
html[lang="de"] .project-section h3,
html[lang="de"] .service-group h2,
html[lang="de"] .industry-context h2{overflow-wrap:anywhere;hyphens:auto}
@media(max-width:720px){
  .language-bar .languages[data-locale-selector]{min-height:46px;width:calc(100% - 44px);justify-content:flex-end}
  html[data-i18n-ready] .language-bar .languages .locale-toggle{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;width:170px;min-height:36px;padding:6px 12px;border:1px solid var(--ink);background:var(--paper);color:var(--ink);font-size:14px;line-height:22px;text-shadow:none;text-align:left}
  .language-bar .languages .locale-toggle svg{flex:none;color:var(--gold)}
  .language-bar .languages .locale-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:-4px}
  html[data-i18n-ready] .language-bar .languages .locale-options{position:absolute;z-index:40;top:calc(100% - 6px);right:0;width:170px;display:none;align-items:stretch;flex-direction:column;max-height:244px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--ink);background:var(--paper)}
  html[data-i18n-ready] .language-bar .languages[data-open] .locale-options{display:flex}
  .language-bar .languages .locale-options a{display:block;padding:8px 12px;color:var(--ink);font-size:14px;line-height:24px;text-shadow:none;text-align:left}
  .language-bar .languages .locale-options a[aria-current="true"],.language-bar .languages .locale-options a:hover{color:var(--ink);background:var(--gold-soft);text-decoration:none}
  .language-bar .languages .locale-options a:focus-visible{outline:2px solid var(--blue);outline-offset:-4px}
}

/* Long localized headings must reflow even at the 320 CSS px reading width. */
main :is(h1,h2,h3,h4) { overflow-wrap:anywhere; }
html[lang="de"] main :is(h1,h2,h3,h4) { hyphens:auto; }
@media(max-width:720px) {
  html[data-i18n-ready] .language-bar .languages .locale-toggle { min-height:44px; }
  .language-bar .languages .locale-options a { min-height:44px; }
}
