/* Shared motion pieces of the service pages. Every page draws its own movement; this file holds
   the switch, the entrance classes and the rule that makes everything stand still. */
.motion-switch{position:fixed;left:14px;bottom:14px;translate:0 calc(-1 * var(--dock,0px));z-index:40;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 17px;border:1.5px solid var(--sw-rule,rgba(127,127,127,.5));border-radius:999px;background:var(--sw-bg,var(--sh-bg));color:var(--sw-fg,var(--sh-fg));font:600 .8rem/1 var(--body);cursor:pointer;box-shadow:0 8px 28px rgba(0,0,0,.28)}
.motion-switch:hover{filter:brightness(1.12)}
/* the words open up on hover or focus, so the button stays out of the way of the page */
.motion-switch span{max-width:0;overflow:hidden;white-space:nowrap;transition:max-width .25s,margin .25s}
.motion-switch:hover span,.motion-switch:focus-visible span{max-width:11em;margin-left:9px}
.motion-switch i{flex:0 0 auto;width:10px;height:12px;border-inline:3px solid currentColor}
.motion-switch[aria-pressed="true"] i{width:0;height:0;border-block:6px solid transparent;border-inline:10px solid transparent;border-left-color:currentColor;border-right-width:0}
.motion-switch[hidden]{display:none}

/* entrances: a page sets --from to the way its pieces arrive */
.pre{opacity:0}
.in{animation:rise var(--rise-time,.7s) cubic-bezier(.2,.7,.2,1) calc(var(--i,0) * var(--rise-step,70ms)) backwards}
@keyframes rise{from{opacity:0;transform:var(--from,translateY(24px))}}

/* paused or reduced motion: every drawing shows its finished state */
.still *,.still *::before,.still *::after{animation:none!important;transition:none!important}
.still{scroll-behavior:auto}

@media (max-width:760px){
  .motion-switch{left:auto;right:10px;bottom:10px}
  .motion-switch:hover span,.motion-switch:focus-visible span{max-width:0;margin-left:0}
  .sh-foot{padding-bottom:84px}
}
@media print{
  .motion-switch{display:none}
  .pre{opacity:1}
}
