:root {
  --bg: #dcdbd0;
  --surface: #f4f3ea;
  --surface-2: #eae8dc;
  --surface-3: #e1dfd0;
  --ink: #23262b;
  --ink-soft: #5b5e57;
  --ink-faint: #8a8b7d;
  --line: #c9c7b4;
  --line-soft: #d8d6c5;
  --brass: #8b6a2e;
  --brass-strong: #6f5423;
  --brass-tint: rgba(139, 106, 46, .12);
  --brass-tint-strong: rgba(139, 106, 46, .22);
  --seal: #a3372a;
  --seal-tint: rgba(163, 55, 42, .10);
  --seal-tint-strong: rgba(163, 55, 42, .18);
  --shadow: 0 1px 2px rgba(35, 38, 43, .06), 0 8px 24px -12px rgba(35, 38, 43, .25);
  --serif: 'Noto Serif KR', serif;
  --sans: 'Noto Sans KR', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --h-topbar: 61px;
  --h-chaptertabs: 57px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17181a;
    --surface: #1e2023;
    --surface-2: #26282b;
    --surface-3: #2d2f32;
    --ink: #e7e5da;
    --ink-soft: #a6a493;
    --ink-faint: #726f60;
    --line: #3a3c3d;
    --line-soft: #2f3132;
    --brass: #c9a24e;
    --brass-strong: #e0bd6e;
    --brass-tint: rgba(201, 162, 78, .14);
    --brass-tint-strong: rgba(201, 162, 78, .24);
    --seal: #d9695a;
    --seal-tint: rgba(217, 105, 90, .14);
    --seal-tint-strong: rgba(217, 105, 90, .24);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #17181a;
  --surface: #1e2023;
  --surface-2: #26282b;
  --surface-3: #2d2f32;
  --ink: #e7e5da;
  --ink-soft: #a6a493;
  --ink-faint: #726f60;
  --line: #3a3c3d;
  --line-soft: #2f3132;
  --brass: #c9a24e;
  --brass-strong: #e0bd6e;
  --brass-tint: rgba(201, 162, 78, .14);
  --brass-tint-strong: rgba(201, 162, 78, .24);
  --seal: #d9695a;
  --seal-tint: rgba(217, 105, 90, .14);
  --seal-tint-strong: rgba(217, 105, 90, .24);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 3px; }

/* ---------- Shell ---------- */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--brass-strong));
  z-index: 60; transition: width .12s linear;
}

.topbar {
  display: flex; flex-direction: column;
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-row {
  display: flex; align-items: center; gap: 16px; padding: 12px 24px; position: relative;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  border-radius: 7px; width: 40px; height: 40px; font-size: 18px; line-height: 1; cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-nav { display: none; }
.brand-block { display: flex; align-items: center; gap: 12px; flex: none; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-tagline {
  display: flex; align-items: center; gap: 6px;
  padding-left: 14px; white-space: nowrap;
}
.brand-tagline .tag-chip {
  background: var(--seal); color: #fff; font-family: var(--sans); font-weight: 800;
  font-size: 17px; letter-spacing: .03em; padding: 6px 11px 5px; border-radius: 5px; line-height: 1; flex: none;
  position: relative; animation: tagPulse 2.6s ease-out infinite;
}
.brand-tagline .tag-label {
  color: #fff; font-family: var(--sans); font-weight: 700;
  font-size: 18px; letter-spacing: -.01em; line-height: 1;
}
@keyframes tagPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--seal) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--seal) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--seal) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-tagline .tag-chip { animation: none; }
}
.brand-icon { height: 60px; width: auto; display: block; }
.brand-wordmark-img { height: 40px; width: auto; display: block; }
.footer-links { display: flex; align-items: center; gap: 8px; }
.footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover { color: var(--brass); }
.notice {
  margin: 0; flex: 1; text-align: right; font-size: 11.5px; color: var(--ink-faint);
  font-family: var(--mono);
}

/* ---------- Chapter tabs (top-level menu, as tabs) ---------- */
.chapter-tabs {
  position: relative; min-height: var(--h-chaptertabs);
  display: flex; align-items: stretch; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface-2); padding: 0 20px;
  scrollbar-width: thin;
}
.chapter-tab {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px; flex: none; padding: 0 14px;
  color: var(--ink-soft); border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s, border-color .15s, background-color .15s;
}
.ct-indicator {
  position: absolute; top: 6px; bottom: 6px; left: 0; z-index: 0;
  border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px rgba(21, 43, 75, .08);
  opacity: 0; transform: translateX(0); pointer-events: none;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), width .4s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.chapter-tab:hover { color: var(--ink); background: var(--surface-3); }
.chapter-tab.active { color: var(--brass-strong); border-bottom-color: var(--brass); background: var(--surface); }
.chapter-tab.home { border-right: 1px solid var(--line-soft); margin-right: 6px; }
.ct-badge {
  width: 24px; height: 24px; flex: none; border: 1px solid currentColor; border-radius: 5px; opacity: .8;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
}
.chapter-tab.active .ct-badge { background: var(--brass); border-color: var(--brass); color: var(--surface); opacity: 1; }
.ct-text { display: flex; flex-direction: column; line-height: 1.25; }
.ct-title { font-size: 13px; font-weight: 600; }
.ct-count { font-family: var(--mono); font-size: 9.5px; color: var(--ink-faint); }
.chapter-tab.active .ct-count { color: var(--brass-strong); }

/* ---------- Main ---------- */
.main-content { flex: 1; min-width: 0; display: flex; justify-content: center; padding: 0 28px 90px; }
.main-content > * { width: 100%; max-width: 900px; }

/* Cover / home */
.cover { padding: 48px 0 20px; }
.cover-mark {
  width: 72px; height: 72px; border: 2px solid var(--seal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--seal);
  font-family: var(--serif); font-size: 25px; font-weight: 700; margin-bottom: 24px;
}
.cover h1 { font-family: var(--serif); font-size: 38px; font-weight: 700; margin: 0 0 10px; text-wrap: balance; }
.cover-sub { font-size: 15px; color: var(--ink-soft); max-width: 58ch; margin: 0 0 32px; line-height: 1.75; }

.index-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 30px;
}
.index-row {
  display: flex; align-items: center; gap: 18px; background: var(--surface); padding: 18px 20px; color: var(--ink);
}
.index-row:hover { background: var(--surface-2); }
.idx-num { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--brass); width: 34px; flex: none; }
.idx-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.idx-title { font-family: var(--serif); font-weight: 700; font-size: 16.5px; }
.idx-sub { font-size: 12.5px; color: var(--ink-soft); }
.idx-count { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); flex: none; text-align: right; }
.cover-foot { font-size: 14px; color: var(--ink-faint); border-top: 1px solid var(--line-soft); padding-top: 18px; line-height: 1.8; }

/* Chapter head */
.chapter { padding-top: 20px; }
.chapter-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.stamp {
  width: 50px; height: 50px; flex: none; border: 2px solid var(--brass); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--brass);
  font-family: var(--mono); font-weight: 600; font-size: 16px;
}
.stamp svg { width: 26px; height: 26px; display: block; }
.chapter-head--watermark {
  position: relative; overflow: hidden; padding: 22px 26px; border-radius: 16px;
  background: var(--brass-tint); border: 1px solid var(--line);
}
.chapter-head--watermark > .stamp, .chapter-head--watermark > div:last-child { position: relative; z-index: 1; }
.head-watermark {
  position: absolute; right: -50px; top: -55px; width: 220px; height: 220px;
  color: var(--brass); opacity: .12; filter: blur(3px); pointer-events: none; z-index: 0;
}
.head-watermark svg { width: 100%; height: 100%; display: block; }
.stamp.topic-stamp { background: var(--brand-gradient, var(--brass)); border: 0; color: #fff; }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink-faint); margin: 2px 0 4px; text-transform: uppercase; }
.chapter-head h1 { font-family: var(--serif); font-size: 27px; font-weight: 700; margin: 0; text-wrap: balance; }
.dek { font-size: 12.5px; color: var(--ink-faint); margin: 6px 0 0; }
.lede { font-size: 14.5px; color: var(--ink-soft); margin: 18px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); line-height: 1.75; }

/* Category tabs (자산관리 분야: 종합/국민연금/연금저축·IRP/ISA/...) — 페이지 상단 가로 탭 */
.category-tabs {
  display: flex; align-items: center; gap: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line); margin: 18px 0 0; scrollbar-width: thin;
}
.category-tab {
  flex: none; padding: 10px 2px 12px; font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  color: var(--ink); border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.category-tab:hover { color: var(--brass-strong); }
.category-tab.active { color: var(--brass-strong); border-bottom-color: var(--brass); }

/* Step tabs (= 법인 설립 단계별 항목) — 상단 가로 탭 */
.step-layout { display: flex; flex-direction: column; gap: 0; }

.step-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--bg); padding: 10px 0 14px;
  border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.step-link {
  display: flex; gap: 8px; align-items: baseline; text-align: left; cursor: pointer; font-family: var(--sans);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
}
.step-link:hover { border-color: var(--brass); color: var(--ink); }
.step-link.active { background: var(--brass); border-color: var(--brass); color: var(--surface); }
.step-link.active .step-num { color: var(--surface); opacity: .85; }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink-faint); flex: none; }
.step-title { font-size: 12.5px; font-weight: 600; line-height: 1.3; }

.step-content { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px 32px; box-shadow: var(--shadow); }
.entry-title {
  font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 16px;
  display: flex; align-items: baseline; gap: 10px; text-wrap: balance;
}
.entry-title .num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--brass); white-space: nowrap; }

.step-content p { margin: 0 0 13px; }
.step-content p.muted { color: var(--ink-soft); font-size: 13.5px; }
.step-content ul, .step-content ol { margin: 0 0 13px; padding-left: 2em; }
.step-content ul { list-style-type: disc; }
.step-content ul ul { list-style-type: disc; }
.step-content ol { list-style-type: decimal; }
.step-content ol ol { list-style-type: decimal; }
.step-content li { margin-bottom: 5px; }
.step-content h5 { font-size: 16.5px; font-weight: 700; margin: 20px 0 8px; color: var(--ink); }
.step-content strong { color: var(--ink); font-weight: 700; }
.step-content a { color: var(--brass-strong); border-bottom: 1px dotted var(--brass); }
.step-content a:hover { color: var(--seal); border-color: var(--seal); }

/* Expert page — title row + hero banner */
.expert-title-row { position: relative; text-align: center; margin: 4px 0 22px; }
.expert-title-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.title-emblem { flex: 0 0 auto; width: 40px; height: 40px; }
.title-emblem svg { width: 100%; height: 100%; display: block; }
.expert-title-row h1 { font-family: var(--serif); font-size: 29px; font-weight: 700; margin: 0; }
.expert-cta-link {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--brass); color: var(--brass-strong); white-space: nowrap;
}
.expert-cta-link:hover { background: var(--brass); color: var(--surface); }

.expert-hero {
  background: var(--brand-gradient, linear-gradient(135deg, #0c2740 0%, #17456c 55%, #123a5d 100%));
  border: 1px solid #0c2740;
  color: #fff; border-radius: 14px; padding: 34px 30px 38px; text-align: center;
  box-shadow: 0 20px 50px -20px rgba(12, 39, 64, .55); margin-bottom: 26px;
}
.expert-hero h2 { font-family: var(--serif); font-size: 27px; font-weight: 700; margin: 0 auto 12px; max-width: 620px; line-height: 1.5; text-wrap: balance; color: #fff; }
.expert-hero p { font-size: 15.5px; margin: 0 auto; max-width: 520px; line-height: 1.8; color: rgba(255, 255, 255, .82); }

/* Card shell (profile / vows / services / CTA) */
.expert-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px 32px; box-shadow: var(--shadow); margin-bottom: 22px; }
.expert-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.expert-card > .card-note { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 18px; }

/* Profile card */
.expert-profile { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.expert-identity { flex: 0 0 auto; width: 168px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.expert-photo { width: 140px; height: 156px; object-fit: cover; object-position: 50% 20%; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-2); }
.expert-name { font-family: var(--serif); font-size: 22px; font-weight: 700; margin: 0; }
.expert-role { font-size: 14px; font-weight: 600; color: var(--brass-strong); margin: 2px 0 0; }

.expert-facts { flex: 1; min-width: 280px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.expert-fact { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 15px 17px; }
.expert-fact dt { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--brass-strong); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.expert-fact-list { list-style: none; margin: 0; padding: 0; }
.expert-fact-list li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; color: var(--ink); }
.expert-fact-list .yr, .expert-fact-list .note { color: var(--ink-faint); font-size: 12.5px; font-family: var(--mono); white-space: nowrap; }
.expert-fact-wide { grid-column: 1 / -1; }
.expert-course-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.expert-course-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 8px; font-size: 14px; color: var(--ink); }
.expert-course-list .course-name { font-weight: 600; }
.expert-course-list .course-badge { font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--brass-tint); color: var(--brass-strong); border: 1px solid var(--brass-tint-strong); white-space: nowrap; }
.expert-course-list .yr { margin-left: auto; color: var(--ink-faint); font-size: 12.5px; font-family: var(--mono); white-space: nowrap; }
.expert-course-list li.is-upcoming { border-left-color: var(--seal); }
.expert-course-list li.is-upcoming .course-badge { background: var(--seal-tint); color: var(--seal); border-color: var(--seal-tint-strong); }
@media (max-width: 767.98px) {
  .expert-course-list .course-name { flex-basis: 100%; text-align: left; }
}
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.expert-tag { font-family: var(--mono); font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brass-tint); color: var(--brass-strong); border: 1px solid var(--brass-tint-strong); white-space: nowrap; }

/* 카드 상단 로고 + 제목 (상담 분야 / 상담에서 지키는 12가지 공용) */
.section-emblem-head { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.section-emblem { flex: 0 0 auto; width: 56px; height: 56px; }
.section-emblem svg { width: 100%; height: 100%; display: block; }
.section-kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-strong); margin: 0 0 3px; }
.section-emblem-head h3 { margin: 0; }

/* 상담에서 지키는 원칙 */
.expert-vows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.expert-vows li {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  padding: 16px 17px 18px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.expert-vows li:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: var(--shadow); }
.vow-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.vow-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  background: var(--brass-tint); color: var(--brass-strong);
  display: flex; align-items: center; justify-content: center;
}
.vow-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vow-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 15.5px; color: var(--ink); margin: 0; }
.vow-desc { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* 상담 분야 카드 그리드 */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card {
  display: flex; flex-direction: column; gap: 7px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  padding: 18px 18px 20px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.service-card:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-num { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brass-strong); }
.service-card h4 { font-family: var(--serif); font-size: 16.5px; font-weight: 700; margin: 0; color: var(--ink); }
.service-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin: 0; flex: 1; }
.service-link { align-self: flex-start; font-size: 13px; color: var(--brass-strong); border-bottom: 1px dotted var(--brass); margin-top: 2px; }
.service-link:hover { color: var(--seal); border-color: var(--seal); }

/* 상담 문의 CTA */
.expert-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--brand-gradient, linear-gradient(135deg, #0c2740 0%, #17456c 55%, #123a5d 100%)); border: 1px solid #0c2740; }
.expert-cta > h3, .expert-cta p { color: #fff; }
.expert-cta p { margin: 0; font-size: 15px; max-width: 46ch; color: rgba(255, 255, 255, .82); }
.expert-cta-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--seal); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 8px; white-space: nowrap; }
.expert-cta-btn:hover { background: #7d1728; }

@media (max-width: 767.98px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-vows { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .expert-title-row { display: flex; flex-direction: column; gap: 10px; }
  .expert-cta-link { position: static; transform: none; }
  .expert-hero { padding: 24px 22px 28px; }
  .expert-hero h2 { font-size: 23px; }
  .expert-card { padding: 22px 20px; }
  .expert-profile { flex-direction: column; align-items: center; text-align: center; }
  .expert-facts { grid-template-columns: 1fr; }
  .expert-vows { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

.table-wrap { overflow-x: auto; margin: 16px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.step-content table {
  width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); margin: 0;
  --bs-table-bg: transparent; --bs-table-color: var(--ink);
}
.step-content table caption { caption-side: top; }
.step-content thead th {
  background: var(--brass-tint); color: var(--brass-strong); font-weight: 700; font-size: 14px;
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.step-content tbody td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.step-content tbody tr:last-child td { border-bottom: none; }
.step-content tbody tr:nth-child(even) { background: var(--surface-2); }
.step-content td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* 비교표: 모바일에서는 행마다 카드로 쌓고, 각 칸 앞에 data-label을 붙인다 */
@media (max-width: 575.98px) {
  .step-content .table-stack thead { display: none; }
  .step-content .table-stack, .step-content .table-stack tbody,
  .step-content .table-stack tr, .step-content .table-stack td { display: block; width: 100%; }
  .step-content .table-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  .step-content .table-stack tr:last-child { border-bottom: none; }
  .step-content .table-stack td { padding: 3px 0; border: none; }
  .step-content .table-stack td:first-child { font-weight: 700; color: var(--brass-strong); padding-bottom: 6px; }
  .step-content .table-stack td[data-label] { display: flex; gap: 10px; }
  .step-content .table-stack td[data-label]::before { content: attr(data-label); flex: 0 0 var(--stack-label, 34px); font-weight: 600; color: var(--ink-soft); }
}

.callout { border-radius: 8px; padding: 16px 18px; margin: 16px 0 20px; font-size: 13.5px; line-height: 1.7; }
.callout .tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
.callout-warn { background: var(--seal-tint); border: 1px solid var(--seal-tint-strong); }
.callout-warn .tag { color: var(--seal); }
.callout-tip { background: var(--brass-tint); border: 1px solid var(--brass-tint-strong); }
.callout-tip .tag { color: var(--brass-strong); }
.callout-quote { background: var(--surface-2); border: 1px dashed var(--ink-faint); }
.callout-quote .tag { color: var(--ink-faint); }
.callout-quote p { color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }

.content-figure {
  width: fit-content; max-width: 100%;
  margin: 16px auto 22px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; text-align: center;
}
.content-figure img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.content-figure figcaption {
  margin-top: 12px; font-size: 12px; color: var(--ink-faint); font-family: var(--sans);
}

.chapter-foot { margin-top: 22px; padding-top: 22px; font-size: 12.5px; color: var(--ink-faint); }
.related { margin-bottom: 12px; }
.related .label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); display: block; margin-bottom: 6px; }
.related a { display: inline-block; margin: 0 10px 6px 0; color: var(--brass-strong); border-bottom: 1px dotted var(--brass); }
.related a:hover { color: var(--seal); border-color: var(--seal); }
.source { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); word-break: break-all; }

.pager { display: flex; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager-link {
  flex: 1; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: 13px; display: block;
}
.pager-link:hover { border-color: var(--brass); background: var(--surface-2); }
.pager-link.next { text-align: right; }
.pager-link .plabel { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .notice { display: none; }
  .step-content { padding: 22px 20px; }
}
@media (max-width: 575.98px) {
  .step-nav {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .step-link { flex: none; }
  .step-title { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 575.98px) {
  .topbar-row { padding: 10px 14px; }
  .brand-tagline { display: none; }
  .main-content { padding: 0 16px 60px; }
  .cover h1 { font-size: 28px; }
  .index-row { padding: 14px 16px; gap: 12px; }
  .chapter-tabs { padding: 0 12px; }
  .ct-text { display: none; }
  .chapter-tab { padding: 0 10px; }
  .chapter-tab.home .ct-title { display: none; }
}

/* 인생 후반전 실전 노트 (/second-half/) */
.sh-pillars { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.sh-pillars li { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--brass-tint); border-radius: 10px; }
.sh-pillars b { display: block; font-size: 15px; color: var(--ink); }
.sh-pillars small { display: block; font-size: 12px; color: var(--ink-soft); margin: 2px 0 0; white-space: normal; word-break: keep-all; }
.sh-section-head { margin: 0 0 18px; }
.sh-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gold-ink, var(--brass-strong)); margin: 0 0 6px !important; }
.sh-section-head h2, .sh-checklist h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 0; color: var(--ink); }
.sh-grid { margin-bottom: 34px; }
.sh-card { gap: 10px; }
.sh-card-top { display: flex; justify-content: space-between; align-items: center; }
.sh-card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-gradient, var(--brass)); color: #fff; }
.sh-card-icon svg { width: 26px; height: 26px; display: block; }
.sh-card p { word-break: keep-all; }
.sh-checklist { margin-bottom: 8px; }
.sh-dek { color: var(--ink-soft); font-size: 13.5px; margin: 4px 0 18px !important; }
.sh-checks { list-style: none !important; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; }
.sh-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; margin: 0 !important; word-break: keep-all; }
.sh-checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border: 2px solid var(--brass); border-radius: 4px; }
.sh-check-area { flex: none; min-width: 44px; font-weight: 700; color: var(--brass-strong); }
.sh-hero h1, .sh .lede, .sh .dek, .sh .step-content p, .sh .step-content li, .sh .step-content td { word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .sh-grid > .sh-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .sh-checks { grid-template-columns: 1fr; }
}
