/*
 * ArrowLink.module.css → the shared "arrow" part.
 *
 * Ported by scripts/port-css.mjs. Class names are prefixed to survive being
 * flattened out of CSS Modules; design tokens are rewritten to the custom
 * properties theme.json emits. Edit this file, not the original.
 */

.px-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fg);
  transition: color var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
}

.px-arrow:hover {
  color: var(--accent);
}

.px-arrow__arrow {
  display: inline-block;
  flex: none;
  transition: transform var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.px-arrow:hover .px-arrow__arrow {
  transform: translateX(0.35em);
}

.px-arrow__down:hover .px-arrow__arrow {
  transform: translateY(0.3em);
}

/* Underline that grows from the left on hover. */
.px-arrow__underline {
  position: relative;
}

.px-arrow__underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.px-arrow__underline:hover::after {
  transform: scaleX(1);
}

/* ---- Boxed variant: the primary call to action ---- */

.px-arrow__boxed {
  gap: 2.5em;
  justify-content: space-between;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line-strong);
  transition:
    background-color var(--wp--custom--duration--base) var(--wp--custom--ease--out),
    color var(--wp--custom--duration--base) var(--wp--custom--ease--out),
    border-color var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.px-arrow__boxed:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.px-arrow__block {
  display: flex;
  width: 100%;
}
