/* MENU CONTAINER */
.af-mega {
    --af-menu-bg: #1c2e4c;
    --af-menu-text: #fff;
    --af-menu-muted: #a3aab8;
    --af-menu-serif: Georgia, 'Times New Roman', serif;
    --af-menu-sans: inherit;
    --af-menu-compass: none;

    position: fixed;
    top: 0;
    bottom: 0;
    left: -100%;
    right: auto;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    margin: 0;
    padding: 0;
    border: 0;

    background: var(--af-menu-bg);
    color: var(--af-menu-text);
    font-family: var(--af-menu-sans);

    overflow: hidden;
    clip-path: inset(0);

    transition: left 0.5s ease, width 0.5s ease;
}

#af-mega-menu {
    z-index: 201;
}

.af-mega,
.af-mega *,
.af-mega *::before,
.af-mega *::after {
    box-sizing: border-box;
}

.af-mega[hidden] {
    display: none !important;
}

.af-mega:not([hidden]) {
    display: block;
}

.af-mega.is-open {
    left: 0;
}

/* SCROLLING CONTENT */
.af-mega__viewport {
    position: relative;
    isolation: isolate;

    height: 100%;
    padding: 50px;

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.body_global_header_message .af-mega__viewport {
    padding-top: 100px;
}

/* OPTIONAL BACKGROUND ARTWORK */
.af-mega__viewport::before {
    content: "";
    position: absolute;
    left: 30%;
    bottom: 0;

    width: 55%;
    height: 55%;

    background: var(--af-menu-compass) center top / contain no-repeat;
    opacity: 0.12;

    pointer-events: none;
    z-index: -1;
}

/* BASIC ELEMENTS */
.af-mega a {
    color: inherit;
    text-decoration: none;
}

.af-mega button {
    appearance: none;

    margin: 0;
    border: 0;
    border-radius: 0;

    background: none;
    color: inherit;
    font: inherit;

    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}

.af-mega button::before,
.af-mega button::after {
    content: none;
}

.af-mega :is(a, button):focus-visible {
    outline: 2px solid white;
    outline-offset: 6px;
}

.af-mega ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.af-mega li {
    margin: 0;
    padding: 0;
}

/* HEADER AND LOGO */
.af-mega__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.af-mega__brand {
    display: block;
    width: 190px;
    font: 28px/1.2 var(--af-menu-serif);
}

.af-mega__brand img {
    display: block;
    width: 100%;
    height: auto;
}

/* EXIT BUTTON */
.af-mega .af-mega__close {
    position: relative;
    flex: 0 0 44px;

    width: 44px;
    height: 44px;
    padding: 0;

    z-index: 2;
}

.af-mega__close span::before,
.af-mega__close span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 21px;

    width: 34px;
    height: 2px;

    background: currentColor;
    transform: rotate(45deg);
}

.af-mega__close span::after {
    transform: rotate(-45deg);
}

.af-mega .af-mega__close:focus,
.af-mega .af-mega__close:focus-visible {
    outline: none;
    box-shadow: none;
}

/* MAIN TWO-COLUMN LAYOUT */
/* Screen-based widths keep the parent column steady during expansion. */
.af-mega__layout {
    position: relative;
    display: grid;
    grid-template-columns: 28vw 34vw;
    align-items: start;

    width: 62vw;
    margin: 40px 0 50px 130px;

    z-index: 1;
}

/* PARENT ITEMS */
.af-mega__parent {
    position: relative;
    display: flex;
    align-items: center;

    color: var(--af-menu-muted);
    border-bottom: 2px solid transparent;
    padding-bottom: 7px !important;
}

.af-mega__parent.is-active {
    color: white;
    border-bottom-color: white;
}

.af-mega__parent:hover {
    color: white;
}

.af-mega .af-mega__parent-control,
.af-mega .af-mega__parent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    width: 100%;
    padding: 9px 0;

    color: var(--Bluewater-Cream, #FCF9F6);
    text-align: left;

    font-family: "Miller Banner";
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 35px;
}

.af-mega .af-mega__parent .af-mega-label {
    transition: transform 0.3s ease;
}

.af-mega .af-mega__parent:hover .af-mega-label {
    transform: translateX(10px);
}

.af-mega__parent-control > span:first-child,
.af-mega__parent-link > span:first-child {
    overflow-wrap: anywhere;
}

/* PLUS / MINUS */
.af-mega .af-mega__toggle {
    display: grid;
    place-items: center;
    flex: 0 0 44px;

    width: 44px;
    height: 44px;
    padding: 0;
    padding-left: 24px;
}

.af-mega__sign {
    position: relative;
    display: inline-block;
    flex: 0 0 22px;

    width: 22px;
    height: 22px;
}

.af-mega__sign::before,
.af-mega__sign::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 10px;

    width: 20px;
    height: 2px;

    background: currentColor;
}

.af-mega__sign::after {
    transform: rotate(90deg);
    transition: transform 180ms ease;
}

.af-mega [aria-expanded="true"] .af-mega__sign::after {
    transform: rotate(0);
}

/* RIGHT-FACING CHEVRON */
.af-mega__chevron {
    display: inline-block;
    flex: 0 0 12px;

    width: 12px;
    height: 12px;
    margin-right: 5px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;

    transform: rotate(45deg);
}

/* SUBMENU PANELS */
.af-mega__panel[hidden] {
    display: none !important;
}

/* JavaScript handles the delay before this fade begins. */
.af-mega__panel:not([hidden]) {
    animation: af-submenu-fade 0.3s ease both;
}

.af-mega .af-mega__cards {
    display: grid;
    gap: 6px;
    margin-left: 50px;
}

/* SUBMENU LINKS */
.af-mega .af-mega__card {
    display: grid;
    grid-template-columns: 1fr 24px;
    align-items: center;
    gap: 20px;

    padding: 14px;

    color: #fff;
    font-family: var(--brandon);
    font-size: 25px;
    font-style: normal;
    font-weight: 390;
    line-height: 35px;

    transition: background 180ms ease;
}

.af-mega .af-mega__card--image {
    grid-template-columns: 110px 1fr 24px;
}

.af-mega__card > span {
    overflow-wrap: anywhere;
}

.af-mega__card:hover,
.af-mega__card:focus-visible {
    background: #18283f;
}

.af-mega__thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.af-mega__arrow {
    align-self: end;
    line-height: 1;
    padding-bottom: 3px;
    margin-bottom: 31px;
}

/* OPTIONAL NESTED LINKS */
.af-mega .af-mega__nested {
    padding-left: 25px;
}

.af-mega .af-mega__nested .af-mega__card {
    font-size: 18px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* LARGE VERTICAL TITLE */
.af-mega__big-title {
    position: fixed;
    right: 0;
    top: 50%;

    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    white-space: nowrap;

    pointer-events: none;

    color: rgb(255 255 255 / 0.10);
    font-family: var(--af-menu-serif);
    font-size: 180px;
    font-weight: 400;
    line-height: 0.85;

    overflow: visible;
}

/* HALF-WIDTH STATE */
/* The outer menu changes width; its desktop columns keep their widths. */
/*.af-mega:not(.has-open-submenu) {
    width: 50%;
}*/

.af-mega:not(.has-open-submenu) .af-mega__panels {
    display: none;
}

/* ROTATING GRAPHIC WRAPPER */
.mega-menu-graphic {
    position: fixed;
    bottom: -50%;
    left: 50vw;

    width: 650px;
    height: auto;

    opacity: 0.12;
    pointer-events: none;
    z-index: -1;

    transform: translateX(-50%);
}

.mega-menu-graphic svg {
    display: block;
    width: 100%;
    height: auto;
}

/* SOCIAL ICONS */
.af-mega__socials {
    position: absolute;
    top: 30%;
    left: 5.5vw;
}

.af-mega-menu-social-wrap {
    position: absolute;
    top: 278px;
    left: 91px;
}

.af-mega-menu-social-wrap .socials.vertical {
    padding: 0;
    position: relative;
}

.af-mega-menu-social-mobile-wrap .socials.horizontal {
    display: none;
}

/* PAGE SCROLL LOCK */
html.af-mega-open {
    overflow: hidden;
}

html.af-mega-open body {
    position: fixed;
    top: var(--af-scroll-offset);
    left: 0;
    right: 0;
    overflow: hidden;
}

/* SUBMENU FADE */
@keyframes af-submenu-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* MOBILE: BELOW 1024PX */
@media (max-width: 1023px) {
    .af-mega,
    .af-mega:not(.has-open-submenu) {
        width: 100%;
    }

    .af-mega__viewport {
        padding-top: 10px;
    }

    .af-mega__brand {
        width: 140px;
    }

    .af-mega .af-mega__layout {
        display: block;
        width: 100%;
        margin: 35px 0 45px;
        padding-left: 20px;
    }

    .af-mega__panels {
        display: none;
    }

    .af-mega__parent {
        flex-wrap: wrap;
    }

    .af-mega .af-mega__parent-link {
        flex: 1;
        width: auto;
    }

    .af-mega__parent.is-active {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: 2px solid transparent;
    }

    .af-mega__parent.is-active .af-mega-label {
        color: #7DA6B1;
    }

    .af-mega .af-mega__parent-control,
    .af-mega .af-mega__parent-link {
        font-size: 30px;
        line-height: 35px;
        padding: 12px 0;
    }

    .af-mega__parent > .af-mega__panel {
        flex: 0 0 100%;
        width: 100%;
        padding: 10px 0;
    }

    .af-mega .af-mega__card {
        gap: 12px;
        padding: 0;
        font-size: 20px;
        line-height: 28px;
    }

    .af-mega .af-mega__card--image {
        width: 100%;
        grid-template-columns: 1fr 24px;
    }

    .af-mega .af-mega__thumb {
        display: none;
    }

    .af-mega .af-mega__arrow {
        display: none;
        align-self: center;
        margin: 0;
        padding: 0;
        text-align: right;
    }

    .af-mega__big-title {
        display: none;
    }

    .af-mega__socials,
    .af-mega-menu-social-wrap {
        position: static;
        margin-top: 20px;
    }

    .af-mega-menu-social-wrap .socials.vertical {
        display: none;
    }

    .af-mega-menu-social-mobile-wrap .socials.horizontal {
        display: flex;
        justify-content: flex-start;
        gap: 12px;
        padding-top: 60px;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .af-mega,
    .af-mega * {
        animation: none !important;
        transition: none !important;
    }
}



/* Always full width, but initially show only the left half. */
#af-mega-menu {
    width: 100%;
    clip-path: inset(0 50% 0 0);
    transition: left 0.5s ease, clip-path 0.5s ease;
}

/* Reveal the right half when a submenu opens. */
#af-mega-menu.has-open-submenu {
    clip-path: inset(0);
}

/* Keep the exit button within the visible half. */
/* This accounts for your viewport's 50px side padding. */
.af-mega__header {
    width: calc(50vw - 100px);
}

.af-mega.has-open-submenu .af-mega__header {
    width: 100%;
}

/* Mobile always shows the full menu. */
@media (max-width: 1023px) {
    #af-mega-menu,
    #af-mega-menu.has-open-submenu {
        clip-path: inset(0);
    }

    .af-mega .af-mega__header {
        width: 100%;
    }
}