Selecting previous siblings with CSS :has()