/* FAQ: native <details>, so every item works with no script and the
   structured data (FAQPage) describes exactly what the page shows.

   Two columns on a wide screen, heading beside the list, so the section
   spans the container like its neighbours while each question still reads
   at a comfortable width. One column on a phone. */

/* The two-column frame is the shared .split in global.css; the intro
   stays in view while the list scrolls. */
@media (min-width: 900px) {
  .faq__intro {
    position: sticky;
    inset-block-start: calc(var(--loupewire-header-block-size) + var(--loupewire-space-xl));
  }
}

.faq__list {
  border-block-start: 1px solid var(--loupewire-border);
}

.faq__item {
  border-block-end: 1px solid var(--loupewire-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--loupewire-space-lg);
  padding-block: var(--loupewire-space-lg);
  font-size: var(--loupewire-font-size-lg);
  font-weight: var(--loupewire-font-weight-semibold);
  cursor: pointer;
  list-style: none;
}

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

.faq__question::after {
  content: '+';
  flex: none;
  inline-size: 28px;
  block-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--loupewire-border-strong);
  border-radius: var(--loupewire-radius-full);
  font-weight: var(--loupewire-font-weight-normal);
  color: var(--loupewire-text-muted);
  transition: transform var(--loupewire-transition-base) var(--loupewire-ease);
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding-block: 0 var(--loupewire-space-xl);
  color: var(--loupewire-text-muted);
}

.faq__answer p {
  max-inline-size: 66ch;
}
