the_post(); prints out style text into my HTML?

You can view the actions and filters being used in your plugins and themes. I’m assuming something is hooked into the_post action somewhere. Dumping the following globals give you a peek behind the curtain here.

global $wp_actions, $wp_filters;

Once you identify the source, you either queue up the CSS properly in the HEAD, or remove it altogether.

remove_action('the_post', 'function_name');