/* GEOTECH v1.4.1 — desktop dropdown hover bridge
   Keeps mega menus open while the pointer moves from the main item to the submenu. */
@media (min-width: 981px) {
    .main-nav .nav-item.has-mega > .mega-menu {
        /* The pseudo element below spans the small visual gap between trigger and menu. */
        overflow: visible;
    }

    .main-nav .nav-item.has-mega > .mega-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -30px;
        height: 30px;
        background: transparent;
        pointer-events: auto;
    }

    /* Make hover/focus authoritative even if click-toggle JS is also present. */
    .main-nav .nav-item.has-mega:hover > .mega-menu,
    .main-nav .nav-item.has-mega:focus-within > .mega-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Slightly enlarge the trigger hit area downward without changing layout. */
    .main-nav .nav-item.has-mega > .mega-toggle {
        position: relative;
        z-index: 2;
    }

    .main-nav .nav-item.has-mega > .mega-toggle::after {
        content: "";
        position: absolute;
        left: -8px;
        right: -8px;
        top: 100%;
        height: 14px;
    }
}
