/* =========================================================================
   learn.css — 유형 익히기 화면 (types.html)
   -------------------------------------------------------------------------
   헤더 · 버튼 · 타이포는 css/site.css 를 그대로 씁니다.
   여기서 다시 정의하면 랜딩과 학습 화면이 조금씩 어긋나기 시작합니다.

   ⚠️ 말풍선 · 출처 배지는 **css/bubble.css** 에 따로 있습니다.
      이 파일보다 먼저 링크하세요. 레이아웃 규칙이 없어 어느 페이지에나 얹힙니다.
   ========================================================================= */

main { padding-top: var(--header-h); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 800px; }

/* =========================================================================
   ③ 유형 익히기 (Type Explorer)
   ========================================================================= */
.lrn-top { background: var(--dark); color: #fff; padding: 70px 0 56px; }
.lrn-top .eyebrow { color: rgba(255,255,255,.85); margin-bottom: 18px; }
.lrn-top h1 {
  font-size: clamp(26px,4.2vw,46px); font-weight: 200;
  letter-spacing: .02em; line-height: 1.14; margin-bottom: 16px;
}
.lrn-top p {
  font-size: clamp(14.5px,1.6vw,17px); font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,.86); max-width: 680px;
}

/* 진행 바 — 헤더 아래 고정. "얼마나 왔는지" 가 항상 보여야 합니다. */
.prog {
  position: sticky; top: var(--header-h); z-index: 60;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.prog-in {
  max-width: 1060px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.prog-txt { font-size: 13px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.prog-txt span { color: var(--blue); }
.prog-bar {
  flex: 1 1 180px; height: 6px; border-radius: 999px;
  background: #e8ebef; overflow: hidden; min-width: 120px;
}
.prog-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--blue); transition: width .45s cubic-bezier(.2,.8,.3,1);
}
.prog-skip {
  font-size: 12.5px; color: var(--ink-soft);
  border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap;
}
.prog-skip:hover { color: var(--ink); }

/* 단계 카드 */
.step { padding: 46px 0 60px; }
.step-no {
  font-family: var(--disp); font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px;
}
.step h2 {
  font-size: clamp(22px,3.2vw,34px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.24; margin-bottom: 14px;
}
.step-lead {
  font-size: 15.5px; line-height: 1.8; color: var(--ink-soft);
  max-width: 720px; margin-bottom: 26px;
}
.step-lead b { color: var(--ink); font-weight: 600; }

/* 섹션 개요 타일 */
.ovw { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 26px 0; }
.ovw-item {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ovw-item:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,20,24,.07); }
.ovw-item i {
  font-style: normal; font-family: var(--disp); font-size: 11px;
  letter-spacing: .2em; color: var(--blue); text-transform: uppercase;
}
.ovw-item h3 { font-size: 18px; margin: 9px 0 8px; letter-spacing: -.02em; }
.ovw-item p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.ovw-item .meta {
  display: block; margin-top: 12px; font-family: var(--disp);
  font-size: 12px; letter-spacing: .08em; color: var(--ink-soft);
}

/* 사실 목록 — 공식 수치 */
.facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 22px 0; }
.facts div { background: #fff; padding: 18px 16px; }
.facts dt { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.facts dd { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.facts dd small { font-size: 12.5px; font-weight: 400; color: var(--ink-soft); }

/* 유형 카드 — 클릭하면 펼쳐집니다 */
.types { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.type {
  border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.type.open { border-color: var(--ink); box-shadow: 0 10px 30px rgba(16,20,24,.08); }
.type-btn {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; text-align: left;
}
.type-tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #cfd4dd; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; transition: background .2s, border-color .2s;
}
.type.done .type-tick { background: var(--blue); border-color: var(--blue); }
.type.done .type-tick::after { content: "✓"; }
.type-name { flex: 1 1 auto; }
.type-name b { display: block; font-size: 16px; letter-spacing: -.02em; }
.type-name span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.type-en {
  font-family: var(--disp); font-size: 11px; letter-spacing: .14em;
  color: var(--ink-soft); text-transform: uppercase;
}
.type-chev { flex: 0 0 auto; font-size: 12px; color: var(--ink-soft); transition: transform .25s; }
.type.open .type-chev { transform: rotate(180deg); }

.type-body { display: none; padding: 0 20px 22px; }
.type.open .type-body { display: block; }
.type-row { padding: 15px 0; border-top: 1px dashed var(--line); }
.type-row h4 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px; font-family: var(--disp);
}
.type-row p { font-size: 14.5px; line-height: 1.78; color: #374151; }
.type-row p + p { margin-top: 8px; }

/* 공식 설명 vs 휘스쿨 설명 — 절대 같은 모양이면 안 됩니다 */
.type-row--official { border-left: 3px solid var(--blue); padding-left: 14px; }
.type-row--whee { border-left: 3px solid #b58a2e; padding-left: 14px; }
.type-row--confuse { border-left: 3px solid #d0492f; padding-left: 14px; }

/* 예시 형식 — 실제 기출이 아니라 "형식" 임을 못 박습니다 */
.type-eg {
  border-radius: 14px; background: #f6f7f9; border: 1px dashed #d7dbe2;
  padding: 15px 16px; font-size: 14px; line-height: 1.75; color: #374151;
}
.type-eg .eg-tag {
  display: inline-block; font-family: var(--disp); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 8px;
}

/* 다음 단계 버튼 줄 */
.step-nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.step-nav .hintline { font-size: 13px; color: var(--ink-soft); }

/* 완료 화면 */
.fin { text-align: center; padding: 80px 0 90px; }
.fin h2 { font-size: clamp(24px,3.6vw,38px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 16px; }
.fin p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); max-width: 620px; margin: 0 auto 30px; }
.fin .btn { min-width: 260px; }
.fin-recap {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 30px;
}
.fin-recap span {
  font-size: 12.5px; padding: 7px 14px; border-radius: 999px;
  background: #f0f4fb; color: var(--blue); font-weight: 600;
}

@media (max-width: 820px) {
  .ovw { grid-template-columns: 1fr; }
  .prog-in { gap: 10px; }
}
