/* Effect Atlas — Rotating Arrow. Host controls font, size and layout. */
.ea-rotating-arrow {
  --ea-arrow-size: 32px;
  --ea-arrow-angle: -90deg;
  --ea-arrow-enter: 1000ms;
  --ea-arrow-exit: 300ms;
  --ea-arrow-color: #4559ff;
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: baseline;
  gap: 0;
  color: inherit;
  text-decoration: none;
  font: inherit;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ea-rotating-arrow .ea-arrow-label {
  min-width: 0;
  overflow-wrap: anywhere;
  opacity: 0.52;
  transition: opacity 500ms cubic-bezier(0.075, 0.82, 0.165, 1);
}
.ea-rotating-arrow .ea-arrow-slot {
  display: inline-block;
  flex-shrink: 0;
  width: 0;
  height: var(--ea-arrow-size);
  /* The empty slot's bottom edge shares the first text baseline. Centre the
     mark on the font's cap height, not the line box (which includes leading).
     The em fallback also keeps older engines aligned without font measurement. */
  align-self: baseline;
  translate: 0 calc((var(--ea-arrow-size) - 0.7em) / 2);
  translate: 0 calc((var(--ea-arrow-size) - 1cap) / 2);
  position: relative;
  transition: width var(--ea-arrow-exit) cubic-bezier(0.16, 1, 0.3, 1);
}
.ea-rotating-arrow .ea-arrow-mark {
  position: absolute;
  inset: 0 auto auto 0.22em;
  display: grid;
  place-items: center;
  width: var(--ea-arrow-size);
  height: var(--ea-arrow-size);
  border-radius: 15%;
  background: var(--ea-arrow-color);
  color: white;
  transform-origin: left bottom;
  /* Rotation keeps its original long exit, while size vanishes in 300 ms. */
  scale: 0;
  rotate: var(--ea-arrow-angle);
  transition:
    scale var(--ea-arrow-exit) cubic-bezier(0.16, 1, 0.3, 1),
    rotate 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ea-rotating-arrow .ea-arrow-mark svg {
  width: 72%;
  height: 72%;
  transform: rotate(var(--ea-arrow-direction, 0deg));
}
.ea-rotating-arrow[data-ea-active="true"] .ea-arrow-label {
  opacity: 1;
}
.ea-rotating-arrow[data-ea-active="true"] .ea-arrow-slot {
  width: calc(var(--ea-arrow-size) + 0.22em);
  transition-duration: var(--ea-arrow-enter);
}
.ea-rotating-arrow[data-ea-active="true"] .ea-arrow-mark {
  scale: 1;
  rotate: 0deg;
  transition-duration: var(--ea-arrow-enter);
}
.ea-rotating-arrow:focus-visible {
  outline: 2px solid var(--ea-arrow-color);
  outline-offset: 7px;
  border-radius: 2px;
}
.ea-rotating-arrow[data-ea-reduced="true"] :is(.ea-arrow-slot, .ea-arrow-mark) {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .ea-rotating-arrow :is(.ea-arrow-slot, .ea-arrow-mark) {
    transition: none;
  }
}
