Here's a little CSS-only trick to store the info of whether an element was previously focused. πŸ‘

https://patrickbrosset.com/articles/2026-03-09-using-css-animations-as-state-machines-to-remember-focus-and-hover-states-with-css-only/