/* Eight visible language buttons inside the upper-right corner of biography. */
.maintext .language-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .4rem;
    margin: 0 0 1.15rem;
    padding: 0;
    line-height: 1.3;
    text-align: right;
}
.maintext .language-switcher *, .maintext .language-switcher *::before,
.maintext .language-switcher *::after { box-sizing: border-box; }
.maintext .language-switcher .language-button {
    display: inline-block;
    flex: 0 0 auto;
    padding: .42rem .68rem;
    border: 1px solid #c9cfd9;
    border-radius: .45rem;
    background: #f6f8fb;
    color: #243548;
    font-family: inherit;
    font-size: .83rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.maintext .language-switcher .language-button:hover {
    background: #e9eff7;
    border-color: #8598b2;
    color: #183a5f;
}
.maintext .language-switcher .language-button[aria-current="page"] {
    background: #254c77;
    border-color: #254c77;
    color: #fff;
    font-weight: 700;
    cursor: default;
}
.maintext .language-switcher .language-button:focus-visible {
    outline: 3px solid #1475c8;
    outline-offset: 2px;
}
.maintext .nowrap { white-space: nowrap; }
@media (max-width: 520px) {
    .maintext .language-switcher { gap: .34rem; margin-bottom: 1rem; }
    .maintext .language-switcher .language-button { padding: .39rem .55rem; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
    .maintext .language-switcher .language-button { transition: none; }
}
.maintext .language-switcher {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    gap: .4rem;
    margin: 0 0 1.15rem;
}