Highlighted text not visible in headlines

When highlighting text in an article headline, there is no visual indicator shown. The text is highlighted though, and can be copy-pasted etc. (which I only found out thanks to this ancient post from 2013, when I guess there was the same issue for article body text too):

Screencast_20260106_221701

The cause is this CSS, which overrides the ::selection psuedo-element: