/* Calm mode (Nov 2026), switched on by calm.js with <html class="calm">.
   Stops animations and transitions, swaps the book cursor for the normal arrow and hand,
   and keeps scrolling instant. Imported at the top of site.css; pages without site.css
   link it directly. */
html.calm{--cur-closed:auto;--cur-open:pointer;scroll-behavior:auto!important}
html.calm *,html.calm *::before,html.calm *::after{
  animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;
  transition-duration:.001ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
/* anything that fades or slides in on scroll shows straight away */
html.calm .reveal,html.calm .js .reveal{opacity:1!important;transform:none!important}
html.calm .jiggle:hover{transform:none!important}

/* The leaf button in the header */
.calm-btn{display:inline-flex;white-space:nowrap;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;
  padding:0 12px;border:2px solid currentColor;border-radius:4px;background:transparent;color:inherit;
  font:inherit;font-size:14.5px;font-weight:700;line-height:1;cursor:var(--cur-open,pointer);flex:0 0 auto}
.calm-btn svg{flex:0 0 auto}
.calm-btn:hover{background:rgba(47,143,131,.12)}
.calm-btn:focus-visible{outline:3px solid #2F8F83;outline-offset:3px}
.calm-btn[aria-pressed="true"]{background:#1F6F65;border-color:#1F6F65;color:#FFFDF5}
.calm-btn[aria-disabled="true"]{cursor:default}
/* In the header row "Calm Mode" sits on two short lines so the pill stays as narrow as the old "Calm" one */
.head-cta>.calm-btn{gap:5px;padding:0 10px}
.head-cta>.calm-btn .calm-txt{display:inline-block;width:min-content;white-space:normal;font-size:12.5px;line-height:1.05;text-align:left}
@media (max-width:760px){.calm-btn{padding:0;width:44px}.calm-btn .calm-txt{display:none}}
/* In the open phone/tablet menu the switch gets its own full-width row under the account buttons */
@media (max-width:1180px){
  .site-head.open .head-cta{flex-wrap:wrap}
  .site-head.open .calm-btn{order:5;flex:1 1 100%;width:auto;padding:0 16px}
  .site-head.open .calm-btn .calm-txt{display:inline;width:auto;font-size:inherit;white-space:nowrap}
}
/* Pages with no header (welcome, intro), or a header with no room: the button floats at the left, above the Ask Openly button */
.calm-btn.calm-float{position:fixed;left:16px;bottom:84px;z-index:70;background:#FFFDF5;color:#1B1B1B;border-color:#1B1B1B;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.calm-btn.calm-float[aria-pressed="true"]{background:#1F6F65;border-color:#1F6F65;color:#FFFDF5}

/* Pause / Play on looping demo boxes ([data-motion], button added by calm.js) */
[data-motion].motion-paused,[data-motion].motion-paused *,[data-motion].motion-paused *::before,[data-motion].motion-paused *::after{animation-play-state:paused!important}
.motion-btn{position:absolute;top:12px;right:12px;z-index:20;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;
  border:0;border-radius:4px;background:rgba(255,253,245,.94);color:#1B1B1B;font:700 14px/1 inherit;font-family:inherit;
  box-shadow:0 2px 10px rgba(0,0,0,.2);cursor:var(--cur-open,pointer)}
.motion-btn:hover{background:#fff}
.motion-btn:focus-visible{outline:3px solid #2F8F83;outline-offset:2px}
html.calm .motion-btn{display:none}
@media print{.calm-btn,.motion-btn{display:none}}
