/* Help Center. Uses the same colours as the customer portal. */

.help-layout {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 80% 0%, rgba(92, 76, 255, 0.12), transparent 28%),
    var(--bg-primary);
}

.help-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 10, 23, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
}
.help-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.help-brand { color: inherit; text-decoration: none; }
.help-brand .brand-block { display: flex; align-items: center; gap: 10px; }
.help-brand .brand-logo { height: 32px; width: auto; }
.help-brand .brand-name { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--text-primary); }
.help-brand .brand-tagline { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.help-nav { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; justify-content: flex-end; }
.help-nav-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 600; }
.help-nav-link:hover { color: var(--text-primary); }
.help-nav-button {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.help-main { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 32px 24px 56px; }
.help-footer {
  text-align: center;
  padding: 20px 16px 28px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-subtle);
}
.help-footer a { color: var(--text-secondary); }

.help-hero { margin-bottom: 28px; }
.help-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.help-hero h1, .help-article h1 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.help-hero p { margin: 0 0 20px; max-width: 38em; color: var(--text-secondary); }

.help-search-form { display: flex; gap: 8px; max-width: 560px; }
.help-search-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font: inherit;
}
.help-search-input:focus { outline: none; border-color: var(--border-focus); }
.help-search-form button, .help-button {
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.help-button--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.help-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.help-topic {
  display: block;
  padding: 16px 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--surface-card);
  color: inherit;
  text-decoration: none;
}
.help-topic:hover, .help-topic.is-active { border-color: rgba(124, 92, 255, 0.45); }
.help-topic strong { display: block; margin-bottom: 4px; font-family: var(--font-heading); }
.help-topic span { display: block; color: var(--text-secondary); font-size: 13px; line-height: 1.45; }

.help-section { margin-bottom: 28px; }
.help-section h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 18px;
}
.help-article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.help-article-list li {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.025);
}
.help-article-list a {
  display: block;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}
.help-article-list a:hover { background: rgba(255,255,255,0.03); }
.help-article-list strong { display: block; font-size: 15px; }
.help-excerpt { margin: 4px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.help-empty { color: var(--text-secondary); }

.help-article {
  padding: 8px 0 0;
}
.help-breadcrumb { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); }
.help-breadcrumb a { color: var(--accent-blue); text-decoration: none; }

.kb-body { max-width: 42em; color: var(--text-secondary); font-size: 16px; }
.kb-body h2 {
  margin: 28px 0 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-primary);
}
.kb-body p { margin: 0 0 12px; }
.kb-body ul, .kb-body ol { margin: 0 0 14px; padding-left: 1.25em; }
.kb-body li { margin: 0 0 8px; }
.kb-body strong { color: var(--text-primary); font-weight: 600; }
.kb-body a { color: var(--accent-blue); }

.help-related { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.help-related h2 { margin: 0 0 10px; font-family: var(--font-heading); font-size: 16px; }
.help-related ul { margin: 0; padding: 0; list-style: none; }
.help-related li { margin: 0 0 8px; }
.help-related a { color: var(--accent-blue); text-decoration: none; font-weight: 600; }

.help-cta {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--surface-card);
}
.help-cta p { margin: 0 0 12px; color: var(--text-secondary); }
.help-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.help-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }

@media (max-width: 700px) {
  .help-header-inner, .help-main { padding-left: 16px; padding-right: 16px; }
  .help-hero h1, .help-article h1 { font-size: 26px; }
  .help-topics { grid-template-columns: 1fr; }
  .help-search-form { flex-direction: column; }
  .help-search-form button { width: 100%; justify-content: center; }
  .help-brand .brand-tagline { display: none; }
}
