/* ---- leads badge in the top nav ---- */

.nav-leads { position: relative; display: inline-flex; }

.nav-leads > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--dim);
    text-decoration: none;
}

.nav-leads > a:hover { color: var(--text); }

.nav-badge {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1;
    color: var(--on-brand);
    background: var(--brand);
    border-radius: 9px;
    padding: 3px 6px;
    min-width: 17px;
    text-align: center;
}

/* Site-wise breakdown, revealed on hover or keyboard focus. */
.nav-pop {
    position: absolute;
    top: calc(100% + 10px);
    left: -10px;
    min-width: 190px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 5px;
    box-shadow: 0 8px 24px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-3px);
    transition: opacity 120ms, transform 120ms, visibility 120ms;
    z-index: 70;
}

.nav-leads:hover .nav-pop,
.nav-leads:focus-within .nav-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Bridges the gap so the panel doesn't vanish as the pointer travels to it. */
.nav-pop::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-pop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 9px;
    border-radius: 5px;
    font-size: 13px;
    color: var(--dim);
    text-decoration: none;
    white-space: nowrap;
}

.nav-pop-row:hover { background: var(--panel-hi); color: var(--text); }

.nav-pop-count {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--brand-lift);
}

/* ---- lead chip on a site row ---- */

.chip-leads {
    color: var(--on-brand);
    background: var(--brand);
    border-color: var(--brand);
}

.chip-leads:hover { background: var(--brand-lift); border-color: var(--brand-lift); }

@media (max-width: 620px) {
    .nav-pop { display: none; }
}
