A duplicated gene evolved into a switch that determines sex in frogs, revealing how evolution can safely reshape critical ...