#header-mobile {
    display: none;
}

#header-tablet {
    display: none;
}

/* ———————————————— */
#header-desktop {
    position: sticky;
    top: 0;
    grid-column: 1/-1;
    margin: 0 -1rem;
    padding: 1rem;
    background-color: white;
    z-index: 10;
}

body.dark #header-desktop {
    background-color: black;
}

#header-desktop:hover a {
    color: gray !important;
}

#header-desktop a:hover {
    color: black !important;
}

body.dark #header-desktop a {
    color: white;
}

body.dark #header-desktop a:hover {
    color: white !important;
}

/* TITLE */
.header-desktop__title {
    grid-column: 1/-4;
}

/* SEARCH */
.header-desktop__search {
    grid-column: -4/-2;
}

/* LANGUAGES */
.header-desktop__languages {
    display: flex;
    justify-content: flex-end;
    grid-column: -2/-1;
    white-space: pre-wrap;
}

.header-desktop__languages * {
    color: gray !important;
}



/*
TABLET
*/
@media only screen and (max-width: 1024px) {
    #header-desktop {
        display: none;
    }

    #header-tablet {
        display: grid;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        grid-column: 1/-1;
        padding: 1rem 0;
        background-color: white;
        z-index: 10;
    }
        
    body.dark #header-tablet {
        background-color: black;
    }

    body.dark #header-tablet a {
        color: white;
    }

    .header-tablet__title {
        grid-column: 1/5;
    }

    .header-tablet--pages {
        grid-column: 5/-1;
    }

    .header-tablet--pages > ul {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .header-tablet--languages {
        display: flex;
    }

    .header-tablet--languages * {
        color: gray !important;
        white-space: pre-wrap;
    }
}




/*
MOBILE
*/
@media only screen and (max-width: 620px) {
    #header-tablet {
        display: none;
    }

    #header-mobile {
        display: grid;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        grid-column: 1/-1;
        padding: 1rem 0;
        height: 5rem;
        overflow: hidden;
        background-color: white;
        z-index: 10;
        transition: height 300ms ease-in-out;
    }
        
    body.dark #header-mobile {
        background-color: black;
    }
    
    body.dark #header-mobile a {
        color: white;
    }

    .header-mobile__title {
        grid-column: 1/5;
    }

    .header-mobile__top > div {
        grid-column: 5/-1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #header-mobile__menu {
        padding-bottom: 1rem;
    }

    #header-mobile__menu a {
        margin-top: .25rem;
    }

    .header-mobile--pages {
        margin: 4rem 0;
    }

    .header-mobile--languages {
        display: flex;
        margin-top: 4rem;
    }
    
    .header-mobile--languages * {
        color: gray !important;
        white-space: pre-wrap;
    }

    .header-mobile--info > div {
        grid-column: span 3;
    }

    .header-mobile--info address {
        margin-bottom: 1rem;
    }
}