Linking healthcare and societal resilience during the Covid-19 pandemic