This switch uses the now widely accepted :has() selector and zero JavaScript.
Free content
Pro Content