/* V57: consistent home-brand navigation and accessible dark text on gold CTAs */
.header .brand,
.header .brand:visited { cursor:pointer; text-decoration:none; }
.header .brand:focus-visible { outline:2px solid #f0d18e; outline-offset:5px; border-radius:8px; }

/* Gold action surfaces: dark navy text for strong contrast on every page. */
.btn.gold,
.btn.quiz-gold,
.header .header-quiz-link,
.header .header-plan-link,
.learning-path-feature-button,
.quiz-btn:not(.secondary),
.review-btn.primary,
.terminal-btn:not(.secondary),
.tp-primary,
.tp-feature a,
.check-print,
.check-home-feature a,
button.gold,
a.gold,
.gold-button,
.cta-button,
.primary-button {
  color:#071426 !important;
  font-weight:800 !important;
  text-shadow:none !important;
}
.btn.gold *, .btn.quiz-gold *,
.header .header-quiz-link *, .header .header-plan-link *,
.learning-path-feature-button *, .quiz-btn:not(.secondary) *,
.review-btn.primary *, .terminal-btn:not(.secondary) *,
.tp-primary *, .tp-feature a *, .check-print *,
.check-home-feature a *, button.gold *, a.gold *,
.gold-button *, .cta-button *, .primary-button * {
  color:#071426 !important;
}

/* Keep hover/focus states equally readable. */
.btn.gold:hover, .btn.quiz-gold:hover,
.header .header-quiz-link:hover, .header .header-plan-link:hover,
.learning-path-feature-button:hover, .quiz-btn:not(.secondary):hover,
.review-btn.primary:hover, .terminal-btn:not(.secondary):hover,
.tp-primary:hover, .tp-feature a:hover, .check-print:hover,
.check-home-feature a:hover, button.gold:hover, a.gold:hover,
.gold-button:hover, .cta-button:hover, .primary-button:hover,
.btn.gold:focus-visible, .btn.quiz-gold:focus-visible,
.header .header-quiz-link:focus-visible, .header .header-plan-link:focus-visible,
.learning-path-feature-button:focus-visible {
  color:#050d19 !important;
}


/* V59: explicitly exclude the homepage gold CTA links from global gold-link styling. */
.courses-cta-actions a.gold-cta-link,
.courses-cta-actions a.gold-cta-link:link,
.courses-cta-actions a.gold-cta-link:visited,
.courses-cta-actions a.gold-cta-link:hover,
.courses-cta-actions a.gold-cta-link:focus,
.courses-cta-actions a.gold-cta-link:active,
.courses-cta-actions a.gold-cta-link *,
.courses-cta-actions a.gold-cta-link span {
  color: #071426 !important;
  -webkit-text-fill-color: #071426 !important;
  text-shadow: none !important;
}
.courses-cta-actions a.gold-cta-link {
  background: linear-gradient(135deg,#f3d99e,#c89a4c) !important;
}
.courses-cta-actions a.gold-cta-link:hover {
  background: linear-gradient(135deg,#f7e3b6,#d5aa60) !important;
}


/* V60 — site-wide contrast fix for every gold primary action, not only homepage CTAs.
   Keep secondary/outline controls untouched. */
:where(
  .btn.gold, .btn.quiz-gold,
  .header .header-quiz-link, .header .header-plan-link,
  .learning-path-feature-button, .home-tool-link,
  .courses-cta-actions a, .quiz-btn:not(.secondary),
  .review-btn.primary, .terminal-btn:not(.secondary),
  .tp-primary, .tp-feature a, .check-print, .check-home-feature a,
  button.gold, a.gold, .gold-button, .cta-button, .primary-button,
  button.primary, a.button, .analytics-btn
),
:where(
  .btn.gold, .btn.quiz-gold,
  .header .header-quiz-link, .header .header-plan-link,
  .learning-path-feature-button, .home-tool-link,
  .courses-cta-actions a, .quiz-btn:not(.secondary),
  .review-btn.primary, .terminal-btn:not(.secondary),
  .tp-primary, .tp-feature a, .check-print, .check-home-feature a,
  button.gold, a.gold, .gold-button, .cta-button, .primary-button,
  button.primary, a.button, .analytics-btn
):is(:link,:visited,:hover,:focus,:focus-visible,:active,:enabled) {
  color: #071426 !important;
  -webkit-text-fill-color: #071426 !important;
  text-shadow: none !important;
}
:where(
  .btn.gold, .btn.quiz-gold, .header .header-quiz-link,
  .header .header-plan-link, .learning-path-feature-button,
  .home-tool-link, .courses-cta-actions a, .quiz-btn:not(.secondary),
  .review-btn.primary, .terminal-btn:not(.secondary), .tp-primary,
  .tp-feature a, .check-print, .check-home-feature a, button.gold,
  a.gold, .gold-button, .cta-button, .primary-button, button.primary,
  a.button, .analytics-btn
) * {
  color: #071426 !important;
  -webkit-text-fill-color: #071426 !important;
  text-shadow: none !important;
}
