When and where soil is important to modify the carbon and water economy of leaves