/* ameliebeerens.com: the FAQ (Amélie's spec, 6 Oct 2026).
   Loaded by both layouts after the page stylesheet; the markup comes from
   src/data/faq.json through build_site.py ({{faq}} and {{faq:open}}).

   A full-width band between two hairlines, split 5/7 with a hairline
   between. Left: eyebrow, serif title, intro, staying in view while the
   right side scrolls. Right: two groups, each a red label over ruled rows;
   a row is a question with a thin "+" at the right that turns into a "×"
   when the answer is open. One answer open per group, the first one by
   default; on Consulting every answer starts closed (Amélie, 8 Oct 2026).
   Without script every answer shows.

   Spec tokens: ink #21232C, mute #6b6d78, line #e4e5ea, red #FB4951,
   hover #fbf7f8; mute, line and hover come from assets/scheme.css, which
   also gives their dark-scheme values. */

.qa { --qa-mute: var(--mute); --qa-line: var(--line); --qa-hover: var(--hover); --qa-pad: 64px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-block: 1px solid var(--qa-line); background: var(--surface); color: var(--text); }
/* After a ruled band of the Nuance page the top rule is already drawn. */
.nu-section + .qa { border-top: 0; }

/* Left column. */
.qa__head { padding: 96px var(--qa-pad); border-right: 1px solid var(--qa-line); }
.qa__head-in { position: sticky; top: 48px; }
.qa__eyebrow { margin: 0; font: 500 12px/18px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--qa-mute); }
.qa .qa__title { margin: 12px 0 0; max-width: 12em; font: 400 clamp(38px, 4vw, 58px)/1.04 var(--font-serif); letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.qa__intro { margin: 24px 0 0; max-width: 36ch; font: 400 17px/1.6 var(--font-sans); color: var(--qa-mute); }

/* Right column: the groups. */
.qa__list { min-width: 0; }
.qa__label { margin: 0; padding: 40px var(--qa-pad) 8px; font: 500 11px/18px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); }
.qa__group ul { margin: 0; padding: 0; list-style: none; }
.qa__item { border-bottom: 1px solid var(--qa-line); }
.qa__group:last-child .qa__item:last-child { border-bottom: 0; }   /* the band's own rule follows */
.qa__q { margin: 0; font: inherit; }
.qa__q button { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; margin: 0; padding: 24px var(--qa-pad);
  border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: 400 22px/1.3 var(--font-serif); transition: background-color .2s ease-out; }
.qa__q button:hover { background-color: var(--qa-hover); }
.qa__q button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

/* The "+": two 1px lines, turned 45 degrees into a "×" when open. */
.qa__plus { position: relative; flex: none; width: 16px; height: 16px; transition: transform .25s ease-out; }
.qa__plus::before, .qa__plus::after { content: ""; position: absolute; background: var(--text); }
.qa__plus::before { left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; }
.qa__plus::after { top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; }
.qa__q button[aria-expanded="true"] .qa__plus { transform: rotate(45deg); }

.qa__a { padding: 0 var(--qa-pad) 28px; }
.qa__a p { margin: 0; max-width: 58ch; font: 400 16px/1.65 var(--font-sans); color: var(--qa-mute); }
.qa__a[hidden] { display: none; }
html:not(.js) .qa__a[hidden] { display: block; }

@media (prefers-reduced-motion: reduce) {
  .qa__q button, .qa__plus { transition: none; }
}

/* Phone: one column, the head over the groups. */
@media (max-width: 899px) {
  .qa { --qa-pad: 20px; grid-template-columns: minmax(0, 1fr); }
  .qa__head { padding: 56px var(--qa-pad); border-right: 0; border-bottom: 1px solid var(--qa-line); }
  .qa__head-in { position: static; }
  .qa .qa__title { font-size: clamp(32px, 8vw, 40px); }
  .qa__label { padding: 32px var(--qa-pad) 8px; }
  .qa__q button { padding: 20px var(--qa-pad); font-size: 20px; }
  .qa__a { padding-bottom: 24px; }
}
