Coping with deindustrialization in the global North and South