Democratic resilience