/* Zimbl header: centered navigation with two partner marks on the right. */
.zim-partners-header {
    display: none;
}

.zim-partners-mobile {
    display: flex;
    width: min(100% - 2rem, var(--zim-site-width));
    margin: -0.25rem auto 0;
    padding: 0 0 1rem;
}

.zim-partner-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    min-width: 0;
}

.zim-partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    color: var(--zim-color-nav-link);
    line-height: 1;
    text-decoration: none;
    transition: color 0.16s ease;
}

.zim-partner-image {
    display: block;
    width: auto;
    height: 2rem;
    max-width: none;
    object-fit: contain;
    opacity: 0.94;
    transition: opacity 0.16s ease, filter 0.16s ease, transform 0.16s ease;
}

.zim-partner-link:not(.zim-partner-link--inactive):hover,
.zim-partner-link:not(.zim-partner-link--inactive):focus-visible {
    color: var(--zim-color-nav-link-active);
    text-decoration: none;
}

.zim-partner-link:not(.zim-partner-link--inactive):hover .zim-partner-image,
.zim-partner-link:not(.zim-partner-link--inactive):focus-visible .zim-partner-image {
    opacity: 1;
    filter: brightness(1.12) drop-shadow(0 0 0.35px currentColor);
    transform: scale(1.035);
}

.zim-partner-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

@media (min-width: 1181px) {
    .zim-header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 1rem;
    }

    .zim-site-branding {
        justify-self: start;
        min-width: 0;
    }

    .zim-main-navigation {
        position: static;
        width: max-content;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        transform: none;
        justify-self: center;
        z-index: 2;
    }

    .zim-primary-menu {
        justify-content: center;
    }

    .zim-partners-mobile {
        display: none;
    }

    .zim-partners-header {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        min-width: 0;
    }

    .zim-partner-links--desktop {
        justify-content: flex-end;
    }

    .zim-partner-image {
        height: 2rem;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .zim-partner-links--mobile {
        flex-wrap: wrap;
        gap: 0.8rem 1.15rem;
    }
}
