/* Text, navigation and supporting links have distinct roles. */
:root {
  --site-link: #0066cc;
  --site-quiet-link: #1d1d1f;
  --site-muted-prose: #6e6e73;
  --site-nav-link: #424245;
  --site-nav-link-hover: #1d1d1f;
  --site-footer-link: rgba(0, 0, 0, .72);
  --site-secondary-link: #616169;
}
@media (prefers-color-scheme: dark) {
  :root {
    --site-link: #5cb8ff; /* Matches the dark blue accent on emdr.cc. */
    --site-quiet-link: #fff;
    --site-muted-prose: #a1a1a6;
    --site-nav-link: #e8e8ed;
    --site-nav-link-hover: #fff;
    --site-footer-link: rgba(255, 255, 255, .8);
    --site-secondary-link: #b9b9c2;
  }
}
/* Override imported colour classes and legacy dark hover colours together. */
html body a[href]:not(.btn, .button, [role="button"]) {
  color: var(--site-link) !important;
  /* Imported text-colour classes paint a second underline as a gradient. */
  background-image: none !important;
  text-decoration: none;
  text-underline-offset: .18em;
}
html body a[href]:not(.btn, .button, [role="button"]):is(:hover, :focus-visible) {
  text-decoration: underline;
}
/* Navigation stays neutral and uses brightness rather than an underline. */
html body .navbar a[href]:not(.btn, .button) {
  color: var(--site-nav-link) !important;
  text-decoration: none;
}
html body .navbar a[href]:not(.btn, .button):is(:hover, :focus-visible, :active) {
  color: var(--site-nav-link-hover) !important;
  text-decoration: none;
}
/* Footer navigation is a quiet list of links, not another call to action. */
html body :is(footer, section[class*="footer"], [role="contentinfo"]) a[href]:not(.btn, .button) {
  color: var(--site-footer-link) !important;
  text-decoration: none;
}
html body :is(footer, section[class*="footer"], [role="contentinfo"]) a[href]:not(.btn, .button):is(:hover, :focus-visible) {
  text-decoration: underline;
}
/* White/black inline links are only used against deliberately muted prose.
   Set the whole text role explicitly so legacy dark paragraph rules cannot
   turn the surrounding copy white as well. */
html body :is(.muted-prose, .aftl-description:has(a[href]), .garmin-companion),
html body .adaptive-download .download-alternatives {
  color: var(--site-muted-prose) !important;
}
html body :is(.feature-description, .aftl-description, .muted-prose, .garmin-companion) a[href]:not(.btn),
html body .adaptive-download a.download-alternative {
  color: var(--site-quiet-link) !important;
  text-decoration: none;
}
/* Keep the platform overview quiet in both appearances. */
html body.emdr-refined #header10-4t > .container-fluid > .row > div > p a[href] {
  color: var(--site-secondary-link) !important;
}
/* Small references share the prose-link palette. */
html body #pricing2-4w a.pricing-note-link,
html body .contact-security a[href] {
  color: var(--site-link) !important;
  text-decoration: none;
}
/* Button silhouettes already identify the action, including keyboard focus. */
html body a:is(.btn, .button, [role="button"]):is(:link, :visited, :hover, :focus-visible, :active) {
  text-decoration: none !important;
}
