/* Video reviews. Mobile: video on top, comments below. Desktop: two columns, video stays in view. */
.review-group { margin-top: 2.6rem; }
.review-group .h2 { margin-bottom: 1rem; }
.review-section { padding-top: clamp(1.5rem, 4vw, 3rem); }
.review-head { margin: 1rem 0 1.4rem; }
.review-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 300; line-height: 1.15; overflow-wrap: anywhere; }
.review-head .muted { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 960px) {
  .review-layout { grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 1fr); align-items: start; }
}
/* Keep the video in view below the sticky site nav, only where the column fits the screen. */
@media (min-width: 960px) and (min-height: 820px) {
  .review-stage { position: sticky; top: 6rem; }
}
.review-player { position: relative; }
.review-player, .composer { scroll-margin-top: 6rem; }
.review-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #111; }
.review-toolbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: .9rem; }
.review-clock { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4.2rem; }
.review-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline-light); }
.review-summary { margin-bottom: 1.6rem; }
.review-summary .h3 { margin-bottom: .5rem; display: block; }
.comment-list, .comment-replies { list-style: none; margin: 0; padding: 0; }
.comment { border-top: 1px solid var(--hairline-light); padding: .9rem .6rem; border-radius: .4rem; }
.comment.is-active { background: var(--forest-tint); }
.comment-replies { margin: .6rem 0 0 .4rem; padding-left: .9rem; border-left: 2px solid var(--hairline-light); }
.comment-replies .comment { border-top: 0; padding: .5rem 0 .2rem .2rem; }
.comment-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.comment-author { font-size: var(--fs-small); font-weight: 600; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: .45rem 0 .2rem; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.time-chip {
  font: inherit; font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums;
  min-height: 32px; padding: .2rem .75rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--forest); background: transparent; color: var(--forest);
}
.time-chip:hover, .time-chip:focus-visible { background: var(--forest); color: var(--cream); }
.link-btn { background: none; border: 0; padding: .35rem 0; min-height: 32px; font: inherit; font-size: var(--fs-small);
  color: var(--ember); text-decoration: underline; cursor: pointer; }
.composer { border: 1px solid var(--hairline-light); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; background: #fff; }
.composer-context { font-size: var(--fs-small); font-weight: 600; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.composer textarea, .form-field textarea, .form-field input, .form-field select {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: #fff;
  padding: .65rem .8rem; border: 1px solid rgba(28, 25, 23, .32); border-radius: .5rem;
}
.composer textarea:focus-visible, .form-field :is(textarea, input, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.form-field { display: grid; gap: .4rem; margin-bottom: 1.2rem; }
.form-field label { font-weight: 600; }
.form-hint { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.form-status { min-height: 1.4em; margin-top: .8rem; }
.review-form { max-width: 40rem; margin-top: 1.4rem; }
.review-notices .notice { margin-top: 0; }
.review-form .btn[hidden] { display: none; }
/* F1.1: student search, progress timeline and the video stepper. */
.finder { max-width: 40rem; }
.finder-results { margin-top: .4rem; }
.review-timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--hairline-light); }
.timeline-item { position: relative; margin: 0 0 1.1rem; }
.timeline-item::before { content: ''; position: absolute; left: calc(-1.1rem - 6px); top: 1.15rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--forest); }
.timeline-link { display: grid; gap: .3rem; padding: .8rem 1rem; border: 1px solid var(--hairline-light); border-radius: var(--radius);
  color: inherit; text-decoration: none; background: #fff; }
.timeline-link:hover, .timeline-link:focus-visible { border-color: var(--forest); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: var(--fs-small); color: var(--ink-soft); }
.timeline-step { font-weight: 700; color: var(--forest); }
.timeline-summary { font-size: var(--fs-small); color: var(--ink-soft); overflow-wrap: anywhere; white-space: pre-wrap; }
.review-stepper { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .8rem; }
.review-step { font-size: var(--fs-small); font-weight: 600; }
.review-actions[hidden] { display: none; }
