/* =========================================================================
   FAQ page — neo-brutalist accordion polish (see DESIGN.md).
   Layers on top of the baseline .faq* rules in main.css (this file loads
   after main.css because the controller sets 'page' => 'faq'). Consumes
   core tokens/primitives only — never re-declares colours.
   Native <details>/<summary> stays keyboard-operable; no JS required.
   ========================================================================= */

/* ---- Accordion list ---------------------------------------------------- */
.faq { gap: clamp(.9rem, 2.2vw, 1.25rem); margin-top: clamp(1.5rem, 4vw, 2.25rem); }

/* Each item is a hard-bordered brutalist beam. Snappy state change only. */
.faq__item { transition: box-shadow .08s ease, border-color .08s ease; }

/* Open item lifts out of its shadow a touch — blunt "active" signal. */
.faq__item:has(details[open]) { box-shadow: var(--shadow-lg); }

/* ---- Question (summary) ------------------------------------------------ */
.faq__q {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    line-height: 1.25;
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1rem, 3vw, 1.4rem);
    color: var(--c-navy);
    transition: background-color .08s ease, color .08s ease;
}

/* Boxed +/- indicator: a bordered square that flips glyph + inverts on open. */
.faq .faq__q::after {
    content: "\002B";                 /* + */
    flex: 0 0 auto;
    width: 1.9rem; height: 1.9rem;
    display: grid; place-items: center;
    margin-left: 1rem;
    border: var(--border-w) solid var(--c-navy);
    background: var(--c-paper); color: var(--c-navy);
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.4rem; line-height: 1;
    transition: background-color .08s ease, color .08s ease;
}
.faq details[open] .faq__q::after {
    content: "\2212";                 /* − */
    background: var(--c-burn); color: var(--c-navy);
}

/* Loud burn invert on hover/open of the whole question bar. */
.faq__q:hover,
.faq details[open] > .faq__q { background: var(--c-burn); color: var(--c-paper); }
.faq__q:hover::after,
.faq details[open] > .faq__q::after { background: var(--c-navy); color: var(--c-paper); }

/* Keyboard focus — loud shock ring, inset so it reads inside the block. */
.faq__q:focus-visible { outline: 3px solid var(--c-shock); outline-offset: -3px; }

/* Thick navy rule separates the open question from its answer. */
.faq details[open] .faq__q { border-bottom: var(--border-w) solid var(--c-navy); }

/* ---- Answer panel ------------------------------------------------------ */
.faq__a { background: var(--c-chalk); padding: clamp(1.05rem, 2.5vw, 1.35rem) clamp(1rem, 3vw, 1.4rem); }
.faq__a p { margin: 0; color: var(--c-navy); max-width: 65ch; }

/* ---- Closing CTA — blunt navy block, burn-edged link ------------------- */
.faq__cta {
    margin-top: clamp(2rem, 5vw, 3rem);
    padding: clamp(1.3rem, 3.5vw, 1.75rem) clamp(1.2rem, 4vw, 1.9rem);
    background: var(--c-navy);
    color: var(--c-chalk);
    border: var(--border-w) solid var(--c-black);
    box-shadow: var(--shadow-bk);
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.35;
}
.faq__cta a {
    color: var(--c-paper);
    text-decoration-color: var(--c-burn);
}
.faq__cta a:hover { background: var(--c-burn); color: var(--c-paper); text-decoration-color: var(--c-navy); }

/* ---- Reduced motion: kill the colour/shadow transitions (snap instead) -- */
@media (prefers-reduced-motion: reduce) {
    .faq__item, .faq__q, .faq .faq__q::after { transition: none !important; }
    .faq__item:has(details[open]) { box-shadow: var(--shadow); }
}
