/* Orpheus · css/lesson.css. Owner: agent L (the ear lesson page: frame, answers, controls, Listen pass, intro and result states).
   Only what the previews did not need: app states and overrides, each with a comment that says why. Tokens only. */

/* ---------- Entry row: the verdict on the slots ---------- */
/* After the answer each slot shows the entered element with its mark: ink for a right
   one, red for a wrong one (the staff shows the right element). The previews show the
   slots before the answer only. */
.slot.is-right { border-bottom-color: var(--ok); }
.slot.is-wrong { color: var(--bad); border-bottom-color: var(--bad); }

/* ---------- Answer grids with long labels ---------- */
/* `.answers--long` (pages/ear.rs, `Labels`): a second line that is wider than its cell wraps, for example
   "half-diminished seventh" in a line of three cells on a phone, or "major triad, second inversion". A cell
   that needs more room grows, and every line of the grid is as high as the highest one, so the cells stay
   equal. The previews show short second lines only. */
.answers--long { grid-auto-rows: 1fr; }
.answers--long .answer { height: auto; min-height: var(--answer-h); padding: var(--s-1) 0; }
.answers--long .answer__sub { white-space: normal; text-align: center; text-wrap: balance; }

/* ---------- Notes under the frame ---------- */
/* Loading, saving and error lines (SYSTEM.md 4.25) sit under the row they belong to. */
.lesson__note { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.lesson__note .btn { margin-left: var(--s-2); }
/* "Tap to enable sound" while the browser keeps sound off: one centred secondary button. */
.unlock { display: flex; justify-content: center; margin-top: var(--s-5); }

/* ---------- The end of a set ---------- */
/* The ways on after the result card: a drill, the way back, the plan. */
.result-more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.result-more .btn--quiet .kbd { margin-left: var(--s-1); }

/* ---------- The folds at the end: About, Keys ---------- */
/* The two folds come after the control row, which already ends with a rule. */
.lesson > .fold { margin-top: var(--s-5); }
.lesson > .fold + .fold { margin-top: var(--s-2); }

/* ---------- Phone ---------- */
@media (max-width: 599px) {
  /* The error line keeps its button on its own line. */
  .lesson__note { flex-wrap: wrap; }
  .lesson__note .btn { margin-left: 0; }
  /* Names that are words (`.answers--words`, css/theory.css) stand three in a line on a phone. They use the
     body size there, so that the longest word ("subdominant", "pentatonic") fits its cell. */
  .answers--long.answers--words .answer__name { font-size: var(--fs-body); line-height: var(--lh-label); padding: 0 var(--s-1); }
}
