/* Transitions.dev — Card resize */

/*
  Usage:
    <div class="t-resize">…</div>

  Put `.t-resize` on any element and change its width/height
  (directly, or via a state class such as `.is-small`). The
  transition will tween the two sizes.

  Invoice list → detail uses the same `--resize-*` tokens via Framer
  `layoutId` (FLIP), not width/height on the same node across routes.
*/

:root {
  --resize-dur: 300ms;
  --resize-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-resize {
  transition:
    width var(--resize-dur) var(--resize-ease),
    height var(--resize-dur) var(--resize-ease);
  will-change: width, height;
}

@media (prefers-reduced-motion: reduce) {
  .t-resize {
    transition: none !important;
  }
}
