/* ---------- Guide hero ---------- */
.guide-hero {
  padding: 64px 0 40px;
  text-align: center;
}
.guide-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 8px 0 16px;
}
.guide-hero__desc {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}
.guide-hero__desc a { color: var(--accent); text-decoration: underline; }
.guide-hero .btn { margin-top: 20px; }

@media print {
  .no-print, .header, .footer, .guide-cta, .toc { display: none !important; }
}

/* ---------- Table of contents ---------- */
.toc {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.toc__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px;
  justify-content: center;
}
.toc a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.toc a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Guide section ---------- */
.guide-section { padding: 64px 0; }
.guide-section--alt { background: var(--bg-alt); }
.guide-section__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.guide-section__sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-faint);
}
.guide-section__intro {
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 36px;
}

/* ---------- Numbered steps (섹션 ①) ---------- */
.step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__body h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.step__body p { color: var(--text-dim); margin-bottom: 10px; }
.step__body p:last-child { margin-bottom: 0; }

/* ---------- Feature blocks (프로그램별 기능) ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.feature h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }

/* ---------- Lists ---------- */
.guide-list { display: flex; flex-direction: column; gap: 8px; color: var(--text-dim); font-size: 0.95rem; }
.guide-list li { padding-left: 4px; }
.guide-list--num { list-style: none; counter-reset: step; }
.guide-list--num li {
  counter-increment: step;
  position: relative;
  padding-left: 26px;
}
.guide-list--num li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}
.guide-list:not(.guide-list--num) { list-style: none; }
.guide-list:not(.guide-list--num) li { position: relative; padding-left: 18px; }
.guide-list:not(.guide-list--num) li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.guide-list strong { color: var(--text); }
.guide-list__intro { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; }

/* ---------- Callouts ---------- */
.callout {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
}
.callout--info {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text-dim);
}
.callout--info strong { color: var(--accent); }
.callout--warning {
  background: rgba(232, 194, 106, 0.1);
  border: 1px solid var(--gold);
  color: var(--text-dim);
  margin-bottom: 28px;
}
.callout--warning strong { color: var(--gold); }

/* ---------- Inline UI hints ---------- */
.kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85em;
  font-weight: 700;
  color: var(--text);
}
code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--accent);
}

/* ---------- Tags (외부 사이트 바로가기) ---------- */
.guide-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Verdict badges (판정 색상) ---------- */
.verdict-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.verdict-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}
.verdict-badge--buy { background: rgba(51, 214, 168, 0.16); color: var(--accent); }
.verdict-badge--caution { background: rgba(232, 194, 106, 0.16); color: var(--gold); }
.verdict-badge--hold { background: rgba(180, 150, 110, 0.18); color: #c9a876; }
.verdict-badge--sell { background: rgba(224, 90, 90, 0.16); color: #e05a5a; }
.verdict-badge--na { background: var(--surface-2); color: var(--text-faint); }

/* ---------- Bottom CTA ---------- */
.guide-cta {
  padding: 72px 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.guide-cta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.guide-cta p { color: var(--text-dim); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .toc { position: static; }
  .feature { padding: 22px; }
  .step { flex-direction: column; gap: 10px; }
}
