Quantifying the effectiveness of habitat management to counter local extinction: A case-study on capercaillie