Various fixes related to styling (a whole bunch to embedded documents).