/* Narrativ Help Center — shared styles */
:root {
  --accent: #f0a500;
  --accent-soft: rgba(240,165,0,0.1);
  --dark: #0f0f0f;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --surface: #ffffff;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }

/* Nav */
.help-nav { background: var(--dark); padding: 0 32px; height: 56px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.help-nav-left { display: flex; align-items: center; gap: 16px; }
.help-logo { font-size: 17px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.04em; }
.help-logo span { color: var(--accent); }
.help-nav-divider { color: #444; font-size: 18px; }
.help-nav-title { font-size: 14px; font-weight: 600; color: #888; }
.help-nav-right { display: flex; align-items: center; gap: 16px; }
.help-nav-link { font-size: 13px; color: #888; text-decoration: none; }
.help-nav-link:hover { color: #fff; }
.help-search-input { padding: 7px 14px; border-radius: 8px; border: 1px solid #333; background: #1a1a1a; color: #fff; font-size: 13px; width: 220px; outline: none; font-family: inherit; }
.help-search-input::placeholder { color: #555; }
.help-search-input:focus { border-color: var(--accent); }

/* Hero (index only) */
.help-hero { background: var(--dark); padding: 56px 32px; text-align: center; }
.help-hero h1 { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -0.04em; margin-bottom: 12px; }
.help-hero p { font-size: 16px; color: #888; margin-bottom: 28px; }
.help-hero-search { display: flex; gap: 0; max-width: 480px; margin: 0 auto; }
.help-hero-search input { flex: 1; padding: 12px 18px; border: none; border-radius: 10px 0 0 10px; font-size: 15px; font-family: inherit; outline: none; }
.help-hero-search button { padding: 12px 20px; background: var(--accent); color: #fff; border: none; border-radius: 0 10px 10px 0; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* Content wrapper */
.help-container { max-width: 860px; margin: 0 auto; padding: 40px 32px 80px; }

/* Breadcrumb */
.help-breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.help-breadcrumb a { color: var(--text-3); text-decoration: none; }
.help-breadcrumb a:hover { color: var(--accent); }
.help-breadcrumb span { margin: 0 6px; }

/* Article */
.help-article h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.help-article .help-meta { font-size: 13px; color: var(--text-3); margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.help-article h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 12px; }
.help-article h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.help-article p { margin-bottom: 14px; color: var(--text-2); }
.help-article ul, .help-article ol { margin: 0 0 16px 20px; color: var(--text-2); }
.help-article li { margin-bottom: 6px; }
.help-article strong { color: var(--text); font-weight: 600; }
.help-article code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 13px; font-family: 'SF Mono', monospace; color: #d97706; }
.help-article .help-note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 20px 0; font-size: 14px; color: var(--text-2); }
.help-article .help-note strong { color: var(--dark); }
.help-article .help-steps { counter-reset: steps; margin: 16px 0 20px; }
.help-article .help-steps li { list-style: none; counter-increment: steps; padding: 12px 16px 12px 48px; position: relative; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--surface); }
.help-article .help-steps li::before { content: counter(steps); position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; background: var(--accent); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Index cards */
.help-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 40px 0; }
.help-category-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; display: block; }
.help-category-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: #d1d5db; }
.help-category-icon { font-size: 28px; margin-bottom: 12px; }
.help-category-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.help-category-desc { font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* Article list */
.help-article-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.help-article-list-title { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.help-article-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 14px; transition: background 0.1s; }
.help-article-item:last-child { border-bottom: none; }
.help-article-item:hover { background: var(--bg); }
.help-article-item span { color: var(--text-3); font-size: 16px; }

/* Related articles */
.help-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.help-related h3 { font-size: 14px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.help-related-links { display: flex; flex-direction: column; gap: 8px; }
.help-related-links a { font-size: 14px; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.help-related-links a:hover { text-decoration: underline; }

/* Search results (index) */
.help-search-results { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.help-search-results.show { display: block; }
.help-search-result-item { display: block; padding: 12px 20px; text-decoration: none; color: var(--text); font-size: 14px; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.help-search-result-item:last-child { border-bottom: none; }
.help-search-result-item:hover { background: var(--bg); }
.help-search-result-item .sr-title { font-weight: 600; margin-bottom: 2px; }
.help-search-result-item .sr-excerpt { font-size: 12px; color: var(--text-3); }

@media (max-width: 640px) {
  .help-container { padding: 24px 16px 60px; }
  .help-hero { padding: 40px 16px; }
  .help-hero h1 { font-size: 26px; }
  .help-categories { grid-template-columns: 1fr; }
  .help-nav { padding: 0 16px; }
  .help-search-input { display: none; }
}
