You just add padding to the items with borders so they visually consume the same space, then increase the width of everything except :first-child to account for the new padding/border. Easy!
That’s sarcasm, obviously. But man, I’ve spent so many hours over the years hacking little lines between HTML boxes.