Fixes #11899: Ensure proper margins and .small/small usage for heading tags (e.g., .h1-.h6)