Use the focus-within pseudo-class to conditionally assign styling to a parent element when its child receives focus.