/* The Bates header: centered desktop navigation with Zimbl mark on the right and in the mobile menu. */
.tb-zimbl-header {
    display: none;
}

.tb-zimbl-mobile {
    display: flex;
    align-items: center;
    width: min(100% - 2rem, var(--tb-site-width));
    margin: -0.25rem auto 0;
    padding: 0 0 1rem;
}

.tb-zimbl-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tb-color-nav-link);
    line-height: 1;
    text-decoration: none;
    transition: color 0.16s ease;
}

.tb-zimbl-image {
    display: block;
    width: auto;
    height: 1.9rem;
    max-width: 8.5rem;
    object-fit: contain;
    opacity: 0.94;
    transition: opacity 0.16s ease, filter 0.16s ease, transform 0.16s ease;
}

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

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

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

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

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

    /* Desktop: the navigation is centered in the actual free space
       between the left logo and the right Zimbl mark. */
    .tb-main-navigation {
        position: static;
        width: max-content;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        transform: none;
        justify-self: center;
        z-index: 2;
    }

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

    .tb-zimbl-mobile {
        display: none;
    }

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

    .tb-zimbl-image {
        height: 1.95rem;
        max-width: 8.75rem;
    }
}
