/* ============================================================
   Lecture 4 · 화면 설계 — slide layout extensions
   Builds on /colors_and_type.css and /slides/_slide.css
   ============================================================ */

/* ---------- Hero · 인트로 / 클로징 ---------- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: var(--ink-1000);
  color: var(--eduwill-yellow);
  font: 800 14px/1 var(--font-sans);
  letter-spacing: 0.14em;
  border-radius: 2px;
  text-transform: uppercase;
}

.hero-h1 {
  font: 800 76px/1.05 var(--font-sans);
  letter-spacing: -0.035em;
  color: var(--ink-1000);
  margin: 24px 0 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.hero-h1 .mark {
  background: linear-gradient(transparent 62%, var(--eduwill-yellow) 62%, var(--eduwill-yellow) 96%, transparent 96%);
  padding: 0 8px;
}

.hero-sub {
  margin: 22px 0 0;
  font: 500 22px/1.5 var(--font-sans);
  color: var(--ink-700);
  max-width: 720px;
}

/* ---------- Definition box · 개념 정의 ---------- */
.def-box {
  display: grid;
  grid-template-columns: 132px 1fr;
  background: var(--ink-1000);
  border-radius: 12px;
  overflow: hidden;
  align-items: stretch;
}
.def-box .term {
  background: var(--eduwill-yellow);
  color: var(--ink-1000);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.def-box .term .abbr {
  font: 800 44px/1 var(--font-sans);
  letter-spacing: -0.02em;
}
.def-box .term .full {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 6px;
  opacity: 0.75;
}
.def-box .body {
  padding: 24px 28px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.def-box .body .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--eduwill-yellow);
  text-transform: uppercase;
}
.def-box .body .text {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.55;
  color: white;
  font-weight: 500;
}
.def-box .body .text b {
  color: var(--eduwill-yellow);
  font-weight: 700;
}

/* ---------- Metaphor · 비유 카드 ---------- */
.metaphor {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background: var(--ink-50);
  border-left: 5px solid var(--ink-1000);
  border-radius: 0 8px 8px 0;
}
.metaphor .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--ink-1000);
  color: var(--eduwill-yellow);
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 800;
}
.metaphor .text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-900);
}
.metaphor .text b { color: var(--ink-1000); }

/* ---------- Principle card · 4원칙 단일 슬라이드 ---------- */
.principle-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.principle-card .num-block {
  background: var(--ink-1000);
  color: white;
  padding: 28px 24px;
  border-radius: 14px;
  text-align: center;
}
.principle-card .num-block .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--eduwill-yellow);
  text-transform: uppercase;
}
.principle-card .num-block .ko {
  font: 800 56px/1 var(--font-sans);
  margin-top: 14px;
  letter-spacing: -0.02em;
}
.principle-card .num-block .en {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  font-weight: 500;
}
.principle-card .num-block .index {
  font: 800 14px/1 var(--font-mono);
  background: var(--eduwill-yellow);
  color: var(--ink-1000);
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 4px;
}

/* ---------- 4-step pipeline · 와목프스 정밀도 단계 ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.pipeline .step {
  padding: 20px 18px;
  background: white;
  border: 1.5px solid var(--ink-200);
  border-radius: 12px;
  position: relative;
}
.pipeline .step + .step { margin-left: -1.5px; }
.pipeline .step .num {
  font: 800 12px/1 var(--font-mono);
  color: var(--eduwill-yellow-700);
  letter-spacing: 0.1em;
}
.pipeline .step .name {
  margin-top: 8px;
  font: 800 22px/1.15 var(--font-sans);
  color: var(--ink-1000);
  letter-spacing: -0.01em;
}
.pipeline .step .meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 600;
}
.pipeline .step .stars {
  margin-top: 14px;
  font-size: 14px;
  color: var(--eduwill-yellow);
  letter-spacing: 2px;
}
.pipeline .step .key {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.4;
}

/* ---------- 두문자어 emphasized box ---------- */
.mnemonic {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--ink-1000);
  color: white;
  border-radius: 10px;
}
.mnemonic .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--eduwill-yellow);
  text-transform: uppercase;
}
.mnemonic .phrase {
  flex: 1;
  font-size: 22px;
  font-weight: 700;
  color: white;
}
.mnemonic .phrase .keep { color: var(--eduwill-yellow); font-weight: 800; }

/* ---------- Practical link · 실무 연결 strip ---------- */
.real {
  border-radius: 10px;
  background: var(--info-50);
  border-left: 5px solid var(--info-500);
  padding: 14px 20px;
}
.real .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--info-700);
  text-transform: uppercase;
}
.real .text {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
}

/* ---------- 합격 공식 strip ---------- */
.pass-tip {
  border-radius: 10px;
  background: var(--eduwill-yellow-100);
  border-left: 5px solid var(--eduwill-yellow);
  padding: 14px 20px;
}
.pass-tip .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--eduwill-yellow-700);
  text-transform: uppercase;
}
.pass-tip .text {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-1000);
}

/* ---------- 4-objective grid (학습 목표) ---------- */
.obj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.obj-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-200);
  border-radius: 12px;
}
.obj-item .badge {
  width: 56px;
  height: 56px;
  background: var(--eduwill-yellow);
  color: var(--ink-1000);
  display: grid;
  place-items: center;
  font: 800 28px/1 var(--font-sans);
  border-radius: 12px;
}
.obj-item h3 {
  margin: 0;
  font: 800 19px/1.15 var(--font-sans);
  color: var(--ink-1000);
}
.obj-item p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.4;
}

/* ---------- 4-type interface grid (CLI/GUI/NUI/OUI) ---------- */
.itype-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.itype {
  background: white;
  border: 1.5px solid var(--ink-200);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.itype .abbr {
  font: 800 32px/1 var(--font-sans);
  color: var(--ink-1000);
  letter-spacing: -0.02em;
}
.itype .full {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.itype .input {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-900);
  font-weight: 600;
}
.itype .ex {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.4;
}
.itype.hilite {
  background: var(--ink-1000);
  border-color: var(--ink-1000);
}
.itype.hilite .abbr,
.itype.hilite .input { color: var(--eduwill-yellow); }
.itype.hilite .full,
.itype.hilite .ex { color: rgba(255,255,255,0.7); }

/* ---------- Compact comparison table (UI vs UX 등) ---------- */
.cmp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.cmp-tbl thead th {
  background: var(--ink-1000);
  color: var(--eduwill-yellow);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
}
.cmp-tbl thead th:first-child { color: white; }
.cmp-tbl tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--ink-200);
}
.cmp-tbl tbody td:first-child {
  font-weight: 700;
  color: var(--ink-700);
  width: 130px;
  background: var(--ink-50);
}
.cmp-tbl tbody tr:last-child td { border-bottom: none; }

/* ---------- Trap row (함정 패턴) ---------- */
.trap-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: white;
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  font-size: 15px;
}
.trap-row + .trap-row { margin-top: 8px; }
.trap-row .n {
  width: 28px;
  height: 28px;
  background: var(--err-500);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  border-radius: 6px;
  font-size: 13px;
}
.trap-row .trap {
  color: var(--ink-700);
  font-weight: 500;
}
.trap-row .trap::before {
  content: "✗ ";
  color: var(--err-500);
  font-weight: 800;
}
.trap-row .answer {
  color: var(--ink-1000);
  font-weight: 700;
}
.trap-row .answer::before {
  content: "→ ";
  color: var(--ok-500);
  font-weight: 800;
}

/* ---------- Q layout ---------- */
.q-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--ink-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

/* utility: small caption */
.cap { font-size: 12px; color: var(--ink-500); }

/* ---------- Compact 변형 — 푸터 안전영역(y≤672) 보존용 ----------
   콘텐츠가 많은 슬라이드(여러 행 표 + callout 동시 배치 등)에서
   .compact 클래스를 더하면 패딩·폰트·줄간격을 일괄 축소.
   .tbl + .callout 양쪽에 동일 어휘로 적용. ---------------- */
.tbl.compact { font-size: 15px; }
.tbl.compact thead th { padding: 10px 16px; }
.tbl.compact tbody td { padding: 10px 16px; line-height: 1.35; }

.callout.compact { padding: 14px 18px; }
.callout.compact .label { font-size: 12px; margin-bottom: 4px; }
.callout.compact .body { font-size: 16px; line-height: 1.5; }
