/* Chevron morph adapted from https://microinteractions.dev/chevron-morph/
   Copyright (c) 2026 Juan Di Nella. MIT: licenses/microinteractions.txt */
.has-chevron-morph {
  --cm-duration: 190ms;
  --cm-ease: cubic-bezier(.19, 1, .22, 1);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cm-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: -.2em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.cm-icon--left { rotate: 180deg; }
.cm-icon--diagonal { rotate: -45deg; }
.cm-icon--up { rotate: -90deg; }
.bcard__big .cm-icon { width: 1em; height: 1em; }
.cm-chevron { transition: transform var(--cm-duration) var(--cm-ease); }
.cm-stem {
  opacity: 0;
  transform: scaleX(.5);
  transform-box: fill-box;
  transform-origin: left center;
  transition: opacity var(--cm-duration) var(--cm-ease), transform var(--cm-duration) var(--cm-ease);
}
.has-chevron-morph:focus-visible .cm-chevron { transform: translateX(2px); }
.has-chevron-morph:focus-visible .cm-stem { opacity: 1; transform: scaleX(1); }
.has-chevron-morph:focus-visible,
.has-chevron-morph:focus-visible :is(.cm-chevron, .cm-stem) { transition-duration: 0ms; }
@media (hover: hover) and (pointer: fine) {
  .has-chevron-morph:hover .cm-chevron { transform: translateX(2px); }
  .has-chevron-morph:hover .cm-stem { opacity: 1; transform: scaleX(1); }
}
/* Keep the diagonal arrow pointing northeast instead of rotating its whole button. */
.btn-round.has-chevron-morph:is(:hover, :focus-visible) { transform: translate(-2px, -3px); }
:is(.orbit__arrow, .quotes__btn, .btn-round).has-chevron-morph {
  min-width: 44px;
  min-height: 44px;
  transition: transform 160ms var(--cm-ease), box-shadow 190ms var(--cm-ease), background-color 190ms var(--cm-ease);
}
:is(.orbit__arrow, .quotes__btn, .btn-round).has-chevron-morph:focus-visible { transition-duration: 0ms; }
@media (prefers-reduced-motion: no-preference) {
  :is(.orbit__arrow, .quotes__btn, .btn-round).has-chevron-morph:active { transform: scale(.96); }
}
/* Replace the old mobile back-link pseudo-element with the same accessible SVG. */
.back-home.has-chevron-morph::before { content: none; }
@media (prefers-reduced-motion: reduce) {
  .has-chevron-morph, .cm-chevron, .cm-stem { transition: none !important; }
  .has-chevron-morph.has-chevron-morph:is(:hover, :focus-visible, :active) { transform: none; }
}
