/* Shared flat CTA — "Open outline" direction.
   The arrow remains CSS-only so every existing label, translation, and link can
   use the component without markup changes. */
:is(.btn-one, .btn-two) {
  align-items: center;
  animation: none;
  background: transparent !important;
  border: 2px solid #2f7e79 !important;
  border-radius: 8px;
  box-shadow: none !important;
  color: #2f7e79 !important;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 16px;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 24px;
  min-height: 56px;
  overflow: hidden;
  padding: 14px 19px;
  text-shadow: none;
  text-transform: none;
  transform: translateY(0) scale(1);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 140ms ease;
  white-space: nowrap;
}

/* Retire the legacy criss-cross fill. */
:is(.btn-one, .btn-two)::before {
  content: none !important;
}

:is(.btn-one, .btn-two)::after {
  animation: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  content: "↗";
  display: inline-block;
  flex: 0 0 auto;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  height: auto;
  left: auto;
  line-height: 1;
  opacity: 1;
  position: static;
  right: auto;
  top: auto;
  transform: translate(0, 0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: auto;
  z-index: auto;
}

:is(.btn-one, .btn-two):hover,
:is(.btn-one, .btn-two):focus-visible {
  background: #dff3ef !important;
  border-color: #2f7e79 !important;
  box-shadow: none !important;
  color: #226e68 !important;
  padding: 14px 19px;
  transform: translateY(0) scale(1);
}

:is(.btn-one, .btn-two):hover::after,
:is(.btn-one, .btn-two):focus-visible::after {
  animation: none;
  transform: translate(3px, -3px);
}

:is(.btn-one, .btn-two):focus-visible {
  outline: 3px solid rgba(55, 145, 140, 0.32);
  outline-offset: 3px;
}

:is(.btn-one, .btn-two):active,
:is(.btn-one, .btn-two).fexr-cta--engaged {
  padding: 14px 19px;
  transform: translateY(1px) scale(0.97);
}

/* The existing shared CTA script holds navigation for 360ms, giving this
   acknowledgement time to complete before the destination opens. */
:is(.btn-one, .btn-two).fexr-cta--leaving {
  animation: fexr-outline-click 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 14px 19px;
  pointer-events: none;
}

:is(.btn-one, .btn-two).fexr-cta--leaving::after,
:is(.btn-one, .btn-two).fexr-cta--leaving:hover::after {
  animation: fexr-outline-arrow-launch 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The opt-in dark theme uses the light teal treatment shown in the comparison. */
.dark-mode :is(.btn-one, .btn-two) {
  background: transparent !important;
  border-color: #76d0c9 !important;
  color: #76d0c9 !important;
}

.dark-mode :is(.btn-one, .btn-two):hover,
.dark-mode :is(.btn-one, .btn-two):focus-visible {
  background: rgba(118, 208, 201, 0.12) !important;
  border-color: #76d0c9 !important;
  color: #8edbd5 !important;
}

@keyframes fexr-outline-click {
  0%, 100% { transform: translateY(0) scale(1); }
  42% { transform: translateY(1px) scale(0.96); }
}

@keyframes fexr-outline-arrow-launch {
  0% { opacity: 1; transform: translate(0, 0); }
  42% { opacity: 0; transform: translate(7px, -7px); }
  43% { opacity: 0; transform: translate(-5px, 5px); }
  100% { opacity: 1; transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  :is(.btn-one, .btn-two),
  :is(.btn-one, .btn-two)::after,
  :is(.btn-one, .btn-two):hover::after,
  :is(.btn-one, .btn-two).fexr-cta--leaving,
  :is(.btn-one, .btn-two).fexr-cta--leaving::after {
    animation: none !important;
    transition: none !important;
  }
}
