https://preview.redd.it/1caldirokfyf1.png?width=1870&format=png&auto=webp&s=3f2923ffaaa233d5607bf456cef21a070bd144d3

I'm pretty stumped here... I can recreate the red part using box-decoration-break: clone. But I really don't know how we can detect when two lines overlap and autofill the bluepart. Does anyone has any ideas?