/* Block 12a · Fragen (V8-BLOCKS-R1 §1.3). Concept: a consultation-room question sheet held up by the doctor who
   answers it: on paper, the H2, then one mist panel (makro's FAQ panel: radius 24, padding 8) whose rows are paper
   sheets 4 px apart (no hairlines), every answer open. Cols 1–4 of the panel: the person column, cut-out 3 standing
   on a paper floor that holds the phone link; sticky beside the moving rows (≤ 1.6 screens of hold, R1 §0.1), landing
   on the panel's bottom edge with the last row. Component markup: _tools/kit_faq.py (pages reuse it).
   P (≤ 809): rows full width, the person at the panel's foot (cut-out 70 % on its floor), nothing sticky. */
.fq { background: var(--paper); }
.fq-h { max-width: calc(50% + var(--gap-grid) / 2); }          /* cols 1–6 */

.fq-panel {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-grid);
  margin-top: var(--gap-stack); padding: 8px; border-radius: var(--r-lg); background: var(--mist);
}

/* ---- the rows: cols 5–12, groups headed by their page link on the mist ---- */
.fq-rows { grid-column: 5 / -1; grid-row: 1; min-width: 0; }
.fq-panel--solo .fq-rows { grid-column: 1 / -1; }
.fq-group + .fq-group { margin-top: 24px; }
.fq-gh { padding: 20px 36px 16px; font-size: var(--fs-quote); line-height: var(--lh-quote); letter-spacing: var(--ls-quote); font-weight: var(--fw-statement); }
.fq-gh a { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-deep); text-decoration: none; }
.fq-garrow svg { width: 20px; height: 20px; transition: transform .45s var(--spring-enter); }
@media (hover: hover) {
  .fq-gh a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  .fq-gh a:hover .fq-garrow svg { transform: translateX(4px); }
}
.fq-list { display: grid; gap: 4px; }
.fq-row { padding: 24px 36px; border-radius: var(--r-md); background: var(--paper); min-width: 0; }
.fq-q { font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); font-weight: var(--fw-statement); color: var(--ink); }
.fq-a { margin-top: 8px; max-width: 40em; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); }

/* ---- the person column: cols 1–4. The hold sits at the column's foot and is capped at the figure + 1.6 screens, so
   the figure holds at most 1.6 screens and lands on the panel's bottom edge with the last row ---- */
.fq-person {
  grid-column: 1 / 5; grid-row: 1; min-width: 0; container-type: inline-size;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.fq-hold { flex: 1 1 auto; max-height: calc(100cqw / (var(--fq-ar)) + 64px + 160svh); }
.fq-fig { position: sticky; top: calc(var(--nav-bottom) + 24px); }
.fq-cut { display: block; width: 100%; aspect-ratio: var(--fq-ar); }
.fq-img { display: block; width: 100%; height: 100%; }
/* PLACEHOLDER SLOT: cut-out 25 not delivered yet (kit_faq.py). The measured frame only, marked by a dashed rule;
   no fill, no stand-in face. Disappears by itself when the web files exist. */
.fq-cut--slot { outline: 1px dashed var(--ink-64); outline-offset: -1px; }
.fq-floor {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px;
  border-radius: 0 0 var(--r-md) var(--r-md); background: var(--paper); color: var(--ink);
  font-size: var(--fs-body); line-height: var(--lh-body); text-decoration: none;
}
.fq-ficon { flex: none; color: var(--blue-deep); }
.fq-ficon svg { width: 20px; height: 20px; }
.fq-flabel { min-width: 0; }
@media (hover: hover) { .fq-floor:hover .fq-flabel { text-decoration: underline; text-underline-offset: .2em; } }

/* purpose: the person arrives after the rows have started to settle, with no slide (makro portrait appear: delay .4,
   1.6 s, as block 8); the floor with the phone link never waits */
html.motion:not(.rm) .fq-img { opacity: 0; }
html.motion:not(.rm) .fq-fig.is-in .fq-img { opacity: 1; transition: opacity 1.6s var(--ease-ui) .4s; }

/* reduced motion: nothing holds; the person stands at the top of its column beside the first group */
html.rm .fq-person { justify-content: flex-start; }
html.rm .fq-hold { flex: none; max-height: none; }
html.rm .fq-fig { position: static; }
@media (prefers-reduced-motion: reduce) {
  .fq-person { justify-content: flex-start; }
  .fq-hold { flex: none; max-height: none; }
  .fq-fig { position: static; }
}

@media (max-width: 1199.98px) {
  .fq-gh { padding-inline: 28px; }
  .fq-row { padding: 24px 28px; }
  .fq-floor { gap: 10px; padding: 8px 16px; }      /* the column is 222 px at 810: the number stays on one line */
}
@media (max-width: 809.98px) {
  .fq-h { max-width: none; }
  .fq-panel { display: flex; flex-direction: column; gap: 0; }
  .fq-gh { padding: 20px 20px 12px; }
  .fq-row { padding: 20px 20px; }
  .fq-group + .fq-group { margin-top: 12px; }
  .fq-person { justify-content: flex-start; margin-top: 32px; }
  .fq-hold { flex: none; max-height: none; }
  .fq-fig { position: static; }
  .fq-cut { width: 70%; margin-inline: auto; }
  .fq-floor { border-radius: var(--r-md); justify-content: center; }
}

/* touch: the group links to their page at 44 px (22 px tall at 390; phone pass 2026-10-22) */
@media (pointer: coarse) { .fq-gh a { min-height: 44px; } }
