Juvenile-Adult Habitat Shift in Permian Fossil Reptiles and Amphibians