Planning Amazonian logging to maximise biodiversity and carbon retention