/*
 * Accessibility overrides for the Webflow theme.
 *
 * The theme file (site/scripts/p-marketing-site.shared.*.min.css) is read-only by the
 * repo's own rules, so the WCAG fixes that would otherwise belong in it live here and
 * are injected into every page after the theme link. Keep this file small; per-page
 * fixes belong in that page's own <style> block.
 */

/* Link blue was #1885f2, 3.70:1 on white. AA for normal text needs 4.5:1. */
a.blue-link,
a.blue-link:visited,
a.faq-footer-link,
a.faq-footer-link:visited,
._404-link,
.register-left-link,
.em {
  color: #0b69c6;
}

/*
 * Links sitting inside a paragraph must not be signalled by colour alone unless they
 * clear 3:1 against the surrounding text. #0b69c6 against the #1f2937 body colour is
 * 2.69:1, so underline them instead. This is the fix axe asks for by name.
 */
a.blue-link,
a.faq-footer-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/*
 * White labels on the blue buttons. The theme ships three of these and each was under
 * 4.5:1 against #fff: .w-button at #3898ec (3.06:1), and the form submit at #1885f2
 * (3.70:1). Darkening the background lifts both to 5.09:1 and 5.45:1.
 */
.w-button {
  background-color: #1f6fc4;
}

.submit-form-button-blue {
  background-color: #0b69c6;
}

.submit-form-button-blue:hover {
  background-color: #0a5cae;
}
