Effects of temperature and rainfall variation on population structure and sexual dimorphism across the geographical range of a dioecious species