/* Language switcher — colours are inherited so the same markup works on the
   light navbar of the landing page and on the document layout header. */

.language_switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.language_switcher__select {
    padding: 7px 32px 7px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background-color: transparent;
    /* Chevron in a neutral grey so it stays legible on light and dark headers. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23888888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.language_switcher__select:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* The option list is drawn by the OS, so give it explicit colours instead of
   inheriting the header's. */
.language_switcher__select option {
    background-color: #ffffff;
    color: #1a2238;
}

.language_switcher__submit {
    padding: 7px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

/* JavaScript submits on change, so the fallback button is only for users
   without it. */
.language_switcher--js .language_switcher__submit {
    display: none;
}
