/* ============================================================
   경제 탐험대 — 인쇄 (P1) · index.html 에서 media="print" 로만 읽는다
   선생님 슬라이드에서 인쇄하면 「수업 메모판」: A4 세로 한 면에 2장 (슬라이드 그림 + 발표자 메모 + 적는 줄)
   js/slides.js 가 모든 장을 .ec-sl__print 에 미리 그려 둔다. 영상 장은 섬네일과 제목·길이만.
   크기는 화면 CSS 의 --ec-sl-* 변수를 mm·pt 로 다시 정해 같은 모양을 작게 편다.
   ============================================================ */
@page { size: A4 portrait; margin: 10mm 12mm; }

/* 슬라이드 화면 — 화면 부품은 숨기고 메모판만 */
body.ec-body--slides { background: none; min-height: 0; }
.ec-sl { display: block; height: auto; background: none; }
.ec-sl > .ec-sl__head,
.ec-sl > .ec-sl__progress,
.ec-sl > .ec-sl__stage,
.ec-sl > .ec-sl__notes,
.ec-sl > .ec-sl__toast,
.ec-sl > .ec-sl__bar { display: none !important; }

.ec-sl__print {
  display: block;
  --ec-sl-body: 12.5pt;
  --ec-sl-title: 19pt;
  --ec-sl-q: 15pt;
  --ec-sl-label: 9.5pt;
  --ec-sl-pic: 15mm;
  --ec-sl-pad: 7mm;
  --ec-sl-gap: 3.5mm;
  color: var(--yj-ink);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.ec-pr__head {
  margin: 0 0 3mm;
  padding-bottom: 2mm;
  border-bottom: 1px solid var(--yj-line-strong);
  font-size: 9pt;
  color: var(--yj-sub);
}
.ec-pr__head b { font-family: var(--yj-font-serif); font-size: 11pt; color: var(--yj-ink-deep); }

/* 한 면에 2장 */
.ec-pr__item {
  height: 132mm;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 3mm;
  padding: 3mm 0;
  break-inside: avoid;
  page-break-inside: avoid;
}
.ec-pr__item:nth-of-type(2n) { break-after: page; page-break-after: always; border-top: 1px dashed var(--yj-line-strong); }
.ec-pr__item:last-of-type { break-after: auto; page-break-after: auto; }

.ec-pr__slide .ec-sl__card {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  justify-content: center;
  box-shadow: none;
  border: 1px solid var(--yj-line-strong);
  border-radius: var(--yj-r-sm);
  background: var(--yj-card);
}

/* 인쇄에서는 세 칸 흐름·영상·그림을 언제나 가로로 */
.ec-sl__print .ec-sl__flow { flex-direction: row; }
.ec-sl__print .ec-sl__arrow svg { transform: none; width: 6mm; height: 6mm; }
.ec-sl__print .ec-sl__video { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.ec-sl__print .ec-sl__title { grid-template-columns: auto minmax(0, 1fr); }
.ec-sl__print .ec-sl__why { grid-auto-flow: column; }
.ec-sl__print .ec-sl__step { padding: 2.5mm 3mm; }
.ec-sl__print .ec-sl__thumb { max-height: 48mm; }

/* 메모 칸 — 데이터의 메모 한 줄 + 손으로 적는 줄 */
.ec-pr__notes { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 1.5mm; min-height: 0; }
.ec-pr__no { margin: 0; font-size: 8.5pt; font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink); }
.ec-pr__memo { margin: 0; font-size: 10.5pt; line-height: 1.6; color: var(--yj-ink-deep); }
.ec-pr__lines {
  min-height: 12mm;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 7.4mm, var(--yj-line-strong) 7.4mm, var(--yj-line-strong) 7.6mm);
}

/* 개념 지면·대문에서 인쇄할 때는 슬라이드 메모판이 없으니 아무것도 바꾸지 않는다 */
