Small vanilla javascript that feature detect the :focus-within pseudo selector and polyfills it with a standard css class if necessary.
Google’s Search Relations team explains how CSS affects SEO, addressing myths about class names, pseudo elements, and page performance. CSS class names have no impact on SEO and aren't read as content ...