/* Help & Learn center — calm, consistent layout that keeps all the
 * explanatory content out of the working screens. Reuses theme tokens. */

.help-panel {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.help-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
}

.help-hero-copy {
  margin: 8px 0 0;
  max-width: 60ch;
  color: var(--muted, #5b6b66);
  line-height: 1.6;
}

.help-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Table of contents */
.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.help-toc a {
  padding: 8px 14px;
  border-radius: var(--fb-radius-pill,999px);
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  color: var(--accent-dark, #09524d);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.help-toc a:hover {
  border-color: var(--accent, #0f7c72);
}

/* Sections */
.help-section {
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--fb-radius,18px);
  background: linear-gradient(160deg, #ffffff, #f5faf8);
  scroll-margin-top: 80px;
}

.help-section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.help-section > p {
  margin: 0 0 14px;
  color: var(--muted, #5b6b66);
  line-height: 1.6;
  max-width: 70ch;
}

.help-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.help-metrics span {
  padding: 8px 14px;
  border-radius: var(--fb-radius-sm,12px);
  background: rgba(15, 124, 114, 0.08);
  color: var(--accent-dark, #09524d);
  font-size: 0.92rem;
}

.help-metrics strong {
  font-size: 1.05rem;
}

/* Numbered/step lists */
.help-steps,
.help-tips {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 10px;
  color: var(--ink, #16211d);
  line-height: 1.55;
}

.help-steps em,
.help-tips strong {
  color: var(--accent-dark, #09524d);
  font-style: normal;
}

/* Card grid (lifecycle + project setup) */
.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.help-card {
  padding: 16px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  background: #fff;
}

.help-card h3 {
  margin: 8px 0 4px;
  font-size: 1.05rem;
}

.help-card p {
  margin: 0;
  color: var(--muted, #5b6b66);
  font-size: 0.92rem;
  line-height: 1.5;
}

.help-card-ico {
  font-size: 1.6rem;
}

.help-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(15, 124, 114, 0.1);
  color: var(--accent-dark, #09524d);
  font-weight: 800;
}

/* Process list */
.help-process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.help-process-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--fb-radius-sm,12px);
  background: #fff;
}

.help-process-list li span {
  grid-row: 1 / span 2;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(15, 124, 114, 0.1);
  color: var(--accent-dark, #09524d);
  font-weight: 800;
}

.help-process-list li strong {
  font-size: 0.98rem;
}

.help-process-list li small {
  color: var(--muted, #5b6b66);
  line-height: 1.45;
}

.help-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .help-hero {
    align-items: flex-start;
  }
  .help-hero-actions,
  .help-cta {
    width: 100%;
  }
  .help-hero-actions .small-button,
  .help-cta .small-button {
    flex: 1 1 auto;
    text-align: center;
  }
}
