/* ============================================================
   accordion — THE SITE'S ONE COPY. Linked by pdp-variety and pdp-gels as
   `../css/templates/accordion.css`; no page keeps a private copy.

   HOISTED 2026-08-15, and the two candidates were nearly DISJOINT rather than
   near-identical. pdp-variety shipped this adapted file (5 rules, all of which
   match real elements on that page); pdp-gels shipped the PRISTINE template
   (26 rules, of which exactly TWO matched anything — and both were the `.faq`
   collision its components.css then had to neutralise). Measured with a probe
   that reports, per rule, how many elements it matches on each page. So this
   version is not a preference: the pristine half was demonstrably dead weight
   plus one bug, on the only page that carried it.

   ONE CONSEQUENCE, accepted and paid for in pdp-gels: `.accordion-question`
   below gives `justify-content: space-between`, which the pristine file did
   not. pdp-gels's `.offer__faq-q` now restates `normal` in its own section CSS
   — where every other layout property of that button already lives. Nothing
   moves (the text child is `flex: 1 1 auto`), but the page keeps the computed
   value it was verified with.

   pdp-variety DEPENDS on the whole `.accordion-question` block — its
   `.offer__info-trigger` sets only gap/font/colour and takes width, flex,
   alignment, background and cursor from here. Do not thin it further without
   measuring that page.

   Adapted from pipeline/templates/code/accordion/accordion.css per its
   ADAPT.md.

   Per-rule audit: the template file is almost entirely the FAQ demo's own
   look (`.faq`, `.faq-item`, `.faq-title`, `.faq-left-block`, sample
   1440/1920 font sizes, a 40px card radius, `#2C2C2C` demo colours). Those
   are STANDALONE-DEMO ARTIFACTS -> deleted, per ADAPT.md; the section's real
   look is written against its own BEM classes in
   css/sections/offer-block.css.

   What survives is the JS CONTRACT (accordion.js drives these):
   - `.accordion-answer` must be height-animated, never `display:none`
     (the JS writes height in px and toggles to `auto`);
   - `.accordion-icon` is a span the JS fills with the <template> SVG;
   - the trigger's inner graphics must not swallow the click.
============================================================ */

.accordion-answer {
  height: 0;
  overflow: hidden;
  transition: height .3s ease;
}

.accordion-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Listener sits on the trigger — the icon must never be the event target. */
.accordion-question .accordion-icon,
.accordion-question svg,
.accordion-question img {
  pointer-events: none;
  flex-shrink: 0;
}

.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .accordion-answer { transition: none; }
}
