/* ── Help center / articles layout ──
   Builds on style.css (palette, header, footer). Loaded only on /articles pages. */

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

/* ── Sidebar (search atop nav) ── */

.help-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  padding: 32px 0;
}

.help-search {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 22px;
}
.help-search:focus { outline: none; border-color: var(--accent); }

.help-nav-group { margin-bottom: 22px; }
.help-nav-group h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0 10px;
}
.help-nav-group ul { list-style: none; }
.help-nav-group li { margin: 2px 0; }
.help-nav-group a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.help-nav-group a:hover { background: var(--accent-light); color: var(--text); }
.help-nav-group a.active { background: var(--accent-light); color: var(--accent-h); font-weight: 600; }
.help-empty { font-size: 0.85rem; color: var(--muted); padding: 4px 10px; }

/* ── Article content ── */

.help-content {
  flex: 1;
  min-width: 0;
  padding: 36px 0 72px;
  max-width: 720px;
}
.help-breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.help-breadcrumb a { color: var(--muted); text-decoration: none; }
.help-breadcrumb a:hover { color: var(--text); }

.help-content h1 {
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.help-lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 30px; line-height: 1.65; }

/* Hero/illustration image — sits full content-width under the lead. The
   width/height attributes reserve the right aspect ratio so the page doesn't
   shift while it loads; update them if the exported file's dimensions differ. */
.help-hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.help-figure { margin: 0 0 32px; }
.help-figure .help-hero { margin-bottom: 8px; }
.help-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.help-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  padding-top: 8px;
}
.help-content h3 { font-size: 1rem; font-weight: 600; margin: 22px 0 6px; }
.help-content p { margin-bottom: 14px; }
.help-content ul, .help-content ol { margin: 0 0 16px 22px; }
.help-content li { margin-bottom: 7px; }
.help-content a { color: var(--accent); }
.help-content a:hover { color: var(--accent-h); }
.help-content code {
  background: var(--accent-light);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.88em;
}
.help-content strong { font-weight: 600; color: var(--text); }

/* Inline badge that mirrors an icon-only nav button from the app, so readers
   can recognize the button to click (the app's left sidebar has no labels). */
.help-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: var(--accent-light);
  color: var(--accent-h);
  vertical-align: middle;
  margin: 0 2px;
}
.help-nav-icon svg { width: 16px; height: 16px; }
.help-nav-icon polygon { fill: currentColor; }

.help-tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
}
.help-tip strong { color: var(--text); }

/* ── Hub grid (articles/) ── */

.help-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.help-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.help-card:hover { border-color: var(--accent); }
.help-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.help-card p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── Responsive ── */

@media (max-width: 720px) {
  .help-wrap { flex-direction: column; gap: 0; }
  .help-sidebar { position: static; width: 100%; padding: 24px 0 0; }
  .help-content { padding-top: 24px; }
}
