/*
 * ReaLearn Tactical (FDE) Intervention — Page-specific additions only.
 * Inherits all shared styles from ../style.css.
 * This file adds:
 *   - Persona toggle (segmented pill above tabs)
 *   - Persona state show/hide
 *   - Per-state subhead
 */

/* ==================== PERSONA TOGGLE ==================== */
.persona-toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    padding: 0.35rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.06);
    width: fit-content;
    max-width: 100%;
}
.persona-tab {
    background: transparent;
    border: none;
    padding: 0.7rem 1.4rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: var(--weight-semibold);
    color: var(--text-color-light);
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.persona-tab i {
    font-size: 0.9375rem;
    color: var(--text-color-muted);
    transition: color 0.2s ease;
}
.persona-tab:hover {
    color: var(--primary-color);
}
.persona-tab.is-active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.18);
}
.persona-tab.is-active i {
    color: var(--accent-color);
}

/* ==================== PERSONA STATES ==================== */
.persona-state {
    display: none;
    animation: fadeIn 0.4s ease;
}
.persona-state.is-active {
    display: block;
}
.persona-state-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: var(--weight-bold);
    margin: 1.75rem auto 1.5rem;
    max-width: 720px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .persona-toggle {
        flex-direction: column;
        border-radius: 1rem;
        width: 100%;
    }
    .persona-tab {
        justify-content: center;
        width: 100%;
    }
    .persona-state-title {
        font-size: 1.125rem;
    }
}
