/* ============================================================
   ClassMap HOME v2 — 공통 스타일
   모바일 퍼스트 · 열린 사이트 구조
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --navy: #2B4C8C;
  --navy-deep: #1B2D5B;
  --navy-soft: #3A5FAF;
  --coral: #FF8A7A;
  --coral-deep: #F26B54;
  --ink: #2A3550;
  --muted: #6B7280;
  --paper: #FAF9F6;
  --card: #FFFFFF;
  --line: #E8E5DE;
  --line-soft: #F0EDE6;

  --ok: #34A87C;   --ok-bg: #EAF6F1;   --ok-line: #C4E4D6;
  --warn: #E8A13C; --warn-bg: #FDF4E5; --warn-line: #F2DDB4;
  --risk: #E2574C; --risk-bg: #FCEDEB; --risk-line: #F2C6C0;

  --h-hear: #3A5FAF; --h-observe: #34A87C; --h-mind: #E8A13C; --h-engage: #F26B54;

  --font-kr: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --font-en: 'Outfit', 'Noto Sans KR', sans-serif;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-kr);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 48px; }
a { color: var(--navy-soft); }
button { font-family: var(--font-kr); cursor: pointer; }

/* ---------- 네비게이션 ---------- */
.top-header {
  background: var(--card);
  border-bottom: 1px solid var(--line-soft);
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
}
body { padding-top: 57px; }
.top-header .inner {
  max-width: 720px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px;
}
.nav-left {
  display: flex; align-items: center; gap: 12px;
}
.brand {
  font-family: var(--font-en); font-weight: 800; font-size: 1.05rem;
  color: var(--navy-deep); text-decoration: none; white-space: nowrap;
}
.brand .home-mark { color: var(--coral-deep); }

.nav-toggle {
  display: none;
  background: none; border: none; color: var(--ink); padding: 4px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy); background: #EEF2F9;
}
.school-chip {
  font-size: 0.78rem; font-weight: 600; color: var(--navy);
  background: #EEF2F9; border-radius: 999px; padding: 4px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px;
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 16px 12px; gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 8px; width: 100%; border-radius: 8px; }
}

/* ---------- 히어로 ---------- */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
}
.hero-title {
  font-size: 1.65rem; font-weight: 800; color: var(--navy-deep);
  line-height: 1.35; margin-bottom: 12px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.6;
  max-width: 480px; margin: 0 auto 24px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 14px;
  background: var(--coral-deep); color: #fff;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  border: none;
}
.hero-cta:hover { box-shadow: 0 6px 18px rgba(242,107,84,.3); transform: translateY(-1px); }

/* ---------- 섹션 ---------- */
.section-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--navy-soft);
  margin: 36px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- 카드 공통 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 14px;
}
.card h2 { font-size: 1.08rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 8px; }
.card p.desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ---------- 3열 카드 그리드 ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- 진단 카드 ---------- */
.check-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.check-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.check-card .cc-icon { font-size: 2rem; margin-bottom: 8px; }
.check-card .cc-title { font-size: 0.95rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 4px; }
.check-card .cc-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.check-card .cc-badge {
  display: inline-block; margin-top: 10px;
  font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 3px 10px;
}
.cc-badge.done { background: var(--ok-bg); color: var(--ok); }
.check-card.tilt-1 { transform: rotate(-1.5deg); }
.check-card.tilt-2 { transform: rotate(1deg); }
.check-card.tilt-3 { transform: rotate(-0.8deg); }
.check-card.tilt-1:hover, .check-card.tilt-2:hover, .check-card.tilt-3:hover { transform: rotate(0) translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.06); }

/* ---------- 블로그 카드 ---------- */
.blog-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 12px;
  transition: transform .15s, box-shadow .15s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.blog-card .bc-date { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.blog-card .bc-title { font-size: 1.02rem; font-weight: 700; color: var(--navy-deep); margin: 4px 0; line-height: 1.45; }
.blog-card .bc-summary { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.blog-card .bc-tag {
  display: inline-block; margin-top: 8px;
  font-size: 0.72rem; font-weight: 600; background: #EEF2F9; color: var(--navy-soft);
  padding: 2px 8px; border-radius: 6px;
}

/* ---------- 말풍선 인용 ---------- */
.speech-quote {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0;
}
.speech-quote.right { flex-direction: row-reverse; }
.sq-who {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.sq-avatar {
  width: 38px; height: 38px;
  background: #EEF2F9; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sq-avatar svg { width: 20px; height: 20px; stroke: var(--navy-soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sq-avatar.parent { background: #FFF3EE; }
.sq-avatar.parent svg { stroke: var(--coral-deep); }
.sq-role {
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  text-align: center; line-height: 1;
}
.sq-bubble {
  position: relative; max-width: 80%;
  background: #EEF2F9; border-radius: 4px 14px 14px 14px;
  padding: 12px 16px;
  font-size: 0.93rem; color: var(--ink); line-height: 1.65;
}
.speech-quote.right .sq-bubble {
  background: #FFF3EE; border-radius: 14px 4px 14px 14px;
}

/* ---------- 학교급 선택 ---------- */
.level-select { display: flex; gap: 12px; margin: 20px 0; }
.level-btn {
  flex: 1; padding: 20px 16px; border: 2px solid var(--line);
  border-radius: var(--radius); background: var(--card);
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.level-btn:hover { border-color: var(--navy-soft); background: #EEF2F9; }
.level-btn .lb-icon { font-size: 1.5rem; margin-bottom: 6px; }
.level-btn .lb-title { font-size: 1rem; font-weight: 800; color: var(--navy-deep); }
.level-btn .lb-desc { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.level-tabs {
  display: flex; gap: 0; background: var(--line); border-radius: 10px; padding: 3px; margin-bottom: 16px;
}
.level-tab {
  flex: 1; padding: 8px 0; border: none; border-radius: 8px; background: transparent;
  font-size: 0.85rem; font-weight: 700; color: var(--muted); cursor: pointer;
  font-family: var(--font-kr); transition: background .2s, color .2s;
}
.level-tab.active { background: var(--card); color: var(--navy-deep); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ---------- 블로그 캐러셀 (홈) ---------- */
.blog-carousel {
  position: relative;
}
.carousel-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .blog-card-v2 {
  flex: 0 0 280px; scroll-snap-align: start;
  margin-bottom: 0;
}
@media (max-width: 560px) {
  .carousel-track .blog-card-v2 { flex: 0 0 260px; }
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: background .15s, box-shadow .15s;
}
.carousel-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.carousel-btn:hover svg { stroke: #fff; }
.carousel-btn svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }
.carousel-btn.hidden { display: none; }

/* ---------- 코스 프리뷰 ---------- */
.course-preview {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft));
  color: #fff; border-radius: var(--radius); padding: 28px 24px; margin-bottom: 14px;
  text-align: center;
}
.course-preview h2 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.course-preview p { font-size: 0.9rem; opacity: .85; line-height: 1.6; margin-bottom: 18px; }
.course-preview .cp-cta {
  display: inline-block; padding: 12px 28px; border-radius: 12px;
  background: var(--coral-deep); color: #fff; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: none;
  transition: transform .15s;
}
.course-preview .cp-cta:hover { transform: scale(1.03); }
.course-preview .cp-note { font-size: 0.78rem; opacity: .6; margin-top: 10px; }

/* ---------- 버튼 ---------- */
.btn {
  display: block; width: 100%;
  padding: 15px 18px; min-height: 48px;
  border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 700; text-align: center; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(43,76,140,.25); }
.btn-coral { background: var(--coral-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); font-weight: 500; }
.btn-sm { padding: 10px 16px; min-height: 44px; font-size: 0.92rem; width: auto; display: inline-block; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- 프라이버시 안내 ---------- */
.privacy-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--ok-bg); border: 1px solid var(--ok-line);
  border-radius: 12px; padding: 12px 14px;
  font-size: 0.85rem; color: #1F6E4E; line-height: 1.55; margin-bottom: 14px;
}
.privacy-note .ico { flex: none; }

/* ---------- 진행률 바 ---------- */
.progress-track { background: var(--line-soft); border-radius: 999px; height: 10px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, var(--navy-soft), var(--coral)); height: 100%; border-radius: 999px; transition: width .4s ease; }

/* ---------- 척도 문항 (진단 공통) ---------- */
.q-item { padding: 18px 0 14px; border-bottom: 1px solid var(--line-soft); }
.q-item:last-of-type { border-bottom: none; }
.q-text { font-size: 0.98rem; font-weight: 600; margin-bottom: 12px; }
.q-text .q-no { color: var(--coral-deep); font-family: var(--font-en); font-weight: 700; margin-right: 6px; }
.scale-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.scale-btn {
  padding: 10px 2px; min-height: 46px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); font-size: 0.78rem; font-weight: 500; color: var(--muted);
  transition: all .15s;
}
.scale-btn.on { border-color: var(--navy-soft); background: #EEF2F9; color: var(--navy); font-weight: 700; }

/* ---------- 결과 게이지 3단계 ---------- */
.result-band { border-radius: var(--radius); padding: 24px 20px; text-align: center; margin-bottom: 14px; border: 1px solid; }
.result-band.ok   { background: var(--ok-bg);   border-color: var(--ok-line); }
.result-band.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.result-band.risk { background: var(--risk-bg); border-color: var(--risk-line); }
.result-band .band-label { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.result-band.ok .band-label   { color: var(--ok); }
.result-band.warn .band-label { color: #B7791F; }
.result-band.risk .band-label { color: var(--risk); }
.result-band .band-desc { font-size: 0.92rem; line-height: 1.65; }

/* ---------- 퀴즈 (코스 확인 문항) ---------- */
.quiz-box { background: #F4F6FB; border: 1px solid #DCE3F1; border-radius: var(--radius); padding: 20px 18px; margin: 22px 0; }
.quiz-box .quiz-title { font-size: 0.82rem; font-weight: 800; color: var(--navy-soft); letter-spacing: 1px; margin-bottom: 10px; }
.quiz-q { font-size: 0.98rem; font-weight: 700; margin-bottom: 12px; }
.quiz-opt {
  display: block; width: 100%; text-align: left;
  padding: 13px 16px; min-height: 48px; margin-bottom: 8px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); font-size: 0.93rem; color: var(--ink);
  transition: all .15s;
}
.quiz-opt.correct { border-color: var(--ok); background: var(--ok-bg); font-weight: 700; }
.quiz-opt.wrong { border-color: var(--risk); background: var(--risk-bg); }
.quiz-feedback { font-size: 0.87rem; line-height: 1.6; border-radius: 10px; padding: 10px 14px; margin-top: 4px; display: none; }
.quiz-feedback.show { display: block; }
.quiz-feedback.good { background: var(--ok-bg); color: #1F6E4E; }
.quiz-feedback.bad { background: var(--risk-bg); color: #9C3428; }

/* ---------- 본문 콘텐츠 (코스 모듈) ---------- */
.module-body h3 {
  font-size: 1.02rem; font-weight: 800; color: var(--navy-deep);
  margin: 28px 0 10px; display: flex; align-items: center; gap: 8px;
}
.module-body h3::before { content: ''; width: 4px; height: 16px; background: var(--coral-deep); border-radius: 2px; flex: none; }
.module-body p { font-size: 0.95rem; margin-bottom: 12px; }
.module-body ul { padding-left: 20px; margin-bottom: 12px; }
.module-body li { font-size: 0.93rem; margin-bottom: 6px; }
.checkpoint {
  background: #FFF6ED; border: 1px solid #F4DFC4; border-radius: 12px;
  padding: 14px 16px; margin: 16px 0; font-size: 0.9rem; line-height: 1.65;
}
.checkpoint b { color: #B7791F; }
.say-card { border-radius: 12px; padding: 12px 15px; margin-bottom: 8px; font-size: 0.92rem; line-height: 1.6; }
.say-card.bad { background: var(--risk-bg); border: 1px solid var(--risk-line); color: #9C3428; }
.say-card.good { background: var(--ok-bg); border: 1px solid var(--ok-line); color: #1F6E4E; }

/* ---------- 아코디언 (가이드) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; overflow: hidden; }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; min-height: 56px; border: none; background: transparent;
  font-size: 0.98rem; font-weight: 700; color: var(--navy-deep); text-align: left;
}
.acc-head .arrow { transition: transform .25s; color: var(--muted); flex: none; }
.acc.open .arrow { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 18px 18px; font-size: 0.92rem; }
.acc.open .acc-body { display: block; }
.now3 {
  background: var(--navy); color: #fff; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px; font-size: 0.9rem; line-height: 1.7;
}
.now3 .now3-title { font-weight: 800; color: var(--coral); font-size: 0.85rem; letter-spacing: 0.5px; margin-bottom: 6px; }
.now3 ol { padding-left: 20px; }

/* ---------- HOME 백로님 ---------- */
.home-letters { display: flex; gap: 8px; justify-content: center; margin: 14px 0 20px; flex-wrap: wrap; }
.hl-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 68px; padding: 10px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.hl-chip .hl-letter { font-family: var(--font-en); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.hl-chip .hl-word { font-family: var(--font-en); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.5px; color: var(--muted); }
.hl-chip .hl-kr { font-size: 0.72rem; font-weight: 600; color: var(--ink); }
.hl-chip:nth-child(1) .hl-letter { color: var(--h-hear); }
.hl-chip:nth-child(2) .hl-letter { color: var(--h-observe); }
.hl-chip:nth-child(3) .hl-letter { color: var(--h-mind); }
.hl-chip:nth-child(4) .hl-letter { color: var(--h-engage); }
.hl-chip:nth-child(1) { transform: rotate(-3deg); }
.hl-chip:nth-child(2) { transform: rotate(2deg); }
.hl-chip:nth-child(3) { transform: rotate(-1.5deg); }
.hl-chip:nth-child(4) { transform: rotate(2.5deg); }

/* ---------- 배너/알림 ---------- */
.banner-stat {
  background: linear-gradient(120deg, #EEF2F9, #FDF1EE);
  border: 1px solid #DCE3F1; border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 14px;
  font-size: 0.92rem; font-weight: 600; color: var(--navy-deep);
}
.banner-stat b { color: var(--coral-deep); font-size: 1.05rem; }

/* ---------- 리스트 ---------- */
.list-row {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  padding: 14px 4px; min-height: 52px; border-bottom: 1px solid var(--line-soft);
}
.list-row:last-child { border-bottom: none; }
.list-row .lr-rank { font-family: var(--font-en); font-weight: 800; color: var(--coral-deep); width: 22px; text-align: center; flex: none; }
.list-row .lr-title { font-size: 0.93rem; font-weight: 600; flex: 1; }
.list-row .lr-sub { font-size: 0.78rem; color: var(--muted); }
.list-row .lr-badge { flex: none; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.lr-badge.done { background: var(--ok-bg); color: var(--ok); }
.lr-badge.todo { background: var(--line-soft); color: var(--muted); }

/* ---------- 게이트 화면 (마음 맞히기) ---------- */
.gate-screen {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy-deep); color: #fff;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px;
}
.gate-screen.show { display: flex; }
.gate-screen .gate-emoji { font-size: 3rem; margin-bottom: 16px; }
.gate-screen h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.gate-screen p { font-size: 0.92rem; opacity: .85; line-height: 1.7; margin-bottom: 24px; max-width: 320px; }

/* ---------- 블로그 본문 ---------- */
.blog-body h2 {
  font-size: 1.15rem; font-weight: 800; color: var(--navy-deep);
  margin: 32px 0 12px; line-height: 1.4;
}
.blog-body h3 {
  font-size: 1.02rem; font-weight: 700; color: var(--navy-deep);
  margin: 24px 0 8px;
}
.blog-body p { font-size: 0.95rem; margin-bottom: 14px; line-height: 1.75; }
.blog-body ul, .blog-body ol { padding-left: 22px; margin-bottom: 14px; }
.blog-body li { font-size: 0.93rem; margin-bottom: 6px; line-height: 1.7; }
.blog-body blockquote {
  border-left: 3px solid var(--coral); padding: 12px 16px; margin: 16px 0;
  background: #FFF6ED; border-radius: 0 10px 10px 0;
  font-size: 0.93rem; color: var(--ink); line-height: 1.7;
}
.blog-cta {
  background: linear-gradient(135deg, #EEF2F9, #FDF1EE);
  border: 2px solid var(--navy-soft); border-radius: var(--radius);
  padding: 24px 20px; margin: 28px 0; text-align: center;
}
.blog-cta .cta-title { font-size: 1.05rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 6px; }
.blog-cta .cta-desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.blog-cta a {
  display: inline-block; padding: 12px 28px; border-radius: 12px;
  background: var(--coral-deep); color: #fff; font-weight: 700; text-decoration: none;
  transition: transform .15s;
}
.blog-cta a:hover { transform: scale(1.03); }

/* 블로그 목록 — 이미지 카드 그리드 */
.blog-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 24px;
}
@media (max-width:560px) {
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
}
.blog-card-v2 {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.blog-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.blog-card-v2 .bc-thumb {
  width: 100%; aspect-ratio: 16/10; overflow: hidden;
}
.blog-card-v2 .bc-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.blog-card-v2:hover .bc-thumb img { transform: scale(1.04); }
.blog-card-v2 .bc-info { padding: 16px; }
.blog-card-v2 .bc-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--coral-deep); background: #FFF0ED;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.blog-card-v2 .bc-title {
  font-size: 1rem; font-weight: 800; color: var(--navy-deep);
  line-height: 1.45; margin-bottom: 8px;
}
.blog-card-v2 .bc-summary {
  font-size: 0.85rem; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-v2 .bc-date {
  font-size: 0.75rem; color: var(--muted); margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

/* 블로그 본문 — 이전글/다음글 네비게이션 */
.blog-nav-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
@media (max-width:560px) {
  .blog-nav-cards { grid-template-columns: 1fr; gap: 12px; }
}
.blog-nav-cards a {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  overflow: hidden; transition: transform .15s, box-shadow .15s;
  padding: 0;
}
.blog-nav-cards a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.07);
}
.blog-nav-cards .nav-thumb {
  width: 90px; min-height: 70px; flex-shrink: 0; overflow: hidden;
}
.blog-nav-cards .nav-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.blog-nav-cards .nav-info { padding: 10px 14px 10px 0; flex: 1; min-width: 0; }
.blog-nav-cards .nav-label {
  font-size: 0.72rem; color: var(--muted); margin-bottom: 3px;
}
.blog-nav-cards .nav-title {
  font-size: 0.88rem; font-weight: 700; color: var(--navy-deep);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-nav-cards .nav-empty {
  visibility: hidden;
}

/* 블로그 본문 — 테이블 */
.blog-body table {
  width: 100%; border-collapse: collapse; margin: 16px 0 20px;
  font-size: 0.9rem; line-height: 1.6;
}
.blog-body th {
  background: var(--navy-deep); color: #fff; font-weight: 700;
  padding: 10px 14px; text-align: center;
}
.blog-body td {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  text-align: center; vertical-align: top;
}
.blog-body tr:last-child td { border-bottom: none; }
.blog-body tbody tr:nth-child(even) { background: #F7F6F3; }
@media (max-width:560px) {
  .blog-body table { font-size: 0.82rem; }
  .blog-body th, .blog-body td { padding: 8px 10px; }
}

/* 블로그 본문 — 이미지 */
.blog-body .blog-img {
  margin: 20px 0; text-align: center;
}
.blog-body .blog-img img {
  width: 100%; max-width: 600px; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.blog-body .blog-img .img-caption {
  font-size: 0.8rem; color: var(--muted); margin-top: 8px;
  line-height: 1.5;
}

/* 블로그 본문 — 동영상 */
.blog-body .blog-video {
  margin: 24px 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.blog-body .blog-video .video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
}
.blog-body .blog-video .video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: 0; border-radius: 12px;
}
.blog-body .blog-video .video-caption {
  font-size: 0.8rem; color: var(--muted); margin-top: 8px;
  text-align: center; line-height: 1.5;
}

/* 블로그 본문 — 태그 */
.blog-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0;
}
.blog-tags span {
  font-size: 0.78rem; color: var(--navy-soft); background: #EEF2F9;
  padding: 4px 10px; border-radius: 20px;
}

/* 블로그 본문 — 클래즈 소개 */
.blog-outro {
  font-size: 0.85rem; color: var(--muted); line-height: 1.75;
  border-top: 1px solid var(--line-soft); padding-top: 20px; margin-top: 24px;
}
.blog-outro strong { color: var(--navy-deep); }
.blog-outro a { color: var(--navy-soft); text-decoration: none; }

/* 블로그 본문 — 인포그래픽 카드 */
.info-card {
  margin: 24px 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.info-card .ic-header {
  padding: 16px 20px; color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.info-card .ic-header.navy { background: var(--navy-deep); }
.info-card .ic-body { padding: 16px 20px; background: var(--card); }
.info-card .ic-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem; line-height: 1.6;
}
.info-card .ic-row:last-child { border-bottom: none; }
.info-card .ic-icon {
  flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; background: #F3F5FA; border-radius: 8px;
}
.info-card .ic-label {
  font-weight: 700; color: var(--navy-deep); min-width: 42px;
  flex-shrink: 0;
}
.info-card .ic-text { color: var(--ink); }
.info-card .ic-caption {
  font-size: 0.78rem; color: var(--muted); text-align: center;
  padding: 8px 20px 14px; background: var(--card);
}

/* 인포그래픽 — Do/Don't 2열 */
.info-card .ic-split {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--card);
}
@media (max-width:480px) {
  .info-card .ic-split { grid-template-columns: 1fr; }
}
.info-card .ic-col { padding: 14px 16px; }
.info-card .ic-col.dont { background: #FFF5F3; }
.info-card .ic-col.do { background: #F0F7F3; }
.info-card .ic-col-title {
  font-size: 0.82rem; font-weight: 800; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.info-card .ic-col.dont .ic-col-title { color: var(--risk); }
.info-card .ic-col.do .ic-col-title { color: var(--ok); }
.info-card .ic-item {
  font-size: 0.88rem; line-height: 1.6; padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex; align-items: flex-start; gap: 6px;
}
.info-card .ic-item:last-child { border-bottom: none; }


/* 블로그 본문 — 구분선 */
.blog-body hr {
  border: none; border-top: 1px solid var(--line-soft);
  margin: 28px 0;
}

/* ---------- 푸터 ---------- */
.site-footer {
  text-align: center; padding: 28px 20px 40px;
  font-size: 0.78rem; color: var(--muted); line-height: 1.8;
  border-top: 1px solid var(--line-soft); margin-top: 32px;
}
.site-footer .f-brand { font-family: var(--font-en); font-weight: 800; color: var(--navy-deep); font-size: 0.9rem; }
.site-footer a { color: var(--navy-soft); text-decoration: none; font-weight: 600; }

/* ---------- 폼 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.field input[type="text"], .field input[type="password"], .field input[type="number"], .field select {
  width: 100%; padding: 14px 16px; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: var(--font-kr); color: var(--ink);
  background: var(--card); outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus { border-color: var(--navy-soft); }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.consent-row input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--navy); }
.consent-row label { font-size: 0.85rem; line-height: 1.6; }

/* ---------- SVG 아이콘 ---------- */
.ico-svg { display: inline-flex; align-items: center; justify-content: center; width: 1.15em; height: 1.15em; vertical-align: -0.18em; flex: none; }
.ico-svg svg { width: 100%; height: 100%; display: block; }
.dc-emoji.ico-svg { width: 1.5em; height: 1.5em; vertical-align: middle; }
.lr-rank .ico-svg, .lr-rank.ico-svg { width: 1.25em; height: 1.25em; }
.privacy-note .ico.ico-svg { width: 1.3em; height: 1.3em; margin-top: 2px; }
.gate-screen .gate-ico { width: 130px; height: 92px; color: #fff; opacity: .95; margin-bottom: 16px; }
.gate-screen .gate-ico .ico-svg, .gate-screen .gate-ico svg { width: 100%; height: 100%; display: block; }

/* ---------- 대응 가이드 SPA ---------- */
.guide-page { display: none; animation: guideIn .25s ease-out; }
.guide-page.active { display: block; }
@keyframes guideIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

.guide-menu { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.guide-menu-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: box-shadow .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.guide-menu-card:hover { border-color: #bbb; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.guide-menu-card:active { background: #fafafa; }
.gmc-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem;
}
.gmc-body { flex: 1; min-width: 0; }
.gmc-body h3 { font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin-bottom: 2px; }
.gmc-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.gmc-arrow { flex-shrink: 0; color: var(--muted); font-size: 1.2rem; }

.guide-content {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px 32px; margin: 12px 0 24px;
}
.guide-content-header { text-align: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--line-soft); }
.guide-content-header h2 { font-size: 1.15rem; font-weight: 800; color: var(--navy-deep); line-height: 1.4; margin-bottom: 4px; }
.guide-content-header p { font-size: 0.88rem; color: var(--muted); }

.g-section { margin-bottom: 24px; }
.g-section h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; padding-left: 10px; border-left: 3px solid var(--navy); line-height: 1.4; }
.g-section h4 { font-size: 0.93rem; font-weight: 700; margin: 14px 0 6px; }
.g-section p { font-size: 0.91rem; color: var(--muted); line-height: 1.7; margin-bottom: 6px; }

.g-box { padding: 14px 16px; border-radius: 12px; margin: 12px 0; border-left: 3px solid; font-size: 0.91rem; line-height: 1.65; }
.g-box h4 { font-size: 0.93rem; font-weight: 700; margin-bottom: 6px; }
.g-info  { background: #E9EEF9; border-color: var(--navy-soft); }
.g-warn  { background: var(--warn-bg); border-color: var(--warn); }
.g-ok    { background: var(--ok-bg); border-color: var(--ok); }
.g-risk  { background: var(--risk-bg); border-color: var(--risk); }

.g-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
@media (max-width:480px) { .g-card-grid { grid-template-columns: 1fr; } }
.g-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.g-card h4 { font-size: 0.91rem; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.g-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

.g-check li, .g-x li, .g-num li { padding: 5px 0 5px 22px; position: relative; font-size: 0.91rem; line-height: 1.6; list-style: none; }
.g-check li:before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.g-x li:before     { content: "✗"; position: absolute; left: 0; color: var(--risk); font-weight: 700; }
.g-num { counter-reset: gn; }
.g-num li:before {
  content: counter(gn); counter-increment: gn;
  position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--navy); color: #fff; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.g-num li { padding-left: 28px; }

.g-contact {
  background: var(--navy); color: #fff; padding: 18px; border-radius: var(--radius); text-align: center; margin: 14px 0;
}
.g-contact h4 { color: rgba(255,255,255,.8); font-size: 0.88rem; }
.g-contact .g-tel { font-size: 1.8rem; font-weight: 800; margin: 4px 0; letter-spacing: .04em; }
.g-contact p { font-size: 0.85rem; color: rgba(255,255,255,.75); }

.g-process { display: flex; gap: 2px; margin: 14px 0; overflow-x: auto; padding-bottom: 4px; }
.g-step { flex: 1; min-width: 68px; text-align: center; padding: 10px 6px; position: relative; }
.g-step:not(:last-child):after { content: "→"; position: absolute; right: -6px; top: 16px; font-size: 0.9rem; color: var(--navy-soft); z-index: 1; }
.g-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.g-step-title { font-weight: 700; font-size: 0.82rem; margin: 2px 0; }
.g-step p { font-size: 0.78rem; color: var(--muted); }

.g-quote { background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; margin: 6px 0; font-size: 0.91rem; line-height: 1.6; }
.g-quote .g-hint { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }

.g-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.88rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.g-table th, .g-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.g-table th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.88rem; }
.g-table tr:last-child td { border-bottom: none; }
.g-table tr:nth-child(even) { background: var(--paper); }

.g-btn { display: inline-flex; align-items: center; gap: 5px; padding: 10px 20px; background: var(--navy); color: #fff; border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 600; font-family: var(--font-kr); cursor: pointer; transition: background .15s; margin: 4px; }
.g-btn:hover { background: var(--navy-deep); }
.g-btn-light { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.g-btn-light:hover { background: var(--line-soft); }

/* ---------- 유틸 ---------- */
.tc { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.small { font-size: 0.8rem; color: var(--muted); }
.hidden { display: none !important; }
.page-title { font-size: 1.35rem; font-weight: 800; color: var(--navy-deep); margin: 24px 0 6px; line-height: 1.4; }
.page-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.step-indicator { font-family: var(--font-en); font-size: 0.78rem; font-weight: 700; color: var(--coral-deep); letter-spacing: 1px; margin-top: 24px; }

@media (min-width: 641px) {
  body { font-size: 16.5px; }
}
