/* Additional locales. Existing English/Arabic copy and layout rules stay intact. */
.site-language-options {
    max-block-size: min(440px, calc(100dvh - 112px));
    max-inline-size: calc(100vw - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.site-language-picker .site-language-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid #d6d7dc;
    border-radius: 50%;
    box-sizing: border-box;
    background: #f4f5f8;
    color: #343846;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    direction: ltr;
    unicode-bidi: isolate;
}
.fixed-site-header .site-language-trigger .site-language-code {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    font-size: 8px !important;
}
/* Native names remain legible even in the Arabic interface's font overrides. */
html body .site-language-picker .site-language-name[lang="ja"] {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif !important;
}
html body .site-language-picker .site-language-name[lang="zh-Hans"] {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif !important;
}
html body .site-language-picker .site-language-name[lang="ko"] {
    font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif !important;
}
html[lang="ja"] { --ns-local-font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif; }
html[lang="zh-Hans"] { --ns-local-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
html[lang="ko"] { --ns-local-font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }
html:is([lang="ja"], [lang="zh-Hans"], [lang="ko"]) body,
html:is([lang="ja"], [lang="zh-Hans"], [lang="ko"]) body :is(h1,h2,h3,h4,h5,h6,p,a,button,input,textarea,select,label,summary,li,dt,dd,figcaption,span) {
    font-family: var(--ns-local-font);
    letter-spacing: normal;
}
html:is([lang="ja"], [lang="zh-Hans"], [lang="ko"]) :is(p,li,dd,figcaption) { line-height: 1.85; }
html:is([lang="ja"], [lang="zh-Hans"]) :is(h1,h2,h3,h4) { line-break: strict; overflow-wrap: anywhere; }
html[lang="ko"] :is(h1,h2,h3,h4,p,li) { word-break: keep-all; overflow-wrap: anywhere; }
/* Keep the deliberately English-only legal document's typography and direction. */
html:is([lang="ja"], [lang="zh-Hans"], [lang="ko"]) .legal-main[lang="en"],
html:is([lang="ja"], [lang="zh-Hans"], [lang="ko"]) .legal-main[lang="en"] * {
    font-family: "Noto Sans", sans-serif;
}
html:not([lang="en"]):not([lang="ar"]) :is(.v6-card-title, .v6-capability-title, .service-menu-title) {
    overflow-wrap: anywhere;
    hyphens: auto;
}
@media (max-width: 1023px) {
    .header-mobile-language .site-language-trigger .site-language-code {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 10px !important;
    }
}
/* Longer native navigation labels must not push search onto a second row. */
@media (min-width: 1024px) {
    html:not([lang="en"]):not([lang="ar"]) .fixed-site-header .header-logo {
        flex: 0 1 250px;
        min-width: 140px;
    }
    html:not([lang="en"]):not([lang="ar"]) .fixed-site-header .header-nav {
        flex: 0 0 auto;
        min-width: 0;
        margin-inline-start: auto;
    }
    html:not([lang="en"]):not([lang="ar"]) .fixed-site-header #primary-navigation {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        white-space: nowrap;
    }
    html:not([lang="en"]):not([lang="ar"]) .fixed-site-header #primary-navigation > li {
        flex: 0 0 auto;
    }
}
@media (min-width: 1024px) and (max-width: 1399px) {
    html:not([lang="en"]):not([lang="ar"]) .fixed-site-header .site-language-trigger > .site-language-name {
        display: none;
    }
}
@media (min-width: 1024px) and (max-width: 1199px) {
    html:not([lang="en"]):not([lang="ar"]) .fixed-site-header :is(.nav-wrap,.nav-menu-toggle) {
        font-size: 14px;
        letter-spacing: 0;
    }
    html:not([lang="en"]):not([lang="ar"]) .fixed-site-header #primary-navigation > .nav-list-item > .nav-link {
        padding-inline: 6px;
    }
    html:not([lang="en"]):not([lang="ar"]) .fixed-site-header .nav-project-link {
        padding-inline: 10px;
    }
}
