/*
 * Patch 032 — System CTA contrast hardening
 *
 * Scope:
 * Shared legacy CTA classes used by 60 singular page IDs across the current
 * Robuste page-family corpus.
 *
 * Why:
 * Page-family CSS already intends gold-filled buttons to use navy text and
 * ghost buttons on dark surfaces to use light text. Later anchor/visited rules
 * can override that intent. This late layer makes those states deterministic.
 *
 * No layout, spacing, content or SEO changes.
 */

/* Filled gold CTA labels: always navy, including visited/hover/focus/active. */
body.r111-rollout-active a.btn-gold,
body.r111-rollout-active a.btn-gold:visited,
body.r111-rollout-active a.btn-gold:hover,
body.r111-rollout-active a.btn-gold:focus,
body.r111-rollout-active a.btn-gold:focus-visible,
body.r111-rollout-active a.btn-gold:active,
body.r111-rollout-active a.def-cta,
body.r111-rollout-active a.def-cta:visited,
body.r111-rollout-active a.def-cta:hover,
body.r111-rollout-active a.def-cta:focus,
body.r111-rollout-active a.def-cta:focus-visible,
body.r111-rollout-active a.def-cta:active,
body.r111-rollout-active a.score-cta,
body.r111-rollout-active a.score-cta:visited,
body.r111-rollout-active a.score-cta:hover,
body.r111-rollout-active a.score-cta:focus,
body.r111-rollout-active a.score-cta:focus-visible,
body.r111-rollout-active a.score-cta:active,
body.r111-rollout-active a.sticky-btn,
body.r111-rollout-active a.sticky-btn:visited,
body.r111-rollout-active a.sticky-btn:hover,
body.r111-rollout-active a.sticky-btn:focus,
body.r111-rollout-active a.sticky-btn:focus-visible,
body.r111-rollout-active a.sticky-btn:active {
  color: var(--navy, #0F2340) !important;
  -webkit-text-fill-color: var(--navy, #0F2340) !important;
}

/* Ghost/secondary CTAs on the dark legacy surfaces: readable in every state. */
body.r111-rollout-active a.btn-ghost,
body.r111-rollout-active a.btn-ghost:visited {
  color: rgba(232,238,245,.94) !important;
  -webkit-text-fill-color: rgba(232,238,245,.94) !important;
}

body.r111-rollout-active a.btn-ghost:hover,
body.r111-rollout-active a.btn-ghost:focus,
body.r111-rollout-active a.btn-ghost:focus-visible,
body.r111-rollout-active a.btn-ghost:active {
  color: var(--gold, #C9A84C) !important;
  -webkit-text-fill-color: var(--gold, #C9A84C) !important;
  border-color: var(--gold, #C9A84C) !important;
}

/* Accessible keyboard focus without changing normal button geometry. */
body.r111-rollout-active a.btn-gold:focus-visible,
body.r111-rollout-active a.def-cta:focus-visible,
body.r111-rollout-active a.score-cta:focus-visible,
body.r111-rollout-active a.sticky-btn:focus-visible,
body.r111-rollout-active a.btn-ghost:focus-visible {
  outline: 2px solid var(--gold, #C9A84C) !important;
  outline-offset: 3px !important;
}
