/* Lecture library multi-select (student route).
 * Lectures toggle on click; the "Exam N" row at the top of an exam's lecture list
 * selects or clears every lecture and stays in view while the list scrolls. */

body[data-route="student"] .student-library__exam-all {
  position: sticky;
  top: 0;
  z-index: 2;
  border-style: dashed;
  /* Opaque so scrolled lecture rows never show through the pinned row; the shadow marks it as pinned. */
  background-color: var(--surface-pearl);
  box-shadow: 0 8px 14px -10px rgba(15, 23, 42, 0.35);
}

body[data-route="student"] .student-library__exam-all.is-active {
  border-style: solid;
  background-color: var(--surface-pearl);
  background-image: linear-gradient(var(--owen-tint), var(--owen-tint));
}

body[data-route="student"] .student-library__exam-all .student-library__item-title {
  font-weight: 700;
}

body[data-route="student"] .student-library__item[aria-pressed="true"] .student-library__item-chevron,
body[data-route="student"] .student-library__exam-all .student-library__item-chevron {
  font-weight: 700;
  color: var(--lecture-active-accent, currentColor);
}

@media (prefers-reduced-motion: no-preference) {
  body[data-route="student"] .student-library__item[data-library-level="lecture"] .student-library__item-chevron,
  body[data-route="student"] .student-library__exam-all .student-library__item-chevron {
    transition: color 0.18s ease;
  }
}
