/* Matched to design-ui/src/motion/tokens.ts; content is never hidden by this file. */
:root {
  --motion-duration-feedback: 150ms;
  --motion-duration-state: 240ms;
  --motion-duration-disclosure: 340ms;
  --motion-duration-route: 300ms;
  --motion-duration-reveal: 360ms;
  --motion-ease: cubic-bezier(0.2, 0, 0, 1);
  --motion-distance-short: 8px;
  --motion-distance-section: 12px;
  --motion-delay-max: 120ms;
}

/* Only the explicitly opted-in component owns these properties. */
[data-motion-disclosure-content] { display: flow-root; }
[data-motion-dialog-scroll], [data-motion-menu-scroll] { overscroll-behavior: contain; }

/* Keep state legible and remove spatial movement when the preference changes mid-visit. */
@media (prefers-reduced-motion: reduce) {
  [data-motion-feedback], [data-motion-state] {
    transition-duration: 0ms;
    animation-duration: 0ms;
  }
}

/* The destination document owns its short entrance. Native navigation, theme,
   sticky chrome, live canvas and media stay in place during page history. */
@view-transition { navigation: none; }
@media (prefers-reduced-motion: no-preference) {
  @supports (overlay: auto) {
    html:not([data-motion-static]):not([data-motion="off"]) .public-site dialog.mi127-dialog,
    html:not([data-motion-static]):not([data-motion="off"]) .public-site dialog.mi127-dialog::backdrop { transition-duration: 140ms; }
    html:not([data-motion-static]):not([data-motion="off"]) .public-site dialog.mi127-dialog[open],
    html:not([data-motion-static]):not([data-motion="off"]) .public-site dialog.mi127-dialog[open]::backdrop { transition-duration: 220ms; }
  }
}
#materials-demo .cl-tabs > .cl-tab-indicator { display: none !important; }
[data-cl-tabs] .cl-tabs { position: relative; }
[data-cl-tabs] .cl-tabs .ch-format-motion-ring {
  position: absolute;
  z-index: 2;
  inset: 0 auto auto 0;
  box-sizing: border-box;
  pointer-events: none;
  border: 1px solid currentColor;
  border-radius: inherit;
  color: var(--ch-link-default, currentColor);
  transform-origin: top left;
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  [data-cl-tabs] .cl-tabs .ch-format-motion-ring { display: none; }
}
