fix handling of POD error display

Classes on <p> elements are now being stripped, so we can't use them to
select the heading of the error block.
small refactor of pod error css to improve display