See that green frame around the door in the first pic above, especially at the top?
Here's what it looks like when it was removed:
It's a basically a U-shaped piece of metal *designed* to
catch water, trapping it, then direct it to the frame area to essentially purposefully rot the frame.



I guess they figured the gutter with some cheap **** foam was going to keep all the water out of that sub-gutter flashing.
So after getting the trim out, I see all the rot. Back to HD I go for some PT 2x4's. Fortunately, they had some. What they didn't have was any decent Z flashing that I could install above the door to shed - instead of capturing - water. So back to Discount Metals Monday AM (they're closed Saturday) - a local metal roofing supplier.
I've got most of the 2x4's replaced now with PT. What I don't know what to do about is the horizontal 2x6's. They go all the way to the main shop 6x6's and are about 7' long. To get to them, I'd need to remove siding panels, which are about 3' wide, but the full height of the building.
Thanks for looking!