/* Header language switcher: a small segmented pill, active language in Pastel Leaf. */
.dg-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #DCEFD0;
    border-radius: 999px;
    background: #FFFFFF;
    font-family: Montserrat, sans-serif;
    line-height: 1;
    white-space: nowrap;
}
.dg-lang__item,
.dg-lang__item:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    color: #1F3D14;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.dg-lang__item:hover,
.dg-lang__item:focus-visible {
    background: #EEF7E8;
    color: #14210F;
}
.dg-lang__item.is-active {
    background: #A9DC87;
    color: #14210F;
    pointer-events: none;
}

/* Tablet and phone (burger menu): only the other language, as one compact pill. */
@media (max-width: 1024px) {
    .dg-lang {
        padding: 0;
        border: 0;
        background: transparent;
    }
    .dg-lang__item.is-active {
        display: none;
    }
    .dg-lang__item {
        min-width: 38px;
        min-height: 32px;
        border: 1px solid #DCEFD0;
        background: #FFFFFF;
    }
}

/* WPML's own flag list in the footer is replaced by this switcher. */
.wpml-ls-statics-footer {
    display: none !important;
}
