only include base tag if base var is set
move css into a styles block