/* Progressive enhancement: native links and :target notices also work without JavaScript. */
html.language-notice-open,
html.language-notice-open body {
    overflow: hidden;
}
/* Older browsers without native dialog support must not show an empty notice. */
#language-switch-notice:not([open]) {
    display: none;
}
header#menu button.selected-language {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}
header#menu .selected-language:focus-visible,
header#menu .language-option:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
header#menu .language-selector:focus-within .language-dropdown,
header#menu .language-selector.is-open .language-dropdown {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-switcher-ready header#menu .language-dropdown {
    display: none;
}
.language-switcher-ready header#menu .language-selector.is-open .language-dropdown {
    display: flex;
}
header#menu .language-dropdown {
    flex-direction: column;
    max-height: min(75vh, 600px);
    overflow-y: auto;
}
header#menu .language-option:focus-visible {
    outline-color: #6b5129;
    outline-offset: -3px;
}
.language-notice {
    box-sizing: border-box;
    width: min(32rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 2rem;
    border: 1px solid #d9c7a8;
    border-radius: 18px;
    background: #fffdf8;
    color: #231d12;
    box-shadow: 0 12px 48px #0003;
    text-align: start;
    font-family: Manrope, "Segoe UI", sans-serif;
}
.language-notice::backdrop {
    background: rgb(25 21 12 / 60%);
}
.language-notice h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}
.language-notice p {
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
.language-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.language-notice__actions a,
.language-notice__actions button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #765b30;
    border-radius: 8px;
    background: transparent;
    color: #4c3718;
    font: inherit;
    font-size: .95rem;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.language-notice__actions a:last-child {
    background: #765b30;
    color: #fff;
}
.language-notice__actions a:hover,
.language-notice__actions button:hover {
    text-decoration: underline;
}
.language-notice__actions :focus-visible {
    outline: 3px solid #295875;
    outline-offset: 3px;
}
.language-fallback {
    display: none;
}
.language-fallback:target {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 50000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 100vmax rgb(25 21 12 / 60%);
}
@media (max-width: 480px) {
    .language-notice {
        padding: 1.25rem;
    }
    .language-notice__actions {
        flex-direction: column;
    }
}
@media (prefers-reduced-motion: reduce) {
    header#menu .language-dropdown {
        transition: none;
    }
}

