/* Source guide: pages/faq.css
 * Page-specific presentation.
 * Load order: base.css, components.css, page stylesheet, refresh.css.
 * Later rules intentionally refine earlier layouts; preserve cascade order.
 */

/* Align the introduction with the FAQ content below. */
.page-faq .page-intro {
  max-width: var(--page-width);
  text-align: left;
}
.page-faq .page-intro h1,
.page-faq .page-intro .lead {
  margin-inline: 0;
}

/* FAQ topic controls enhance native details elements; all answers exist in HTML. */
/* Group: Question list and sticky topic navigation. */
.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 90px;
}
.faq-layout aside {
  align-self: start;
  position: sticky;
  top: 125px;
}
/* Group: Topic buttons; faq.js updates pressed state. */
.faq-filters {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.faq-filters button {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 13px 15px;
  font-size: 14px;
  border-radius: 5px;
}
.faq-filters button:hover {
  background: var(--tint);
}
.faq-filters button[aria-pressed="true"] {
  background: var(--mint);
  color: var(--navy);
  font-weight: 500;
  border-left: 0;
}
/* Keep the opening topic heading free of a separator line. */
.page-faq .faq-list {
  border-top: 0;
}
#faq-empty {
  margin-top: 30px;
  color: var(--muted);
}
/* Viewport (max-width: 950px): component adjustments at this breakpoint. */
@media (max-width: 950px) {
  .faq-layout {
    gap: 40px;
    grid-template-columns: 220px 1fr;
  }
}
/* Viewport (max-width: 700px): component adjustments at this breakpoint. */
@media (max-width: 700px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .faq-layout aside {
    position: static;
  }
  .faq-filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .faq-filters button {
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* Topic headings make the complete FAQ list easier to scan. */
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h2 { font-size: 24px; line-height: 1.3; margin: 0 0 16px; }
.faq-answer p + p, .faq-answer p + ul, .faq-answer p + ol { margin-top: 16px; }
.faq-answer ul, .faq-answer ol { padding-left: 24px; }
.faq-answer li + li { margin-top: 10px; }
.faq-group[hidden] { display: none; }

/* Match the homepage closing CTA's light-blue action. */
.page-faq main .button.button-light {
  background: #cce8f5;
  border-color: #cce8f5;
  color: #191f4b;
}
.page-faq main .button.button-light:hover {
  background: #e2f3fb;
  border-color: #e2f3fb;
  color: #191f4b;
}
