/*
 * Primary nav — a horizontal pill strip. On desktop the pills fit in
 * one row; on narrow screens the strip scrolls horizontally (no wrap,
 * scrollbar hidden) and main.js scrolls the active pill into view.
 * The same pill styling is shared with .subnav (components/_subnav.css).
 */
.nav {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}
.nav__list {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    height: var(--nav-h);
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__item { display: flex; flex-shrink: 0; }
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    height: 32px;
    padding: 0 var(--sp-3);
    border-radius: var(--radius-pill);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--color-text); background: var(--color-surface-hi); }
.nav__link--active,
.nav__link--active:hover {
    color: var(--color-primary-hi);
    background: var(--color-primary-soft);
}
.nav__link .icon { width: 16px; height: 16px; }
