/* Text uses existing brand tokens; the palette itself remains unchanged. */
.mobile-bottom-nav a[hidden] { display: none !important; }
:root { --a11y-accent-text: var(--ui-focus, #53b1ff); }
html[data-theme="light"] { --a11y-accent-text: var(--ui-primary-active, #004d8d); }
body :is(.eyebrow, .stats-kicker, .pitch-kicker, .game-kicker,
  .account-modal__eyebrow, .account-modal__section-label, .account-modal__email-badge,
  .directory-kicker, .ux-ranking-link, .management-steps a,
  .leader-list li > strong, .sponsor-footer-link, .contact-footer-link) {
  color: var(--a11y-accent-text) !important;
}
body :is([data-profile-english], .profile-facts dt, .player-facts dt,
  [data-bblog-footer], [data-footer-year], .leader-control-group > p,
  .leader-player small, [data-ranking-count], .ranking-table th,
  .pitch-scope-label, [data-scope-label], .pitch-chart-note,
  [data-game-results-scope], .sort-select, .leader-name small, .rank,
  .account-modal__section-meta, .account-modal__email-note) {
  color: var(--ui-text-secondary, #526171) !important;
}
body .mobile-bottom-nav a { color: var(--ui-text-secondary, #526171); }
body .mobile-bottom-nav a:is(.is-active, .active, [aria-current="page"]) {
  color: var(--a11y-accent-text) !important;
}
html[data-theme="light"] body :is(.player-tag.status, .ui-badge, .account-modal__secure-label) {
  color: var(--ui-text) !important;
}
body :is(.account-provider-mark--line, .line > .provider-mark) {
  color: #111820 !important;
}
body :is(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--a11y-accent-text);
  outline-offset: 3px;
}
/* Standalone landing/legal pages have fixed surfaces rather than theme tokens. */
body:has(main.entry) :is([data-bblog-footer], [data-footer-year], .sponsor-footer-link) { color: #000 !important; }
body:has(main.entry) .contact-footer-link {
  color: #004d8d !important;
}
body:has(main.wrap > .card) :is(.sponsor-footer-link, .contact-footer-link) { color: #004d8d !important; }
/* Photo backgrounds need a stable reading surface in both animation themes. */
body:has(main.entry) .hero-copy {
  background: rgba(255, 255, 255, .94);
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
}
body:has(main.entry) :is(.hero-copy .eyebrow, .hero-copy .slogan, .entry-note, .entry-note strong, .age-rail .age) {
  color: #004d8d !important;
}
body:has(main.entry) .age-rail .age { opacity: 1; }
body:has(main.entry) .auth-state { color: #004d8d; background: rgba(255,255,255,.94); border-radius: 8px; padding: 6px; }
body [data-auth-email-register] { background: var(--ui-primary, #0070d1) !important; }
body :is(.stats-hero .data-status, .pitch-hero .pitch-status, .pitch-player-id-chip,
  .directory-hero > div > p:not(.directory-kicker)) { color: var(--ui-text-secondary, #526171) !important; }
