/* Grouped disclosure navigation layered on the existing WordPress menu and toggle engine. */
body.luat-glass #nav-menu .luat-menu-item--grouped > .submenu-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    align-self: stretch;
    border-radius: 0;
}

body.luat-glass #nav-menu.header-menu--enhanced .menu > li.luat-menu-item--grouped > button.submenu-toggle.luat-menu-chevron-toggle {
    display: inline-flex !important;
}

body.luat-glass #nav-menu .luat-menu-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

body.luat-glass #nav-menu .luat-menu-chevron-toggle[aria-expanded="true"] .luat-menu-chevron {
    transform: translateY(2px) rotate(225deg);
}

body.luat-glass #nav-menu .menu > .luat-menu-item--grouped > a {
    padding-right: 6px;
}

body.luat-glass #nav-menu.header-menu--enhanced .menu > li > .sub-menu.luat-menu-panel:not([hidden]) {
    display: block;
}

body.luat-glass #nav-menu .sub-menu.luat-menu-panel {
    width: min(760px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 0;
    overflow: hidden auto;
    overscroll-behavior: contain;
    border-top: 3px solid var(--luat-blue, #49688e);
    border-radius: 0 0 14px 14px;
    background: rgb(255 255 255 / 96%) !important;
    box-shadow: 0 18px 42px -20px rgb(23 45 72 / 45%);
}

body.luat-glass #nav-menu .sub-menu.luat-menu-panel > .luat-menu-panel-heading,
body.luat-glass #nav-menu .sub-menu.luat-menu-panel > .luat-menu-groups-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

body.luat-glass #nav-menu .luat-menu-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 14px 10px 20px;
    color: var(--luat-ink, #172d48);
    background: #f3f7fb;
    border-bottom: 1px solid var(--luat-line, #d9e2ee);
}

body.luat-glass #nav-menu .luat-menu-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

body.luat-glass #nav-menu .sub-menu .luat-menu-overview-link {
    flex: 0 1 auto;
    width: auto;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--luat-blue-dark, #28476d) !important;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

body.luat-glass #nav-menu .luat-menu-close {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    margin: 0;
    padding: 0;
    color: var(--luat-ink, #172d48);
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    background: #fff;
    border: 1px solid var(--luat-line, #d9e2ee);
    border-radius: 8px;
}

body.luat-glass #nav-menu .luat-menu-close:hover,
body.luat-glass #nav-menu .luat-menu-close:focus-visible {
    color: var(--luat-blue-dark, #28476d);
    background: #eaf1f8;
}

body.luat-glass #nav-menu .luat-menu-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 18px 20px 22px;
}

body.luat-glass #nav-menu .luat-menu-panel--wide {
    width: min(1120px, 100%);
    max-width: 100%;
}

body.luat-glass #nav-menu .luat-menu-panel--wide .luat-menu-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.luat-glass #nav-menu .luat-menu-group {
    min-width: 0;
}

body.luat-glass #nav-menu .luat-menu-group-title {
    margin: 0 0 6px;
    padding: 0 10px 9px;
    color: var(--luat-muted, #5b6f86);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.065em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--luat-line, #d9e2ee);
}

body.luat-glass #nav-menu .luat-menu-group-list {
    display: block;
    position: static;
    inset: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    list-style: none;
}

body.luat-glass #nav-menu .luat-menu-group-list > li {
    margin: 0;
    padding: 0;
}

body.luat-glass #nav-menu .luat-menu-group-list > li > a {
    position: relative;
    min-height: 44px;
    padding: 9px 28px 9px 10px;
    font-size: 0.875rem;
    font-weight: 500;
}

body.luat-glass #nav-menu .luat-menu-group-list > li > a::after {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 6px;
    height: 6px;
    content: "";
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    opacity: 0;
    transform: translateY(-50%) rotate(45deg);
}

body.luat-glass #nav-menu .luat-menu-group-list > li > a:hover::after,
body.luat-glass #nav-menu .luat-menu-group-list > li > a:focus-visible::after {
    opacity: 1;
}

@media (min-width: 1200px) {
    body.luat-glass #nav-menu .menu {
        grid-template-columns: minmax(260px, 2.4fr) repeat(5, minmax(120px, 1fr)) minmax(180px, 1.5fr);
    }

    body.luat-glass #nav-menu .menu > .luat-menu-item--grouped {
        position: static;
    }

    body.luat-glass #nav-menu .menu > li:first-child > .luat-menu-panel {
        right: auto;
        left: 0;
    }

    body.luat-glass #nav-menu .menu > li:nth-last-child(-n + 3) > .luat-menu-panel--audience {
        right: 0;
        left: auto;
    }
}

@media (max-width: 1199.98px) {
    body.luat-glass #nav-menu .sub-menu.luat-menu-panel {
        position: static;
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        max-height: none !important;
        margin: 0 0 10px;
        border: 1px solid var(--luat-line, #d9e2ee);
        border-radius: 10px;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.luat-glass #nav-menu .luat-menu-heading {
        min-height: 56px;
        padding: 7px 10px 7px 14px;
    }

    body.luat-glass #nav-menu .luat-menu-groups {
        gap: 18px;
        padding: 16px;
    }
}

@media (max-width: 767.98px) {
    body.luat-glass #nav-menu .luat-menu-heading {
        flex-wrap: wrap;
    }

    body.luat-glass #nav-menu .sub-menu .luat-menu-overview-link {
        order: 3;
        width: 100%;
        white-space: normal;
    }

    body.luat-glass #nav-menu .luat-menu-groups,
    body.luat-glass #nav-menu .luat-menu-panel--wide .luat-menu-groups {
        grid-template-columns: 1fr;
    }
}

body.luat-glass .bvi-body #nav-menu .sub-menu.luat-menu-panel {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    color: inherit !important;
    background: transparent !important;
    border-color: currentColor !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.luat-glass .bvi-body #nav-menu :is(.luat-menu-heading, .luat-menu-close) {
    color: inherit !important;
    background: transparent !important;
    border-color: currentColor !important;
}

body.luat-glass .bvi-body #nav-menu .sub-menu .luat-menu-overview-link {
    color: inherit !important;
}

body.luat-glass .bvi-body #nav-menu .luat-menu-groups,
body.luat-glass .bvi-body #nav-menu .luat-menu-panel--wide .luat-menu-groups {
    grid-template-columns: 1fr;
}

body.luat-glass .bvi-body #nav-menu .luat-menu-item--grouped > .submenu-toggle {
    display: inline-flex !important;
}

@media (prefers-reduced-motion: reduce) {
    body.luat-glass #nav-menu .luat-menu-chevron,
    body.luat-glass #nav-menu .sub-menu.luat-menu-panel {
        transition: none;
        animation: none;
    }
}
