Variable effects on growth and defense traits for plant ecotypic differentiation and phenotypic plasticity along elevation gradients