/* Zinbioseed logo in the header and footer (resources/views/partials/logo.blade.php).
   Loaded last on every page so it wins over the theme's fixed-width logo box. */
.menu-header__logo:has(.site-logo),
.wp-menu-header.scroll .menu-header__logo:has(.site-logo) {
    width: auto !important;
    flex: 0 0 auto !important;
}

.site-logo {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    line-height: 0;
}

.site-logo img {
    display: block;
    width: auto !important;
    height: 40px !important;
    max-width: none;
}

/* Footer: the same logo in white on the dark green background */
.site-logo--footer img {
    height: 46px !important;
    filter: brightness(0) invert(1);
}

@media (max-width: 1199.98px) {
    .site-logo img {
        height: 36px !important;
    }
}

@media (max-width: 479.98px) {
    .site-logo img {
        height: 32px !important;
    }

    .site-logo--footer img {
        height: 40px !important;
    }
}

/* Homepage header from 992 to 1199px: logo, four top links, search, language and Menu share one row.
   Keep each link on a single line (they used to break onto two lines at these widths). */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .wp-layout-menu .site-logo img {
        height: 30px !important;
    }

    .wp-layout-menu .menu-header_dk {
        gap: 12px;
        margin: 0 14px;
    }

    .wp-layout-menu .txt-menu-dk {
        font-size: 13px;
        white-space: nowrap;
    }

    .wp-layout-menu .language-web {
        margin-left: 12px;
        padding-left: 12px;
    }
}
