Rather than messing with negative margins, just make the outline inset by replacing it with inset box-shadow.