/* Language switcher: a <details class="app-menu"> with the current flag as trigger
   and one POST form per other language in the panel. */
.app-language-switcher {
    display: inline-flex;
    align-items: center;
}

.app-language-flag-button {
    display: inline-flex;
    min-width: 2.5rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    background: rgba(0, 0, 0, 0.3);
}

.app-language-flag-button:hover,
.app-language-flag-button:focus-visible,
.app-menu[open] > .app-language-flag-button {
    border-color: var(--app-gold);
    background: var(--app-gold-glow);
}

.app-language-flag-image {
    display: block;
    width: 1.35rem;
    height: 0.9rem;
    object-fit: cover;
    border-radius: 0.15rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.app-language-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--app-muted);
}

.app-language-switcher form {
    margin: 0;
}

.app-language-switcher .app-menu-item .app-language-flag-image {
    flex: 0 0 auto;
}
