/* ============================================
   HELP PAGE
   ============================================ */
.help-main {
  padding-top: calc(var(--space-3xl) + 2rem);
  padding-bottom: var(--space-2xl);
  min-height: 100vh;
}

.help-main .container {
  max-width: 720px;
}

.help-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.help-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.help-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: 420;
}

/* Search */
.help-search-wrap {
  position: relative;
  margin-bottom: var(--space-2xl);
}

.help-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.help-search {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3.2rem;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.help-search:focus {
  border-color: rgba(17, 17, 17, 0.25);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

.help-search::placeholder {
  color: var(--text-muted);
}

.help-search-clear[hidden] { display: none; }

.help-search-clear {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s;
}

.help-search-clear:hover { color: var(--text); }

.help-search-clear svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Categories */
.help-category {
  margin-bottom: var(--space-xl);
}

.help-category-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

/* FAQ items */
.help-item {
  border-bottom: 1px solid var(--border);
}

.help-question {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.help-question::-webkit-details-marker { display: none; }

.help-question::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] > .help-question::after {
  transform: translateY(-35%) rotate(225deg);
}

.help-answer {
  padding: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.75;
}

.help-answer p + p { margin-top: 0.75rem; }

.help-answer a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-answer strong { font-weight: 600; color: var(--text); }

/* Empty state */
.help-empty {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-muted);
}

.help-empty p { margin-bottom: var(--space-xs); }

.help-empty a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Loading */
.help-loading {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-muted);
  font-size: var(--text-base);
}

/* Error */
.help-error {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-muted);
  font-size: var(--text-base);
}

/* Embed mode */
.embed .help-main {
  padding-top: var(--space-lg);
  min-height: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .help-title { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
  .help-title { font-size: 2.4rem; }
}
