/* ============================================================
   FAQ page — grouped question layout
   Continues the site's section grammar: an intro split with a
   quick-nav card, then one light section per question group.
   The accordion rows themselves are the global .nz-faq patterns
   (site.css); this sheet only lays out the page around them and
   keeps answer lines at a readable measure.
   ============================================================ */

.nz-faqp-section {
  padding: 88px 0;
}

.nz-faqp-section--soft {
  background: var(--gray-bg);
}

/* The question groups sit a little closer together than the big
   feature sections: a Q&A page reads calmer with a shorter rhythm. */
.nz-faqp-section--group {
  padding: 72px 0;
}

@media (max-width: 760px) {
  .nz-faqp-section {
    padding: 52px 0;
  }

  .nz-faqp-section--group {
    padding: 44px 0;
  }
}

/* ---- Optional WordPress editor body, printed above the sections ---- */
.nz-faqp-extra {
  max-width: 78ch;
}

.nz-faqp-extra > *:last-child {
  margin-bottom: 0;
}

/* ---- Intro: how the answers work, beside the group quick-nav ---- */
.nz-faqp-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: start;
}

.nz-faqp-intro__copy h2 {
  margin-bottom: 18px;
}

.nz-faqp-intro__copy p {
  max-width: 62ch;
}

.nz-faqp-intro__link {
  margin-top: 22px;
}

/* The quick-nav card. Bordered, not shadowed: the site stays flat. */
.nz-faqp-nav {
  padding: 26px 28px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: var(--white);
}

.nz-faqp-nav h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.nz-faqp-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nz-faqp-nav li + li {
  border-top: 1px solid var(--gray-line);
}

.nz-faqp-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nz-faqp-nav a:hover span:first-child,
.nz-faqp-nav a:focus-visible span:first-child {
  text-decoration: underline;
}

.nz-faqp-nav__note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--gray-line);
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.6;
}

.nz-faqp-nav__note a {
  padding: 0;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .nz-faqp-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .nz-faqp-nav {
    padding: 20px;
  }
}

/* ---- The question groups ---- */

/* The groups supply their own section heading, so the component's built-in
   title is switched off and its default top margin is not wanted here. */
.nz-faqp-section .nz-faq {
  margin-top: 0;
}

/* Long answer lines are hard to read; the list keeps a measure even in the
   full-width container. Questions are short, so the column reads clean. */
.nz-faqp-section--group .nz-faq__list {
  max-width: 860px;
}

/* The group headings are the quick-nav's targets, and a heading reached that way
   must not end up under the pinned stack. That offset is not set here any more:
   the blue bar is pinned above the header as well, so the height to clear is
   maintained once for the whole site as `scroll-padding-top` on html (site.css),
   which also covers the skip link and any anchor added later. */
