/* 고수 허브 — 사용 설명서 (#/help) + 각 화면의 「이 화면 설명서」 버튼 */

/* 다른 화면에 붙는 버튼 */
.help-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; }
.help-btn:hover { background: var(--surface); transform: translateY(-1px); color: var(--brand); }
.guide .help-btn { margin-top: 14px; width: 100%; justify-content: center; }

/* 머리 · 검색 */
.hp-head h1 small { font-size: 18px; font-weight: 700; }
.hp-search { margin-bottom: 18px; }

/* 왼쪽 목차 / 오른쪽 본문 */
.hp-wrap { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 22px; align-items: start; }
.hp-toc { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 10px; box-shadow: var(--sh-1); }
.hp-tg + .hp-tg { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.hp-tgn { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: var(--text-3); letter-spacing: .02em; padding: 2px 8px 6px; }
.hp-tgn i { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); }
.hp-toc a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; color: var(--text-2); font-size: 13.5px; text-decoration: none; line-height: 1.35; }
.hp-toc a .ic { flex: none; opacity: .7; }
.hp-toc a:hover { background: var(--surface-2); color: var(--text); }
.hp-toc a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.hp-toc a.on .ic { opacity: 1; }
.hp-main { min-width: 0; }

/* 목록 */
.hp-hello { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 20px; box-shadow: var(--sh-1); }
.hp-hello > b { font-size: 15px; }
.hp-path { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hp-path a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.hp-path a i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.hp-path a:hover { border-color: var(--brand-line); color: var(--brand); }
.hp-sec + .hp-sec { margin-top: 22px; }
.hp-gh { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.hp-gh i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); }
.hp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hp-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s, border-color .15s; }
.hp-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--b); color: var(--text); }
.hp-card > .ic { color: var(--text-3); flex: none; }
.hp-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; }
.hp-ic .ic { width: 21px; height: 21px; background: #fff; }
.hp-ct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hp-ct b { font-size: 14.5px; line-height: 1.35; word-break: keep-all; }
.hp-ct small { font-size: 12.5px; color: var(--text-3); }

/* 주제 */
.hp-art { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px 18px; box-shadow: var(--sh-1); }
.hp-back { display: none; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; margin-bottom: 12px; }
.hp-back .ic { transform: rotate(180deg); }
.hp-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 90% -20%, rgba(255,255,255,.22), transparent 55%), linear-gradient(135deg, var(--a), var(--b)); }
.hp-hero small { font-size: 12px; font-weight: 700; opacity: .85; letter-spacing: .02em; }
.hp-hero h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; margin: 2px 0; word-break: keep-all; }
.hp-hero p { font-size: 14px; opacity: .92; margin: 0; }
.hp-ic.big { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.2); }
.hp-ic.big .ic { width: 26px; height: 26px; }
.hp-go { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.hp-body { font-size: 15px; line-height: 1.75; color: var(--text); }
.hp-body p { margin: 8px 0; }
.hp-body a { color: var(--brand); font-weight: 600; }
.hp-h { font-size: 16.5px; font-weight: 800; margin: 24px 0 8px; padding-left: 10px; border-left: 4px solid var(--brand); line-height: 1.3; }
.hp-k { font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 4px; white-space: nowrap; }
.hp-steps { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.hp-steps li { display: flex; gap: 12px; align-items: flex-start; }
.hp-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
:root[data-theme="dark"] .hp-n { background: var(--brand); }
.hp-ul { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; }
.hp-tip, .hp-note { border-radius: 14px; padding: 12px 16px; margin: 16px 0; font-size: 14.5px; }
.hp-tip { background: #FFF7E6; border: 1px solid #F5C26B; color: #3D2A06; }
.hp-tip > b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #fff; background: #E8890C; border-radius: 999px; padding: 1px 10px; margin-bottom: 6px; }
.hp-tip a { color: #9A4D00; }
.hp-tip .hp-k { color: #3D2A06; background: rgba(255,255,255,.6); border-color: #F5C26B; }
.hp-note { background: var(--brand-soft); border: 1px solid var(--brand-line); }
.hp-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
.hp-flow span { border: 1.5px solid var(--brand-line); background: var(--surface); color: var(--brand); border-radius: 999px; padding: 3px 12px; font-size: 13.5px; font-weight: 700; }
.hp-flow i { font-style: normal; color: var(--text-3); font-weight: 700; }
.hp-tw { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; }
.hp-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.hp-t th, .hp-t td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.55; }
.hp-t tr:last-child td { border-bottom: 0; }
.hp-t th { background: var(--surface-2); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.hp-t td:first-child { white-space: nowrap; font-weight: 600; }
.hp-c { font-weight: 800; } .hp-c.q { color: #1F4FD8; } .hp-c.r { color: #0B8A7C; } .hp-c.o { color: #D2560C; } .hp-c.n { color: #23397E; } .hp-c.s { color: #56637C; }
:root[data-theme="dark"] .hp-c.q { color: #7EA2FF; } :root[data-theme="dark"] .hp-c.r { color: #4FD1BE; } :root[data-theme="dark"] .hp-c.o { color: #FFA45C; } :root[data-theme="dark"] .hp-c.n { color: #9DB2F0; } :root[data-theme="dark"] .hp-c.s { color: #AEB9CF; }
.hp-qas { display: grid; gap: 8px; }
.hp-qa { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.hp-qa summary { cursor: pointer; list-style: none; padding: 13px 44px 13px 16px; font-weight: 700; position: relative; }
.hp-qa summary::-webkit-details-marker { display: none; }
.hp-qa summary::before { content: "Q"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 900; margin-right: 10px; }
.hp-qa summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--text-3); font-weight: 400; }
.hp-qa[open] summary::after { content: "−"; }
.hp-qa[open] summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hp-qa > div { padding: 12px 16px 14px 48px; color: var(--text-2); }
.hp-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.hp-pn a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); }
.hp-pn a.nx { text-align: right; }
.hp-pn a small { font-size: 12px; color: var(--text-3); }
.hp-pn a b { font-size: 14px; }
.hp-pn a:hover { border-color: var(--brand-line); background: var(--brand-soft); }

/* 검색 결과 */
.hp-res { display: grid; gap: 10px; }
.hp-hit { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; }
.hp-hit:hover { border-color: var(--b); box-shadow: var(--sh-2); color: var(--text); }
.hp-hit > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-hit small { font-size: 12px; color: var(--text-3); }
.hp-snip { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.hp-snip mark { background: #FFE58A; color: #1A1300; border-radius: 3px; padding: 0 1px; }

/* 폰 · 좁은 화면: 목록 → 본문 */
@media (max-width: 900px) {
  .hp-wrap { grid-template-columns: 1fr; }
  .hp-toc { display: none; }
  .hp-back { display: inline-flex; }
  .hp-art { padding: 16px 16px 14px; border-radius: 18px; }
  .hp-hero { padding: 14px 16px; gap: 12px; }
  .hp-hero h2 { font-size: 19px; }
  .hp-ic.big { width: 44px; height: 44px; }
  .hp-body { font-size: 14.5px; }
  .hp-cards { grid-template-columns: 1fr; }
  .hp-qa > div { padding-left: 16px; }
  .hp-t td:first-child { white-space: normal; }
  .hp-head .actions { width: 100%; }
}
@media (max-width: 480px) { .hp-pn { grid-template-columns: 1fr; } .hp-pn a.nx { text-align: left; } .hp-k { white-space: normal; } }
