/* 08 · #faq — calm Q&A: a sticky head at the inline-start beside the list (≥ 960px), stacked below; full-width hairlines,
   a four-point star marker that turns on open. Ground stays sand under a 1px full-bleed rule (the sheet recipe belongs to #book). */
#faq { border-block-start: 1px solid var(--line); }
#faq .faq-head { display: grid; gap: 14px; justify-items: start; margin-block-end: clamp(32px, 5vw, 56px); }
#faq .faq-list { max-inline-size: 860px; border-block-start: 1px solid var(--line); }
@media (min-width: 960px) {
  #faq .faq-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  #faq .faq-head { grid-column: 1 / 5; margin-block-end: 0; position: sticky; top: calc(var(--header-h) + 32px); }
  #faq .faq-list { grid-column: 5 / 13; max-inline-size: none; }
}
#faq details { border-block-end: 1px solid var(--line); }
#faq summary {
  display: flex; align-items: center; gap: 18px; min-block-size: 64px; padding-block: 14px; cursor: pointer; list-style: none;
  font-family: var(--font-text); font-size: var(--t-lg); font-weight: 600; line-height: 1.6; color: var(--ink); text-wrap: balance;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::marker { content: ""; }
#faq summary::before {
  content: ""; flex: none; inline-size: 14px; block-size: 14px; background: var(--ochre);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transition: transform .45s var(--ease-out);
}
#faq details[open] > summary::before { transform: rotate(45deg) scale(1.25); }
#faq summary:hover { color: var(--ochre); }
#faq summary:focus-visible { outline: 3px solid var(--focus-sand); outline-offset: 3px; border-radius: var(--r-ctl); }
#faq .faq-a { padding-block: 2px 26px; padding-inline-start: 32px; }
#faq .faq-a p { max-inline-size: var(--measure); color: var(--ink-2); }

/* smooth open where supported; otherwise the browser's instant toggle */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  #faq details { interpolate-size: allow-keywords; }
  #faq details::details-content {
    block-size: 0; opacity: 0; overflow: clip;
    transition: block-size .45s var(--ease-out), opacity .35s ease, content-visibility .45s allow-discrete;
  }
  #faq details[open]::details-content { block-size: auto; opacity: 1; }
}
