/* Local English navigation only. Mobile keeps its existing content-driven height. */
@media (min-width:1025px) {
    #gato-local-header {
        --gato-mega-panel-height:400px;
        --gato-mega-available-height:max(0px, calc(100dvh - var(--gpn-menu-top,70px) - 16px));
    }

    #gato-local-header .gpn.is-enhanced {
        box-sizing:border-box;
        height:var(--gato-mega-panel-height);
        max-height:var(--gato-mega-available-height);
    }
    #gato-local-header .gpn.is-enhanced .gpn-body {
        min-height:calc(var(--gato-mega-panel-height) - 2px);
        /* Five categories: keep the two longer sensing labels on one line. */
        grid-template-columns:360px minmax(0,1fr);
    }
    #gato-local-header .gpn.is-enhanced .gpn-families {
        padding-top:35px;
    }
    #gato-local-header .gpn.is-enhanced .gpn-products-column {
        display:flex;
        align-items:center;
    }
    #gato-local-header .gpn.is-enhanced .gpn-products-column > .gpn-product-panel {
        width:100%;
        min-width:0;
    }

    /* Match Products' fixed top edge, including after a viewport resize. */
    #gato-local-header .wpr-nav-menu > .menu-item-15321 > .wpr-sub-mega-menu {
        position:fixed !important;
        top:var(--gpn-menu-top,70px) !important;
        left:0 !important;
        right:0 !important;
        width:auto !important;
        max-width:none !important;
        height:var(--gato-mega-panel-height) !important;
        max-height:var(--gato-mega-available-height);
        transform:none !important;
        overflow-y:auto;
        overscroll-behavior:contain;
    }
    #gato-local-header .wpr-nav-menu [data-elementor-id="15298"] > .elementor-element-273eced3 {
        box-sizing:border-box;
        height:var(--gato-mega-panel-height);
        min-height:0;
        --gap:0px;
    }
    #gato-local-header .wpr-nav-menu [data-elementor-id="15298"] > .elementor-element-273eced3 > .e-con-inner {
        height:100%;
        min-height:0;
        /* One pixel of the 400px panel belongs to the existing top border. */
        padding-block:24px 23px;
        gap:0;
    }
    #gato-local-header .wpr-nav-menu [data-elementor-id="15298"] .elementor-element-68982327 {
        min-height:0;
        grid-template-columns:repeat(4,minmax(0,1fr));
        grid-template-rows:repeat(2,minmax(0,1fr));
        row-gap:20px;
    }
    #gato-local-header .wpr-nav-menu [data-elementor-id="15298"] .elementor-element-68982327 > a.e-con {
        min-height:0;
        gap:10px;
    }
    #gato-local-header .wpr-nav-menu [data-elementor-id="15298"] .elementor-widget-image img {
        height:135px;
        object-fit:cover;
    }
}
@media (min-width:1025px) and (max-width:1279px) {
    #gato-local-header .gpn.is-enhanced .gpn-body {
        grid-template-columns:320px minmax(0,1fr);
    }
}
