Ecological practices and social mechanisms for building resilience and sustainability