/* YEJapan brand message v1.1.1: appearance ONLY, never changes language routing. */
html body header .yej-language-switch {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    line-height: 1.2;
    white-space: nowrap;
}
html body header .yej-language-switch > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 7px;
    border-radius: 5px;
    text-decoration: none;
}
html body header .yej-language-switch > a[aria-current="page"] {
    background-color: #e9f1f5;
    color: #004e69 !important;
    box-shadow: inset 0 -2px 0 #004e69;
}
html body header .yej-language-switch > a:focus-visible {
    outline: 2px solid #004e69;
    outline-offset: 2px;
}
@media (max-width: 780px) {
    html body header .yej-language-switch { gap: 9px; }
    html body header .yej-language-switch > a {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 9px;
    }
    /* Only the four target heroes can need wrapping after the revised text. */
    body.page-id-1869 .yej-hero h1,
    body.page-id-1798 .yej-hero h1 {
        max-width: 100%;
        overflow-wrap: normal;
        line-height: 1.2;
    }
}
@media (max-width: 480px) {
    body.page-id-1869 .yej-hero h1 { font-size: clamp(27px, 8.2vw, 37px) !important; }
    body.page-id-1798 .yej-hero h1 { font-size: clamp(29px, 7.5vw, 36px) !important; overflow-wrap: anywhere; }
    body.page-id-1587 .yej-subhero h1 { overflow-wrap: anywhere; }
    body.page-id-1807 .yej-subhero h1 { overflow-wrap: anywhere; }
}
