Gravar-mail: Evolution of symbiosis with resource allocation from fecundity to survival