/* Shared FAQ <details> motion: the same timing as the main FAQ accordion
   (faq.css --faq-toggle-*). Heights are animated by details-motion.js. */
[data-details-motion] {
  --details-motion-duration: 380;
  --details-motion-easing: cubic-bezier(.4, 0, .2, 1);
}
/* Only the bottom hides the answer while the height moves: the sides and top
   stay open for the hovered (scaled) toggle and the focus outline. */
[data-details-motion][data-details-animating] { clip-path: inset(-1rem -1rem 0); }
/* The plus turns into a cross as soon as the reader asks, also while the
   answer is still collapsing. */
[data-details-motion] [data-details-icon] { display: inline-block; }
[data-details-motion][open]:not([data-details-closing]) [data-details-icon] { rotate: 45deg; }
@media (prefers-reduced-motion: no-preference) {
  [data-details-motion] [data-details-icon] { transition: rotate calc(var(--details-motion-duration) * 1ms) var(--details-motion-easing); }
}
