The Potts-q random matrix model: loop equations, critical exponents, and rational case