/* The reading line stays outside normal flow, including on pages restored from history. */
.reading-line {
  position: fixed;
  z-index: 8;
  inset: 0 0 auto;
  height: 2px;
  background: #86ad77;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
@supports (animation-timeline: scroll(root block)) {
  html[data-motion="on"] .reading-line-native {
    animation: climate-reading linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes climate-reading {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}
.foot-inner .motion-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  flex-shrink: 0;
  min-height: 44px;
  padding: .5rem .55rem;
  border: 0;
  background: transparent;
  color: #e1e9d6;
  font: 550 .77rem/1 var(--sans,system-ui,sans-serif);
  cursor: pointer;
}
.motion-switch::before {
  content: '';
  box-sizing: border-box;
  width: 1.38rem;
  height: .78rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
  background: radial-gradient(circle at .34rem 50%,currentColor .15rem,transparent .19rem);
}
.motion-switch[aria-checked="true"]::before {
  background: radial-gradient(circle at .9rem 50%,currentColor .15rem,transparent .19rem);
}
.motion-switch:hover:not(:disabled) { color: white; text-decoration: underline; text-underline-offset: .25em; }
.motion-switch:focus-visible { outline: 2px solid #e5ecc0; outline-offset: 1px; }
.motion-switch:disabled { color: #d5dfce; cursor: default; }
@media(max-width:420px) {
  .foot-inner { flex-wrap: wrap; gap: 0 .65rem; padding-block: .35rem; }
  .foot-inner .motion-switch { padding-inline: .1rem; }
}
@media (prefers-reduced-motion:no-preference) {
  html[data-motion="on"] .mast nav a:not(.paper-nav) {
    background-image: linear-gradient(currentColor,currentColor);
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 calc(50% + .67em);
    transition: background-size .21s ease-out;
  }
  html[data-motion="on"] .mast nav a:not(.paper-nav):is(:hover,:focus-visible) {
    background-size: 100% 1px;
    text-decoration: none;
  }
  html[data-motion="on"] :is(.paper-nav span,.source-arrow,.explore span,.foot-inner a span) { display: inline-block; transition: transform .2s ease-out; }
  html[data-motion="on"] .paper-nav:is(:hover,:focus-visible) span,
  html[data-motion="on"] .explore:is(:hover,:focus-visible) span { transform: translateY(2px); }
  html[data-motion="on"] .source-link:is(:hover,:focus-visible) .source-arrow { transform: translate(3px,-3px); }
  html[data-motion="on"] .foot-inner a:is(:hover,:focus-visible) span { transform: translateY(-2px); }
  html[data-motion="on"] .paper-notes-list summary::after { transition: transform .19s ease-out; }
}
@media(max-width:700px) { html[data-motion="on"] .mast .paper-nav span { display:none; } }
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] .reading-line { display: none; }
html[data-motion="off"] :is(.wc-flow,.wm-bar i,#et-current-bar,#et-crops-bar,.ca-cell,.atlas-node) { transition: none; }
@media(prefers-reduced-motion:reduce) { .reading-line { display: none; } }
