Hmm, that’s an unusual problem!
I noticed that depending how you get to the page, the classes assigned to <body> are in a different order:
The "
^" symbol in “body[class^="category-contests"]” makes it search for a match only at the start of the list of classes, so my guess is that it was only working when ‘category-contest’ was the first class on the list.
There’s another symbol “*” that will search for a match anywhere in the class list. You could try changing the first part to this:
body[class*="category-contests"]
↑ (* instead of ^)
Or a simpler way to write this would be:
body.category-contests
Let me know if that helps!
