/* Editorial integration only: no hero, purchase or global layout overrides. */
main > .lesson-library {
  --navy: #0b1028;
  --ivory: #f4eedf;
  --copper: #cfa381;
  --serif: Caslon, 'Iowan Old Style', Georgia, serif;
  margin: 0;
  padding-block: clamp(68px, 7vw, 100px) clamp(64px, 6vw, 88px);
  background-color: #0b1028;
  background-image: radial-gradient(ellipse at 50% 57%, #24304730, transparent 63%);
  border-bottom: 1px solid #cfa38118;
}
main > .lesson-library .library-intro {
  max-width: 800px;
  margin: 0 auto 43px;
  text-align: center;
}
main > .lesson-library .library-intro h2 { max-width: 24ch; margin-inline: auto; }
main > .lesson-library .library-intro .lead {
  max-width: 56ch;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.65;
  color: #c8c4bf;
}
.lesson-library .library { padding-bottom: 0; }
.lesson-library .chapter-heading h3 {
  font: 400 30px/1.18 var(--serif);
  letter-spacing: -.012em;
  max-width: none;
  color: #e8dfcf;
}
.lesson-library .chapter-heading .eyebrow { color: #cfa381; font-size: 10px; }
.lesson-library .digital-note {
  color: #b4adad;
  font-size: 11px;
  letter-spacing: .025em;
  margin-top: 28px;
}
.lesson-library .shelf-hint { font-size: 11px; color: #aaa8b2; }
.lesson-library .shelf-count { color: #c8c1c8; font-size: 11px; }
.lesson-library .lesson-number-header { color: #282433; }
.lesson-library .reader-lesson-heading { max-width: none; }
.lesson-library .notes-page h2 {
  max-width: none;
  color: #282433;
  text-wrap: balance;
}
.lesson-library .notes-page ul { list-style: disc; }
.lesson-library .notes-page ul li { padding-left: 2px; }
.lesson-library .lesson-overview .notes-page { overflow: visible; }
.lesson-library .lesson-overview .image-page { max-width: 600px; margin-inline: auto; }
.lesson-library .lesson-book[open] > .lesson-overview { border-radius: 2px; }
.lesson-library .lesson-book[open] > .volume { margin-bottom: 0; }
.lesson-library .lesson-track:focus-visible, .lesson-library .shelf-track:focus-visible { outline-offset: -5px; }
/* Give the two reused course cards the same restrained archive treatment. */
.course-artwork .course-preview-image {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #cfa38138;
  background: #070b1d;
  box-shadow: 0 16px 34px #0003;
  text-decoration: none;
}
.course-artwork .course-preview-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: none;
}
.course-artwork .artwork-open {
  display: block;
  padding: 9px 13px;
  border-top: 1px solid #cfa38120;
  color: #d4b79a;
  font: 400 11px/1.4 var(--sans);
  letter-spacing: .015em;
}
.course-artwork figcaption { margin-top: 15px; }
.course-artwork .course-preview-label { color: #cfa381; font-size: 11px; }
.course-artwork figcaption p { margin-top: 7px; color: #aaa79f; font-size: 13px; line-height: 1.55; max-width: 45ch; }
.fit-with-art .reading-art.course-artwork { max-width: 530px; }
.closing-art.course-artwork { max-width: 690px; }
@media (max-width:650px) {
  main > .lesson-library .library-intro { margin-bottom: 34px; }
  main > .lesson-library .library-intro h2 { font-size: 34px; max-width: 18ch; }
  main > .lesson-library .library-intro .lead { font-size: 16px; margin-top: 17px; }
  .lesson-library .chapter-heading h3 { font-size: 26px; }
  .lesson-library .chapter-heading .eyebrow { font-size: 9px; }
  .lesson-library .digital-note { font-size: 10px; max-width: 32ch; }
  .lesson-library .shelf-hint { font-size: 10px; }
  .lesson-library .shelf-count { font-size: 10px; }
  .fit-with-art .reading-art.course-artwork { max-width: 440px; }
  .course-artwork figcaption p { font-size: 12px; }
}
@media (forced-colors:active) {
  .course-artwork .course-preview-image { border-color: CanvasText; }
  .course-artwork .artwork-open { color: LinkText; border-color: CanvasText; }
  .course-artwork .course-preview-label { color: CanvasText; }
}

/* A physical page can be narrow on a wide, short screen. Type follows the page,
   not viewport width; whole words stay intact without horizontal clipping. */
.lesson-library .paper-spread .notes-page {
  container-type: inline-size;
  padding-inline: clamp(18px, 2vw, 30px);
}
.lesson-library .paper-spread .notes-page h2 {
  font-size: clamp(24px, 17cqi, 46px);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
@media (max-width:650px) {
  .lesson-library .paper-spread .notes-page h2 { font-size: clamp(24px, 13cqi, 31px); }
}

/* Mouse/pen dragging is an enhancement; touch-action remains native and unchanged. */
.lesson-library .lesson-track.is-pointer-dragging {
  scroll-snap-type: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing;
}
.lesson-library .lesson-track.is-pointer-dragging * { cursor: grabbing; }
@media (hover:hover) and (pointer:fine) {
  .lesson-library .lesson-track { cursor: grab; }
  .lesson-library .lesson-track a { cursor: pointer; }
}
