Hey @ferret141 - the CSS that @WidleStudioLLP shared above looks like it should do what you need it to! Are you looking for anything else, in particular?
Ah I missed your response, @ferret141! Those styling rules are the right ones for your use case, but you might need to add !important to each line in order to make sure they're enforced.
The other thing that not a lot of people realize is that you can use double curlies when writing custom CSS in order to conditionally apply those rules. I hope that helps!