/************************************************************************************

    ██╗      █████╗ ███╗   ██╗ ██████╗ ██╗   ██╗ █████╗  ██████╗ ███████╗███████╗
    ██║     ██╔══██╗████╗  ██║██╔════╝ ██║   ██║██╔══██╗██╔════╝ ██╔════╝██╔════╝
    ██║     ███████║██╔██╗ ██║██║  ███╗██║   ██║███████║██║  ███╗█████╗  ███████╗
    ██║     ██╔══██║██║╚██╗██║██║   ██║██║   ██║██╔══██║██║   ██║██╔══╝  ╚════██║
    ███████╗██║  ██║██║ ╚████║╚██████╔╝╚██████╔╝██║  ██║╚██████╔╝███████╗███████║
    ╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚══════╝

 ************************************************************************************/



    /*
        Figma reference — B2C 1920px artboards.

            label ...... Hauora 16px / weight 700 / uppercase
            colour ..... inherited from .main-header

        The artboard draws the current language with a chevron and the rest
        in a panel opened on click. The shop asked for the other way round —
        the current language hidden and the other one shown as a plain link —
        so the chevron, the panel and the script that opened it are all gone.
        What is left is the artboard's type, on a link instead of a button.
    */

    /*
        inline-flex, so the control is only as wide as the labels it shows.

        As a block level flex container it stretched to whatever was around
        it, which the header never showed — there it is a flex item, and a
        flex item is blockified, so inline-flex and flex compute the same.
        The mobile drawer did show it: standing alone in a column, the box
        ran the width of the drawer with the label at the far left.

        The gap is for a third language. With two there is one link and
        nothing to separate.
    */

    .language-switcher {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

        /*
            Two classes, because one would lose.

            theme.typography.css loads after this file and carries
            `.responsiville a { color: var(--nvm-color-text-link) }` — one
            class and one element. A lone `.language-switcher-link` is one
            class and nothing else, so the link came out the theme's link
            blue on the white header and on the dark front page scrim alike.

            `color: inherit` is what the control wants in any case: the
            header sets white over the hero and ink everywhere else, and the
            label follows whichever it is.
        */

        .language-switcher .language-switcher-link {
            display: block;
            margin: 0;
            padding: 0;
            border: none;
            box-shadow: none;
            background: none;
            color: inherit;
            font-family: var(--nvm-font-sans-serif);
            font-size: 16px;
            font-weight: 700;
            line-height: 1.366;
            text-transform: uppercase;
            text-decoration: none;
            cursor: pointer;
            transition: opacity 0.2s ease-in-out;
        }

        /*
            Hover fades rather than recolours.

            The label takes the header's colour, and the header is white text
            on a photograph on the front page. responsiville.moressette.css
            would otherwise hand a hovered link its own colour and background,
            which on an inner page turned the label near-white on a white bar
            and lost it altogether.

            Focus is a different matter — it has to stay visible for anyone on
            a keyboard — so it gets an outline rather than a fade.
        */

        .language-switcher .language-switcher-link:hover {
            background: none;
            color: inherit;
            opacity: 0.6;
        }

        .language-switcher .language-switcher-link:focus-visible {
            outline: 2px solid currentColor;
            outline-offset: 4px;
            opacity: 1;
        }



    /* Inside the mobile drawer the switcher sits on a white ground, so it
       always uses the ink colour regardless of the header variant. */

    .mobile-menu .language-switcher {
        color: var(--nvm-color-ink);
    }
