Adapting forest management to climate change