/*
 * Keep the pre-2023 theme-kaizen look. The 2023 theme release dropped the fixed height of
 * small page banners and their title margin, and tightened the element spacing scale.
 */
.hero--small {
    min-height: 20rem;
}

.hero:not(.hero--smaller) h1 {
    margin-bottom: 1.5rem;
    margin-bottom: calc(var(--font-sizes-h1) * .8);
}

/*
 * The 2023 theme switches to the desktop menu at 1180px, but its slide-out mobile menu (CSS and JS)
 * still ends at 1024px, which breaks the header in between. Switch right after the mobile menu ends.
 */
@media (min-width: 1025px) {
    .header__hamburger { display: none; }
    .header__navigation > ul { align-items: center; display: flex; margin-left: -.75rem; margin-right: -.75rem; }
    .header__navigation > ul li { margin-bottom: 0; padding-left: .75rem; padding-right: .75rem; position: relative; }
    .header__navigation > ul li:hover .header__sub-navigation { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .header__navigation > ul a,
    .header__navigation > ul span { color: var(--colors-navigation-color); }
    .header__navigation > ul a.active,
    .header__navigation > ul a:hover,
    .header__navigation > ul span.active,
    .header__navigation > ul span:hover { color: var(--colors-navigation-active-color); }
    .header__navigation__link { align-items: center; display: flex; }
    .header__navigation__link svg { width: .75rem; }
    .header__navigation__link svg polygon { fill: var(--colors-navigation-color); }
    .header__navigation__icon { margin-left: .5rem; }
    .header__sub-navigation {
        background-color: var(--colors-navigation-bg);
        left: 0;
        margin-bottom: 0;
        min-width: 15.625rem;
        opacity: 0;
        padding-top: 2.25rem;
        pointer-events: none;
        position: absolute;
        transform: translateY(-.625rem);
    }
    .header__sub-navigation,
    .header__sub-navigation a { padding-bottom: .75rem; }
    .header__sub-navigation a { display: block; padding-top: .75rem; }
    .header__socials__inner { display: flex; }
    .header__socials a {
        align-items: center;
        border-radius: 9999px;
        display: flex;
        height: 2.5rem;
        justify-content: center;
        margin-left: .5rem;
        margin-right: .5rem;
        width: 2.5rem;
    }
    .header__socials svg { height: auto; max-width: 45%; }
    .header__socials svg path { fill: var(--colors-navigation-color); }
}

.element--pt-default { padding-top: 4rem; }
.element--pb-default { padding-bottom: 4rem; }
.element--pt-small { padding-top: 2rem; }
.element--pb-small { padding-bottom: 2rem; }
.element--pt-large { padding-top: 5rem; }
.element--pb-large { padding-bottom: 5rem; }
.element--mb-small { padding-top: 2rem; }
.element--mb-large { padding-top: 4rem; }
