Tab Controls with CSS :has

FrontendDemo

https://codepen.io/jh3y/pen/MWxbrEp

You can create these tab controls with CSS :has() + radio buttons