Hypothetical evolutionary transition between GSD and TSD systems. A, Based on the mammalian model, the bipotential gonad is initially balanced between alternative fates by mutually antagonistic male and female factors. The appearance of a segregating, dominant allele of a key gene(s) in either the male or female pathway can fix a genetic mechanism. This may occur by gene duplication and evolution of a sex chromosome (as in the case of Sry in mammals or Dmy in medaka). B, Subsequent acquisition of a temperature-sensitive mutation in a female gene (e.g., aromatase) that increases expression or activity at a high temperature, may override the male factor and shift the balance towards the female pathway. C, At intermediate temperatures, the pathways will remain balanced, so that males and females are produced stochastically at equal frequencies. D, At a low temperature, the mutated female factor will be far from its thermal optimum, activity will drop, and the balance will shift towards the male pathway. Depending on the strength of the determining factor, the system may be more or less stable to perturbation by the appearance of new mutations. Selective pressure may favor changes that maintain a balanced sex ratio.