/* ── Help page layout ──────────────────────────────────────── */
.help-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.help-hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.help-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.help-hero p {
  color: var(--text-muted);
  font-size: 1rem;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* ── Documentation sections ────────────────────────────────── */
.help-docs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.help-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.help-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.help-section h3 {
  font-size: .9rem;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--accent);
}

.help-section p {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}

.help-section ol,
.help-section ul {
  padding-left: 20px;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--text);
}

.help-section li {
  margin-bottom: 4px;
}

.help-section code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: .82rem;
}

/* ── Notes / warnings ──────────────────────────────────────── */
.help-note {
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: .85rem;
  line-height: 1.7;
}

.help-note.warn {
  border-left-color: var(--warn);
}

.help-note strong {
  display: block;
  margin-bottom: 6px;
}

.help-note ul {
  padding-left: 18px;
  margin: 6px 0 0;
}

/* ── Directory tree ────────────────────────────────────────── */
.help-tree {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  font-family: var(--mono);
  font-size: .83rem;
}

.tree-item { padding: 3px 0; }
.tree-l1 { color: var(--accent); }
.tree-l2 { padding-left: 20px; color: var(--text); }
.tree-l3 { padding-left: 40px; color: var(--text-muted); }

/* ── Contact card (sticky) ─────────────────────────────────── */
.help-contact {
  position: sticky;
  top: 80px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.contact-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-direct {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}

.contact-direct a {
  color: var(--accent);
  text-decoration: none;
}

.contact-direct a:hover {
  text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
  .help-contact {
    position: static;
  }
}
