/* Help center (src/routes/help.tsx, public/help.js): side switch, live search, category chips, entries. */
.hc { max-width: 820px; }
.hc-head h1 { margin-bottom: 6px; }
.hc-lead { margin: 0 0 18px; color: var(--ink-soft); }
.hc .seg { max-width: 460px; margin-bottom: 16px; }
.hc-search { position: relative; margin: 0 0 14px; }
.hc-search input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.hc-search input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 0; border-color: var(--accent); }
.hc-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.hc-count { margin: -4px 0 14px; font-size: 13px; color: var(--ink-soft); }
.hc-count a { font-weight: 600; }
.hc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.hc-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.hc-toc a:hover { border-color: var(--accent); color: var(--accent); }
.hc-toc small { color: var(--ink-soft); font-weight: 500; }
.hc-cat { scroll-margin-top: 16px; }
.hc-cat h2 { margin: 30px 0 10px; }
.hc details { max-width: none; scroll-margin-top: 16px; }
.hc details[open] { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.hc details:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.hc-a { margin-top: 10px; color: var(--ink-soft); }
.hc-a p { margin: 0 0 10px; }
.hc-a p:last-child { margin-bottom: 0; }
.hc-a ol, .hc-a ul { margin: 0 0 10px; padding-left: 22px; }
.hc-a li { margin: 4px 0; }
.hc-a b { color: var(--ink); font-weight: 700; }
.hc-link { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--ink-soft); text-decoration: none; }
.hc-link:hover { color: var(--accent); text-decoration: underline; }
.hc-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-soft); background: var(--surface); }
.hc-foot { margin-top: 32px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .hc .seg { max-width: none; }
  .hc-toc { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -16px; -webkit-overflow-scrolling: touch; }
  .hc-toc a { white-space: nowrap; }
  .hc details summary { line-height: 1.35; }
}
