/* F4g (04 §3.1): /faq. Accordion on cool-surface cards; the answer opens with grid-template-rows 0fr → 1fr
   (the one layout animation the spec allows, 04 §3.1 Motion). Collapsed start state only under html.js, so
   every answer is readable without JS. */
.faq-page .page-head, .faq, .faq-more { max-width: 880px; }
.faq { display: grid; gap: var(--s3); }
.faq-item { border-radius: var(--r-lg); background: var(--surface); transition: background var(--t-fast) var(--ease); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-item:hover { background: var(--surface-2); }
.faq-item.is-open { background: var(--blue-tint); }
.faq-q { margin: 0; font-size: var(--fs-body); }
.faq-q button { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); width: 100%; min-height: 72px; padding: var(--s4) var(--s5); border: 0; border-radius: var(--r-lg); background: transparent; color: var(--ink); font: 600 1.25rem/1.35 var(--font); letter-spacing: -0.01em; text-align: left; overflow-wrap: anywhere; cursor: pointer; transition: color var(--t-fast) var(--ease); }
.faq-q button:hover, .faq-item.is-open .faq-q button { color: var(--blue); }
.faq-q button:active .faq-ic { transform: scale(.94); }
/* plus that turns into a minus: two bars, the vertical one folds flat */
.faq-ic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--blue); transition: transform var(--t-fast) var(--ease); }
.faq-ic i { position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform var(--t-med) var(--ease); }
.faq-ic i + i { transform: rotate(90deg); }
.faq-item.is-open .faq-ic i + i { transform: rotate(0deg); }

.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t-med) var(--ease), visibility 0s; }
.faq-a-in { min-height: 0; overflow: hidden; }
.faq-body { padding: 0 var(--s5) var(--s5); color: var(--ink); overflow-wrap: anywhere; max-width: var(--measure); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease-out); }
html.js .faq-item:not(.is-open) .faq-a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
html.js .faq-item:not(.is-open) .faq-body { opacity: 0; transform: translateY(-6px); }
.faq-body > :first-child { margin-top: 0; }
.faq-body > :last-child { margin-bottom: 0; }
.faq-body img, .faq-body iframe { max-width: 100%; height: auto; border-radius: var(--r-md); }
.faq-body table { display: block; max-width: 100%; overflow-x: auto; }

.faq-more { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s5); align-items: center; margin-top: var(--s8); padding: var(--s5); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.faq-more .well { background: var(--blue-tint); }
.faq-more h2 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.faq-more p { margin: 4px 0 0; }

@media (max-width: 600px) {
  .faq-q button { min-height: 64px; padding: var(--s4); font-size: 1.125rem; }
  .faq-body { padding: 0 var(--s4) var(--s4); }
  .faq-more { grid-template-columns: 48px 1fr; }
  .faq-more .well { width: 48px; height: 48px; }
  .faq-more .btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a, html.js .faq-item:not(.is-open) .faq-a { transition: none; }
  .faq-body, html.js .faq-item:not(.is-open) .faq-body { transform: none; }
}
