Reforestation can compensate negative effects of climate change on amphibians