Parental care and the allocation of resources across generations.