/* Shared page turn ("flip card"): used by the newsletter box in the footer and by the contact form, so the motion, speed, light and direction are the same.
   Markup: a container with class "fc" (and data-cur = number of the face shown, from 0), inside it faces with class "fc-face" in a single parent;
   the faces that are not shown carry class "is-off". A face that is switched off turns away (to the left of the one shown if it comes before it, to the right if it
   comes after it, mirrored in right-to-left pages) while the new face arrives in the second half. Only transform and opacity move. "is-turning" on the container
   (set for 0.6 s by the script) lights the crease. Without scripting every face is simply shown. */
.fc{--fc-d:1;perspective:1400px}
[dir=rtl] .fc{--fc-d:-1}
.fc-face{backface-visibility:hidden}
.fc-face.is-off{transform:rotateY(calc(var(--fc-d) * 90deg));opacity:0;visibility:hidden;pointer-events:none}
.fc[data-cur="1"] .fc-face:nth-child(-n+1).is-off,.fc[data-cur="2"] .fc-face:nth-child(-n+2).is-off,.fc[data-cur="3"] .fc-face:nth-child(-n+3).is-off,.fc[data-cur="4"] .fc-face:nth-child(-n+4).is-off{transform:rotateY(calc(var(--fc-d) * -90deg))}
.fc-face::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#00000014,#fff0 35%,#ffffff40 50%,#fff0 65%,#00000014);opacity:0;transition:opacity .3s}
@media (scripting:enabled){
  .fc-face{transition:transform .3s cubic-bezier(0,.55,.45,1) .3s,opacity .01s linear .3s,visibility 0s .3s}
  .fc-face.is-off{transition:transform .3s cubic-bezier(.55,0,1,.45),opacity .3s linear,visibility 0s .3s}
  .fc.is-turning .fc-face::after{opacity:1}
}
@media (scripting:none){.fc{perspective:none}.fc-face.is-off{transform:none;opacity:1;visibility:visible;pointer-events:auto}}
@media (prefers-reduced-motion:reduce){.fc-face,.fc-face.is-off{transition:none!important}.fc-face::after{display:none}}/* height modes: by default the card has a fixed height (the newsletter box). With class "fc-auto" the card takes the natural height of the face that is shown
   (the script sets it on the element with class "fc-flip" and follows content changes); the height changes smoothly, a little after the turn has begun. */
.fc-auto .fc-face{inset:auto;top:0;inset-inline:0;bottom:auto;height:auto}
@media (scripting:enabled){.fc-auto .fc-flip{transition:height .35s cubic-bezier(.65,0,.35,1) .12s}}
@media (prefers-reduced-motion:reduce){.fc-auto .fc-flip{transition:none!important}}