/* FAQ: the title and the support line on the left, the questions on the right. Each question opens in place,
   one at a time; the plus turns into a cross. */
.faq { scroll-margin-top: 112px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; width: min(1100px, calc(100% - 48px)); margin: 0 auto 160px; }

/* the heading stays in view while the list scrolls past it */
.faq-head { position: sticky; top: 112px; align-self: start; }
.faq-head h2 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 540; line-height: 1.12; letter-spacing: -.04em; }
.faq-head p { max-width: 300px; margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.faq-head a { color: var(--text); text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.faq-head a:hover { text-decoration-color: currentColor; }

.faq-list { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; font-size: 19px; font-weight: 550; line-height: 1.35; letter-spacing: -.015em; list-style: none; transition: color .15s ease; -webkit-tap-highlight-color: transparent; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* the plus is drawn by two bars; open, it rotates into a cross */
.faq-item summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat, #1a1a1a; color: #d4d4d4; transition: rotate .25s var(--ease), background-color .15s ease; }
.faq-item summary:hover::after { background-color: #262626; }
.faq-item[open] summary::after { rotate: 45deg; }

/* the answer slides open where the browser can animate to auto height, and simply appears elsewhere */
.faq-item::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
.faq-item[open]::details-content { height: auto; }
.faq-item p { max-width: 640px; padding: 0 56px 26px 0; color: #b4b4b4; font-size: 16px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after, .faq-item::details-content { transition: none; }
}

/* phones: the heading above the list, not beside it */
@media (max-width: 760px) {
  .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; width: calc(100% - 32px); margin-bottom: 96px; }
  .faq-head { position: static; }
  .faq-item summary { padding: 20px 0; font-size: 17px; }
  .faq-item summary::after { width: 28px; height: 28px; }
  .faq-item p { padding-right: 0; font-size: 15px; }
}
