Tweedbank station to Edinburgh mostly off-road route

Here's a good route I rode. Took an early train out to Tweedbank on the borders railway. Then rode back.
Looking at a map, there's plenty of alternative tracks and trails to explore following roughly the same route. I followed the Southern Upland Way for quite a bit of this. Then joined the Cross Borders Drove Road following parts of the excellent Capital Trail bike-packing route.
Was about 125km of riding with 3000m of climbing.