/* ── style-help.css ────────────────────────────────────────────────────────────
   Help / FAQ page. Depends on style.css and style-worldview.css.
*/

/* ── Back button ── */
#help-back,
#privacy-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.8rem;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
#help-back:hover,
#privacy-back:hover { color: var(--text); border-color: var(--accent2); }

/* ── Sticky nav bar ── */
#help-nav {
  position: sticky;
  top: 49px;            /* below wv-topbar */
  z-index: 90;
  background: rgba(15, 15, 19, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
#help-nav::-webkit-scrollbar { display: none; }

.help-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.help-nav-btn:hover,
.help-nav-btn.active {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(139, 92, 246, 0.08);
}

/* ── Main content ── */
#help-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Section ── */
.help-section {
  scroll-margin-top: 108px;    /* topbar + nav height */
}

.help-section-title {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-section-title .help-icon {
  font-size: 1.15rem;
}

/* ── Q&A pairs ── */
.help-qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.help-q {
  padding: 14px 18px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
  user-select: none;
}
.help-q:hover { background: var(--surface2); }

.help-q-arrow {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.help-qa.open .help-q-arrow { transform: rotate(180deg); }

.help-a {
  display: none;
  padding: 0 18px 16px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.help-qa.open .help-a { display: block; }

.help-a p { margin: 10px 0 0; }
.help-a p:first-child { margin-top: 12px; }
.help-a strong { color: var(--text); }
.help-a code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.82rem;
  color: var(--accent2);
  font-family: monospace;
}

/* ── Info cards (non-collapsible) ── */
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 10px;
}
.help-card strong { color: var(--text); }
.help-card .help-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.76rem;
  color: var(--accent2);
  margin-right: 4px;
}

/* ── Step list ── */
.help-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.help-steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.help-steps li::before {
  content: counter(step);
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--accent2);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Limit table ── */
.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 10px;
}
.help-table th,
.help-table td {
  padding: 9px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.help-table th {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
  font-family: "Noto Sans SC", sans-serif;
}
.help-table td { color: var(--text); }
.help-table tr:hover td { background: var(--surface2); }
