/* FAQ: one question per details element, in a column at the reading measure.
   The summary row is the question in bold with an accent plus glyph at its
   end, which turns 45 degrees into a cross when open; no script. The answer
   reads in text-secondary. Contrast on bg-base: text-primary 16.35 light,
   16.56 dark; text-secondary 7.87 light, 9.43 dark; accent 7.88 light, 6.22 dark. */

.faq {
  max-inline-size: var(--measure);
  border-block-end: 1px solid var(--border-subtle);
}

.faq__question {
  display: flex;
  gap: var(--space-s);
  align-items: center;
  justify-content: space-between;
  min-block-size: var(--tap-min);
  padding-block: var(--space-xs);
  color: var(--text-primary);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__glyph {
  flex: none;
  color: var(--accent);
  font-size: var(--step-1);
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-standard);
}

details.faq[open] .faq__glyph {
  transform: rotate(45deg);
}

.faq__answer {
  padding-block-end: var(--space-s);
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .faq__glyph {
    transition: none;
  }
}
