Here’s a handy little tool for generating CSS with :has() selectors in order to do quantity queries.
:has()
adactio.com/links/22206