/* css/help.css — help tab and guide content */

#view-help { max-width: 100%; }

.help-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 768px) { .help-layout { grid-template-columns: 1fr; } }

/* ── Article index (left panel) ───────────────────────────────────── */
.help-sidebar {
  position: sticky; top: 0;
  max-height: calc(100vh - var(--topbar-h) - 48px);
  overflow-y: auto;
}
.help-toc-section { margin-bottom: 12px; }
.help-toc-title {
  font-size: .65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-3); padding: 6px 8px 4px;
}
.help-toc-link {
  display: flex; align-items: center;
  padding: 7px 10px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--text-2); cursor: pointer;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.help-toc-link:hover {
  background: var(--surface-1); color: var(--text);
  border-left-color: var(--border-strong);
}
.help-toc-link.active {
  color: var(--accent); background: var(--accent-dim);
  border-left-color: var(--accent);
}

/* ── Guide content (right panel) ──────────────────────────────────── */
.help-main { }
.guide-content { padding: 1.5rem 2rem; max-width: 780px; }

/* guide step badges */
.guide-step {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.step-badge {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  color: var(--accent); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* guide prose */
.guide h2 {
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.guide h3 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 600; color: var(--text-2); margin: 1.4rem 0 .4rem;
}
.guide p { margin-bottom: 1rem; color: var(--text); line-height: 1.7; }
.guide figure { margin: 1.5rem 0; text-align: center; }
.guide figure img {
  max-width: 100%; width: auto; max-height: 500px;
  border-radius: var(--r); border: 1px solid var(--border);
  display: block; margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
}
.guide figcaption {
  font-size: .78rem; color: var(--text-2); font-style: italic;
  margin-top: .4rem; text-align: center;
}
.guide ol, .guide ul { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text); }
.guide li { margin-bottom: .4rem; line-height: 1.65; }
.guide strong { color: var(--text); }
.guide code {
  background: var(--surface-1); border: 1px solid var(--border-md);
  border-radius: 3px; padding: .1em .35em; font-size: .88em;
  font-family: 'DM Mono', monospace;
}
