The rise of the ruling reptiles and ecosystem recovery from the Permo-Triassic mass extinction