/* Help Center theme — used only by sites whose settings.template == "help".
 * Builds on tokens.css (so light/dark still work via [data-theme]), but:
 *   - the top bar is ALWAYS black in both themes (hardcoded, ignores tokens)
 *   - articles are full-width (no narrow doc column, no right TOC)
 *   - adds Category / Sub-category landing grids + a search hero homepage.
 */

/* ---- shell: full width, no sidebar/toc columns ---- */
.help-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.help-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;     /* readable article measure, but wide */
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.help-main.help-main--wide {
  max-width: 1280px;     /* landing pages use the wider measure */
}

/* ---- top bar: ALWAYS black, both themes ---- */
.help-topbar {
  background: #000;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}
.help-topbar-inner {
  /* Full-bleed bar: logo flush to the left edge, theme toggle flush right.
     No max-width, no horizontal padding. */
  width: 100%;
  padding: 0;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.help-topbar a { color: #fff; text-decoration: none; }
.help-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.help-brand img { height: 22px; width: auto; display: block; }
.help-topbar-spacer { flex: 1; }
.help-topbar-link {
  font-size: 14px;
  opacity: 0.85;
}
.help-topbar-link:hover { opacity: 1; }
/* theme toggle sits in the black bar — keep it light-on-black always */
.help-topbar .theme-toggle { color: #fff; border-color: rgba(255,255,255,0.25); }

/* ---- breadcrumb ---- */
.help-breadcrumb {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.help-breadcrumb a { color: hsl(var(--muted-foreground)); text-decoration: none; }
.help-breadcrumb a:hover { color: hsl(var(--foreground)); }
.help-breadcrumb .sep { opacity: 0.5; }

/* ---- homepage hero + search ---- */
.help-hero {
  background: #000;
  color: #fff;
  padding: 64px 24px 72px;
  text-align: center;
}
.help-hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.help-hero p { font-size: 16px; opacity: 0.8; margin: 0 0 28px; }
.help-search {
  max-width: 640px;
  margin: 0 auto;
}
.help-search input {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: none;
  padding: 0 18px;
  font-size: 16px;
  background: #fff;
  color: #111;
  outline: none;
}

/* ---- category / sub-category card grid ---- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.help-card {
  display: block;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.help-card:hover {
  border-color: hsl(var(--foreground) / 0.4);
  transform: translateY(-2px);
}
.help-card-title { font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.help-card-desc { font-size: 14px; color: hsl(var(--muted-foreground)); margin: 0; }
.help-card-count {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  margin-top: 12px;
}

/* ---- article list (sub-category page) ---- */
.help-article-list { list-style: none; margin: 8px 0 0; padding: 0; }
.help-article-list li { border-bottom: 1px solid hsl(var(--border)); }
.help-article-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-size: 15px;
}
.help-article-list a:hover { color: hsl(var(--foreground)); padding-left: 8px; }
.help-article-list .chev { color: hsl(var(--muted-foreground)); }

/* ---- page headings ---- */
.help-page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.help-page-summary { font-size: 16px; color: hsl(var(--muted-foreground)); margin: 0 0 28px; }

/* ---- footer ---- */
.help-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}
