/*
 * exit-strategy.css — Exit Strategy Selector
 * Batch 46: Flip / Hold / Wholesale segmented control in Decision Hero.
 * Zero hardcoded colors — CSS vars only.
 * Placed inside .dash-hero__left, ABOVE .dash-hero__offer-range.
 */

/* ============================================================
   WRAPPER
   ============================================================ */
.lf-exit-selector-wrap {
    margin-bottom: 12px;
    padding: 10px 0;
}

/* ============================================================
   LABEL + CHIPS ROW
   ============================================================ */
.exit-selector__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.exit-selector__label {
    display: inline-block;
    margin-right: 8px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.exit-selector__chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ============================================================
   INDIVIDUAL CHIPS
   ============================================================ */
.exit-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    border: 1px solid var(--blue-steel);
    background: transparent;
    color: var(--blue-steel);
    outline: none;
}

.exit-chip:hover:not(.is-active) {
    background: var(--surface-card);
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.exit-chip:focus-visible {
    box-shadow: 0 0 0 2px var(--gold-alpha-50);
}

/* Active chip — gold fill */
.exit-chip.is-active {
    background: var(--gold-500);
    color: var(--text-inverse);
    border-color: transparent;
    box-shadow: var(--glow-gold-sm);
}

/* ============================================================
   SUMMARY LINE — selected exit metrics
   ============================================================ */
.exit-selector__summary {
    display: block;
    margin-top: 6px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    line-height: var(--leading-snug);
}

/* ============================================================
   BEST EXIT LINE — delta / recommendation
   ============================================================ */
.exit-selector__best {
    display: block;
    margin-top: 4px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: var(--weight-semibold);
    color: var(--gold-500);
    line-height: var(--leading-snug);
}

/* ============================================================
   MOBILE — ≤640px
   Chips stack vertically, full width
   ============================================================ */
@media (max-width: 640px) {
    .exit-selector__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .exit-selector__chips {
        flex-direction: column;
        width: 100%;
    }

    .exit-chip {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
