/* Help: the questions people ask before buying (#help in index.html), as a list of
   <details> that open on a click. Works without JavaScript; the footer link "Help" goes here. */

.faq {
  max-width: calc(680px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 64px var(--gutter) 112px;
}

.faq-title {
  margin-bottom: 24px; /* the look comes from .spaced-title (css/base.css) */
}

.faq-list {
  border-top: 1px solid var(--color-line);
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

/* The question: a whole-width button with a + that turns into a − when open. */
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--color-text-muted);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--color-text-soft);
}

.faq-item p {
  padding: 0 2px 20px;
  color: var(--color-text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
