/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 * FAQ accordion smooth open/close (progressive enhancement, no JS).
 * Animates the native <details> panel by interpolating ::details-content height.
 * Gated on prefers-reduced-motion; browsers without ::details-content /
 * interpolate-size support simply open instantly (no breakage).
 */
@media (prefers-reduced-motion: no-preference) {
  .faq-accordion {
    interpolate-size: allow-keywords;
  }

  .faq-accordion details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 550ms cubic-bezier(0.4, 0, 0.2, 1),
      content-visibility 550ms allow-discrete;
  }

  .faq-accordion details[open]::details-content {
    block-size: auto;
  }
}
