.tenant-logo {
    display: flex;
    flex-shrink: 0;
}

.tenant-logo__frame {
    align-items: center;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.tenant-logo__frame--card {
    background: #fff;
    border-radius: 6px;
    padding: 8px;
}

.tenant-logo__image {
    display: block;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    width: auto;
}

.tenant-logo__fallback {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
}

.tenant-logo--public-header {
    align-items: center;
    height: auto;
    width: auto;
}

.tenant-logo--public-header .tenant-logo__frame {
    max-height: 56px;
    max-width: 160px;
    padding: 6px;
}

.tenant-logo--public-header .tenant-logo__image {
    max-height: 44px;
    max-width: 148px;
}

.tenant-logo--public-header .tenant-logo__fallback {
    color: #fff;
    font-size: .95rem;
    min-height: 44px;
}

.tenant-logo--sidebar {
    align-items: center;
    justify-content: center;
    max-height: 72px;
    max-width: 196px;
    width: 100%;
}

.tenant-logo--sidebar .tenant-logo__frame {
    background: transparent;
    margin-inline: auto;
    max-height: 72px;
    max-width: 196px;
    overflow: visible;
    padding: 0;
    width: auto;
}

.tenant-logo--sidebar .tenant-logo__frame--card {
    border: 0;
    box-shadow: none;
}

.tenant-logo--sidebar .tenant-logo__image {
    height: auto;
    max-height: 52px;
    max-width: 172px;
    object-fit: contain;
    object-position: center;
    width: auto;
}

.tenant-logo--sidebar .tenant-logo__fallback {
    color: #0f2744;
    font-size: .78rem;
    min-height: 0;
    width: 100%;
}

.tenant-logo--inline .tenant-logo__image {
    max-height: 64px;
    max-width: 180px;
}

.tenant-logo--inline .tenant-logo__fallback {
    font-size: .95rem;
}

.public-brand-header {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: .75rem;
    padding-block: .35rem;
    width: 100%;
}

.public-brand-header__details {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.public-brand-header__title {
    color: #111827;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.public-brand-header__subtitle {
    color: #6b7280;
    font-size: .84rem;
    line-height: 1.35;
    margin: .15rem 0 0;
}

.portal-header-light .public-brand-header__title {
    color: #111827;
}

.portal-header-light .public-brand-header__subtitle {
    color: #6b7280;
}

.public-brand-header__meta {
    align-items: flex-start;
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: .25rem;
    justify-content: center;
    margin-left: auto;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .public-brand-header {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: .65rem;
        padding-block: .2rem;
        text-align: left;
    }

    .public-brand-header__details {
        align-items: flex-start;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .public-brand-header__meta {
        align-items: flex-end;
        margin-left: auto;
        width: auto;
    }

    .tenant-logo--public-header .tenant-logo__frame {
        background: #fff;
        border: 1px solid #e5e7eb;
        max-height: 44px;
        max-width: 120px;
        padding: 4px;
    }

    .tenant-logo--public-header .tenant-logo__image {
        max-height: 34px;
        max-width: 110px;
    }

    .public-brand-header__title {
        font-size: 1rem;
    }

    .public-brand-header__subtitle {
        font-size: .8rem;
        margin-top: .1rem;
    }
}

@media (max-width: 575.98px) {
    .public-brand-header {
        gap: .55rem;
        padding-block: .1rem;
    }

    .tenant-logo--public-header .tenant-logo__frame {
        max-height: 40px;
        max-width: 108px;
        padding: 3px;
    }

    .tenant-logo--public-header .tenant-logo__image {
        max-height: 32px;
        max-width: 100px;
    }
}
