/* 검색 유입용 가이드 페이지 (guide/…, tools/guide_pages.py 가 만든다) */
.guide { max-width: 760px; margin: 0 auto; padding: 48px 24px 32px; }
.guide-crumbs { color: var(--grey-500); font-size: 14px; margin-bottom: 28px; }
.guide-crumbs a:hover { color: var(--grey-900); }
.guide h1 {
  color: var(--grey-900);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.guide-lead { margin-top: 24px; color: var(--grey-700); font-size: 19px; line-height: 1.7; }
.guide-meta { margin-top: 16px; color: var(--grey-500); font-size: 14px; }

.guide section { margin-top: 64px; }
.guide h2 { color: var(--grey-900); font-size: clamp(24px, 3.2vw, 30px); line-height: 1.4; letter-spacing: -0.02em; font-weight: 400; margin-bottom: 20px; }
.guide section > p { color: var(--grey-700); line-height: 1.8; }
.guide section > p + p { margin-top: 12px; }
.guide section > * + p, .guide section > * + ul, .guide section > * + table { margin-top: 20px; }
.guide-note { color: var(--grey-500) !important; font-size: 15px; }
.guide-link { color: var(--blue-500); }
.guide-link:hover { color: var(--blue-700); }

.guide-figure { margin: 0; }
.guide-figure img { width: 100%; height: auto; border-radius: var(--radius-md); background: var(--grey-100); }
.guide-figure figcaption { margin-top: 10px; color: var(--grey-500); font-size: 14px; line-height: 1.6; }
.guide-pair, .guide-trio { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.guide-list, .guide-steps, .guide-check, .guide-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.guide-list li, .guide-steps li, .guide-check li, .guide-facts li {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--grey-50);
  color: var(--grey-700);
  line-height: 1.7;
}
.guide-list strong, .guide-steps strong, .guide-check strong, .guide-facts strong {
  display: block; color: var(--grey-900); font-weight: 400; font-size: 18px; margin-bottom: 4px;
}
.guide-steps, .guide-check { counter-reset: step; }
.guide-check[start="5"] { counter-reset: step 4; }
.guide-check[start="8"] { counter-reset: step 7; }
.guide-check[start="10"] { counter-reset: step 9; }
.guide-check[start="12"] { counter-reset: step 11; }
.guide-steps li, .guide-check li { counter-increment: step; position: relative; padding-left: 64px; }
.guide-steps li::before, .guide-check li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 22px; top: 20px;
  font-family: var(--font-pixel); color: var(--blue-500); font-size: 18px;
}
.guide-facts { margin-top: 20px; }
.guide-facts li { background: var(--blue-50); }

.guide-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--grey-200); font-size: 15px; }
.guide-table th, .guide-table td { padding: 14px 8px; border-bottom: 1px solid var(--grey-200); text-align: left; vertical-align: top; line-height: 1.6; font-weight: 400; }
.guide-table thead th { color: var(--grey-500); }
.guide-table tbody th { color: var(--grey-900); white-space: nowrap; }
.guide-table td { color: var(--grey-700); }

.guide-cta {
  margin-top: 72px; padding: 40px 32px; border-radius: var(--radius-lg);
  background: var(--grey-100); text-align: center;
}
.guide-cta strong { display: block; color: var(--grey-900); font-size: clamp(22px, 3vw, 28px); font-weight: 400; letter-spacing: -0.02em; }
.guide-cta p { margin: 10px 0 24px; color: var(--grey-600); }

.guide-faq details { border-bottom: 1px solid var(--grey-200); padding: 18px 0; }
.guide-faq summary { cursor: pointer; color: var(--grey-900); font-size: 18px; list-style: none; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: '+'; float: right; color: var(--grey-400); }
.guide-faq details[open] summary::after { content: '−'; }
.guide-faq details p { margin-top: 10px; color: var(--grey-700); line-height: 1.75; }

.guide-related ul, .guide-cards { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.guide-related a, .guide-cards a { display: block; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--grey-50); transition: background-color 0.2s; }
.guide-related a:hover, .guide-cards a:hover { background: var(--grey-100); }
.guide-related strong, .guide-cards strong { display: block; color: var(--grey-900); font-weight: 400; font-size: 18px; }
.guide-related span, .guide-cards span { display: block; margin-top: 4px; color: var(--grey-600); font-size: 15px; line-height: 1.6; }
.guide-cards { margin-top: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-cards a { padding: 0 0 22px; overflow: hidden; border-radius: var(--radius-md); }
.guide-cards img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 16px; }
.guide-cards strong, .guide-cards span { padding: 0 20px; }

.guide-footer-links { flex-wrap: wrap; }

@media (max-width: 640px) {
  .guide { padding: 32px 16px 24px; }
  .guide section { margin-top: 52px; }
  .guide-pair, .guide-trio, .guide-cards { grid-template-columns: 1fr; }
  .guide-cta { padding: 32px 20px; }
  .guide-table { display: block; overflow-x: auto; font-size: 14px; }
  .guide-table th, .guide-table td { padding: 12px 4px; }
  .guide-table tbody th { white-space: normal; }
  .nav-links { display: none; }
}
