/* Questions and answers as a page section. The question/answer look lives in
   the content block's stylesheet so the two can never drift apart; this file
   only lays the section out: heading on the left, questions on the right,
   the same split as the conditions list so the page keeps one left edge. */
@import url("../../../blocks/faq/faq.css");

.faq-section__inner { display: grid; gap: var(--sp-5); }
.faq-section__head { margin: 0; }
.faq-section__call a { color: var(--color-link); font-weight: var(--fw-semi); white-space: nowrap; }
.faq-section .faq { margin: 0; }

@media (min-width: 62rem) {
  .faq-section__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--sp-8); align-items: start; }
}

/* Several groups in a row (the FAQ page): one shared space between them with
   a hairline, rather than two sections' worth of padding stacked up. */
.faq-section + .faq-section { padding-block-start: 0; }
.faq-section + .faq-section .faq-section__inner {
  position: relative;
  padding-block-start: var(--section-y);
}
/* The hairline spans the content, not the container's gutters, so it starts
   on the same left edge as the headings. */
.faq-section + .faq-section .faq-section__inner::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: var(--gutter);
  border-block-start: 1px solid var(--color-divider);
}

/* On a wide screen the group heading stays in view beside a long run of
   questions, clear of the sticky site header. */
@media (min-width: 62rem) {
  .faq-section__head { position: sticky; top: calc(var(--sp-9) + var(--sp-5)); }
}
