/* FAQ page */

.faq-hero {
  padding: clamp(110px, 16vh, 150px) 0 clamp(48px, 7vh, 70px);
  background: var(--color-cream);
}

.faq-intro {
  max-width: 700px;
}

.faq-intro .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.faq-intro h1 {
  color: var(--color-ink);
}

.faq-lead {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 56ch;
}

/* ---------- quick-jump list ---------- */

.faq-toc {
  margin-top: 36px;
}

.faq-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.faq-toc-list a {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent-text);
  background: var(--color-white);
  border: 1px solid rgba(51, 51, 51, 0.12);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}

.faq-toc-list a:hover {
  color: var(--color-ink);
  border-color: rgba(51, 51, 51, 0.24);
}

/* ---------- topic groups ---------- */

.faq-section {
  background: var(--color-white);
  padding: var(--space-section-md) 0;
}

.faq-content {
  max-width: 860px;
}

.faq-group + .faq-group {
  margin-top: var(--space-section-sm);
}

/* Offsets the anchor target so a jump from .faq-toc doesn't land the heading
   under the fixed nav bar. */
.faq-group h2 {
  scroll-margin-top: 90px;
  color: var(--color-ink);
}

.faq-group .faq-list {
  margin-top: 26px;
}

/* The accordion buttons in base.css were written for a single flat list of
   questions. Wrapping each one in an h3 gives the page real heading levels
   per the contract without changing how .faq-question/.faq-answer look. */
.faq-item h3 {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

/* ---------- closing CTA ---------- */

.faq-cta {
  background: var(--color-cream);
  padding: var(--space-section-sm) 0;
}

.faq-cta-inner {
  max-width: 640px;
  text-align: center;
}

.faq-cta-inner h2 {
  color: var(--color-ink);
}

.faq-cta-lead {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-muted);
}

.faq-cta-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}

/* Standalone link, so it needs the height to clear the 24px minimum target. */
.faq-cta-link {
  display: inline-block;
  padding: 6px 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-text);
}

@media (min-width: 768px) {
  .faq-toc-list a {
    font-size: var(--text-sm);
  }
}
