I have debugged countless CSS specificity issues over the years. Here is the mental model I use to solve them without resorting to!important.