Prime spectra in modular varieties