/* Reader-side machine translation control (header + footer) */

.lang-switch {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    gap: 8px;
}

.header-lang-col {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    min-height: 96px;
}

.lang-switch-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0878BD;
    white-space: nowrap;
}

.lang-switch-select {
    font-family: inherit;
    font-size: 12px;
    line-height: 1.2;
    color: #444444;
    background: #ffffff;
    border: 1px solid #E3E6EA;
    border-radius: 2px;
    padding: 5px 6px;
    max-width: 160px;
    height: 30px;
    cursor: pointer;
}

.lang-switch-select:hover {
    border-color: #0878BD;
}

.lang-switch-select:focus {
    outline: 2px solid #0878BD;
    outline-offset: 1px;
}

.footer-lang {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 15px 14px;
}

.footer-lang .lang-switch-label {
    color: #5B6470;
    font-weight: 600;
}

.footer-lang-note {
    font-size: 11px;
    color: #5B6470;
}

.article-lang {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin: 22px 0 8px;
    padding-top: 14px;
    border-top: 1px solid #E3E6EA;
}

.article-lang .lang-switch {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

@media (max-width: 1199px) {
    .header-lang-col {
        display: none;
    }
}
