/* Public /help pages — extends landing.css tokens */

.help-hero {
  padding: 140px 24px 40px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.help-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.help-hero p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
}
.help-hero .help-crumb {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.help-hero .help-crumb a { color: var(--text-secondary); }
.help-hero .help-crumb a:hover { color: var(--accent); }

/* "Back to Help Center" pill shown on article pages */
.help-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: border-color 0.15s, color 0.15s, transform 0.15s var(--ease-out);
}
.help-back:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-2px);
}
.help-back svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.help-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

/* Toolbar: full-width search on top, optional view toggle below */
.help-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 28px;
}

.help-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.help-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}
.help-search-icon {
  width: 18px;
  height: 18px;
  margin-left: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.help-search input[type="search"] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding: 12px 12px 12px 10px;
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  min-width: 0;
}
.help-search input[type="search"]::placeholder { color: var(--text-muted); }
.help-search-submit {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  border-left: 1px solid var(--border);
  border-radius: 0 10px 10px 0;
  transition: color 0.15s, background 0.15s;
}
.help-search-submit:hover { color: var(--accent); background: rgba(255, 255, 255, 0.02); }

/* Live-search dropdown (shown while typing) */
.help-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  padding: 6px;
}
.help-search-item,
.help-search-more {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s;
}
.help-search-item + .help-search-item,
.help-search-item + .help-search-more { margin-top: 2px; }
.help-search-item:hover,
.help-search-item.active,
.help-search-more:hover,
.help-search-more.active {
  background: rgba(255, 255, 255, 0.04);
}
.help-search-item-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.help-search-item-title {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}
.help-search-item-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.help-search-item mark,
.help-search-item-excerpt mark {
  background: var(--accent-dim, rgba(0, 212, 170, 0.22));
  color: var(--accent);
  padding: 0 2px;
  border-radius: 3px;
}
.help-search-more {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  color: var(--accent);
  text-align: center;
}
.help-search-empty {
  padding: 18px 14px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.help-view-toggle {
  display: inline-flex;
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}
.help-view-tab {
  padding: 8px 14px;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.help-view-tab:hover { color: var(--text-primary); }
.help-view-tab.active {
  background: var(--accent-dim, rgba(0, 212, 170, 0.15));
  color: var(--accent);
}

/* Flat "All articles" view */
.help-all-articles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.help-group-heading {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 28px 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.help-group-heading:first-child { margin-top: 0; }

/* Search result meta (category label above title) */
.help-result-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Category grid */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.help-card {
  display: block;
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.help-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -15px rgba(0, 212, 170, 0.25);
  color: inherit;
}
.help-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.help-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 10px;
  line-height: 1.5;
}
.help-card .help-count {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Article list */
.help-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.help-article-row {
  display: block;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s;
}
.help-article-row:hover { border-color: var(--accent); color: inherit; }
.help-article-row h4 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.help-article-row p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Article reader */
.help-reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .help-reader { grid-template-columns: 1fr; gap: 32px; }
}

.help-article-body {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.help-article-body h1,
.help-article-body h2,
.help-article-body h3,
.help-article-body h4 {
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 1.8em 0 0.6em;
  line-height: 1.25;
}
.help-article-body h1 { font-size: 32px; margin-top: 0; }
.help-article-body h2 { font-size: 24px; }
.help-article-body h3 { font-size: 19px; }
.help-article-body p { margin: 0 0 1em; }
.help-article-body ul,
.help-article-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.help-article-body li { margin-bottom: 0.3em; }
.help-article-body a { color: var(--accent); }
.help-article-body a:hover { text-decoration: underline; }
.help-article-body strong { color: var(--text-primary); }
.help-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.help-article-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 1em;
}
.help-article-body pre code {
  border: none;
  padding: 0;
  background: transparent;
}
.help-article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 16px;
  margin: 0 0 1em;
  color: var(--text-secondary);
}
.help-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 14px;
}
.help-article-body th,
.help-article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.help-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.help-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 0;
}
.help-sidebar h5 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.help-sidebar ul { list-style: none; padding: 0; margin: 0; }
.help-sidebar li { margin-bottom: 6px; }
.help-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}
.help-sidebar a:hover { background: var(--bg-card); color: var(--text-primary); }
.help-sidebar a.active { background: var(--accent-dim); color: var(--accent); }

.help-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.help-sidebar-links a {
  font-size: 13px;
  color: var(--text-secondary);
}
.help-sidebar-links a:hover { color: var(--accent); background: transparent; }

.help-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
}
