/* ==========================================================================================
   BarcoderX website: FAQ page layer. Author: P4 Software.
   Disclosure list.
   Tokens only: every colour, space, radius and type size comes from /brand/tokens.css through site.css.
   Light theme only. Mobile first. Breakpoints: 40rem (640), 48rem (768), 56rem (896), 64rem (1024).
   ========================================================================================== */

/* ============================== FAQ ============================== */
.faq details { border-top: var(--hair); }
.faq details:first-child { border-top: var(--rule); }
.faq details:last-child { border-bottom: var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--bx-space-4); min-height: 3.5rem; padding-block: var(--bx-space-4); cursor: pointer; list-style: none; font: 600 var(--bx-text-lg)/1.3 var(--bx-font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--bx-border-strong); border-radius: var(--bx-radius-sm); font: 500 1.25rem/1 var(--bx-font-mono); background: var(--bx-surface); }
.faq details[open] summary::after { content: "\2212"; background: var(--bx-ink); border-color: var(--bx-ink); color: var(--bx-white); }
.faq summary:focus-visible { outline-offset: -3px; }
/* Hover cue: the whole row is the target, so the toggle square and the question both react. */
.faq summary:hover { color: var(--bx-green-600); }
.faq summary:hover::after { border-color: var(--bx-ink); }
.faq details[open] summary:hover::after { background: var(--bx-gray-700); }
.faq details p { padding-bottom: var(--bx-space-5); color: var(--bx-text-muted); max-width: 54ch; }

.faq { max-width: 56rem; }
.faq details p:has(+ .faq-more) { padding-bottom: var(--bx-space-1); }
.faq-more { padding-bottom: var(--bx-space-3); }
.faq-more .link { min-height: 2.75rem; }

/* Question groups (FAQ page): 27 answers are too many for one flat list, so they sit under five short headings. Each heading is a real h2 and
   each group is its own .faq list, so the existing accordion rules apply unchanged. */
.faq-group { margin: var(--bx-space-12) 0 var(--bx-space-4); font-size: var(--bx-text-2xl); }
.faq-group:first-child { margin-top: 0; }
