:root {
    --ml-header-height: 84px;
    --ml-header-z: 2000;
    --ml-overlay-z: 1900;
}

.ml-header,
.ml-header * {
    box-sizing: border-box;
}

.ml-header ul,
.ml-header li,
.ml-mega ul,
.ml-mega li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ml-header {
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: var(--ml-header-z);
    transition: transform .25s ease;
    pointer-events: none;
}

.ml-header__inner {
    pointer-events: auto;
    width: min(100% - 40px, var(--ml-container));
    margin: 0 auto;
    min-height: var(--ml-header-height);
    background: var(--ml-color-grey-light);
    border-radius: 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 8px 14px;
    box-shadow: var(--ml-shadow-md);
}

.ml-header--hidden {
    transform: translateY(calc(-100% - 24px));
}

html.ml-mega-open .ml-header {
    transform: translateY(0) !important;
}

.ml-header__logo {
    width: 60px;
    height: 60px;
    display: block;
    object-fit: contain;
}

.ml-header__brand {
    margin-left: 8px;
}

.ml-header__menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.ml-header__link {
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: var(--ml-color-black);
    font-size: 20px;
    font-weight: var(--ml-fw-medium);
    padding: 8px 14px;
    border-radius: var(--ml-radius-sm);
    line-height: 1;
    position: relative;
    font-family: var(--ml-font-body);
}

.ml-header__link:hover {
    color: var(--ml-color-navy);
}

.ml-header__link:focus-visible {
    outline: 2px solid #012c4a;
    outline-offset: 2px;
}

.ml-header__link--trigger {
    appearance: none;
    -webkit-appearance: none;
}

.ml-header__link--cta {
    background: var(--ml-color-orange);
    color: #fff;
    font-weight: var(--ml-fw-bold);
    border-radius: 10px;
    padding: 10px 18px;
}

.ml-header__link--cta:hover {
    color: #fff;
    filter: brightness(.96);
}

.ml-header__link--cta:focus-visible {
    outline-color: #fff;
}

@media (min-width: 1024px) {
    .ml-header__link--current {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 8px;
        text-decoration-color: #012c4a;
    }
}

.ml-header__burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.ml-header__burger span {
    width: 22px;
    height: 2px;
    background: var(--ml-color-navy);
    display: block;
}

.ml-header__burger span:nth-child(3) {
    width: 14px;
}

.ml-mega-overlay {
    display: none;
}

@media (min-width: 1024px) {
    .ml-mega-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: var(--ml-overlay-z);
        pointer-events: none;
        opacity: 0;
        transition: opacity .2s ease;
    }

    .ml-mega-overlay.is-open {
        pointer-events: auto;
        opacity: 1;
    }

    .ml-mega {
        display: none;
        position: absolute;
        inset: 0 0 auto 0;
        top: 0;
        background: var(--ml-mega-bg, var(--ml-color-teal));
        min-height: 360px;
        box-shadow: 0 24px 40px rgba(0, 0, 0, .2);
    }

    .ml-mega.is-active {
        display: block;
    }

    .ml-mega__inner {
        width: min(100% - 40px, var(--ml-container));
        margin: 0 auto;
        padding: calc(var(--ml-header-height) + 64px) 10px 26px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .ml-mega__item {
        text-decoration: none;
        color: var(--ml-color-cream);
        font-size: clamp(22px, 2.1vw, 42px);
        font-weight: var(--ml-fw-extrabold);
        line-height: var(--ml-lh-heading);
        display: block;
        padding: 6px 0;
    }

    .ml-mega__item--heading {
        cursor: default;
    }

    #ml-mega-former .ml-mega__item--heading,
    #ml-mega-former .ml-mega__cards-heading {
        display: block;
        font-family: "Bowlby One";
        color: #f9dd84;
        font-size: 20px;
        line-height: 1.1;
    }

    #ml-mega-former .ml-mega__item--heading {
        padding: 0 0 12px;
    }

    #ml-mega-former .ml-mega__cards-heading {
        margin: 0 0 12px;
    }

    .ml-mega__cards {
        display: grid;
        gap: 20px;
    }

    .ml-mega__cards--1 {
        grid-template-columns: 1fr;
    }

    .ml-mega__cards--2 {
        grid-template-columns: 1fr 1fr;
    }

    .ml-mega-card {
        min-height: 250px;
        position: relative;
        overflow: hidden;
        background-color: #abadb3;
        background-image:
            linear-gradient(0deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)),
            var(--ml-card-image);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: var(--ml-radius-md);
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--ml-color-cream);
        font-size: clamp(24px, 2.2vw, 44px);
        font-weight: var(--ml-fw-extrabold);
        line-height: var(--ml-lh-heading);
        padding: var(--ml-space-5) 20px;
    }

    .ml-mega-card span {
        position: relative;
        z-index: 1;
        display: block;
        max-width: 78%;
        text-shadow: 0 2px 12px rgba(0, 0, 0, .20);
    }
}

.ml-mobile {
    position: fixed;
    inset: 0;
    z-index: var(--ml-overlay-z);
    pointer-events: none;
}

.ml-mobile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    opacity: 0;
    transition: opacity .2s ease;
}

.ml-mobile--is-open {
    pointer-events: auto;
}

.ml-mobile--is-open::before {
    opacity: 1;
}

.ml-mobile__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--ml-color-cream);
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    padding: 104px 18px 26px;
}

.ml-mobile__panel--is-open {
    transform: translateX(0);
}

.ml-mobile__link,
.ml-mobile__submenu-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: var(--ml-color-navy);
    font-size: 32px;
    font-weight: var(--ml-fw-extrabold);
    line-height: 1.15;
    text-align: left;
    padding: 8px 0;
}

.ml-mobile__link--cta {
    display: inline-block;
    width: auto;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ml-color-orange);
    color: #fff;
}

.ml-mobile__submenu-item {
    font-size: 24px;
    line-height: 1.2;
    padding: 4px 0;
}

.ml-mobile__submenu-item--heading {
    font-family: "Bowlby One";
    color: #f9dd84;
    font-size: 20px;
    line-height: 1.1;
    padding: 4px 0 10px;
    cursor: default;
}

.ml-mobile__link--has-children::after {
    content: "\203A";
    float: right;
}

.ml-mobile__back {
    border: 0;
    background: transparent;
    color: var(--ml-color-navy);
    font-size: 16px;
    margin-bottom: 8px;
}

.ml-mobile__back::before {
    content: "\2039 ";
}

.ml-mobile__title {
    margin: 0 0 14px;
    color: var(--ml-color-navy);
    font-size: var(--ml-fs-body-lg);
}

@media (max-width: 1023px) {
    .ml-header {
        top: 10px;
    }

    .ml-header__inner {
        grid-template-columns: 70px 1fr 44px;
        max-width: calc(100% - 16px);
        min-height: 74px;
    }

    .ml-header__brand {
        justify-self: start;
        grid-column: 1;
        margin-left: 0;
    }

    .ml-header__nav {
        display: none;
    }

    .ml-header__burger {
        display: inline-flex;
        justify-self: end;
        grid-column: 3;
    }
}

@media (max-width: 1023px) {
    .ml-mobile__panel {
        padding-top: 132px;
    }

    .ml-mobile__back {
        margin-bottom: 18px;
    }
}

@media (min-width: 1024px) {
    .ml-mobile {
        display: none;
    }
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
