/* ============================================================================
   disease-progression.css -- widget #12 (ordered stages -> detail)

   reuses the item-grid scaffold (.cw-grid / .cw-item / .cw-detail come free).
   the step number + ramp encode each stage's position in the sequence; colors
   are theme tokens only (no per-stage hard-coded hex).
   ============================================================================ */

.cw-stages .cw-grid {
    /* even, narrow stage cards that sit in a row like a progression rail */
    grid-template-columns: repeat(var(--cw-cols, auto-fit), minmax(96px, 1fr));
}

/* narrow screens: ignore the forced --cw-cols count so stage cards reflow
   (2-up) instead of being squeezed into one overflowing row */
@media (max-width: 480px) {
    .cw-stages .cw-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

.cw-stages .cw-stg-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cw-stg-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--cw-accent);
    background: var(--cw-accent-soft);
    border: 1px solid color-mix(in srgb, var(--cw-accent) 35%, transparent);
}

.cw-stg-ramp {
    flex: 1;
    height: 5px;
    border-radius: 100px;
    background: var(--cw-accent-soft);
    overflow: hidden;
}

.cw-stg-ramp-fill {
    display: block;
    height: 100%;
    border-radius: 100px;
    background: var(--cw-accent);
}

.cw-stages .cw-stg-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cw-text);
}

.cw-stages .cw-stg-cue {
    font-size: 0.7rem;
    color: var(--cw-muted);
}

.cw-stg-badge {
    display: inline-block;
    margin-right: 9px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--cw-accent);
    background: var(--cw-accent-soft);
    vertical-align: middle;
}
