/* WCAG 2.2 AA fixes layered on top of the original theme CSS (site.css), kept separate so the
   original stays byte-identical and every accessibility change is reviewable in one place. */

/* Text only screen readers hear (the page's main heading, the copy-email announcement). */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 2.4.7 Focus Visible: the theme removes outlines; keyboard users need to see where they are. */
a:focus-visible,
button:focus-visible,
[role='button']:focus-visible {
  outline: 3px solid #45d480;
  outline-offset: 3px;
}
.fp-viewing-we-empower-leaders a:focus-visible,
.fp-viewing-we-build-fund a:focus-visible,
.fp-viewing-we-specialize a:focus-visible,
.fp-viewing-we-de-risk-accelerate a:focus-visible,
.fp-viewing-we-grow-together a:focus-visible {
  outline-color: #09514c;
}

/* 1.4.11 Non-text Contrast: the section dots were #45D480 on #D9D9D9 (1.35:1). #1E7F4C is 3.55:1. */
.fp-viewing-we-empower-leaders .bl.nav-stories a,
.fp-viewing-we-build-fund .bl.nav-stories a,
.fp-viewing-we-specialize .bl.nav-stories a,
.fp-viewing-we-de-risk-accelerate .bl.nav-stories a,
.fp-viewing-we-grow-together .bl.nav-stories a {
  border-color: #1e7f4c;
}
.fp-viewing-we-empower-leaders .bl.nav-stories li.active a,
.fp-viewing-we-build-fund .bl.nav-stories li.active a,
.fp-viewing-we-specialize .bl.nav-stories li.active a,
.fp-viewing-we-de-risk-accelerate .bl.nav-stories li.active a,
.fp-viewing-we-grow-together .bl.nav-stories li.active a {
  background-color: #1e7f4c;
}

/* 1.4.3 Contrast: the email button's hover/focus state was white on #45D480 (1.91:1). Dark green is 4.79:1. */
.l-btn:hover,
.l-btn:focus-visible {
  color: #09514c;
}

/* 2.3.3 / user preference: visitors who turned motion off see content immediately, no fades. */
@media (prefers-reduced-motion: reduce) {
  [data-aos],
  [data-aos] * {
    transition: none !important;
    animation: none !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* The animated titles hide their letters from screen readers and add the title once as
   screen-reader text; keep that text out of the theme's letter fade. */
.l-title--animate .sr-only {
  opacity: 1;
  transform: none;
}

/* 1.4.10 Reflow: on short screens (html.is-plain, set in home.js) the snap-scroll is off and the
   sections stack as a plain page. The decorative waves and icons are positioned for full-screen
   sections, so they are hidden here; every word of content stays. */
.is-plain .bl.header,
.is-plain .bl.nav-stories {
  display: none;
}
.is-plain .section--story {
  position: static;
  height: auto !important;
  overflow: visible !important;
  padding: 2rem 0 !important;
}
.is-plain .section--home,
.is-plain .section--contact {
  background-color: #09514c;
}
.is-plain .home__wave,
.is-plain .banner__wave,
.is-plain .feature__wave,
.is-plain .feature__icon {
  display: none !important;
}
.is-plain .bl.banner,
.is-plain .bl.feature,
.is-plain .bl.contact,
.is-plain .banner__wrap,
.is-plain .feature__wrap,
.is-plain .contact__wrap,
.is-plain .banner__wrap p {
  position: static !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  transform: none !important;
}
.is-plain [data-aos],
.is-plain [data-aos] * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.is-plain .bl.contact {
  background-image: none;
}
.is-plain .bl.contact::after,
.is-plain .contact__overlay {
  display: none;
}
.is-plain .feature__count {
  position: relative !important;
  display: inline-block;
  top: auto !important;
  left: auto !important;
  margin-bottom: 0.5rem;
}
