.faq-opening {
  padding-bottom: 40px;
  background: linear-gradient(0deg, var(--accent-dark), var(--bg) 48%);
  color: var(--text);
}

.faq-heading-copy {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.faq-heading-copy h1 {
  margin-top: 24px;
  margin-bottom: 20px;
}

.faq-heading-copy .section-intro {
  margin-inline: auto;
}

.faq-opening .toc {
  margin-top: 48px;
  margin-bottom: 20px;
}

.faq-reading-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.faq-reading-note .chip {
  flex-shrink: 0;
  margin-top: 3px;
}

.faq-reading-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.faq-reading-note a,
.faq-chapter-intro a,
.faq-closing a {
  color: var(--periwinkle-soft);
}

.faq-chapters {
  padding-bottom: var(--section-space);
}

.faq-chapter {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
  scroll-margin-top: 24px;
}

.faq-chapter + .faq-chapter {
  border-top: 1px solid var(--border);
}

.faq-chapter > * {
  min-width: 0;
}

.faq-topic-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--periwinkle-soft);
  overflow-wrap: anywhere;
}

.faq-chapter-intro h2 {
  margin: 0 0 20px;
}

.faq-chapter-intro > p:not(.faq-topic-label) {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.faq-chapter-intro a {
  display: inline-block;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-decoration: none;
}

.faq-chapter-intro a:hover {
  text-decoration: underline;
}

.faq-chapter .faq-answer {
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.faq-closing {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .faq-chapter {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .faq-opening {
    padding-bottom: 32px;
  }

  .faq-opening .toc {
    margin-top: 32px;
  }

  .faq-reading-note {
    flex-direction: column;
    gap: 12px;
  }

  .faq-chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .faq-chapter-intro h2 {
    margin-bottom: 12px;
  }

  .faq-chapter-intro > p:not(.faq-topic-label) {
    margin-bottom: 8px;
  }
}