.tph {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    min-width: 0;
    width: min(100%, 1340px);
    margin-inline: auto;
}

.tph__brand,
.tph__nav,
.tph__nav a {
    display: inline-flex;
    align-items: center;
}

.tph__brand {
    min-width: 0;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
}

.tph__brand span {
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #07100d;
    background: linear-gradient(135deg, var(--tenant-pop) 0 48%, var(--tenant-mint) 49% 100%);
    font-size: 0.92rem;
    font-weight: 900;
}

.tph__brand strong {
    overflow: hidden;
    max-width: 18rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tph__nav {
    gap: 0.15rem;
    min-width: 0;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(7, 12, 11, 0.42);
    backdrop-filter: blur(18px);
}

.tph__nav a {
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.52rem 0.85rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.tph__nav a.is-active,
.tph__nav a:hover,
.tph__nav a:focus-visible {
    color: #07100d;
    background: #fff;
    outline: none;
}

.tph .theme-toggle--tenant-public {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.tph .theme-toggle--tenant-public:hover,
.tph .theme-toggle--tenant-public:focus-visible {
    border-color: rgba(var(--tenant-secondary-rgb), 0.48) !important;
    background: rgba(var(--tenant-secondary-rgb), 0.14);
}

.tph .theme-toggle--tenant-public .material-symbols-rounded {
    font-size: 1.05rem;
}

@media (max-width: 880px) {
    .tph {
        align-items: flex-start;
        flex-direction: column;
    }

    .tph__nav {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tph__nav::-webkit-scrollbar {
        display: none;
    }
}
