:root {
  --ink: #1a1f36;
  --ink-soft: #3c4257;
  --muted: #697386;
  --muted-2: #8792a2;
  --accent: #635bff;
  --accent-hover: #4f46e5;
  --accent-soft: #f5f4ff;
  --surface: #ffffff;
  --surface-alt: #f6f9fc;
  --border: #e3e8ee;
  --border-soft: #ebeef3;
  --shadow-sm: 0 1px 2px rgba(26, 31, 54, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 31, 54, 0.06);
  --radius: 8px;
  font-family: 'Inter', 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { -webkit-font-smoothing: antialiased; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ===== Top Nav ===== */
.help-topbar {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
}
.help-topbar .brand-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.help-topbar .brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.help-topbar .brand-link img { height: 28px; width: auto; }
.help-topbar .brand-label {
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink); text-transform: uppercase;
  border-left: 1px solid var(--border); padding-left: 12px; margin-left: 4px;
}
.help-topbar .nav-links {
  display: flex; align-items: center; gap: 24px;
  font-size: 14px; font-weight: 500;
}
.help-topbar .nav-links a {
  color: var(--ink-soft); text-decoration: none;
}
.help-topbar .nav-links a:hover { color: var(--accent); }
.help-topbar .nav-cta {
  border: 1px solid var(--border); padding: 6px 14px;
  border-radius: 6px; background: #fff; color: var(--ink);
  font-weight: 500;
}
.help-topbar .nav-cta:hover { border-color: var(--ink); color: var(--ink); }

/* ===== Hero/Search ===== */
.help-hero { padding: 56px 0 24px; }
.help-hero h1 {
  font-size: 32px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.help-search {
  position: relative; max-width: 760px;
}
.help-search input {
  width: 100%; height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px 0 46px;
  font-size: 15px; color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.help-search input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}
.help-search .search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted-2);
  display: flex; align-items: center; justify-content: center;
}

/* ===== Section headings ===== */
.section-title {
  font-size: 16px; font-weight: 600; color: var(--ink);
  margin-bottom: 20px;
}

/* ===== Article list (left column) ===== */
.article-list { display: flex; flex-direction: column; }
.article-item {
  display: flex; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.article-item:last-child { border-bottom: 0; }
.article-item .qicon {
  flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; margin-top: 2px;
}
.article-item .a-title {
  display: block; font-weight: 600; font-size: 15px;
  color: var(--accent); margin-bottom: 4px;
}
.article-item .a-title:hover { text-decoration: underline; }
.article-item .a-summary {
  color: var(--muted); font-size: 14px; margin: 0 0 8px;
}
.article-item .a-tags {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-size: 13px;
}
.article-item .a-tags a { color: var(--accent); font-weight: 500; }
.article-item .a-tags .dot { color: var(--muted-2); }

/* ===== Right column ===== */
.side-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 24px;
}
.side-panel h3 {
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin: 0 0 16px;
}
.topic-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.topic-links a {
  color: var(--accent); font-size: 14px; font-weight: 500;
  text-decoration: none;
}
.topic-links a:hover { text-decoration: underline; }
.side-panel .divider-line {
  height: 1px; background: var(--border); margin: 20px 0;
}
.side-panel .support-block h4 {
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin: 0 0 4px;
}
.side-panel .support-block p {
  font-size: 13px; color: var(--muted); margin: 0;
}

/* ===== Topic page ===== */
.topic-header { padding: 40px 0 24px; }
.topic-header h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.topic-header .meta { color: var(--muted); font-size: 14px; }

/* ===== Article page ===== */
.article-page-header { padding: 32px 0 20px; }
.article-page-header .eyebrow {
  font-size: 13px; font-weight: 500; color: var(--muted);
  margin-bottom: 8px; text-transform: none;
}
.article-page-header .eyebrow a { color: var(--accent); }
.article-page-header h1 {
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.article-body {
  font-size: 15px; line-height: 1.7; color: var(--ink-soft);
}
.article-body h2 { font-size: 20px; font-weight: 600; margin: 28px 0 12px; color: var(--ink); }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; color: var(--ink); }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { padding-left: 1.25rem; margin: 0 0 14px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent); }
.article-body code {
  background: var(--surface-alt); padding: 1px 6px;
  border-radius: 4px; font-size: 0.92em;
}

.suggested-list {
  display: flex; flex-direction: column; gap: 14px;
}
.suggested-item {
  display: block; padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: #fff; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.suggested-item:hover {
  border-color: var(--accent); text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.suggested-item .s-topic {
  font-size: 12px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px;
}
.suggested-item .s-title {
  color: var(--accent); font-weight: 600; font-size: 14px;
  margin-bottom: 4px;
}
.suggested-item .s-summary {
  font-size: 13px; color: var(--muted); margin: 0;
}

/* ===== Footer ===== */
.help-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 24px; margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.footer-col h5 {
  font-size: 15px; font-weight: 600; margin: 8px 0 4px;
}
.footer-col h5 a { color: var(--accent); text-decoration: none; }
.footer-col h5 a:hover { text-decoration: underline; }
.footer-col p {
  font-size: 13px; color: var(--muted); margin: 0;
}
.footer-col .ficon {
  width: 22px; height: 22px; color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.help-footer .footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.help-footer .footer-bottom a { color: var(--accent); }

/* ===== Breadcrumbs ===== */
.crumbs {
  font-size: 13px; color: var(--muted); padding: 16px 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .sep { margin: 0 8px; color: var(--muted-2); }

/* ===== Search results ===== */
.results-banner {
  background: var(--accent-soft);
  border: 1px solid #e0dcff;
  border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 8px;
  font-size: 14px; color: var(--ink-soft);
}
.results-banner strong { color: var(--ink); }

/* ===== Back to top ===== */
.scroll-top-btn {
  position: fixed; right: 24px; bottom: 24px;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1030;
}
.scroll-top-btn.show { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { background: var(--accent-hover); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .help-hero { padding-top: 36px; }
  .help-hero h1 { font-size: 26px; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .help-topbar .brand-label { display: none; }
}
