.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 3px;
    border: 1px solid #ffffff35;
    border-radius: 999px;
    flex-shrink: 0;
    margin-left: 16px;
    font-family: inherit;
    align-self: center;
}
.language-switch button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #aaa;
    font: 500 10px/1 inherit;
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 6px 8px;
    border-radius: 999px;
    cursor: pointer;
}
.language-switch button[aria-pressed='true'] {
    background: #eee;
    color: #111;
}
.language-switch button:focus-visible {
    outline: 2px solid #aaa;
    outline-offset: 3px;
}
.language-switch-standalone {
    position: fixed;
    right: 24px;
    top: 20px;
    z-index: 1500;
    background: #171717;
    border-color: #555;
}
.navbar {
    gap: 12px;
}
.navbar .nav-links {
    margin-left: auto;
}
.navbar .language-switch {
    margin-left: 0;
}
@media (max-width: 780px) {
    .navbar {
        gap: 10px;
    }
    .navbar .language-switch {
        margin-left: auto;
    }
    .navbar .navbar-logo {
        width: 135px;
    }
    .language-switch button {
        padding: 6px 7px;
    }
    .language-switch-standalone {
        right: 14px;
        top: 12px;
    }
    .menu-button {
        flex-shrink: 0;
    }
}
html[lang='en'] .niche-heading h2 {
    font-size: clamp(38px, 4.6vw, 65px);
}
html[lang='en'] .niche-heading p {
    line-height: 1.75;
}

/* Desktop: an independent language slot at the right edge. */
@media (min-width: 781px) {
    .navbar .language-switch {
        margin-left: clamp(32px, 4vw, 64px);
    }
}
