/* OkonaPortalNav — shared section tabs in the portal header
   (developers/portal-nav.js; portal IA redesign Phase 0, 2026-08-18).
   Depends on the global design tokens in /styles.css and the
   .dash-header layout in dashboard.css. */

.dash-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    min-width: 0;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.portal-nav::-webkit-scrollbar { display: none; }

.portal-nav-link {
    position: relative;
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.portal-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.portal-nav-link:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.portal-nav-active,
.portal-nav-active:hover {
    color: var(--text-primary);
    background: transparent;
}

/* Gold underline marks the current section */
.portal-nav-active::after {
    content: '';
    position: absolute;
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: -2px;
    height: 2px;
    border-radius: 1px;
    background: var(--color-gold);
}

/* Count badge (pending offers etc.) */
.portal-nav-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--color-gold);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.6;
    vertical-align: middle;
}

/* Narrow screens: tabs drop to a second header row */
@media (max-width: 720px) {
    .dash-header {
        flex-wrap: wrap;
        row-gap: var(--space-sm);
    }

    .dash-header-left {
        display: contents;
    }

    .portal-nav {
        order: 3;
        width: 100%;
    }
}
