Refactoring nightmarish CSS spaghetti.