Costly Diversity: Transformations, Networks, and Minorities in Byzantium, 976-1118