/* Local preview only. Content is visible until desktop-motion.js opts in. */
html { scroll-padding-top: calc(var(--preview-header-height, 178px) + 14px); }

@media (max-width: 700px) {
  html { scroll-padding-top: calc(var(--preview-header-height, 64px) + 14px); }
}

@media screen and (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  body.preview-motion-enabled .preview-motion-reveal {
    transition: opacity 400ms ease-out, transform 400ms ease-out;
  }
  body.preview-motion-enabled .preview-motion-reveal[data-preview-motion="pending"] {
    opacity: 0;
    transform: translateY(12px);
  }
  body.preview-motion-enabled .preview-motion-reveal[data-preview-motion="pending"]:is(:target, :focus-within) {
    opacity: 1;
    transform: none;
  }
}

@media screen and (min-width: 901px) and (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  body.preview-motion-enabled :is(main a.btn, main a.button, main button.btn, header a.btn, header a.button):not(form *):not(fieldset *):not(.detailed-calculator *) {
    transition: transform 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
    transform-origin: center;
  }
  body.preview-motion-enabled :is(main a.btn, main a.button, main button.btn, header a.btn, header a.button):not(form *):not(fieldset *):not(.detailed-calculator *):not(:disabled):not([aria-disabled="true"]):hover {
    transform: translateY(-1px) scale(1.03);
  }
  /* Homepage media already has its own zoom; only extend it to other cards. */
  body.preview-motion-enabled main :is(.desktop-link-card, a.article-item) :is(.destination-photo, .article-item-picture) {
    transition: transform 250ms ease-out;
    transform-origin: center;
  }
  body.preview-motion-enabled main :is(.desktop-link-card, a.article-item):is(:hover, :focus-within) :is(.destination-photo, .article-item-picture) {
    transform: scale(1.04);
  }
}
