/* ══════════════════════════════════════
   CTA Button Styles
   ══════════════════════════════════════ */

/* Outer wrapper — reset any inherited link styles */
.slnt-cta-outer {
  display: block;
}

/* The button itself (the <a> element) */
.slnt-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75em 1.5em;
  border: 3px solid transparent;  /* colour set inline from taxonomy */
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  line-height: 1.2;
}

/* Override body link styles — CTAs must NOT inherit magenta underline */
.layout-content .slnt-cta,
.layout-content .slnt-cta:hover {
  text-decoration: none;
  text-decoration-color: transparent;
}

/* Hover: subtle darkening */
.slnt-cta:hover {
  opacity: 0.88;
}

/* Focus state for keyboard navigation */
.slnt-cta:focus-visible {
  outline: 3px solid #f5b0d8;
  outline-offset: 2px;
}

/* Chevron — rotated version of menu down-triangle */
.slnt-cta__chevron {
  width: 0.75em;
  height: 0.75em;
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  fill: currentColor;
}

.slnt-cta:hover .slnt-cta__chevron {
  transform: rotate(-90deg) translateY(-3px);
}

/* ── Mobile adjustments ── */
@media (max-width: 799px) {
  .slnt-cta {
    font-size: 0.9rem;
    padding: 0.65em 1.2em;
  }
}
