/* ===============================================
   디바인교회관리 웹버전 사용설명서 — Style
   수정: 2026-05-18 — 명조 제거, 전체 Pretendard 고딕 통일
                      플랜 탭/PLUS 뱃지/검색 결과 추가
   =============================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.css');

:root {
  /* 브랜드 컬러 */
  --navy:        #1B3A6B;
  --navy-deep:   #0F2447;
  --navy-light:  #2E5595;
  --gold:        #C9A84C;
  --gold-light:  #E0C878;

  /* PLUS 컬러 (보라톤) */
  --plus:        #7c3aed;
  --plus-light:  #a78bfa;
  --plus-deep:   #5b21b6;

  /* 문서 컬러 */
  --bg:          #FBFAF7;
  --bg-paper:    #FFFFFF;
  --bg-code:     #F4F1EA;
  --border:      #E5E0D3;
  --border-soft: #EFEBE0;

  --text:        #1F2A3D;
  --text-muted:  #5B6677;
  --text-light:  #8B95A5;

  --accent:      #C9A84C;
  --success:     #2A8F5F;
  --warning:     #D98925;
  --danger:      #C64545;
  --info:        #3F7BC3;

  /* 레이아웃 */
  --sidebar-w:   280px;
  --toc-w:       220px;
  --content-w:   780px;
  --topbar-h:    64px;
  --plantabs-h:  56px;

  /* 폰트 — 전부 Pretendard 고딕 통일 */
  --font-body:   'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-head:   'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-mono:   'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  letter-spacing: -0.01em;
}

/* ===============================================
   레이아웃
   =============================================== */
.help-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--toc-w);
  min-height: 100vh;
}

/* ===============================================
   상단 헤더
   =============================================== */
.help-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: linear-gradient(180deg, #FFFAEF 0%, #FBF4E2 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 0 28px;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 12px rgba(180, 140, 60, 0.08);
}
.help-header .logo {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}
.help-header .logo::before {
  content: '📖';
  font-size: 24px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.help-header .logo .sub {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: 0;
  padding: 3px 10px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 3px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.help-header .spacer { flex: 1; }
.help-header .top-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.help-header .top-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 5px;
  transition: all 0.15s;
}
.help-header .top-nav a:hover {
  color: var(--navy-deep);
  background: rgba(201,168,76,0.12);
}
.help-header .pdf-btn {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  box-shadow: 0 2px 6px rgba(27, 58, 107, 0.2);
}
.help-header .pdf-btn:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(27, 58, 107, 0.3);
}
.help-header .menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--navy-deep);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* ===============================================
   ★ [2026-05-18] 플랜 전환 탭 바
   =============================================== */
.plan-tabs-bar {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  height: var(--plantabs-h);
  background: linear-gradient(135deg, #f0e8ff 0%, #e8f0fe 100%);
  border-bottom: 1px solid #ddd6fe;
  z-index: 99;
  display: flex;
  align-items: center;
  padding: 0 28px;
}
.plan-tabs-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.plan-tabs-label {
  font-size: 13px;
  font-weight: 800;
  color: #5b21b6;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.plan-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}
.plan-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.plan-tab:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: #f8faff;
}
.plan-tab .plan-tab-price {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}
.plan-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(27,58,107,0.25);
}
.plan-tab.active .plan-tab-price {
  color: rgba(255,255,255,0.85);
}
.plan-tab.plus.active {
  background: var(--plus);
  border-color: var(--plus);
  box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}
.plan-tab.plus:hover:not(.active) {
  border-color: var(--plus);
  color: var(--plus);
  background: #faf5ff;
}
.plan-tabs-hint {
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

/* 본문 영역의 시작 위치를 플랜탭 만큼 내림 */
.help-sidebar {
  top: calc(var(--topbar-h) + var(--plantabs-h)) !important;
}
.help-main {
  padding-top: calc(var(--topbar-h) + var(--plantabs-h) + 32px) !important;
}
.help-toc {
  padding-top: calc(var(--topbar-h) + var(--plantabs-h) + 32px) !important;
}
.help-toc-inner {
  top: calc(var(--topbar-h) + var(--plantabs-h) + 32px) !important;
}

/* ===============================================
   사이드바
   =============================================== */
.help-sidebar {
  position: fixed;
  left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #FEFCF6 0%, #FAF6EC 100%);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 0;
  z-index: 50;
}
.help-sidebar::-webkit-scrollbar { width: 6px; }
.help-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar-search {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
  position: relative;
}
.sidebar-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B95A5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat 12px center;
  transition: border-color 0.15s;
}
.sidebar-search input:focus {
  outline: none;
  border-color: var(--navy-light);
  background-color: #fff;
}

/* 검색 결과 박스 */
.help-search-results {
  display: none;
  position: absolute;
  top: 48px;
  left: 20px;
  right: 20px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
}
.help-search-results.show { display: block; }
.help-search-results .sr-item {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--text);
}
.help-search-results .sr-item:hover {
  background: rgba(201,168,76,0.08);
}
.help-search-results .sr-item:last-child {
  border-bottom: 0;
}
.help-search-results .sr-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 2px;
}
.help-search-results .sr-chapter {
  font-size: 11.5px;
  color: var(--text-light);
}
.help-search-results .sr-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

/* ===============================================
   아코디언 사이드바
   =============================================== */
.help-sidebar.accordion-sidebar {
  padding: 18px 14px;
}
.sidebar-accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.accordion-item {
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: all 0.15s;
}
.accordion-item.highlight {
  border: 1.5px solid var(--plus);
  background: linear-gradient(135deg, #faf5ff 0%, #fff 80%);
  box-shadow: 0 2px 8px rgba(124,58,237,0.08);
}
.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  letter-spacing: -0.02em;
}
.accordion-trigger .left {
  display: flex;
  align-items: center;
  gap: 9px;
}
.accordion-trigger .num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}
.accordion-item.highlight .accordion-trigger .num {
  background: var(--plus);
  color: #fff;
  font-size: 13px;
}
.accordion-trigger .arrow {
  transition: transform .18s ease;
  color: #94a3b8;
}
.accordion-item.open .accordion-trigger .arrow {
  transform: rotate(180deg);
}
.accordion-panel {
  display: none;
  padding: 0 12px 10px 47px;
}
.accordion-item.open .accordion-panel {
  display: block;
}
.accordion-panel a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  flex-wrap: wrap;
  line-height: 1.4;
  transition: color 0.12s;
}
.accordion-panel a:hover {
  color: #1d4ed8;
  font-weight: 700;
}
.accordion-panel a.active {
  color: var(--navy-deep);
  font-weight: 800;
}
.accordion-panel a.active::before {
  content: '📖 ';
  margin-right: 2px;
}
.accordion-panel a.locked {
  color: #cbd5e1;
}
.accordion-panel a.locked::after {
  content: '🔒';
  margin-left: 4px;
  font-size: 10px;
}

/* 사이드바 뱃지 */
.accordion-panel .badge-new {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.4px;
  vertical-align: 1px;
}
.accordion-panel .badge-plan {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  vertical-align: 1px;
}
.accordion-panel .badge-plan.plus {
  background: linear-gradient(135deg, var(--plus), var(--plus-light));
  color: #fff;
}
.accordion-panel .badge-plan.full {
  background: #fef3c7;
  color: #92400e;
}

/* 사이드바 하단 영업 카드 */
.sidebar-upgrade {
  margin: 16px 12px 8px;
}
.upgrade-card {
  background: linear-gradient(135deg, var(--plus-deep) 0%, var(--plus) 100%);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(124,58,237,0.25);
}
.upgrade-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.upgrade-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.upgrade-desc {
  font-size: 11.5px;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 10px;
}
.upgrade-btn {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.upgrade-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* ===============================================
   본문 영역
   =============================================== */
.help-main {
  grid-column: 2;
  padding: 90px 48px 80px;
  min-width: 0;
}
.help-main-inner {
  max-width: var(--content-w);
  margin: 0 auto;
}

/* 브레드크럼 */
.breadcrumb {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--text-light); }

/* 페이지 제목 — Pretendard 고딕 */
.page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy-deep);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.page-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 2px;
}
.page-title .plan-mark {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 14px;
  letter-spacing: 0.4px;
  vertical-align: 4px;
}
.page-title .plan-mark.plus {
  background: linear-gradient(135deg, var(--plus), var(--plus-light));
  color: #fff;
  box-shadow: 0 2px 6px rgba(124,58,237,0.25);
}
.page-title .plan-mark.full {
  background: #fef3c7;
  color: #92400e;
}

.page-subtitle {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

/* 단계 카드 */
.step {
  margin: 32px 0;
  padding: 22px 24px 24px;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  transition: border-color 0.2s;
}
.step:hover { border-color: var(--navy-light); }
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(27, 58, 107, 0.25);
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.step p { margin: 10px 0; color: var(--text); }

/* 스크린샷 */
.screenshot {
  margin: 16px 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-code);
}
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.screenshot img:hover { opacity: 0.9; }
.screenshot img[src=""],
.screenshot img:not([src]) { display: none; }
.screenshot-placeholder {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  padding: 24px;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-code),
    var(--bg-code) 10px,
    #ECE7DA 10px,
    #ECE7DA 20px
  );
  font-size: 13px;
}
.screenshot-placeholder strong {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.screenshot-caption {
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: #fff;
  border-top: 1px solid var(--border-soft);
}

/* 라이트박스 */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 25, 50, 0.92);
  z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
  animation: lb-fade-in 0.2s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; color: #fff; font-size: 22px;
  cursor: pointer;
}
@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
body.lb-open { overflow: hidden; }

/* 인라인 UI */
.menu-path {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.btn-ui {
  display: inline-block;
  padding: 3px 10px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  vertical-align: 1px;
}
.btn-ui.gold { background: var(--gold); color: var(--navy-deep); }
.btn-ui.gray { background: #7E8899; }
.btn-ui.danger { background: var(--danger); }
.btn-ui.plus { background: var(--plus); }
.key {
  display: inline-block;
  padding: 1px 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* 알림 박스 */
.notice {
  margin: 20px 0;
  padding: 14px 18px 14px 48px;
  border-radius: 8px;
  position: relative;
  line-height: 1.65;
  font-size: 14.5px;
}
.notice::before {
  position: absolute;
  left: 16px; top: 14px;
  font-size: 18px;
  line-height: 1;
}
.notice strong { font-weight: 700; }
.notice.info     { background: #EEF4FC; border-left: 4px solid var(--info);    color: #1F4A7A; }
.notice.info::before { content: '💡'; }
.notice.tip      { background: #EDF7F1; border-left: 4px solid var(--success); color: #1C5C3D; }
.notice.tip::before { content: '✨'; }
.notice.warning  { background: #FDF3E5; border-left: 4px solid var(--warning); color: #7C4A10; }
.notice.warning::before { content: '⚠️'; }
.notice.danger   { background: #FBEAEA; border-left: 4px solid var(--danger);  color: #7A2020; }
.notice.danger::before { content: '🚫'; }
.notice.plus     { background: #faf5ff; border-left: 4px solid var(--plus);    color: #5b21b6; }
.notice.plus::before { content: '✨'; }

/* 섹션 제목 */
h2.section-h {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  line-height: 1.4;
  letter-spacing: -0.03em;
}
h3.section-h {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}

/* 본문 요소 */
.help-main p { margin: 12px 0; color: var(--text); }
.help-main ul, .help-main ol { margin: 12px 0 12px 22px; padding-left: 12px; }
.help-main li { margin: 6px 0; line-height: 1.75; }
.help-main a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  font-weight: 500;
}
.help-main a:hover { color: var(--navy-light); }
/* ★ [2026-09-23] 남색 버튼 글씨가 안 보이던 문제.
   .help-main a (0,1,1) 가 .btn-ui (0,1,0) 를 이겨서 글씨가 남색이 되고,
   배경도 남색이라 검은 네모처럼 보였다. gold 는 클래스가 둘이라 살아 있었다.
   버튼은 링크 색 규칙에서 빼 준다. */
.help-main a.btn-ui { color: #fff; text-decoration: none; font-weight: 600; }
.help-main a.btn-ui.gold { color: var(--navy-deep); }
.help-main a.btn-ui:hover { color: #fff; opacity: .88; }
.help-main a.btn-ui.gold:hover { color: var(--navy-deep); }
.help-main code {
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-deep);
}

/* 테이블 */
.help-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}
.help-main th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.help-main td {
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
}
.help-main tr:nth-child(even) td { background: var(--bg); }

/* TOC */
.help-toc {
  grid-column: 3;
  padding: 90px 24px 40px 0;
}
.help-toc-inner {
  position: sticky;
  padding-left: 20px;
  border-left: 1px solid var(--border-soft);
}
.help-toc-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.help-toc ul { list-style: none; }
.help-toc li a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.5;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
  transition: all 0.15s;
}
.help-toc li a:hover,
.help-toc li a.active {
  color: var(--navy);
  border-left-color: var(--gold);
}
.help-toc li.indent a {
  padding-left: 24px;
  font-size: 12px;
  color: var(--text-light);
}

/* 하단 이전/다음 */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 60px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.page-nav a {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  min-height: 68px;
}
.page-nav a:hover {
  border-color: var(--navy-light);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(27, 58, 107, 0.08);
}
.page-nav .label {
  font-size: 11.5px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.page-nav .title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}
.page-nav .next { text-align: right; }
.page-nav .prev .label::before { content: '← '; }
.page-nav .next .label::after { content: ' →'; }

/* ===============================================
   인덱스 페이지 (메인)
   =============================================== */
.hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 60px 40px 50px;
  border-radius: 16px;
  color: #fff;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero.plus-hero {
  background: linear-gradient(135deg, var(--plus-deep), var(--plus));
}
.hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.25), transparent 70%);
}
.hero.plus-hero::before {
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
}
.hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.hero .badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.hero.plus-hero .badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.chapter-card {
  padding: 22px 22px 24px;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}
.chapter-card.highlight {
  border: 1.5px solid var(--plus);
  background: linear-gradient(135deg, #faf5ff 0%, #fff 80%);
}
.chapter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.chapter-card.highlight::before {
  background: var(--plus);
  transform: scaleX(1);
}
.chapter-card:hover {
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 58, 107, 0.1);
}
.chapter-card:hover::before { transform: scaleX(1); }
.chapter-card .num {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.chapter-card.highlight .num { color: var(--plus); }
.chapter-card .title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.chapter-card .desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.chapter-card .item-count {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-light);
}

/* 메인 시작 플로우 */
.start-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.flow-card {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.flow-card .step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 10px;
  font-size: 15px;
}
.flow-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.flow-card p {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.flow-card .btn-line {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.flow-card .btn-line:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
}

.section-title {
  margin: 40px 0 16px;
}
.section-title h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.section-title p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===============================================
   반응형
   =============================================== */
@media (max-width: 1200px) {
  .plan-tabs-hint { display: none; }
}
@media (max-width: 1100px) {
  .help-layout { grid-template-columns: var(--sidebar-w) 1fr; }
  .help-toc { display: none; }
  .help-main { padding: 90px 36px 80px; }
  .start-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  :root { --sidebar-w: 260px; --plantabs-h: 80px; }
  .help-header { padding: 0 16px; }
  .help-header .menu-toggle { display: block; margin-right: 8px; }
  .help-header .top-nav a:not(.pdf-btn) { display: none; }
  .plan-tabs-bar { padding: 0 16px; }
  .plan-tabs-inner { flex-direction: column; gap: 6px; padding: 8px 0; }
  .plan-tabs-label { display: none; }
  .plan-tab { padding: 6px 10px; font-size: 12px; }
  .help-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
  }
  .help-sidebar.open { transform: translateX(0); }
  .help-layout { grid-template-columns: 1fr; }
  .help-main {
    grid-column: 1;
    padding: 100px 18px 60px !important;
  }
  .page-title { font-size: 24px; }
  .hero { padding: 40px 24px; }
  .hero h1 { font-size: 24px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .start-flow { grid-template-columns: 1fr; }
  .page-nav { grid-template-columns: 1fr; }
}

/* ===============================================
   인쇄용 (PDF 저장)
   =============================================== */
@media print {
  @page { size: A4; margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; }
  .help-header,
  .help-sidebar,
  .help-toc,
  .page-nav,
  .plan-tabs-bar,
  .help-header .top-nav,
  .sidebar-upgrade,
  .lightbox { display: none !important; }
  .help-layout { grid-template-columns: 1fr; }
  .help-main {
    grid-column: 1;
    padding: 0 !important;
    max-width: 100%;
  }
  .help-main-inner { max-width: 100%; }
  .step { page-break-inside: avoid; box-shadow: none; }
  .page-title { font-size: 20pt; }
  .notice, .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: var(--text); text-decoration: none; }
}
