/**
 * Make it work...
 */
 
[data-h-summary] {
    text-align: left;
}
@media screen and (max-width: 1214px) {
    [data-h-region] {
        transform: translateX(100%);
        
        position: absolute;
        top: 0px;
        right: 0px;
        width: 100%;
        background-color: white;
    }
    /* Open state
     * ********************************/
    .header[data-is-open="true"] {
        position: fixed;
        bottom: 0;
        /*overflow-x: hidden;*/
        /*overflow-y: scroll;*/
        overflow: hidden;
    }
    /*.header[data-is-open="false"] > .header__mainmenu,*/
    /*.header[data-is-open="false"] > .header__baselinesurheader,*/
    /*.header[data-is-open="false"] > .header__cta {*/
    /*    display: none;*/
    /*}*/
    .header[data-is-open="false"] > .scroll-container {
        display: none;
    }
    .header[data-is-open="true"] > .header__logoburger {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1;
    }
    
    
    
    .header:not([data-current-depth="0"]) #header__cta,
    .header:not([data-current-depth="0"]) .header__baselinesurheader {
        transform: translateX(-100%);
    }
    
    
    /* transitions */
    .header {
        --transition-duration: 0.3s;
        --transition-delay: var(--transition-duration);
        --transition-timing-function: ease;
    }
    /*.header__mainmenu,*/
    /*#header__cta,*/
    /*.header__baselinesurheader {*/
    /*    transition: transform var(--transition-duration) var(--transition-timing-function) 0s;*/
    /*}*/
    /*.header:not([data-current-depth="0"]) .header__mainmenu,*/
    /*.header:not([data-current-depth="0"]) #header__cta,*/
    /*.header:not([data-current-depth="0"]) .header__baselinesurheader {*/
    /*    transition: transform var(--transition-duration) var(--transition-timing-function) 0s;*/
    /*}*/
    /*[data-h-summary][data-direction="forth"][aria-expanded="true"] + [data-h-region] {*/
    /*    transition: none;*/
    /*}*/
    
    ul.active > [data-h-accordion]:not(.active) {
        /*height: var(--header--menu-items--height);*/
        height: 0px;
        overflow: hidden;
    }
    [data-h-accordion]:not(.active) > [data-h-region] {
        display: none;
    }
}
@keyframes delay-overflow {
  from { overflow: visible; }
}
@media screen and (min-width: 1215px) {
    [data-h-region][data-depth="1"] {
        display: none; /* when nav inactive */
        flex-flow: row nowrap;
    }
    
    [data-h-accordion]:hover [data-h-region="main"] { /* alternate name for [data-h-accordion]:hover [data-h-region][data-depth="1"] */
        display: grid;
    }
    
    [data-h-region="main"] {
        display: none;
        
        position: absolute;
        inset: var(--header--height) 0 auto 0;
        background-color: white;
        padding-left: var(--global-block-padding);
        
        grid-template-columns: 4fr 3fr auto;
        grid-column-gap: 20px;
    }
    
    /* target specific case where there is not a second "<ul />" in the main region */
    [data-h-region="main"] > .main-region__ul--primary:nth-child(2):nth-last-child(3) {
        grid-column: span 2;
    }
    
    /* target specific case where there is a second "<ul />"" in the main region, but no card */
    [data-h-region="main"] > .main-region__ul:nth-child(3):nth-last-child(2) {
        margin-right: var(--global-block-padding);
    }
    
    [data-h-region="main"] > .main-region__ul--primary {
        columns: auto 180px;
        column-gap: 20px;
    }
    [data-h-region="main"] > .main-region__ul--primary > li {
        break-inside: avoid;
    }
    
    .m-only {
        display: none;
    }
}
 
 
 
 
 
 
 
/**
 * ...Then, make it pretty !
 */
.header {
    display: flex;
    background-color: white;
    color: var(--pmn--black);
    z-index: 10; /* make sure it's above any swiper */
}
.header__logo {
    display: inline-block;
}

.header__logo__img {
    /*height: 37px;*/
    object-fit: contain;
}
.header__baseline {
    margin: 0;
}
.surheader__link {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    text-decoration: none;
}
.surheader__link::before {
    content: "";
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}
.header__cta {
    flex: none;
}

.no-scroll {
    overflow-y: hidden;
}

a.mobile-menu-item:not(.cta):hover,
.mobile-menu-item:hover > a {
    color: var(--pmn--blue);
}

.fw-700 {
    font-weight: 700;
}


li.elaborate {
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    row-gap: 15px;
}
.elaborate__title {
    font-weight: 700;
}

    
.header__resource-item {
    border-radius: 5px;
}

@media screen and (max-width: 1214px) {
    .d-only {
        display: none;
    }
    .header {
        --header--padding: 12px 20px 11px;
        --header--menu-items--padding-left: 30px;
        --header--menu-items--height: 80px;
        
        position: sticky;
        inset: var(--wp-admin--admin-bar--height, 0px) 0px auto 0px;
        flex-flow: column nowrap;
        align-items: stretch;
        
        box-shadow: 0px 0px 50px 10px rgba(0, 0, 0, 0.1);
    }
    .header__logoburger {
        position: sticky;
        inset: var(--wp-admin--admin-bar--height, 0px) 0px auto 0px;
        inset: 0px 0px auto 0px;
        
        height: var(--header--logoburger--height);
        
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        
        padding: 12px 20px 11px;
        background-color: white; 
    }
    .header__burger {
        width: 40px;
        background-image: var(--evo--icon--burger--black);
        background-size: 24px;
        background-position: center;
        background-repeat: no-repeat;
        border: 2px solid rgba(0, 0, 0, 0);
    }
    .header__burger:hover {
        border-color: rgba(0, 0, 0, 0.05);
    }
    .header__cta {
        order: 1;
        text-transform: uppercase;
        border-radius: 0;
    }
    .header__baselinesurheader {

    }
    .header__baseline {
        display: none;
    }
    .surheader__link {
        column-gap: 15px;
        padding-left: var(--header--menu-items--padding-left);
        font-weight: 700;
    }
    .header__cta {
        height: var(--header--menu-items--height);
    }
    .surheader__link::before {
        width: 28px;
        height: 28px;
    }
    
    
    .header__mainmenu {
        position: relative;
        /*transition: transform var(--transition-duration) var(--transition-timing-function) 0s;*/
    }
    
    .mobile-menu-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0px 0px 0px var(--header--menu-items--padding-left);
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        width: 100%;
        min-height: var(--header--menu-items--height);
    }
    .mobile-menu-item.cta {
        padding: 0px;
    }
    
    .header__mainmenu__item.depth--1 {
        text-transform: uppercase;
    }
    
    .back-summary {
        position: sticky;
        top: 0px;
        background-color: white;
        border-bottom: 3px solid var(--pmn--pink);
    }
    .back-summary__btn,
    .forth-summary__btn {
        width: 84px;
        align-self: stretch;
        margin-left: calc(-1 * var(--header--menu-items--padding-left));
        display: flex;
        justify-content: center;
        align-items: center;
        /*border-right: 1px solid rgba(0, 0, 0, 0.15);*/
    }
    .back-summary__btn {
        background-image: linear-gradient(-90deg, rgba(0, 0, 0, 0.05), transparent 15%);
        margin-right: 15px;
    }
    .forth-summary__btn {
        position: relative;
    }
    .forth-summary__btn::after {
        content: "";
        display: block;
        position: absolute;
        left: -15px;
        width: 15px;
        height: 100%;
        background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.05) 100%, white 100%);
    }
    .back-summary__btn::before,
    .forth-summary__btn::before {
        content: "";
        display: block;
        width: 24px;
        height: 24px;
        background-image: var(--ftc--icon--chevron--black);
        background-size: 24px;
        background-repeat: no-repeat;
        background-position: center;
    }
    .back-summary__btn:hover,
    .forth-summary__btn:hover {
        background-color: var(--pmn--blue);
    }
    .back-summary__btn:hover::before,
    .forth-summary__btn:hover::before {
        background-image: var(--ftc--icon--chevron--white);
    }
    .back-summary__btn::before {
        transform: rotateZ(90deg);
    }
    .forth-summary__btn::before {
        transform: rotateZ(-90deg);
    }
    
    li.elaborate {
        background-color: var(--evo--black);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 20px 0px 20px var(--header--menu-items--padding-left);
        min-height: var(--header--menu-items--height);
    }
    
    
    .scroll-container {
        overflow-x: hidden; 
        overflow-y: auto; 
        height: 100%;
        overscroll-behavior: contain;
        
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
}


@media screen and (min-width: 1215px) {
    body {
        --header--height: 120px;
    }
    .header {
        --header--padding-right: 20px;
        --header--padding-left: 30px;
        --header--padding: 0px var(--header--padding-right) 0px var(--header--padding-left);
        position: sticky;
        inset: var(--wp-admin--admin-bar--height, 0px) 0px auto 0px;
        height: var(--header--height);
        
        display: grid;
        grid-template-areas:
            "sup sup sup"
            ". . .";
        grid-template-rows: 40px auto;
        grid-template-columns: minmax(113px, 142px) 1fr auto;
        
        padding: 0px 20px 0px 30px;
    }
    .header__logoburger {
        align-self: center;
    }
    .header__logo {
        
    }
    .header__burger {
        display: none;
    }
    .header__cta {
        align-self: center;
        font-size: 14px;
        line-height: 22px;
        
        height: 3.85em;
        padding: 16px 20px 16px 25px;
        
        
        column-gap: 10px;
    }
    .surheader__link {
        column-gap: 7px;
    }
    .header__baselinesurheader {
        grid-area: sup;
    
        width: calc(100% + var(--header--padding-right) + var(--header--padding-left));
        margin-left: calc(-1 * var(--header--padding-left));
        padding: var(--header--padding);
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-items: center;
        
        font-size: 12px;
        line-height: 1em;
        min-height: 40px;
        box-sizing: border-box;
        border-bottom: 1px solid var(--ftc--light-grey);
    }
    .header__surheader {
        display: flex;
        flex-flow: row wrap;
        column-gap: 20px;
    }
    .surheader__link::before {
        width: 18px;
        height: 18px;
    }
    
    /* adds separator in surheader */
    .header__surheader__item:nth-child(2n):not(:last-child) {
        display: inline-flex;
        column-gap: 20px;
    }
    .header__surheader__item:nth-child(2n):not(:last-child)::after {
        content: "";
        display: inline-block;
        height: 100%;
        width: 1px;
        background: white;
    }
    [data-h-region="main"] > .main-region__ul--primary:nth-child(2):nth-last-child(2) {
        grid-column: span 2;
        column-width: 266px;
    }
    
    .header__mainmenu {
        justify-self: center;
        display: flex;
        flex-flow: row nowrap;
        align-items:center;
    }
    
    
    
    
    .header::after, [data-h-region="main"]::before {
        content: "";
        position: absolute;
        width: 100%;
        pointer-events: none;
    }
    .header::after {
        top: 0;
        height: var(--header--height);
        box-shadow: 0px 0px 50px 10px rgba(0, 0, 0, 0.1);
    }
    [data-h-region="main"]::before {
        left: 0;
        bottom: 0px;
        height: 40px;
        z-index: -1;
        box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
    }
    
    
    .header__main-region__card-container {
        padding: 31px 80px 55px;
        background-color: var(--pmn--pink);
        align-items: flex-start;
        display: flex;
        flex-flow: column nowrap;
        justify-content: flex-start;
        row-gap: 18px;
        color: var(--ftc--white);
        
        width: 534px;
    }
    .main-region__ul {
        margin: 36px 0px 57px;
        font-size: 14px;
    }
    .main-region__ul .mobile-menu-item:not(.m-only) {
        margin-bottom: 15px;
        display: inline-block;
    }
    
    
    
    
    
    
    
    
    
    
/*    [data-topbar-item] > .mobile-menu-item {
        margin-top: 25px;
    }*/
    [data-topbar-item] > .mobile-menu-item:hover {
        color: inherit;
    }
    [data-topbar-item]::after {
        content: "";
        height: 3px;
        background: var(--pmn--pink);
        border-radius:50px;
        transition:0.3s ease-in-out;
        opacity: 0;
    }
    [data-topbar-item]:hover::after {
        opacity: 1;
        transition:0.3s ease-in-out;
    }
    [data-topbar-item] {
        padding: 0px 25px;
        height:80px;
        display: flex;
        flex-direction: column;
        justify-content:center;
    }
    .resources-h-region[data-h-region="main"] {
        grid-template-columns: 3fr 4fr auto;
    }


    .scroll-container {
        display: contents;
    }
    
    li.elaborate {
        margin-top: 25px;
        border-top: 1px solid rgba(0, 0, 0, 0.15);
        padding-top: 25px;
    }
}



/* media query just for wp-admin-bar support */
@media screen and (max-width: 600px) {
    .header[data-is-open="false"] {
        inset: 0px 0px auto 0px;
    }
}
























/************* REWORK ************/
.mobile-menu-item.depth--0,
.mobile-menu-item.depth--1 {
    font-weight: 700;
}
.mobile-menu-item.depth--0 {
    font-size: 16px;
    text-transform: uppercase;
}