/* Desktop/tablet: show each unique teaching point once. Mobile is unchanged. */
@media screen and (min-width: 721px) {
  body:has(.player-shell) .bar { min-height: 52px; padding: .35rem 1rem; font-size: .85rem; gap: .5rem; }
  body:has(.player-shell) main { max-width: 1600px; padding: .5rem 1rem; }
  body:has(.player-shell) footer { font-size: .7rem; line-height: 1.35; padding: 0 1rem .35rem; }
  .player-shell { grid-template-columns: 174px minmax(0,1fr); min-height: 0; }
  .player-shell .journey { padding: .65rem; }
  .player-shell .journey > p { margin: .4rem 0; font-size: .8rem; }
  .player-shell .progress-track { margin: .25rem 0 .4rem; }
  .player-shell .journey ol { gap: 0; max-height: calc(100dvh - 230px); overflow-y: auto; }
  .player-shell .journey li { padding: .08rem .15rem; font-size: .72rem; line-height: 1.3; gap: .35rem; }
  .player-shell .journey li span { height: 1.15rem; width: 1.15rem; }
  .player-shell .learning-slide { padding: .8rem 1rem; max-width: none; justify-content: start; gap: .55rem; font-size: 15.5px; line-height: 1.4; }
  .player-shell .learning-slide h1 { font-size: clamp(1.35rem,2.2vw,2rem); line-height: 1.15; margin: 0 0 .3rem; }
  .player-shell .learning-slide h2 { font-size: 1rem; line-height: 1.3; margin: 0 0 .3rem; }
  .player-shell .learning-slide p { margin: 0; line-height: 1.4; }
  .player-shell .step-label { font-size: .7rem; margin: 0; }
  .player-shell .lesson-copy, .player-shell .lead { font-size: 1rem; line-height: 1.4; max-width: none; }
  .player-shell .slide-nav { position: sticky; bottom: 0; z-index: 3; background: #fff; padding: .4rem 1rem; gap: .5rem; }
  .player-shell .slide-nav .button { min-height: 44px; padding: .6rem 1rem; }
  /* Every hidden panel below repeats text retained in the visible teaching cards. */
  .deep-lesson .structured-visual-lesson,
  .practice-slide .structured-visual-activity { display: none; }
  .player-shell .deep-lesson { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; }
  .deep-lesson > .step-label, .deep-lesson > h1, .deep-lesson > .lesson-core-grid,
  .deep-lesson > .term-grid, .deep-lesson > .lesson-sources { grid-column: 1 / -1; }
  .player-shell .lesson-core-grid { display: block; margin: 0; }
  .player-shell .lesson-introduction { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; padding: .65rem; }
  .player-shell .takeaway { padding: .6rem .75rem; margin: 0; line-height: 1.4; }
  .player-shell .detail-card, .player-shell .example-card { padding: .65rem .75rem; margin: 0; min-width: 0; }
  .player-shell .term-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin: 0; }
  .player-shell .term-grid > section { padding: .6rem .75rem; }
  .player-shell .lesson-sources { font-size: .78rem; line-height: 1.35; }
  .player-shell .deep-lesson > .lesson-core-grid { display: contents; }
  .player-shell .deep-lesson .lesson-introduction { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; gap: .5rem; }
  .player-shell .deep-lesson > .detail-card { grid-column: 1; grid-row: 3 / span 3; }
  .player-shell .deep-lesson > .example-card { grid-column: 2; grid-row: 4; }
  .player-shell .deep-lesson > .term-grid { grid-column: 2; grid-row: 5; }
  .player-shell .practice-slide { display: flex; flex-direction: column; gap: .7rem; }
  .player-shell .choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin: 0; }
  .player-shell .choice-list button { min-height: 48px; padding: .8rem; font-size: 1rem; line-height: 1.4; }
  .player-shell .feedback { min-height: 2.8rem; padding: .65rem; margin: 0; font-size: .95rem; }
  .player-shell .module-opening { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; align-content: start; }
  .module-opening .module-intro-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: .5rem; }
  .module-opening > .structured-visual-hero { grid-column: 2; grid-row: 1; margin: 0; order: initial; }
  .module-opening .structured-visual-hero > .structured-visual-header,
  .module-opening .structured-visual-hero > .structured-visual-boundary,
  .module-opening .structured-visual-hero > figcaption { display: none; }
  .module-opening .structured-visual-roadmap { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; padding: .8rem; font-size: .9rem; }
  .module-opening .structured-visual-roadmap li { gap: .4rem; }
  .module-opening .structured-visual-roadmap li > span { flex-basis: 1.5rem; height: 1.5rem; }
  .player-shell .module-outcomes { grid-column: 1; grid-row: 2; padding-top: .5rem; }
  .player-shell .module-outcomes ul { margin: .25rem 0; padding-inline-start: 1.2rem; }
  .player-shell .module-outcomes li { margin: .2rem 0; line-height: 1.35; }
  .player-shell .module-opening .module-video { grid-column: 2; grid-row: 2; padding: .8rem; display: block; }
  .player-shell .module-video-copy { display: flex; flex-direction: column; gap: .4rem; }
  .player-shell .boundary { padding: .6rem .75rem; margin: 0; line-height: 1.4; }
  .player-shell .source-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; padding: 0; margin: .5rem 0; }
  .player-shell .source-links li { margin: 0; }
  .player-shell .source-links a { padding: .65rem; min-height: 44px; }
  .player-shell .completion-slide { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; }
  .completion-slide > .step-label, .completion-slide > h1, .completion-slide > .lead { grid-column: 1 / -1; }
  .completion-slide > .check-list { grid-column: 1; grid-row: 4 / span 3; margin: .3rem 0; padding-inline-start: 1.3rem; }
  .completion-slide > .check-list li { margin: .25rem 0; line-height: 1.4; }
  .player-shell .completion-slide dl { grid-column: 2; grid-row: 4; margin: 0; gap: .4rem; font-size: .85rem; }
  .player-shell .completion-slide dl > div { padding: .5rem; }
  .completion-slide > .boundary, .completion-slide > p:not(.step-label):not(.lead), .completion-slide > .learning-resource-actions { grid-column: 2; }
  .player-shell .learning-resource-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
  .player-shell .learning-resource-actions .button { padding: .65rem; min-height: 44px; font-size: .8rem; }
}
/* A viewport-sized workspace, with complete text retained in scrollable cards.
   Short windows and zoomed layouts retain normal page scrolling. */
@media screen and (min-width: 721px) and (min-height: 640px) {
  .player-shell { height: var(--workspace-height,calc(100dvh - 150px)); }
  .player-shell .stage { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
  .player-shell .learning-slide { flex: 1 1 0; min-height: 0; overflow: auto; }
  .player-shell .slide-nav { flex: 0 0 auto; position: sticky; bottom: 0; }
  .player-shell .deep-lesson { grid-template-rows: auto auto minmax(0,1fr) minmax(0,.8fr) minmax(0,.8fr) auto; align-content: stretch; }
  .player-shell .deep-lesson:has(.lesson-narration) { grid-template-rows: auto auto auto minmax(0,1fr) minmax(0,.8fr) minmax(0,.8fr) auto; }
  .deep-lesson > .lesson-narration { grid-column: 1 / -1; grid-row: 3; }
  .deep-lesson:has(.lesson-narration) .lesson-introduction { grid-row: 4; }
  .deep-lesson:has(.lesson-narration) > .detail-card { grid-row: 4 / span 3; }
  .deep-lesson:has(.lesson-narration) > .example-card { grid-row: 5; }
  .deep-lesson:has(.lesson-narration) > .term-grid { grid-row: 6; }
  .player-shell .lesson-narration { margin: 0; }
  .player-shell .lesson-narration audio { height: 36px; }
  .player-shell .deep-lesson :is(.detail-card,.lesson-introduction,.example-card,.term-grid),
  .player-shell .module-opening > :is(.module-intro-copy,.structured-visual-hero,.module-outcomes,.module-video),
  .player-shell .completion-slide > :is(.check-list,dl,.boundary),
  .player-shell .source-links { min-height: 0; overflow: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
  .player-shell .module-opening { grid-template-rows: minmax(0,1fr) minmax(0,1fr); align-content: stretch; }
  .player-shell [data-scroll-card]:focus-visible { outline: 3px solid #087f78; outline-offset: -3px; }
}
@media screen and (min-width: 721px) and (max-width: 1100px) and (min-height: 640px) {
  .player-shell { grid-template-rows: auto minmax(0,1fr); }
}
@media screen and (min-width: 721px) and (max-width: 1100px) {
  .player-shell { grid-template-columns: minmax(0,1fr); }
  .player-shell .journey { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .4rem .75rem; }
  .player-shell .journey > p { margin: 0; }
  .player-shell .journey ol, .player-shell .progress-track { display: none; }
  .player-shell .progress-copy { flex-shrink: 0; gap: .6rem; }
}
