/*
 * Subnav — a scrollable pill strip under a page title (System, Evolve,
 * Governance). Same pill as the primary nav; active pill is soft
 * primary. No wrapping: on narrow screens the strip scrolls and main.js
 * scrolls the active pill into view.
 */
.subnav { min-width: 0; margin: 0; }
.subnav__list {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    /* Let the focus ring of the first/last pill show without being
       clipped by the scroll container. */
    margin: -2px calc(-1 * var(--sp-1));
    padding-left: var(--sp-1);
    padding-right: var(--sp-1);
    padding-top: 2px;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__item { display: flex; flex-shrink: 0; }
.subnav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    height: 30px;
    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);
}
.subnav__link:hover { color: var(--color-text); background: var(--color-surface-hi); }
.subnav__link--active,
.subnav__link--active:hover {
    color: var(--color-primary-hi);
    background: var(--color-primary-soft);
}

/* Gain — a numeric delta used in reflection tables and capability
   regression rows. */
.gain     { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.gain--ok { color: var(--color-success); }
.gain--bad{ color: var(--color-danger); }
