@font-face {
    font-family: "Noto Sans Thai Looped";
    src: url("fonts/NotoSansThaiLooped.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
.eiiman-language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .25rem;
    font-family: system-ui, "Noto Sans Thai Looped", Tahoma, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}
.eiiman-language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .35rem .75rem;
    border: 1px solid transparent;
    border-radius: .375rem;
    color: #fff;
    text-decoration: none;
}
.eiiman-language-switcher a[aria-current="true"] {
    background: #fff;
    color: #203260;
    font-weight: 700;
}
.eiiman-language-switcher a:hover { text-decoration: underline; }
.eiiman-language-switcher a:focus-visible { outline: 3px solid #ffcc33; outline-offset: 3px; }
/* The parent theme hides the switcher's entire column below 992px. */
.top-bar .wp-block-columns > .wp-block-column:has(.eiiman-language-switcher) {
    display: block;
    min-width: 150px;
}
html:lang(th) body,
html:lang(th) :is(h1,h2,h3,h4,h5,h6,p,a,li,label,input,select,textarea,button,th,td) {
    font-family: "Noto Sans Thai Looped", Tahoma, system-ui, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    word-break: normal;
    overflow-wrap: break-word;
}
html:lang(th) :is(p,li,label,td,input,select,textarea) { line-height: 1.75; }
html:lang(th) :is(h1,h2,h3,h4,h5,h6,.wp-block-button__link,.wp-block-navigation-item__content) {
    line-height: 1.5 !important;
}
html:lang(th) .wp-block-button__link { white-space: normal; height: auto; }
html:lang(th) .wp-block-table { overflow-x: auto; }
@media (max-width: 991px) {
    .top-bar .wp-block-columns > .wp-block-column:has(.eiiman-language-switcher) {
        grid-column: 1 / -1;
        width: 100%;
    }
}
.eiiman-language-notice {
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid #203260;
    background: #f1f5f9;
    color: #203260;
    line-height: 1.75;
}
.eiiman-language-notice a { color: inherit; text-decoration: underline; }

.eiiman-language-switcher a:lang(th) {
    font-family: "Noto Sans Thai Looped", Tahoma, sans-serif;
}

html:lang(ms) :is(h1,h2,h3,h4,h5,h6,p,a,li,td,button) { overflow-wrap: break-word; }
html:lang(ms) .wp-block-table { overflow-x: auto; }
html:lang(ms) .wp-block-button__link { white-space: normal; height: auto; }

html:lang(es) :is(h1,h2,h3,h4,h5,h6,p,a,li,td,button) { overflow-wrap: break-word; }
html:lang(es) .wp-block-table { overflow-x: auto; }
html:lang(es) .wp-block-button__link { white-space: normal; height: auto; }
