/* The EN | ES switch in every page's header. Shared by the home page and the project pages, which
   both define the colour tokens used here. Its markup comes from <site-language-switch> in
   /assets/js/site-components.js; the switching itself lives in /assets/js/i18n.js. */

/* The custom element only carries the markup; the .language-switch inside it is what lays out. */
site-language-switch {
    display: contents;
}

.language-switch {
    display: flex;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}

.language-switch button {
    background: transparent;
    border: 0;
    color: var(--text-color);
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switch button:hover {
    color: var(--accent-green);
}

.language-switch button[aria-pressed="true"] {
    background: var(--accent-green-transparent);
    color: var(--accent-green);
}

.language-switch button:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: -2px;
}
