/* RacesCanada: maple-leaf red in place of RacesCanada's golden yellow.
   Linked last in <head> on Canada's pages only (Jurisdiction.theme_css; Australia never loads it).
   The yellow values themselves are swapped by Jurisdiction.colour_rewrites. This file fixes what
   a swap can't: Australia puts dark text on its yellow, and dark text on red is unreadable, so
   text on the accent turns white. Selectors carry an `html` prefix so they outrank the page rules
   (several of which are !important). */

:root {
    --rs-accent: #D52B1E;
    --rs-accent-hover: #B3241A;
    --rs-accent-dark: #B3241A;
    --rs-accent-text: #ffffff;              /* white on red: 5:1 */
    --rs-accent-ink: #F0473A;               /* red TEXT (on black 4.9:1; on white 3.7:1) */
    --rs-accent-glow: rgba(213, 43, 30, 0.28);
    --rs-accent-light: rgba(213, 43, 30, 0.10);
}

/* Text on the red accent */
html .races-teaser-eyebrow,
html .race-search-body .search-hero .hero-state-links a:hover,
html .race-search-body .sidebar-signin-btn,
html .race-search-body .sidebar-signin-btn:hover,
html .race-search-body .example-race-card .race-date.goal,
html .race-search-body .landing-hero-search button,
html .race-search-body .landing-hero-search button:hover,
html .race-search-body .btn-cta-primary:hover,
html .race-search-body .btn-dashboard-signin:hover,
html .race-search-body .guest-rail-btn:hover,
html .race-search-body .coverage-cta:hover,
html .race-search-body .v3-signup-btn,
html .race-search-body.cal-page .cal-hero .hero-state-links a[aria-current="page"],
html .race-search-body .cal-card-flag,
html .athlete-body .btn-copy:hover,
html .athlete-body .upcoming-race-card.featured .race-date-badge,
html .gs-btn.primary,
html .tp-btn:hover,
html .tp-tag,
html .tp-toc a:hover,
html .contact-body .submit-btn:hover,
html .contact-body .success-message .btn-primary:hover,
html :is(.my-calendar-body,.hub-calendar-panel) button.status-badge.status-pending:hover,
html :is(.my-calendar-body,.hub-calendar-panel) .btn-complete:hover,
html .dashboard-body .hero-avatar,
html .free-badge,
html .terms-body .nav-user-initials,
html .feedback-body .nav-user-initials,
html .privacy-body .nav-user-initials,
html :is(.results-body,.hub-results-panel) .login-tab.active,
html :is(.results-body,.hub-results-panel) .btn-edit,
html :is(.results-body,.hub-results-panel) .btn-edit:hover,
html :is(.results-body,.hub-results-panel) .pb-badge.current,
html .dashboard-toggle input[type="checkbox"]:checked + .dashboard-toggle-icon,
html .pr-sat.is-saved,
html .pr-locate:hover,
html .pr-save:hover,
html .btn-toggle-sidebar:hover,
html .btn-primary:hover,
html .hero-results-cta:active,
html .hero-cta:hover,
html .btn-view-all,
html .btn-view-all:hover,
html .btn-view-alt:hover,
html .organiser-btn-primary,
html .rd-training-btn,
html .rf-course-list li::before,
html .tw-actions .tw-done,
html .tw-start-btn,
html .rt-btn,
html .up-act--go,
html .rw-pill-btn:not(.rw-pill-btn--ghost),
html .about-cta-link,
html .org-campaign,
html .org-btn-primary,
html .error-search button,
html .error-links .btn-primary,
html .btn-save,
html .tier-pill,
html .claim-btn-primary,
html .gate button {
    color: #ffffff !important;
}
html .dashboard-body .quick-race-search { color: #ffffff; }
html .race-search-body .v3-parkrun-copy p { color: rgba(255, 255, 255, 0.9); }
html .race-search-body .v3-parkrun-form input:focus,
html .race-search-body .v3-parkrun-form button:focus-visible { outline-color: #ffffff; }

/* Small red caps over a photo don't read: the homepage eyebrow is white, the headline keeps the red */
html .race-search-body .landing-hero .hero-eyebrow { color: #ffffff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }

/* English / Français switch (site-nav.js langSwitchHtml) */
html body .nav-links .nav-lang { display: inline-flex !important; align-items: center !important; align-self: center; margin: 0 !important; padding: 4px 10px !important; border: 1px solid rgba(255, 255, 255, 0.35) !important; border-radius: 6px !important; color: #ffffff !important; font-size: 0.85rem !important; font-weight: 600 !important; line-height: 1.2 !important; text-decoration: none !important; white-space: nowrap; background: transparent; }
html body .nav-links .nav-lang:hover { border-color: #ffffff !important; background: rgba(255, 255, 255, 0.08); color: #ffffff !important; }
html body .nav-links .nav-lang::after { content: none !important; }
/* phones: the menu bar below the header has its own switch; this copy sat on the logo */
@media (max-width: 768px) { html body .nav-links .nav-right .nav-lang { display: none !important; } }
html .mobile-nav-bar .nav-lang { font-weight: 700; }
/* phones: the menu bar scrolls sideways, so the language switch leads it rather than hiding at the end */
html .mobile-nav-bar .nav-lang { order: -1; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; padding: 2px 8px; margin-right: 4px; }
