/* faq.css: the FAQ page's calm motion, on top of site-chrome.css and site-pages.css.
   Only opacity, transform and color animate (no layout shift). The opening fades and rises once,
   questions answer hover with a small shift, and faq.js eases each answer open and shut.
   Everything here is off when the reader asks for reduced motion. */
.pg-faq .faq summary>span:first-child{transition:color .25s var(--out),transform .35s var(--out)}
.pg-faq .faq summary:hover>span:first-child{color:var(--teal-hi);transform:translateX(3px)}
.pg-faq .faq summary:hover .px::before,.pg-faq .faq summary:hover .px::after{background:var(--teal-hi)}
.pg-faq .faq details.anim{overflow:hidden}

@media (prefers-reduced-motion:no-preference){
  @keyframes faqRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
  .pg-faq .ph .kick,.pg-faq .ph .hl,.pg-faq .ph .lede,.pg-faq .ph .jump{animation:faqRise .5s var(--out) both}
  .pg-faq .ph .kick{animation-delay:40ms}
  .pg-faq .ph .hl{animation-delay:110ms}
  .pg-faq .ph .lede{animation-delay:190ms}
  .pg-faq .ph .jump{animation-delay:270ms}
  /* the first groups follow the opening instead of arriving with it */
  html.motion .pg-faq .rows>.row:nth-child(1){transition-delay:340ms}
  html.motion .pg-faq .rows>.row:nth-child(2){transition-delay:420ms}
}
@media (prefers-reduced-motion:reduce){
  .pg-faq .faq summary>span:first-child,.pg-faq .faq .px::before,.pg-faq .faq .px::after{transition:none}
  .pg-faq .faq summary:hover>span:first-child{transform:none}
}
