/* ============================================================
   Lecture · 객체지향 설계 (GoF 디자인 패턴) — slide layout extensions
   Builds on /colors_and_type.css and /slides/_slide.css
   ─ 코어(_slide.css)에 이미 승격된 컴포넌트는 재정의하지 않음:
     def-box · metaphor · mnemonic · real · pass-tip
     · cmp-tbl · trap-row · q-source · tbl.compact · callout.compact
   ─ 여기에는 6강 신규/특수 컴포넌트만 정의.
   ============================================================ */

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

/* ============================================================
   매칭 핍 칩 — 단서 키워드 → 정답 (pass-tip 내부 재사용)
   ============================================================ */
.match { display: flex; flex-direction: column; gap: 7px; }
.match .pair {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.match .pair .cue { background: var(--ink-100); color: var(--ink-900); padding: 6px 12px; border-radius: 7px; font-weight: 700; text-align: center; }
.match .pair .to { color: var(--ok-600); font-weight: 800; text-align: center; }
.match .pair .ans { background: var(--eduwill-yellow); color: var(--ink-1000); padding: 6px 12px; border-radius: 7px; font-weight: 800; text-align: center; }

/* ============================================================
   분류 카드 3분할 — 생성 5 / 구조 7 / 행위 11 (분류 체계 슬라이드)
   ============================================================ */
.class3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.class3 .cls {
  border: 1.5px solid var(--ink-200);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.class3 .cls .hd {
  background: var(--ink-1000);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.class3 .cls .hd .nm { font: 800 18px/1 var(--font-sans); }
.class3 .cls .hd .cnt { font: 900 30px/1 var(--font-sans); color: var(--eduwill-yellow); }
.class3 .cls .bd { padding: 13px 16px; }
.class3 .cls .bd .goal { font-size: 14px; font-weight: 700; color: var(--ink-700); }
.class3 .cls .bd .mn { margin-top: 8px; font: 800 17px/1.3 var(--font-sans); color: var(--ink-1000); letter-spacing: -0.01em; }

/* ============================================================
   패턴 핍 그리드 — 분류별 패턴 나열 (개요 슬라이드, 정의 한 줄 + 빈도)
   ─ .pat-grid > .pat*  (이름 + 영문 + 한 줄 + ★빈도)
   ============================================================ */
.pat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pat-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.pat {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-200);
  border-radius: 9px;
}
.pat .nm { font: 800 15px/1.1 var(--font-sans); color: var(--ink-1000); }
.pat .nm small { font-weight: 600; color: var(--ink-500); font-size: 11px; }
.pat .desc { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-700); line-height: 1.35; margin-top: 2px; }
.pat .freq { font-size: 12px; font-weight: 800; color: var(--eduwill-yellow-700); letter-spacing: -0.04em; white-space: nowrap; }
.pat.hot { background: var(--eduwill-yellow-50); border-color: var(--eduwill-yellow); }
.pat.hot .freq { color: var(--eduwill-yellow-700); }

/* ---------- dense table — 8행 이상 표 행높이 압축 (.tbl.compact.dense 2클래스 스코프) ---------- */
.tbl.compact.dense { font-size: 13.5px; }
.tbl.compact.dense tbody td { padding: 6px 14px; line-height: 1.3; }
.tbl.compact.dense thead th { padding: 8px 14px; font-size: 13px; }

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