/* ============================================================
   FireNavi 실습 교재 — 프리미엄 테마 (공유 스타일)
   대제목 > 중제목 > 소제목 > 본문 구조 + 들여쓰기 + 시각화
   ============================================================ */
:root {
  --fn-ink: #0b1220;
  --fn-ink-2: #29354a;
  --fn-muted: #4a566b;
  --fn-line: #e6e8ee;
  --fn-line-soft: #eef1f6;
  --fn-bg: #f6f7fb;
  --fn-card: #ffffff;
  --fn-gold: #c9a84c;
  --fn-gold-soft: #e8c96d;
  --fn-navy: #1a1207;
  --fn-fire: #dc2626;
  --fn-fire-2: #ea580c;
  --fn-amber: #d97706;
  --fn-blue: #2563eb;
  --fn-green: #059669;
  --fn-violet: #7c3aed;
  --fn-teal: #0d9488;
  --fn-radius: 16px;
  --fn-shadow: 0 12px 34px rgba(15, 23, 42, .08);
  --fn-shadow-lg: 0 22px 60px rgba(15, 23, 42, .14);
  --fn-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.fn {
  margin: 0;
  font-family: var(--fn-font);
  color: var(--fn-ink);
  background:
    radial-gradient(1200px 480px at 82% -8%, rgba(201, 168, 76, .10), transparent 60%),
    radial-gradient(900px 420px at 6% 4%, rgba(220, 38, 38, .06), transparent 55%),
    var(--fn-bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -.003em;
}

.fn-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 96px; }

/* ---------- Top bar ---------- */
.fn-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px;
  background: rgba(26, 18, 7, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, .28);
}
.fn-topbar a.fn-home {
  display: inline-flex; align-items: center; gap: 10px;
  color: #f8ecc9; text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: .01em;
}
.fn-topbar .fn-home .fn-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--fn-fire), var(--fn-amber));
  display: grid; place-items: center; font-size: 14px;
}
.fn-topnav { display: flex; gap: 6px; flex-wrap: wrap; }
.fn-topnav a {
  color: #d8c79a; text-decoration: none; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; transition: .18s;
}
.fn-topnav a:hover { background: rgba(201, 168, 76, .16); color: #fff; }
.fn-topnav a.active { background: rgba(201, 168, 76, .22); border-color: rgba(201, 168, 76, .5); color: #fff; }

/* ---------- Hero ---------- */
.fn-hero {
  margin: 28px 0 34px; padding: 44px 40px;
  border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 88% -20%, rgba(234, 88, 12, .38), transparent 60%),
    linear-gradient(135deg, #1a1207 0%, #2d1f0a 42%, #3d2a0e 100%);
  border: 1px solid rgba(201, 168, 76, .28);
  box-shadow: var(--fn-shadow-lg);
}
.fn-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(232, 201, 109, .18), transparent 70%); pointer-events: none;
}
.fn-hero .fn-step-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201, 168, 76, .18); border: 1px solid rgba(201, 168, 76, .55);
  color: var(--fn-gold-soft); font-size: 12px; font-weight: 800; letter-spacing: .06em;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px; text-transform: uppercase;
}
.fn-hero h1 { font-size: 30px; line-height: 1.28; font-weight: 900; margin: 0 0 10px; color: #fff; }
.fn-hero .fn-hero-sub { color: #d9c8a0; font-size: 15px; max-width: 760px; margin: 0 0 20px; }
.fn-hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.fn-hero-meta div strong { display: block; font-size: 22px; color: var(--fn-gold-soft); font-weight: 900; }
.fn-hero-meta div span { font-size: 12px; color: #c9b88a; letter-spacing: .02em; }

/* ---------- Scenario callout ---------- */
.fn-scenario {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  border: 1px solid #fed7aa; border-left: 5px solid var(--fn-fire-2);
  border-radius: 14px; padding: 18px 20px; margin: 0 0 30px;
}
.fn-scenario .fn-ico { font-size: 22px; line-height: 1; }
.fn-scenario p { margin: 0; font-size: 13.5px; color: #7c2d12; }
.fn-scenario strong { color: #9a3412; }

/* ---------- Title hierarchy (대>중>소>본문) ---------- */
.fn-h2 {  /* 대제목 */
  display: flex; align-items: center; gap: 14px;
  font-size: 22px; font-weight: 900; color: var(--fn-ink);
  margin: 48px 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--fn-line);
}
.fn-h2 .fn-num {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--fn-navy), #3d2a0e); color: var(--fn-gold-soft);
  display: grid; place-items: center; font-size: 16px; font-weight: 900;
  box-shadow: 0 6px 16px rgba(26, 18, 7, .25);
}
.fn-h3 {  /* 중제목 */
  font-size: 17px; font-weight: 800; color: var(--fn-ink);
  margin: 30px 0 12px; padding-left: 14px; border-left: 4px solid var(--fn-gold);
}
.fn-h4 {  /* 소제목 */
  font-size: 14px; font-weight: 800; color: var(--fn-ink-2);
  margin: 20px 0 8px; display: flex; align-items: center; gap: 8px;
}
.fn-h4::before { content: "▸"; color: var(--fn-gold); font-size: 12px; }
.fn-body { font-size: 14px; color: var(--fn-ink-2); margin: 0 0 12px; }         /* 본문 */
.fn-indent { padding-left: 22px; }        /* 들여쓰기 1단 */
.fn-indent-2 { padding-left: 44px; }      /* 들여쓰기 2단 */
.fn-quote {
  margin: 4px 0 16px; padding: 14px 18px; border-radius: 12px;
  background: #f8fafc; border: 1px dashed var(--fn-line); border-left: 4px solid var(--fn-teal);
  font-size: 13.5px; color: #334155; font-style: italic;
}

/* ---------- Cards / sections ---------- */
.fn-card {
  background: var(--fn-card); border: 1px solid var(--fn-line); border-radius: var(--fn-radius);
  padding: 26px 28px; box-shadow: var(--fn-shadow); margin: 0 0 22px;
}
.fn-card.pad-sm { padding: 20px 22px; }

/* ---------- Bullet list with indentation ---------- */
.fn-list { list-style: none; padding: 0; margin: 0 0 8px; }
.fn-list li {
  position: relative; padding: 6px 0 6px 26px; font-size: 13.5px; color: var(--fn-ink-2);
  border-bottom: 1px dashed var(--fn-line-soft);
}
.fn-list li:last-child { border-bottom: 0; }
.fn-list li::before {
  content: ""; position: absolute; left: 6px; top: 14px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--fn-gold);
}
.fn-list.sub li { padding-left: 44px; font-size: 13px; color: var(--fn-muted); }
.fn-list.sub li::before { left: 24px; background: #cbd5e1; }

/* chip grid */
.fn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.fn-chip {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: #f1f5f9; color: #334155; border: 1px solid var(--fn-line);
}
.fn-chip.fire { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.fn-chip.amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.fn-chip.blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.fn-chip.green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.fn-chip.violet { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.fn-chip.teal { background: #f0fdfa; color: #0f766e; border-color: #99f6e4; }

/* ---------- Grid ---------- */
.fn-grid { display: grid; gap: 16px; }
.fn-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.fn-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.fn-grid.c4 { grid-template-columns: repeat(4, 1fr); }

/* mini info card */
.fn-mini {
  background: #fff; border: 1px solid var(--fn-line); border-top: 4px solid var(--fn-gold);
  border-radius: 12px; padding: 16px 18px; transition: .2s;
}
.fn-mini:hover { transform: translateY(-4px); box-shadow: var(--fn-shadow); }
.fn-mini h5 { margin: 0 0 8px; font-size: 13.5px; font-weight: 800; color: var(--fn-ink); }
.fn-mini p { margin: 0; font-size: 12.5px; color: var(--fn-muted); }
.fn-mini.blue { border-top-color: var(--fn-blue); }
.fn-mini.green { border-top-color: var(--fn-green); }
.fn-mini.amber { border-top-color: var(--fn-amber); }
.fn-mini.violet { border-top-color: var(--fn-violet); }
.fn-mini.fire { border-top-color: var(--fn-fire); }
.fn-mini.teal { border-top-color: var(--fn-teal); }

/* ---------- Table ---------- */
.fn-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--fn-line); margin: 6px 0 16px; }
table.fn-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; min-width: 520px; }
table.fn-table thead th {
  background: linear-gradient(135deg, var(--fn-navy), #3d2a0e); color: #f3e6c4;
  text-align: left; padding: 12px 14px; font-weight: 800; font-size: 12.5px; letter-spacing: .02em;
}
table.fn-table tbody td { padding: 11px 14px; border-top: 1px solid var(--fn-line-soft); color: var(--fn-ink-2); vertical-align: top; }
table.fn-table tbody tr:nth-child(even) td { background: #fafbfd; }
table.fn-table tbody tr:hover td { background: #fff7ed; }
table.fn-table td strong { color: var(--fn-ink); }

/* ---------- Steps / flow ---------- */
.fn-flow { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.fn-flow-node {
  flex: 1 1 120px; background: #fff; border: 2px solid var(--fn-line); border-radius: 12px;
  padding: 12px 14px; text-align: center; font-size: 12px; font-weight: 700; color: var(--fn-ink);
  position: relative; transition: .2s;
}
.fn-flow-node:hover { transform: translateY(-3px); box-shadow: var(--fn-shadow); }
.fn-flow-node span.n {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fn-gold); color: #1a1207; font-size: 12px; font-weight: 900; margin-bottom: 6px;
}

/* callout box */
.fn-callout {
  border-radius: 14px; padding: 18px 22px; margin: 18px 0; font-size: 14px; line-height: 1.75;
  background: linear-gradient(135deg, #1a1207, #3d2a0e); color: #f3e6c4;
  border: 1px solid rgba(201, 168, 76, .4); box-shadow: var(--fn-shadow);
}
.fn-callout strong { color: var(--fn-gold-soft); }
.fn-callout .fn-callout-label {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fn-gold-soft); margin-bottom: 8px;
}

/* pill legend for SVG */
.fn-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 4px; font-size: 12px; color: var(--fn-muted); }
.fn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fn-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.fn-figure { margin: 10px 0 18px; }
.fn-figure svg { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; border: 1px solid var(--fn-line); }
.fn-figcap { font-size: 12px; color: var(--fn-muted); margin-top: 8px; text-align: center; }

/* KPI stat */
.fn-kpi { text-align: center; background: #fff; border: 1px solid var(--fn-line); border-radius: 12px; padding: 18px 12px; }
.fn-kpi .v { font-size: 24px; font-weight: 900; color: var(--fn-fire-2); }
.fn-kpi .l { font-size: 12px; color: var(--fn-muted); margin-top: 4px; }

/* prev/next nav */
.fn-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.fn-pager a {
  flex: 1; text-decoration: none; border: 1px solid var(--fn-line); border-radius: 14px;
  padding: 16px 20px; background: #fff; transition: .2s; box-shadow: var(--fn-shadow);
}
.fn-pager a:hover { transform: translateY(-3px); border-color: var(--fn-gold); }
.fn-pager .dir { font-size: 12px; color: var(--fn-muted); font-weight: 700; letter-spacing: .06em; }
.fn-pager .ttl { font-size: 14px; font-weight: 800; color: var(--fn-ink); margin-top: 3px; }
.fn-pager a.next { text-align: right; }
.fn-pager a.disabled { opacity: .4; pointer-events: none; }

/* footer (legacy one-line) */
.fn-foot { text-align: center; color: var(--fn-muted); font-size: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--fn-line); }

/* site footer (shared, premium) */
.fn-sitefoot {
  margin-top: 48px; padding: 30px 34px; border-radius: 18px;
  background: radial-gradient(700px 260px at 90% -30%, rgba(234, 88, 12, .30), transparent 60%),
              linear-gradient(135deg, #1a1207 0%, #2d1f0a 45%, #3d2a0e 100%);
  border: 1px solid rgba(201, 168, 76, .28); box-shadow: var(--fn-shadow-lg);
  display: grid; grid-template-columns: 1.4fr auto auto; gap: 24px; align-items: center;
}
.fn-sitefoot-brand { display: flex; align-items: center; gap: 14px; }
.fn-sitefoot-brand .fn-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--fn-fire), var(--fn-amber));
  display: grid; place-items: center; font-size: 20px;
}
.fn-sitefoot-brand strong { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.fn-sitefoot-brand span { display: block; color: #c9b88a; font-size: 12px; margin-top: 3px; max-width: 380px; line-height: 1.55; }
.fn-sitefoot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fn-sitefoot-links a {
  color: #e8d9ae; text-decoration: none; font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(201, 168, 76, .35); transition: .18s;
}
.fn-sitefoot-links a:hover { background: rgba(201, 168, 76, .2); color: #fff; border-color: rgba(201, 168, 76, .6); }
.fn-sitefoot-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.fn-sitefoot-meta span { color: #a8956a; font-size: 12px; letter-spacing: .02em; }
@media (max-width: 900px) {
  .fn-sitefoot { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .fn-sitefoot-meta { text-align: left; }
}
@media print { .fn-sitefoot { background: #fff; border-color: var(--fn-line); } }

/* section anchors (hub timeline) */
.fn-tl { position: relative; margin: 8px 0; padding-left: 28px; }
.fn-tl::before { content: ""; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(var(--fn-gold), var(--fn-line)); }
.fn-tl-item { position: relative; margin-bottom: 10px; }
.fn-tl-item::before { content: ""; position: absolute; left: -24px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--fn-gold); }

@media (max-width: 900px) {
  .fn-grid.c2, .fn-grid.c3, .fn-grid.c4 { grid-template-columns: 1fr; }
  .fn-hero { padding: 32px 22px; }
  .fn-hero h1 { font-size: 23px; }
  .fn-wrap { padding: 0 16px 72px; }
  .fn-pager { flex-direction: column; }
}
@media print {
  .fn-topbar, .fn-pager { display: none; }
  body.fn { background: #fff; }
}

/* ---------- Infographic image (첨부 인포그래픽) ---------- */
.fn-infographic { margin: 14px 0 22px; }
.fn-infographic figure { margin: 0; }
.fn-infographic img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid var(--fn-line); box-shadow: var(--fn-shadow);
  background: #fff;
}
.fn-infographic figcaption {
  font-size: 12px; color: var(--fn-muted); margin-top: 8px; text-align: center;
}
.fn-infographic.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   실습 교재(워크북) 공통 컴포넌트 — SPIN 참가자 워크북 포맷 참고
   커버 · 목차 · 모듈 · 시간표 · 액티비티 · 기대결과물 · 진행방법 · 워크시트
   (--fn-* 변수를 사용하므로 각 테마 색상을 그대로 따름)
   ============================================================ */
.wb-cover {
  margin: 28px 0 34px; padding: 56px 44px; border-radius: 22px; color: #fff;
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(600px 320px at 84% -18%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(135deg, var(--fn-navy) 0%, var(--fn-fire-2) 100%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--fn-shadow-lg);
}
.wb-cover .wb-cover-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fn-gold-soft); border: 1px solid rgba(255,255,255,.3); padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
}
.wb-cover h1 { font-size: 34px; line-height: 1.24; font-weight: 900; margin: 0 0 12px; color: #fff; }
.wb-cover .wb-cover-sub { font-size: 15px; color: rgba(255,255,255,.82); max-width: 620px; margin: 0 auto 26px; }
.wb-cover .wb-cover-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.wb-cover .wb-cover-badges span {
  font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); padding: 8px 16px; border-radius: 10px;
}

/* 목차 */
.wb-toc { margin: 8px 0 12px; }
.wb-toc a {
  display: flex; align-items: baseline; gap: 12px; text-decoration: none;
  padding: 12px 16px; border: 1px solid var(--fn-line); border-radius: 12px; background: #fff;
  margin-bottom: 8px; transition: .18s;
}
.wb-toc a:hover { border-color: var(--fn-gold); transform: translateX(4px); box-shadow: var(--fn-shadow); }
.wb-toc a .wb-toc-no {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--fn-navy), var(--fn-fire-2)); color: var(--fn-gold-soft);
  font-size: 13px; font-weight: 900;
}
.wb-toc a .wb-toc-ttl { font-size: 14px; font-weight: 800; color: var(--fn-ink); }
.wb-toc a .wb-toc-desc { font-size: 12px; color: var(--fn-muted); margin-left: auto; text-align: right; }
.wb-toc a .wb-toc-dots { flex: 1; border-bottom: 1px dotted var(--fn-line); transform: translateY(-4px); }

/* 모듈 헤더 (대제목 위 세션 라벨) */
.wb-module-head {
  display: flex; align-items: center; gap: 16px; margin: 44px 0 6px;
  padding: 16px 20px; border-radius: 14px;
  background: linear-gradient(135deg, var(--fn-navy), var(--fn-fire-2)); color: #fff;
}
.wb-module-head .wb-m-no {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: var(--fn-gold-soft); font-size: 18px; font-weight: 900;
}
.wb-module-head .wb-m-meta { display: flex; flex-direction: column; gap: 2px; }
.wb-module-head .wb-m-kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fn-gold-soft); }
.wb-module-head .wb-m-ttl { font-size: 19px; font-weight: 900; }
.wb-module-head .wb-m-time { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* 시간표 */
.wb-timetable { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--fn-line); margin: 6px 0 16px; }
.wb-timetable thead th { background: linear-gradient(135deg, var(--fn-navy), var(--fn-fire-2)); color: #fff; text-align: left; padding: 12px 14px; font-size: 12.5px; font-weight: 800; }
.wb-timetable tbody td { padding: 11px 14px; border-top: 1px solid var(--fn-line-soft); color: var(--fn-ink-2); vertical-align: top; }
.wb-timetable tbody tr:nth-child(even) td { background: var(--fn-line-soft); }
.wb-timetable td.wb-tt-time { font-weight: 800; color: var(--fn-fire); white-space: nowrap; width: 120px; }
.wb-timetable td strong { color: var(--fn-ink); }

/* 학습 목표 / 진행 개요 박스 */
.wb-objective {
  border-radius: 14px; padding: 18px 22px; margin: 14px 0; background: #fff;
  border: 1px solid var(--fn-line); border-left: 5px solid var(--fn-gold);
}
.wb-objective h4 { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--fn-fire); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .04em; }

/* 실습 액티비티 카드 */
.wb-activity {
  border-radius: 14px; padding: 20px 22px; margin: 16px 0; background: #fff;
  border: 1px solid var(--fn-line); box-shadow: var(--fn-shadow); position: relative;
  border-top: 4px solid var(--fn-fire);
}
.wb-activity .wb-act-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--fn-fire);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.wb-activity h4 { margin: 0 0 6px; font-size: 16px; font-weight: 900; color: var(--fn-ink); }
.wb-activity .wb-act-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 12px; font-size: 12px; color: var(--fn-muted); }
.wb-activity .wb-act-line b { color: var(--fn-fire); font-weight: 800; }

/* 진행 단계(스텝) */
.wb-steps { list-style: none; counter-reset: wbstep; padding: 0; margin: 10px 0; }
.wb-steps li { position: relative; padding: 8px 0 8px 42px; font-size: 13.5px; color: var(--fn-ink-2); border-bottom: 1px dashed var(--fn-line-soft); }
.wb-steps li:last-child { border-bottom: 0; }
.wb-steps li::before {
  counter-increment: wbstep; content: counter(wbstep); position: absolute; left: 0; top: 7px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--fn-navy), var(--fn-fire-2)); color: var(--fn-gold-soft);
  font-size: 12px; font-weight: 900;
}
.wb-steps li b { color: var(--fn-ink); }

/* 기대 결과물 박스 */
.wb-outcome {
  border-radius: 14px; padding: 16px 20px; margin: 14px 0;
  background: linear-gradient(135deg, rgba(13,148,136,.06), rgba(8,145,178,.06));
  border: 1px dashed var(--fn-teal); border-left: 4px solid var(--fn-teal);
}
.wb-outcome h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--fn-teal); display: flex; align-items: center; gap: 8px; }

/* 진행 방법 / 퍼실리테이션 박스 */
.wb-facil {
  border-radius: 14px; padding: 16px 20px; margin: 14px 0; background: #fff;
  border: 1px solid var(--fn-line); border-left: 4px solid var(--fn-amber);
}
.wb-facil h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--fn-amber); display: flex; align-items: center; gap: 8px; }
.wb-facil .wb-facil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wb-facil .wb-facil-grid div { font-size: 12.5px; color: var(--fn-ink-2); }
.wb-facil .wb-facil-grid b { color: var(--fn-amber); }

/* 워크시트 (직접 작성란) */
.wb-worksheet { border-radius: 14px; padding: 18px 20px; margin: 14px 0; background: #fff; border: 1px solid var(--fn-line); box-shadow: var(--fn-shadow); }
.wb-worksheet h4 { margin: 0 0 4px; font-size: 14px; font-weight: 900; color: var(--fn-ink); }
.wb-worksheet .wb-ws-hint { font-size: 12px; color: var(--fn-muted); margin: 0 0 12px; }
.wb-ws-field { margin-bottom: 14px; }
.wb-ws-field label { display: block; font-size: 12.5px; font-weight: 800; color: var(--fn-fire); margin-bottom: 6px; }
.wb-ws-lines { border: 1px dashed var(--fn-line); border-radius: 10px; padding: 6px 12px; background: var(--fn-line-soft); }
.wb-ws-lines .wb-ln { height: 26px; border-bottom: 1px solid var(--fn-line); }
.wb-ws-lines .wb-ln:last-child { border-bottom: 0; }
.wb-ws-box { border: 1px dashed var(--fn-line); border-radius: 10px; min-height: 84px; background: var(--fn-line-soft); }

/* 팁 / 원칙 인용 */
.wb-tip {
  border-radius: 12px; padding: 14px 18px; margin: 14px 0; font-size: 13px; color: var(--fn-ink-2);
  background: #fff; border: 1px solid var(--fn-line); border-left: 4px solid var(--fn-gold);
}
.wb-tip b, .wb-tip strong { color: var(--fn-fire); }

/* 러닝 푸터(페이지 하단 브랜드 바) */
.wb-runfoot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--fn-muted); margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--fn-line); }
.wb-runfoot .wb-rf-brand { font-weight: 800; color: var(--fn-fire); }

@media (max-width: 900px) {
  .wb-facil .wb-facil-grid { grid-template-columns: 1fr; }
  .wb-toc a .wb-toc-desc { display: none; }
  .wb-cover { padding: 40px 24px; }
  .wb-cover h1 { font-size: 26px; }
  .wb-module-head { flex-wrap: wrap; }
  .wb-module-head .wb-m-time { margin-left: 0; }
}
@media print {
  .fn-topbar, .fn-pager { display: none; }
  body.fn { background: #fff; }
  .wb-activity, .wb-worksheet, .fn-card { break-inside: avoid; }
}
