/* ============================================================
   HELP PAGE  (help.html)
   ============================================================ */

/* ── Help-page-specific layout ────────────────────────────────────────────── */
.help-wrap {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.help-hero {
  text-align: center;
  margin-bottom: 48px;
}
.help-hero h1 {
  font-size: 2rem;
  color: var(--nav-alt);
  margin: 0 0 8px;
}
.help-hero p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ── Section cards ────────────────────────────────────────────────────────── */
.help-section {
  background: var(--surface-strong);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  margin-bottom: 28px;
  overflow: hidden;
}
.help-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: rgba(21, 170, 181, 0.07);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.help-section__header:hover { background: rgba(21, 170, 181, 0.13); }
.help-section__icon  { font-size: 1.4rem; line-height: 1; }
.help-section__title { font-size: 1rem; font-weight: 700; color: var(--nav-alt); flex: 1; }
.help-section__caret { font-size: 0.7rem; color: var(--text-muted); transition: transform 0.2s ease; }
.help-section.open .help-section__caret { transform: rotate(180deg); }
.help-section__body  {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}
.help-section.open .help-section__body {
  padding: 20px 22px 24px;
  max-height: 2000px;
}

/* ── Feature rows ─────────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid rgba(21, 170, 181, 0.14);
  border-radius: var(--border-radius);
  padding: 14px 16px;
}
.feature-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary-alt);
  margin: 0 0 6px;
}
.feature-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Step list ────────────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary-alt);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.steps strong { color: var(--text-primary); }

/* ── XP table ─────────────────────────────────────────────────────────────── */
.xp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.xp-table th, .xp-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(21, 170, 181, 0.1);
}
.xp-table th {
  color: var(--nav-alt);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.xp-table td { color: var(--text-muted); }
.xp-table tr:last-child td { border-bottom: none; }
.xp-table .accent { color: var(--secondary-alt); font-weight: 700; }

/* ── Level unlock table ───────────────────────────────────────────────────── */
.level-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.level-table th, .level-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(21, 170, 181, 0.1);
}
.level-table th {
  color: var(--nav-alt);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
}
.level-table td { color: var(--text-muted); text-align: left; }
.level-table tr:last-child td { border-bottom: none; }
.level-table .lv { color: var(--nav-alt); font-weight: 700; }
.level-table .title-col { color: var(--secondary-alt); }

/* ── Tip boxes ────────────────────────────────────────────────────────────── */
.tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(21, 170, 181, 0.07);
  border-left: 3px solid var(--nav-alt);
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.tip .tip-icon { font-size: 1rem; flex-shrink: 0; }
.tip strong { color: var(--text-primary); }

/* ── Tier badges ──────────────────────────────────────────────────────────── */
.tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tier-free    { background: rgba(21,170,181,0.15); color: var(--nav-alt); border: 1px solid rgba(21,170,181,0.3); }
.tier-gg      { background: rgba(2,184,147,0.15);  color: #02b893; border: 1px solid rgba(2,184,147,0.3); }
.tier-poodle  { background: rgba(204,1,116,0.15);  color: var(--secondary-alt); border: 1px solid rgba(204,1,116,0.3); }
.tier-barbie  { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.4); }

/* ── kbd ──────────────────────────────────────────────────────────────────── */
kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: var(--text-primary);
}

/* ── Utility helpers ──────────────────────────────────────────────────────── */
.help-intro-text  { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 16px; }
.help-subheading  { font-size: 0.8rem; color: var(--nav-alt); margin: 22px 0 10px; }
.help-link        { color: var(--nav-alt); }
.help-grid-gap    { margin-top: 16px; }
.help-steps-gap   { margin-top: 18px; }
.feature-card p.tier-p { margin-top: 8px; }

/* ── ToC ──────────────────────────────────────────────────────────────────── */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.toc a {
  font-size: 0.68rem;
  color: var(--nav-alt);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid rgba(21,170,181,0.3);
  border-radius: 20px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.toc a:hover {
  background: rgba(21,170,181,0.12);
  border-color: var(--nav-alt);
}

@media (max-width: 600px) {
  .help-hero h1 { font-size: 1.4rem; }
  .feature-grid { grid-template-columns: 1fr; }
}
