/* styles extracted from base.html */

.sticky-header { position: sticky; top: 0; z-index: 1000; }

.header-bar {
    overflow: visible;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 8px;
    min-height: 80px;
}
.logo-img { height: 75px; width: auto; }

/* skip-link hidden off-screen but visible when focused */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 0;
    width: auto;
    height: auto;
    background: #006064;
    color: #fff;
    z-index: 1001;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

/* desktop menu: only reveal direct child submenu on hover */
#fullScreenMenu .w3-dropdown-hover > .w3-dropdown-content,
#fullScreenMenu .menu-hover-parent > .w3-dropdown-content {
    display: none;
}

#fullScreenMenu .w3-dropdown-hover:hover > .w3-dropdown-content,
#fullScreenMenu .menu-hover-parent:hover > .w3-dropdown-content {
    display: block;
}

/* content-aware flyout sizing: grow for longer labels, but cap width */
#fullScreenMenu .menu-flyout {
    min-width: 220px;
    width: max-content;
    max-width: 380px;
}

#fullScreenMenu .menu-flyout .w3-bar-item {
    white-space: normal;
    overflow-wrap: anywhere;
}

#fullScreenMenu .menu-hover-parent > .w3-bar-item {
    position: relative;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

#fullScreenMenu .menu-hover-parent > .w3-bar-item .submenu-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

#fullScreenMenu .menu-hover-parent.menu-popout-left > .w3-bar-item .submenu-arrow {
    left: 8px;
    right: auto;
}

.menu-right-slot {
    flex: 0 0 1px;
    width: 1px;
    height: 1px;
}

/* flip nested popout left when there isn't enough room on the right */
#fullScreenMenu .menu-popout.menu-popout-left {
    left: auto !important;
    right: 100% !important;
}

#mobileMenu .mobile-menu-item {
    padding-left: calc(12px + (var(--mobile-level, 0) * 14px)) !important;
    border-bottom: 1px solid #d9d9d9;
}

#mobileMenu .mobile-menu-item .material-icons {
    opacity: 0.75;
}

#mobileMenu .mobile-menu-children {
    margin-left: calc(10px + (var(--mobile-level, 1) * 14px));
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 1200px) {
    .desktop-menu-container {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    #mobileMenu.w3-show {
        display: block !important;
    }

    .header-bar {
    overflow: visible;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 4px;
    min-height: 40px !important;
}
}

@media (min-width: 1201px) {
    .desktop-menu-container {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    #mobileMenu {
        display: none !important;
    }
}
