Evidence of climate-driven selection on both tree traits and trait plasticity across the climatic range of a riparian foundation species