A short tutorial on using the CSS :has() pseudo-class to style elements based on the number of direct children they contain. Shows how to target a list with at least three items using ul:has(>:nth-child(3)), and how to target a list with exactly three items by combining :nth-child(3) with :last-child. Includes a note that Firefox does not yet support :has().