@ian
I wonder if it's possible to use MapCSS to style it (which is better suited for OSM data model).
https://wiki.openstreetmap.org/wiki/MapCSS