/* ============================================================
   Video Course (participant course player, quiz and result): placement only.
   Every card is a design-system pane, the messages are callouts, the quiz
   choices are radios and the actions are buttons. This sheet owns the
   column the page stacks in, the course meta line, the player's frame, the
   quiz form's stack, and the result figure's centring.
   Reads only --t-* and --c-* tokens.
   ============================================================ */

@layer layout {
  /* The way back sits at the leading edge, not stretched across the grid. */
  .video-course .video-course-back { justify-self: start; }

  /* The verdict under the score is a sentence, set bold, as on the base. */
  .video-course .video-course-score .caption {
    font-size: var(--t-font-size-md); font-weight: var(--t-font-weight-bold);
    text-transform: none; letter-spacing: normal;
  }

  .video-course .video-course-meta { display: flex; flex-wrap: wrap;
                                      align-items: baseline; gap: var(--t-space-3);
                                      margin: 0; }

  /* Player: the video fills the card's width; the pane clips its corners. */
  .video-course .video-course-player { margin: 0; display: grid; }
  .video-course .video-course-media { display: block; inline-size: 100%;
                                       aspect-ratio: 16 / 9; }
  .video-course .video-course-caption { padding: var(--t-space-3) var(--t-space-5); }
  .video-course .video-course-description { margin: 0; }

  .video-course .video-course-quiz-form { display: grid; gap: var(--t-space-5); }

  /* A legend is not a grid item, so the fieldset's gap does not reach below
     it: give it its own room. */
  .video-course .video-course-question legend { margin-block-end: var(--t-space-2); }
  .video-course .video-course-question-text { margin: 0; }

  /* The quiz's one action sits at the row's end. This is the page's choice;
     a button row starts at the start. */
  .video-course .video-course-submit { justify-content: flex-end; }

  /* The result leads with its score, centred on the card. */
  .video-course .video-course-score { justify-items: center; text-align: center; }
}

@layer design {
  .video-course .video-course-category { font-size: var(--t-font-size-sm);
                                          font-weight: var(--t-font-weight-semibold);
                                          color: var(--c-surface-text-color-interactive); }
  .video-course .video-course-duration { font-size: var(--t-font-size-sm);
                                          color: var(--c-surface-text-color-muted); }
  .video-course .video-course-caption { font-size: var(--t-font-size-sm);
                                         color: var(--c-surface-text-color-muted); }
  .video-course .video-course-description { color: var(--c-surface-text-color-muted); }
  .video-course .video-course-question-text { font-weight: var(--t-font-weight-semibold);
                                               color: var(--c-surface-text-color-base); }
}
