/* SuccessPath quiz UI: mobile-first, single question per screen, results viz. */

.quiz-shell { max-width: 36rem; margin: 0 auto; padding: var(--s8) var(--s4) var(--s16); min-height: 70vh; }

/* Progress */
.progress { height: 0.625rem; background: #f1e8d4; border-radius: var(--radius-pill); overflow: hidden; margin-bottom: var(--s2); }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--coral)); border-radius: var(--radius-pill); transition: width 0.25s ease; }
.progress-meta { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--s6); }

/* Question card */
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--s8) var(--s6); text-align: center; }
.q-text { font-size: var(--text-xl); font-weight: 700; font-family: var(--font-display); margin-bottom: var(--s6); }
.q-nav { display: flex; justify-content: space-between; margin-top: var(--s6); }
.q-nav .btn-ghost { border: 0; color: var(--muted); }

/* Likert scale — stacked buttons on mobile */
.likert { display: grid; gap: var(--s2); }
.likert button { appearance: none; border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: var(--s3) var(--s4); font-family: var(--font); font-size: var(--text-base); font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color 0.12s, background 0.12s; text-align: left; display: flex; align-items: center; gap: var(--s3); }
.likert button::before { content: ""; flex: 0 0 1.1rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--line); }
.likert button:hover { border-color: var(--brand); background: var(--brand-soft); }
.likert button.selected { border-color: var(--brand); background: var(--brand-soft); }
.likert button.selected::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px #fff; }
.likert .scale-hint { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--muted); margin-bottom: var(--s2); }

/* Track switcher */
.track-toggle { display: flex; background: #f1e8d4; border-radius: var(--radius-pill); padding: var(--s1); gap: var(--s1); margin-bottom: var(--s6); }
.track-toggle a { flex: 1; text-align: center; padding: var(--s2); border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; font-size: var(--text-sm); color: var(--muted); }
.track-toggle a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Results */
.results-hero { text-align: center; padding: var(--s8) 0; }
.results-hero .emoji-big { font-size: 3rem; }
.trait-row { display: grid; grid-template-columns: 1fr; gap: var(--s4); margin-bottom: var(--s4); }
.trait-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6); box-shadow: var(--shadow-sm); }
.trait-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s2); }
.trait-head h3 { margin: 0; display: flex; align-items: center; gap: var(--s2); }
.trait-nudge { background: var(--accent-soft); border-radius: var(--radius); padding: var(--s4); margin-top: var(--s4); font-size: var(--text-sm); }
.trait-nudge strong { color: var(--accent-deep); }

/* Score bars */
.bar { height: 0.75rem; background: #f1e8d4; border-radius: var(--radius-pill); overflow: hidden; margin: var(--s2) 0; }
.bar > div { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--brand), #2b8a86); }
.bar-meta { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--muted); }
.facet-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.facet-chip { font-size: var(--text-xs); font-weight: 700; background: var(--brand-soft); color: var(--brand-deep); padding: var(--s1) var(--s3); border-radius: var(--radius-pill); }

/* Radar */
.radar-wrap { display: flex; justify-content: center; margin: var(--s6) 0; }
.radar-wrap svg { max-width: 100%; height: auto; }

/* Management style paragraph */
.style-para { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s4) var(--s6); font-size: var(--text-lg); }

/* CTA band after results */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: var(--s8) var(--s6); text-align: center; margin: var(--s8) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8e2e2; }
.cta-band .btn-accent { margin-top: var(--s3); }

@media (min-width: 720px) {
  .trait-row { grid-template-columns: 1fr 1fr; }
}
