/*
 * The menu links fill the header's full height on desktop, so the green
 * highlight bar at the top of a link always touches the top of the page.
 * Scrolled, the links shrink to 76px while the logo holds the header at
 * 92px, and the centred menu dropped 8px below the top edge. The Client
 * Portal button keeps its own size and stays centred.
 */
@media (min-width: 1200px) {
    header .header-holder .menu-holder,
    header .header-holder .menu-holder .primary-menu {
        align-self: stretch;
        display: flex;
        align-items: stretch;
    }

    /* The list keeps the full width it had, so the auto margins still centre the links and push Client Portal right. */
    header .header-holder .menu-holder .primary-menu {
        flex: 1 1 auto;
    }

    header .header-holder .menu-holder .primary-menu li {
        display: flex;
    }

    header .header-holder .menu-holder .primary-menu li:not(.nav-btn) a {
        display: flex;
        align-items: center;
    }

    header .header-holder .menu-holder .primary-menu li.nav-btn {
        align-self: center;
    }
}

/*
 * The header stays exactly where and how big it is while the page scrolls.
 * The theme switched it from absolute to fixed and shrank its padding once
 * the page moved (desktop links 36px to 26px, the phone header 20/30px to
 * 10px), which read as the whole bar shifting. It is now fixed from the
 * start, which costs no layout since an absolute header took no space
 * either, and the scrolled state only adds the shadow.
 */
header,
header.scrolled {
    position: fixed;
}

header.scrolled .header-holder .menu-holder .primary-menu li:not(.nav-btn) a {
    padding-top: 36px;
    padding-bottom: 36px;
}

@media (max-width: 1199.98px) {
    header.scrolled .header-holder {
        padding: 20px 0 30px;
    }

    header.scrolled .header-holder .menu-holder .primary-menu li:not(.nav-btn) a {
        padding: 10px;
    }
}
