MM p294, I couldn't say for the SRD. Under 'advancing monster challenge rating'. Though they do say that they're giving guidelines rather than hard rules, and it makes little sense to say two sorcerer levels are better than getting the same casting benefits by advancing to ancient.
Class levels that increase a creature's innate casting count as associated, though.
It is more elegant that way.