Female longevity offset by gender gaps