Reproductive consequences of transient pathogen exposure across host genotypes and generations