/*
 * css/help.css · The Long Game — "How it works" overlay (v21)
 * Purpose: the calm accordion that teaches the app. Reuses the full-screen .overlay
 *   shell (css/styles.css); this styles the intro, the tiered section list, the
 *   expandable items, and the "More, when you're curious" reveal. One section open at
 *   a time (gentle pacing). References tokens from css/styles.css.
 * Related: js/app.js (openHelp), js/help.js (helpSections, HELP_INTRO)
 */

.help-body { max-width: var(--maxw); }

.help-intro {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--space-5);
}

.help-tier-label {
  margin: 0 0 var(--space-2);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.help-item-head {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.help-item-head:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.help-item-title {
  font-size: 0.98rem;
  font-weight: 500;
}
.help-item-arrow {
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
}
.help-item-head[aria-expanded="true"] .help-item-arrow { transform: rotate(180deg); }

.help-item-body {
  padding: 0 16px 15px;
}
.help-item-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* "More, when you're curious" — the second tier, collapsed by default. */
.help-more { margin-top: var(--space-5); }
.help-more-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}
.help-more-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.help-more-arrow {
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
}
.help-more-toggle[aria-expanded="true"] .help-more-arrow { transform: rotate(180deg); }
.help-more-list { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .help-item-arrow, .help-more-arrow { transition: none; }
}
