/* Task-specific styles. Shared score/player/answer/fix-card geometry comes
   from speaking-cards.css (.speaking-cards-page); only the scenario card's
   own surface rules live here — 10-layout-guide.md §08. */

/* Structure, not decoration, separates prompt from answer (Tufte): a
   bordered, explicitly labelled card — the response is judged against this
   text, so it stays visible and consultable through every phase (Norman) —
   it compresses after scoring but never collapses. */
.situation-card {
  box-sizing: border-box;
  padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 96%, var(--control-hover));
  transition: padding 0.2s ease;
}

.situation-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.situation-card__text {
  margin: 0;
  font-size: var(--type-question);
  line-height: 1.6;
  transition: font-size 0.2s ease;
}

/* Once scored the scenario compresses (tighter type, same card) — the
   annotated answer below should dominate, but the scenario the response was
   judged against must stay consultable. */
.situation-prompt[data-phase="scored"] .situation-card {
  padding: 12px 16px;
}

.situation-prompt[data-phase="scored"] .situation-card__text {
  font-size: 0.95rem;
}

/* The prep-affordance suppression while the scenario plays now lives in
   main.css's shared .is-prompt-listening rule (AudioRecorder.setPromptListening()). */

/* Post-score: the prompt player compacts to a slim replay bar — reference
   material, not a second hero (Tufte), matching Retell Lecture's principle 7
   treatment. */
#questionAudioPlayer[data-phase="scored"] .recording-player__label {
  display: none;
}

#questionAudioPlayer[data-phase="scored"] .recording-player {
  padding: 8px 12px;
}

@media (prefers-reduced-motion: reduce) {
  .situation-card,
  .situation-card__text {
    transition: none;
  }
}
