/* Approved 2026-10-29. Desktop only; the loader gates local English pages.
 * Existing menu controllers measure the bar for dropdown tops and hover bridges.
 */
@media (min-width: 1025px) {
    body.gato-local-header-compact {
        --gato-header-height: 56px;
    }

    body.gato-local-header-compact #gato_header {
        --min-height: var(--gato-header-height);
        height: var(--gato-header-height);
        min-height: var(--gato-header-height);
    }
    body.gato-local-header-compact #gato-local-header .gato-local-logo {
        display: flex;
        align-items: center;
        width: 120px;
        min-height: 44px;
    }
    body.gato-local-header-compact #gato-local-header .gato-local-logo img {
        width: 100%;
        height: auto;
        max-height: 32px;
        object-fit: contain;
    }
    body.gato-local-header-compact #gato_header .wpr-nav-menu > .menu-item > .wpr-menu-item {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        line-height: 30px;
    }
    body.gato-local-header-compact #gato_header .gato-local-site-language-switcher__toggle {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    body.gato-local-header-compact #gato_header .elementor-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        min-height: 36px;
        padding: 0 20px;
    }

    /* Keep the accepted visible Banner heights; only its header space shrinks. */
    body.gato-local-header-compact.page-id-11522 .gato-local-hero--production {
        --gato-compact-header: var(--gato-header-height);
    }
    body.gato-local-header-compact:is(.page-id-4917, .page-id-16649, .page-id-1702, .page-id-1628, .page-id-16624) {
        --gato-page-banner-header: var(--gato-header-height);
    }
    body.gato-local-header-compact:is(.gato-service-v1-page, .gato-local-services-page, .gato-solution-hub-v1-page) #content {
        padding-top: var(--gato-header-height);
    }
    body.gato-local-header-compact.gato-four-banner-preview.page-id-12006 .elementor-12006,
    body.gato-local-header-compact.gato-four-banner-preview.postid-1611 .ast-woocommerce-container > #product-1611,
    body.gato-local-header-compact.gato-eight-banner-local.postid-1615 .ast-woocommerce-container > #product-1615,
    body.gato-local-header-compact.gato-oil-v2 .elementor-12909,
    body.gato-local-header-compact.gato-solution-v2 .elementor[data-elementor-type="wp-page"] {
        padding-top: var(--gato-header-height);
    }
    body.gato-local-header-compact.gato-four-banner-preview .elementor-12192 .gato-c3-v2-hero,
    body.gato-local-header-compact.gato-four-banner-preview .elementor-4431 [data-id="d800ae2"] {
        margin-top: var(--gato-header-height);
    }
    body.gato-local-header-compact.gato-eight-banner-local .gato-eight-hero {
        margin-top: var(--gato-header-height) !important;
    }
    body.gato-local-header-compact.gato-local-blog-single-template .site .site-content #primary.gato-blog-single {
        margin-top: var(--gato-header-height);
    }
    body.gato-local-header-compact .gato-blog-toc {
        top: var(--gato-header-height);
    }
}

/* Preserve the existing smaller brand and button width on narrow desktops. */
@media (min-width: 1025px) and (max-width: 1199px) {
    body.gato-local-header-compact #gato-local-header .gato-local-logo {
        width: 112px;
    }
    body.gato-local-header-compact #gato_header .elementor-button {
        padding-inline: 16px;
    }
}
