Using flexbox and the gap property ensures that the focus ring will not be clipped, as can happen when using negative margins.