Text this: Trade, ideology, and urbanization