/* IOR segmented language selector.
 * Loaded after the shared brand overrides so it can stay compact on desktop
 * and remain easy to tap inside the mobile navigation panel.
 */
.language-toggle-group {
    align-items: center;
    background: #f4f7f2;
    border: 1px solid rgba(11, 40, 95, 0.14);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 3px;
    padding: 3px;
    white-space: nowrap;
}

.language-option {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #65748a;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 850;
    gap: 6px;
    justify-content: center;
    line-height: 1;
    min-height: 32px;
    min-width: 52px;
    padding: 0 9px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-option:hover {
    color: #246b3b;
    transform: translateY(-1px);
}

.language-option.is-active {
    background: #ffffff;
    border-color: rgba(201, 151, 35, 0.34);
    box-shadow: 0 4px 12px rgba(7, 28, 66, 0.1);
    color: #0b285f;
}

.language-option:focus-visible {
    outline: 3px solid rgba(201, 151, 35, 0.28);
    outline-offset: 2px;
}

.language-flag {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(7, 28, 66, 0.14);
    display: block;
    flex: 0 0 auto;
    height: 12px;
    object-fit: cover;
    width: 18px;
}

.language-code {
    letter-spacing: 0.02em;
}

@media (min-width: 1200px) {
    .site-header .language-toggle-group {
        margin: 0;
    }

    .site-header .language-option {
        font-size: 0.75rem;
        min-height: 32px;
        min-width: 50px;
        padding-inline: 8px;
    }
}

@media (max-width: 1199.98px) {
    .language-toggle-group {
        align-self: flex-start;
        margin-bottom: 4px;
    }

    .language-option {
        min-height: 38px;
        min-width: 62px;
        padding-inline: 12px;
    }
}
