header {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 200;
}


/*
MOBILE
*/
#header-mobile > a {
    grid-column: 1/3;
    height: fit-content;
}
#header-mobile > nav {grid-column: 4/-1;}

#header_m-pages {height: 38px;}
#header_m-pages,
#header_m-pages button {width: 100%;}
#header_m-pages-trigger .p-absolute {
    top: .55rem;
    right: .75rem;
}
#header_m-pages li:last-of-type a {border-bottom-left-radius: .3rem;}

#header_m-langs,
#header_m-langs a {width: fit-content;}


/* 
DESKTOP
*/
@media only screen and (min-width: 1024px) {
    #header-desktop {display: grid !important;}
    
    #header_d-pages1 {grid-column: 1/6;}
    #header-desktop > a {grid-column: 6/-6;}
    #header_d-pages2 {grid-column: -6/-1;}

    .header_d-nav-top a {
        min-width: fit-content;
        width: calc(100% / 3.5);
        height: fit-content;
    }

    #header_d-pages1 nav {width: 100%;}
    #header_d-pages1 nav a {
        min-width: fit-content;
        width: calc(100% / 6);
    }

    #header-desktop > a img {
        width: 50%;
        height: auto;
        margin: 0 auto;
    }

    #header_d-pages2 > * {justify-content: end;}
    #header_d-pages2 > a {
        margin-left: auto;
        width: fit-content;
    }
}
@media (hover: hover) {
    #header-desktop nav a:hover {background-color: var(--c-orange);}
}