The :has() selector is a game changer
:has() is the parent selector CSS never had. You can now style a parent based on its children: article:has(img) targets articles that contain images. The days of adding modifier classes just for styling context are over.