/* 도움말(Help Center) — 목록 + 상세 공통. */

.help-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ── Hero + 검색 ── */
.help-hero { text-align: center; margin-bottom: 40px; }
.help-hero h1 { font-size: 2rem; font-weight: 700; margin: 0 0 8px; }
.help-hero .help-sub { color: #6b7280; margin: 0 0 24px; }
.help-search {
  position: relative; max-width: 560px; margin: 0 auto;
}
.help-search i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9ca3af;
}
.help-search input {
  width: 100%; padding: 14px 16px 14px 44px; font-size: 1rem;
  border: 1px solid #d1d5db; border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.help-search input:focus {
  outline: none; border-color: #4F46E5; box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

/* ── FAQ (featured) accordion ── */
.help-faq { margin-bottom: 44px; }
.help-faq > h2 {
  font-size: 1.15rem; font-weight: 700; margin: 0 0 14px; color: #111827;
}
.help-faq-item {
  border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; background: #fff;
  padding: 0 16px; overflow: hidden;
}
.help-faq-item > summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.help-faq-item > summary::-webkit-details-marker { display: none; }
.help-faq-item > summary::after {
  content: "\F282"; font-family: "bootstrap-icons"; color: #9ca3af; transition: transform .2s;
}
.help-faq-item[open] > summary::after { transform: rotate(180deg); }
.help-faq-answer { padding: 0 0 16px; color: #374151; }
.help-more {
  display: inline-block; margin: 0 0 16px; font-size: .9rem; color: #4F46E5; text-decoration: none;
}
.help-more:hover { text-decoration: underline; }

/* ── 카테고리 (collapse/expand 카드) ── */
.help-category {
  margin-bottom: 20px; background: #fff;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
.help-category > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: #10b981; color: #fff;
  font-size: 1.15rem; font-weight: 700; transition: background .15s;
}
.help-category > summary::-webkit-details-marker { display: none; }
.help-category > summary:hover { background: #059669; }
.help-category > summary:focus-visible { outline: 2px solid #6366f1; outline-offset: -2px; }
.help-category > summary::after {
  content: "\F282"; font-family: "bootstrap-icons"; font-size: 1.1rem;
  color: rgba(255,255,255,.8); transition: transform .2s; flex: 0 0 auto;
}
.help-category[open] > summary::after { transform: rotate(180deg); }

.help-article-list { list-style: none; margin: 0; padding: 4px 24px 12px; }
.help-article { border-bottom: 1px solid #f3f4f6; }
.help-article:last-child { border-bottom: none; }
.help-article a {
  display: block; padding: 15px 2px;
  color: #1f2937; text-decoration: none; font-weight: 500;
  transition: color .12s;
}
.help-article a:hover { color: #0d6efd; text-decoration: underline; }

.help-empty { text-align: center; color: #9ca3af; padding: 40px 0; }

/* ── 상세 ── */
.help-breadcrumb {
  display: flex; align-items: center; gap: 6px; font-size: .9rem; color: #6b7280; margin-bottom: 20px;
}
.help-breadcrumb a { color: #4F46E5; text-decoration: none; }
.help-breadcrumb a:hover { text-decoration: underline; }
.help-article-body h1 { font-size: 1.7rem; font-weight: 700; margin: 0 0 24px; line-height: 1.35; }
.help-back {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 40px;
  color: #4F46E5; text-decoration: none; font-weight: 500;
}
.help-back:hover { text-decoration: underline; }

/* ── 마크다운 본문 (help-md) ── */
.help-md { color: #374151; line-height: 1.75; }
.help-md h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; }
.help-md h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; }
.help-md p { margin: 0 0 16px; }
.help-md ul, .help-md ol { margin: 0 0 16px; padding-left: 22px; }
.help-md li { margin: 6px 0; }
.help-md a { color: #4F46E5; }
.help-md code {
  background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: .9em;
}
.help-md pre {
  background: #1f2937; color: #f9fafb; padding: 16px; border-radius: 8px; overflow-x: auto;
}
.help-md pre code { background: none; padding: 0; color: inherit; }
.help-md img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.help-md table { border-collapse: collapse; width: 100%; margin: 0 0 16px; }
.help-md th, .help-md td { border: 1px solid #e5e7eb; padding: 8px 12px; text-align: left; }
.help-md blockquote {
  border-left: 3px solid #d1d5db; margin: 0 0 16px; padding: 4px 16px; color: #6b7280;
}

/* 반응형 YouTube 임베드 (16:9) — help_markdown.js 가 .help-video 래퍼 생성 */
.help-video {
  position: relative; width: 100%; padding-top: 56.25%; margin: 16px 0; border-radius: 8px; overflow: hidden;
}
.help-video iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

@media (max-width: 640px) {
  .help-page { padding: 24px 16px 60px; }
  .help-hero h1 { font-size: 1.6rem; }
}
