Media and digital resilience as safeguards of democracy