/* Lecture canvas: fill the viewport after the header, leaving 30px for navigation. */
@media (min-width: 901px) {
  .app-column:has(.course-deck.deck-lecture),
  .app-column:has(.course-deck.deck-image-only) {
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .app-column:has(.course-deck) > .app-header { flex: 0 0 auto; }
  body .content-frame:has(> .course-deck.deck-lecture),
  body .content-frame:has(> .course-deck.deck-image-only) {
    flex: 1 1 0;
    min-height: 0;
    padding: 12px 20px 30px;
    display: flex;
    flex-direction: column;
  }
  .content-frame > .course-deck.deck-lecture,
  .content-frame > .course-deck.deck-image-only {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }
  .course-deck.deck-lecture > .deck-heading { flex: 0 0 auto; }
  .course-deck.deck-lecture > .visual-slide-body,
  .course-deck.deck-lecture > .business-slide-body > .visual-slide-body,
  .course-deck.deck-image-only > .deck-image-only-art {
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: center;
    align-self: center;
  }
  .course-deck.deck-lecture > :is(details, .sample-links, .survey-copy-row) {
    flex: 0 0 auto;
    margin-block: 0;
  }
  .course-deck.deck-lecture > :is(.business-slide-body, .survey-question-grid) {
    flex: 1 1 auto;
    min-height: 0;
  }
  .course-deck.deck-lecture > .business-slide-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .course-deck.deck-lecture .business-slide-body > details {
    flex: 0 0 auto;
    margin-block: 0;
  }
  /* Expanded supporting text remains readable through normal document scrolling. */
  .app-column:has(.course-deck.deck-lecture details[open]) { height: auto; min-height: 100dvh; }
  .content-frame > .course-deck.deck-lecture:has(details[open]) .visual-slide-body {
    flex: none;
    height: auto;
    max-height: 60dvh;
  }
}

/* Summary pair: keep native headings and messages identical across body layouts. */
.course-deck.deck-lecture:is([data-slide-id="d2-preserve-finish"], [data-slide-id="d2-summary-apply"]) .deck-heading h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.7rem);
  line-height: 1.4;
  margin: 4px 0 12px;
}
.course-deck.deck-lecture:is([data-slide-id="d2-preserve-finish"], [data-slide-id="d2-summary-apply"]) .deck-message {
  font-size: 1.08em;
  line-height: 1.6;
  padding: 12px 16px;
  margin: 12px 0;
}
