/* FAQ section: .faq*.
   Carved from design/style.css (concept approved 23 Oct 2026) in source order; see build/carve/LEDGER.md. */

/* ---------- FAQ ---------- */
.faq { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-size: 1.12rem; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg);
  transition: transform .35s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { color: var(--muted); max-width: 40rem; padding-bottom: 1.25rem; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .4s ease, content-visibility .4s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}

@media (max-width: 899px) {
  .faq-grid { grid-template-columns: 1fr; }
}
/* bedri/faq's optional small line and text (2 Nov): with them the heading sits in .faq-intro, the grid's left column */
.faq-intro .faq-lede { margin-top: 1.25rem; max-width: 34rem; }

/* FAQ: height is animated in JS; the CSS-only fallback stays off when JS runs it */
.js .faq-list details::details-content { transition: none; height: auto; }
/* Chevron follows the JS state, so it turns as soon as you click */
.js .faq-list details.is-open summary::after { transform: rotate(-135deg); margin-top: -2px; }
.js .faq-list details[open]:not(.is-open) summary::after { transform: rotate(45deg); margin-top: -8px; }
.faq-list summary::after { transition: transform .45s cubic-bezier(.22, .8, .2, 1), margin-top .45s cubic-bezier(.22, .8, .2, 1); }

/* From the light surface set (.surface-light in global.css): its border-block: 0 has to load after .faq's border-top above, the way it did in the single stylesheet, so it moved here (carve, see build/carve/LEDGER.md) */
.surface-light { border-block: 0; }
