/* help.css — Help & Guides (KBS) section */

html { height: 100%; overflow: hidden; }
body { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.help-wrap {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 90px;
}

/* ── Sidebar TOC ─────────────────────────────────────────── */
.help-toc {
  width: 210px;
  flex: none;
  position: sticky;
  top: 76px;
}
.help-toc-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: 10px; padding: 0 10px;
}
.help-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2px;
}
.help-toc a:hover { background: var(--btn-hover); color: var(--btn-text); }

/* ── Main column ─────────────────────────────────────────── */
.help-main { flex: 1; min-width: 0; max-width: 800px; }

.help-hero { margin-bottom: 40px; }
.help-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.help-hero p { font-size: 16px; color: var(--text-muted); line-height: 1.65; max-width: 620px; }

.help-section { margin-bottom: 48px; }
.help-section h2 {
  font-size: 20px; font-weight: 800; letter-spacing: -.01em;
  margin-bottom: 6px;
}
.help-section > p.help-section-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px;
}

.help-cat-group { margin-bottom: 28px; }
.help-cat-group:last-child { margin-bottom: 0; }
.help-cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.help-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.help-cat-name { font-size: 13px; font-weight: 700; color: var(--btn-text); }

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.help-card {
  background: var(--surface);
  border: 1px solid var(--toolbar-border);
  border-radius: 14px;
  padding: 15px 16px;
}
.help-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.help-card-icon {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--dgc-bg); color: var(--dgc-color);
}
.help-card-icon svg { width: 17px; height: 17px; }
.help-card h3 { font-size: 14.5px; font-weight: 700; }
.help-card p {
  font-size: 13px; color: var(--text-muted); line-height: 1.55;
  margin-bottom: 10px;
}
.help-card p:last-of-type { margin-bottom: 0; }

.help-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.help-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  padding: 3px 9px; border-radius: 20px;
  background: var(--purple-light); color: var(--purple);
}
.help-badge.warmup  { background: #FEF3C7; color: #92400E; }
.help-badge.multi   { background: #DBEAFE; color: #1D4ED8; }
.help-badge.solo    { background: #DCFCE7; color: #15803D; }
.help-badge.display { background: #FCE7F3; color: #9D174D; }

.help-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--purple);
  text-decoration: none; margin-top: 10px;
}
.help-card-link:hover { text-decoration: underline; }

/* ── Article pages ───────────────────────────────────────── */
.help-article .help-hero { margin-bottom: 28px; }
.help-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  margin-bottom: 16px;
}
.help-back:hover { color: var(--btn-text); }

.help-article section { margin: 32px 0; }
.help-article h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.help-article p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.help-article p:last-child { margin-bottom: 0; }

.help-note {
  background: var(--purple-light);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--btn-text);
  line-height: 1.65;
}
.help-note strong { color: var(--purple); }
.help-note p { color: var(--btn-text); margin-bottom: 8px; }
.help-note p:last-child { margin-bottom: 0; }

.help-table-scroll { overflow-x: auto; }
.help-article table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.help-article caption {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px;
}
.help-article th, .help-article td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--toolbar-border);
  vertical-align: top;
}
.help-article thead th {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700; border-bottom: 2px solid var(--btn-text);
}
.help-article td.num, .help-article th.num { font-variant-numeric: tabular-nums; }
.help-article .summary-table td:first-child { font-weight: 700; }

.help-topic {
  background: var(--surface);
  border: 1px solid var(--toolbar-border);
  border-radius: 12px;
  padding: 20px 22px 22px;
  margin-bottom: 16px;
  border-left: 4px solid var(--dgc-color);
}
.help-topic-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.help-topic-badge {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  background: var(--dgc-bg); color: var(--dgc-color);
}
.help-topic h3 { font-size: 15.5px; font-weight: 700; }
.help-topic .help-table-scroll { margin-top: 12px; }
.help-topic table td:first-child { font-weight: 700; font-size: 12.5px; letter-spacing: .01em; color: var(--dgc-color); }

@media (max-width: 860px) {
  .help-wrap { flex-direction: column; }
  .help-toc { position: static; width: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
  .help-toc-label { display: none; }
}
