Sexual conflict drives micro- and macroevolution of sexual dimorphism in immunity

Background Sexual dimorphism in immunity is believed to reflect sex differences in reproductive strategies and trade-offs between competing life history demands. Sexual selection can have major effects on mating rates and sex-specific costs of mating and may thereby influence sex differences in immunity as well as associated host–pathogen dynamics. Yet, experimental evidence linking the mating system to evolved sexual dimorphism in immunity are scarce and the direct effects of mating rate on immunity are not well established. Here, we use transcriptomic analyses, experimental evolution and phylogenetic comparative methods to study the association between the mating system and sexual dimorphism in immunity in seed beetles, where mating causes internal injuries in females. Results We demonstrate that female phenoloxidase (PO) activity, involved in wound healing and defence against parasitic infections, is elevated relative to males. This difference is accompanied by concomitant sex differences in the expression of genes in the prophenoloxidase activating cascade. We document substantial phenotypic plasticity in female PO activity in response to mating and show that experimental evolution under enforced monogamy (resulting in low remating rates and reduced sexual conflict relative to natural polygamy) rapidly decreases female (but not male) PO activity. Moreover, monogamous females had evolved increased tolerance to bacterial infection unrelated to mating, implying that female responses to costly mating may trade off with other aspects of immune defence, an hypothesis which broadly accords with the documented sex differences in gene expression. Finally, female (but not male) PO activity shows correlated evolution with the perceived harmfulness of male genitalia across 12 species of seed beetles, suggesting that sexual conflict has a significant influence on sexual dimorphisms in immunity in this group of insects. Conclusions Our study provides insights into the links between sexual conflict and sexual dimorphism in immunity and suggests that selection pressures moulded by mating interactions can lead to a sex-specific mosaic of immune responses with important implications for host–pathogen dynamics in sexually reproducing organisms. Supplementary Information The online version contains supplementary material available at 10.1186/s12915-021-01049-6.

Investment in immune defence is costly. These costs have most often been observed as reductions in fecundity, effectively translating into reproduction-survival trade-offs in the presence of pathogens [9,10,12,22,[30][31][32][33][34]. In polygamous species, where sexual selection on males is intense, females are often predicted to gain more than males from investing in survival and longevity at the cost of current reproduction and mating effort [3,9,35] and are therefore also predicted to invest more in immunity than males (but see: [2,10,24,[35][36][37]). Sexual selection may also have pronounced direct effects on optimal investment in immunity, as it may dictate the economics of reproduction [23,27,38,39] and lead to elevated mating rates [40], which in turn may increase disease transmission [16,24,25,28]. Indeed, it has been suggested that sexual dimorphism in immunity should increase with sex differences in optimal mating rates and the strength of sexual selection [5,13,21,23,27,41,42].
The effects of sexual selection on sex differences in immune investment may be magnified in systems where mating is harmful for females, through costs such as the transfer of pathogens during mating, transfer of immunosuppressive seminal fluid substances, or direct physical injury [23,28,[43][44][45]. Such male-imposed mating costs are believed to be results of sexual conflict driven by the different evolutionary interests of the sexes [6][7][8]46], in which male adaptations evolve to increase reproductive success in competition with other males despite impairing the health of their female mating partners. Females, in turn, evolve counter-adaptations to alleviate the harm inflicted by males resulting in a coevolutionary arms race between the sexes [23,43,46,47]. Female immune responses may represent one type of such counter-adaptation [23,27,48,49]. This suggests that infections or harm on females, induced by sexually selected male mating strategies, may be a significant selection pressure on female immunity in polyandrous taxa [21,24,27,41,50]. Hence, the evolution of sexual dimorphism in immunity may in part be a result of maleimposed costs of mating in females.
Yet, whether sexual conflict, or just mating per se, affects tissue-specific and general immunity in the sexes is not well understood [5,22,23,44,51]. It has, for example, been suggested that tissue-specific (i.e. in the reproductive tract) immune responses upon mating can lead to allocation trade-offs with systemic immunity [44,52], but few studies have provided direct experimental evidence for a causal link between the mating system and the evolution of sex-specific immunity trade-offs [2,37,49,50,53]. To fill this empirical void, we assessed how variation in the intensity of sexual conflict and mating rates in the seed beetle Callosobruchus maculatus affects (i) the evolution of male and female phenoloxidase (from hereon: PO) activity, a major component of invertebrate immunity involved in wound healing and encapsulation of pathogens [54,55], and (ii) associated immunopathological consequences of bacterial infections unrelated to mating.
Sexual selection is intense in C. maculatus, including both pre-and post-copulatory processes [56][57][58][59][60][61], leading to sexual conflict over optimal mating rate and to male traits that cause harm in females during mating [59,60,62,63]. The male genitalia carry spines and males with longer spines have greater fertilization success but the spines cause internal injuries in females during mating, leaving females with melanized scars in the reproductive tract as a result of the wound-healing process [59,60,62]. Injurious copulations are widespread in insects and may serve several functions, with the ultimate aim to increase male competitive fertilization success [64,65]. This may select for increased immune defence locally in the female reproductive tract to enable efficient wound healing and limit female susceptibility to sexually transmitted pathogens [66]. Here, we show that PO activity in C. maculatus females is high (see also: [48]) and responds dynamically to mating, while it is very low in males. These sex differences are also mirrored in the expression of several key genes regulating PO activity and related immune reactions. Experimental removal of sexual selection and conflict led to rapid laboratory evolution of decreased female (but not male) investment in PO activity. These changes were accompanied by the evolution of increased female tolerance to bacterial infection unrelated to mating, suggesting a trade-off between female responses to harmful mating and tolerance to other infections. The PO response was paralleled at a macroevolutionary scale, signified by correlated evolution between male genital morphology and sexual dimorphism in PO activity across 12 species of seed beetles.

Results
Mating status and sex-biased gene expression in the prophenoloxidase-activating cascade The prophenoloxidase (from hereon: proPO) activating cascade leads to the production of active PO, which serves as an important defence in invertebrates against pathogenic bacteria, fungi and viruses [54,55,67,68]. Additionally, the proPO cascade has been implicated in cuticle tanning and other developmental processes, as well as reproduction (reviewed in [54,55,68]). PO aids in wound healing and encapsulation of parasitic infections, and killing of pathogens by generation of toxic secondary metabolites, such as reactive oxygen species [54,55,[68][69][70][71][72][73]. However, the production of PO is strictly regulated [74,75] as it is both energetically costly and the generation of toxic secondary metabolites can cause self-harm via immunopathological responses [68,73,76,77], predicting that investment in PO activity could incur costs to other fitness-related traits [22,55,68,73]. In Fig. 1a, we delineate the general hypothesis for relationships between key components of the proPO cascade based on functional annotations in insects and other invertebrates (reviewed in [54,55,67,68,78]). To gain insights into how sexual selection and conflict may Fig. 1 Sex-biased gene expression in the proPO signalling cascade. In a, schematic representation of key proteins in the proPO activating cascade, based on previous studies of insects and other invertebrates (reviewed in [54,55,67,73,78]). In b, sex-bias and effects of mating status on gene expression in the abdomen for C. maculatus orthologs from published data [79] mapped to the sequences of the functionally annotated proteins. Full results in Additional file 1: Table S1. Spätzle processing enzyme (SPE: pink) initiates cleavage of proPO (yellow) into active PO, which ultimately leads to wound healing as well as encapsulation and killing of foreign pathogens. However, SPE also regulates the production of Spätzle protein (SPZ) from proSPZ (blue), which ultimately leads to increased production of antimicrobial peptides (AMPs) via the TOLL pathway, which offers inducible immunity against pathogens, thus setting the stage for an allocation trade-off between PO activity and AMP production. Overactivation of the proPO cascade has toxic side-effects via the production of secondary metabolites, suggesting that overproduction of SPE may come at a cost to overall health. Here, production of serine protease inhibitors (serpins: grey) in the TOLL pathway exerts negative feedback and control over the cascade. b C. maculatus females show higher expression of SPE (pink) and proPO (yellow) as virgins. Males show higher expression of proSPZ (blue) and serpins (grey). Shown are individual samples and means ± 1 SD. These patterns in gene expression suggest a mechanistic basis for sex-specific immunity trade-offs between different components in the proPO activating cascade, where females are predicted to invest more in PO activity (wound healing and potentially encapsulation of pathogens transferred at mating) in their reproductive tract in response to mating, at the potential cost of reduced inducible immunity via AMP production and/or toxic side-effects of overactivation of the proPO cascade affect investment in PO and other correlated immunity traits in C. maculatus, we explored sex-biased gene expression of five orthologs mapping to sequences of proteins functionally annotated for these key components (Fig. 1b, Additional file 1: Table S1). Spätzle processing enzyme (SPE) is involved in the processes that cleave proPO into active PO. We found that the expression of the C. maculatus gene orthologs of both SPE and proPO are significantly female-biased in virgin adults. Mating increased transcription of proPO in males leading to similar expression levels in the sexes, whereas expression of SPE tends to increase in both sexes post mating and remains female-biased (Fig. 1b). These results suggest that females invest heavily in PO activity via SPE and proPO. SPE also initiates the modification of spätzle (SPZ) and downstream TOLL-regulated antimicrobial peptides (AMPs), which offer inducible immunity to pathogens. This may thus set the stage for a trade-off between PO (encapsulation and wound healing) and SPZ (AMP production) (e.g. [80,81]) (Fig. 1a). Overactivation of the proPO cascade may also lead to the production of toxic secondary metabolites [68,73], suggesting that excessive signalling via SPE to produce high levels of both SPZ and PO may come at a cost to overall health [76,77]. Interestingly, production of serine protease inhibitors (serpins) via the Toll pathway exerts negative feedback and control over the proPO cascade [82], and orthologs of both SPZ and the two putative serpins that we identified in C. maculatus had strong male-biased expression (Fig. 1b). These patterns in gene expression thus suggest a putative functional basis for sex-specific immunity via the proPO activating cascade, where we hypothesized that females (relative to males) should invest more in PO activity in their reproductive tract in response to harmful mating and the need for wound healing, but that this investment might come at the potential cost of reduced AMP production and/or toxic side-effects of overactivation of the proPO cascade.

Sex-specific regulation of phenoloxidase activity
We measured PO activity in homogenized whole-body samples of male and female larvae, pupae and adults, using standard protocols finetuned to ensure zero-order kinetics (Additional file 2: Figure S1, Table S1). The three life stages showed significant differences in masscorrected PO activity averaged across the sexes (F 2,33 = 17.7, p < 0.001, Fig. 2a). Some larvae showed detectable levels of PO activity. Since we could not determine the sex of the larvae, sex differences in the larval stage can neither be confirmed nor rejected. Neither male nor female pupae showed measurable levels of PO activity, whereupon there was a drastic and female-limited upregulation in the virgin adults. Strikingly, virgin males did not show any PO activity, which was also the case for mated males (see further below), despite clear expression of the proPO gene in males, especially following mating (Fig. 1b). It seems that proPO is not converted to PO in males to the same extent that it is in females, and other proteins such as proPO activating factors (PPAFs), for which we could not confidently identify gene transcripts, might be involved in regulating sex differences in how proPO is converted into active PO. The observed effect size of sex on PO activity in virgin adults was, Hedges' g = 2.08, which is high relative to what is typical Fig. 2 Sex-specific regulation of phenoloxidase levels. a There were significant differences in PO activity throughout development, with levels near zero detected in male (blue) and female (red) pupae and virgin adult males, but detectable levels in (unsexed = black) larvae and high levels in virgin adult females. b PO activity measured on day 3 in females mated only on day 1 (100), days 1 and 2 (110), days 1 and 3 (101), or on all days (111) (open symbols). A second experiment measured PO activity for a random set of females assigned to treatments 100 and 001 (mated only on day three) (filled symbols). Female PO activity is reduced after mating but is then quickly restored (compare also to virgin females (i.e. 000 treatment) in a. Shown are means ± 1 SE and individual observations. PO activity was corrected for body mass by including mass as a covariate in all analyses but is here displayed as raw data since the mean amount of tissue in samples was similar for all groups in insects (mean Hedges' g = 0.55; see (2)) and for animals in general (mean Hedges' g = 0.39; see (2)).
To further understand the function of the female bias in adults, we explored how female PO activity responds to mating. We mated females either only on day 1 of adult life (treatment 100), on days 1 and 2 (110), on days 1 and 3 (101), or on all days (111) and measured levels of PO activity subsequently on the third day (2 h post mating in 101 and 111 females; ca. 24 and 48 h post mating in 110 and 100 females, respectively). The differences among the four treatments were substantial (F 3,52 = 18.7, p < 0.001, Additional file 2: Table S2). The PO activity was high in females when some time had elapsed between mating and PO measurement (i.e. 100 and 110 females), while the levels were near zero when PO activity was measured directly after mating (i.e. 101 and 111 females) (Fig. 2b). The treatment groups described above represent non-random samples of females, as not all females can be made to remate on a given day. We therefore also conducted a second experiment with random samples of 100 and 001 females. This confirmed that the decrease in PO seen in the first experiment was neither a simple function of female age or number of matings, but mainly determined by the time since mating; the two treatments differed significantly (Mann-Whitney U test: W = 15, p < 0.001) with 001 females having PO activity close to zero similar to 101 and 111 females in the first experiment, whereas 100 females had high PO activity similar to virgins, 100 and 110 females of the first experiment (Fig. 2). Hence, female PO activity decreases after mating but can be rapidly recovered to initial levels post mating. These results accord with the observed female upregulation of SPE in response to mating and the unconditionally high expression of proPO in the female abdomen ( Fig. 1b, Additional file 1: Table S1).
Using a subset of 25 females from the same population and same generation as the first experiment, we performed a subsequent analysis of PO activity in oviposited eggs. This analysis showed that decreases in female PO activity following mating is not due to PO investment in offspring, as all five samples of pooled eggs showed very low (undetectable) levels of PO activity, despite each sample representing about half of the lifetime egg production of a single female. We found no evidence of a reproduction-immunity trade-off as there was no relationship between the number of eggs laid by the females over the 2 days of the first experiment and their subsequent measure of PO activity (Additional file 2: Table  S2). Although immunity-reproduction trade-offs are readily observed in insects [9,12,13,22], PO investment does not always correlate negatively with fecundity (e.g. [83,84]). Indeed, variation in overall phenotypic and genetic condition [85,86], as well as the amount of male harm inflicted on females [87], could have masked a putative trade-off. Alternatively, trade-offs with PO investment could materialize for other life-history traits [9,30,88], and/or other components of immunity [22,55] (see: Fig. 1a and further below).

Experimental evolution of phenoloxidase activity under different mating systems
To directly test the hypothesis that sexual selection and conflict over mating is causing the observed sexual dimorphism in immunity in C. maculatus, we compared the levels of PO activity in males and females from replicate experimental evolution lines maintained for 27 generations under one of three alternative mating regimes; natural polygamy (natural selection and sexual selection-multiple mating); enforced monogamy (natural selection but excluding sexual selection-single mating); and male-limited selection (applying sexual selection but relaxing natural selection-multiple mating but female coevolution to reduce male harm prevented). The lines are further described in the "Methods" section and in [63,89,90]. We predicted that females from polygamous lines that had evolved under frequent multiple mating would invest more in PO activity than females from monogamous lines, while the male-limited lines reveal the extent to which female PO activity may change in the polygamous mating system via genetic correlation when selection acts mainly via males. We also tested whether the direct effect of mating and reproduction on PO activity had evolved under the different mating systems by for all lines comparing PO activity of virgin and socially naïve individuals to that of beetles allowed to mate and reproduce for 48 h in groups of 5 males and 5 females prior to the PO measurements.
We analysed the effects of experimental evolution regime crossed by mating treatment in Bayesian mixed effect models using the MCMCglmm package [91] for R [92]. Experimental evolution line replicates, crossed with mating treatment, were included as random effects (priors and model specification in Additional file 2: Tables S3a-c). The mating treatment decreased body mass relative to the virgin treatment, revealing a sizeable investment in reproduction by both sexes (Additional file 2: Table S3a). While males did show an upregulation of proPO gene expression in response to mating (Fig. 1b), they did not have any detectable levels of PO activity (n = 354, Additional file 2: Table S3b), confirming that PO investment is strongly female-biased in the adult stage in C. maculatus (63). In females (N = 358 assays), the mating treatment significantly decreased PO activity (ΔPO = − 0.029 (− 0.022; − 0.037), P MCMC < 0.001) but this effect was similar in the three selection regimes (all pairwise interactions P MCMC > 0.6) (Fig. 3). Importantly, evolution without sexual conflict under the monogamy regime had led to a general decrease in female PO activity Microevolutionary change in PO activity during experimental evolution. PO activity measured from whole-body samples of virgin (a) and mated (b) females from polygamous (green) monogamous (orange) and male-limited (blue) evolution lines. The mating treatment significantly reduced female PO activity and male-limited and polygamous females had higher PO activity than monogamous females. Polygamous and monogamous females also differed significantly in the relationship between body mass and PO activity, suggesting that different allocation strategies evolved under the alternative mating regimes. Given are regression slopes, shaded 95% confidence limits, and individual observations. Males from the regimes did not express detectable levels of PO activity and showed no significant differences among regimes and mating treatments (Supplementary Table 1c). In the lower panels, sex differences in size-corrected PO activity is illustrated in each regime for (c) virgin and (d) reproducing beetles (means ± 1 SE and individual data points) relative to the polygamy regime (ΔPO = − 0.010 (− 0.002; − 0.018), P MCMC = 0.030), confirming a key prediction. The monogamy regime also showed lower levels of PO activity compared to the male-limited regime, where females had been kept under relaxed selection (ΔPO = − 0.011 (-0.004; − 0.020), P MCMC = 0.012). Accordingly, the polygamy and male-limited regime had similar levels of PO activity (P MCMC > 0.8, Fig. 3). Thus, as the expected number of matings decreased to a single mating in the monogamy regime, the optimal female strategy was to decrease PO activity, in support of the hypothesis that PO investment is costly and likely trades off against other female fitness components [22,50,55,68,93]. If immune defence is costly, a corollary from allocation theory is that polygamous females should invest in PO in relation to their total energy reserves and expected number of partners. In contrast, among monogamous females we expect the evolution of decreased condition dependence due to their reduced need for PO activity. This is also what we find; there was a positive relationship between female body mass and PO activity in polygamous lines (slope = 0.011 (0.005; 0.016), P MCMC < 0.001), whereas this relationship was absent in monogamous lines (P MCMC = 0.48), and this regime difference in the condition dependence of PO investment was significant (Δslope = 0.007 (0.001; 0.013), P MCMC = 0.026, Fig. 3).
Again, however, a fecundity cost of high PO activity was not apparent when comparing regimes; offspring production in the reproducing treatment was higher for females from the polygamy regime (showing higher levels of PO activity) than for monogamous females (with lower levels of PO activity) (Additional file 2: Table  S3c).

Experimental evolution of the response to bacterial infection
To explore other possible immunological consequences of mating system and sexual conflict, which could be driven by trade-offs between investment in PO and other components of immunity (Fig. 1a), we measured survival in the monogamy and polygamy lines when exposed to bacterial infection in abdominal tissue adjacent to the reproductive tract. Females (total n = 1060, 24-48 h past adult eclosion) were either virgin or mated prior to being infected with one of two doses (OD1 or OD2) of the entomopathogenic gram-positive bacteria, Bacillus thuringiensis, or a sham control (pricking with a sterilized needle dipped in PBS buffer). We analysed survival in mixed effects Cox proportional hazard models using the coxme package [94] for R, with regime and mating treatment as fixed effects and replicate lines as random effects. We also confirmed results by using the MCMCglmm package [91] to apply Bayesian mixed effect models on a binomial response variable (dead/alive on day 5 post infection), which allowed us to add fully crossed random effects (line by treatment) in the analysis (full statistical summaries in Additional file 2: Tables S4a-f).
Females from the polygamy regime showed lower survival under bacterial infection compared to females from the monogamous regime (Χ 2 2 = 13.7, P = 0.001, Fig. 4ad). This result, albeit correlative, is in line with the hypothesis that the evolution of female immune responses to expected harmful mating may trade-off against general susceptibility to infection. Mating by itself led to an increase in mortality ( Χ 2 1 = 63.6, P < 0.001). However, there was no significant effect on susceptibility to infection of either mating status (Χ 2 2 = 1.2, P = 0.56) or the interaction between evolution regime and mating status (Χ 2 2 = 0.14, P = 0.93, Fig. 4a-d). Although somewhat surprising, this result is not inconsistent with a trade-off between female PO investment in the reproductive tract and vulnerability to systemic infection caused by other pathogens, as also virgin females display high PO activity and high expression of genes in the proPO cascade prior to being mated (Figs. 1b and 2). Virgin males from monogamous and polygamous regimes (which do not seem to invest in PO at all) did not show any strong differences in their response to bacterial infection (assessed in a separate experiment ; Χ 2 2 = 0.94, P = 0.63, Fig. 4e, f). However, although we analysed the same number of evolution lines in the male experiment, the total number of individuals analysed was smaller (n = 270 for virgin males compared to n = 493 for virgin females), limiting direct comparisons between the male and female assays. Nevertheless, the male experiment did reveal an overall effect of the bacterial injection ( Χ 2 2 = 7.77, P = 0.021) and significantly greater survival of polygamous males ( Χ 2 2 = 6.63, P = 0.010) (Additional file 2: Table S4c).
To gauge the generality of these results, and to further investigate whether the higher survival of monogamous females under bacterial infection was due to more efficient clearing of the bacterial infection (greater resistance), or because they were better at withstanding it (greater tolerance) [95], we infected once-mated polygamous and monogamous females with the gramnegative bacteria Pseudomonas entomophila using the same protocol as described above. The P. entomophila strain used is resistant to the antibiotic ampicillin. This allowed us to screen a subset of females collected 12 h post start of infection exclusively for P. entomophila by culturing female cell tissue on Luria agar plates with ampicillin. Again, females from the polygamy regime showed higher susceptibility to bacterial infection (Χ 2 2 = 16.6, P < 0.001, total n = 288, Fig. 4g,h, Additional file 2: Tables S4d-e). However, there was no significant  Table S4f), suggesting no large differences in the ability of females to clear the bacterial infection. This last result does not support an allocation trade-off between the production of PO and AMPs and may be more consistent with increased mortality due to toxic secondary metabolites resulting from overexpression of the proPO activating cascade by polygamous females [68,[75][76][77] (Fig. 1a). However, more work is needed to pinpoint the exact mechanism underlying the differential mortality among monogamous and polygamous females. More generally, our results are consistent with the hypothesis that sexual conflict and harmful mating can lead to increased vulnerability to infection in females as a result of sex-specific trade-offs between different components of immunity [23,44,52].

Correlated evolution between female PO activity and male genital morphology
We explored whether macroevolutionary transitions in sexual dimorphism in immunity could be driven by the evolution of mating interactions and the harmful morphology of male genitalia in this group of insects (23). We measured PO activity in virgin males and females of 12 species of seed beetles. There was pronounced sexual dimorphism and female-limited expression in many species (Additional file 2: Figure S5a). To quantify harmfulness of the male genitalia in each species, we asked two expert and ten naïve biologists to rate pictures of male genitalia for the perceived harm they cause in the female reproductive tract (Additional file 2: Figure  S5b). Importantly, earlier work has shown that male harm assayed in this manner correlates positively with the amount of scarring that occurs in the female copulatory tract after mating (23). Species differences explained 61% of the total variation in rater scores and scores were highly correlated between experienced and naïve raters (r = 0.83), suggesting that raters generally agreed on the classification of male harm. Female and male PO activity, as well as male harm, showed moderate phylogenetic signals (Blomberg's K = 0.68, 0.52 and 0.54, respectively [96]) (Fig. 5a). Hence, we applied a phylogenetic generalized least squares regression (PGLS) based on species means using the ape package [97] for R, accounting for phylogenetic dependencies using Ohrstein-Uhlenbeck estimation and an extant seed beetle phylogeny [98,99]. There was significant positive covariance between male harm and female PO activity (α = 6.70, standardized slope = 0.83, df 12,10 , P < 0.001, Fig.  5b, Additional file 2: Table S5a). Moreover, the covariance between male harm and male PO activity was not significant and opposite in sign (α = 2.92, standardized slope = − 0.57, df 12,10 , P = 0.08, Fig. 5c, Additional file 2: Table S5b). These analyses, together with our experimental findings, implicate sexual conflict as a driver of macroevolutionary divergence in sexual dimorphism in immunity (Fig. 5a-c).

Discussion
Sexual selection can result in increased male harm to females during mating (22,29,32), either through direct injury or infection with pathogens, and this should in theory favour increased female investment in immunity when female lifetime reproductive success is elevated by increased longevity [5, 22-24, 27, 35, 39]. Here, we provide a suite of experimental and comparative data collectively showing that sex differences in immunity can be modulated by sexual conflict in a species where costs of mating are conspicuous. This conclusion is based upon observations of (1) sex-biased expression of genes in the proPO activating cascade (Fig. 1), (2) a female bias in PO activity which is substantially higher than what is typical in insects, (3) female-limited phenotypic plasticity in PO activity in response to mating (Fig. 2), (4) femalelimited microevolutionary changes in immunity traits in response to experimental manipulation of the mating system and hence sexual conflict (Figs. 3 and 4), and (5) correlated evolution between male genital morphology and female PO activity across species (Fig. 5). While previous studies have quantified female immune responses post mating [5,22,23,45,50,53,100,101], it often remains unclear whether male harm via genitalia or ejaculatory compounds (i.e. sexual antagonism) drive such responses, or whether they represent independent female optimization of the trade-off between current and future reproduction [5,22,23,27,49,102]. Here, we directly manipulated the level of sexual selection and conflict, which is relatively well understood in C. maculatus (e.g. [47,48,59,62,[103][104][105][106]), and found a clear female-limited PO response, while no correlation between female reproductive investment and PO activity was detected. Hence, our data point to male harm inflicted during mating as the driver of female PO investment. In this system, the inflicted harm by a male on his female mating partner is positively correlated to his success in sperm competition (29), presumably because seminal fluid substances (66) that benefit males in sperm competition (62) pass more rapidly into the female body if the copulatory duct is ruptured (32). However, these wounds may leave females at a risk of systemic infection with pathogens (36), suggesting a need for healing these injuries via a PO-mediated, potentially costly [68,73,76,77], reaction.
We hypothesized that these effects could have consequences for female susceptibility to infections unrelated to mating via trade-offs between PO activity and other components of immunity in the proPO activating cascade, such as the production of AMPs (Fig. 1a). This prediction was offered correlative support by the Fig. 5 Phylogenetic covariance between harmfulness of male genital morphology and PO activity in virgin male and female seed beetles. a Female PO activity and the harmfulness of male genitalia mapped on the phylogeny of the 12 species used. Scores are given by colour from blue (high harm/PO) to red (low harm/PO). Lower panels show correlations across species between male harmfulness and male (blue open) and female (red closed) PO activity, shown as b raw tip data and c phylogenetic independent contrasts (PICs). Standard errors around each species' mean were typically of the magnitude~0.02 for male and female PO activity, and~0.6 for male genital morphology. The y-axes of b and c are scaled to have the same range. Species codes represent robi = Amblycerus robinae; subf = Zabrotes subfasciatus; obte = Acanthoscelides obtectus; atro = Bruchidius atrolineatus; dich = Bruchidius dichrostachydis; tonk = Megabruchidius tonkineus; dors = Megabruchidius dorsalis; phas = Callosobruchus phaseoli; chin = Callosobruchus chinensis; subi = Callosobruchus subinnotatus; macu = Callosobruchus maculatus; anal = Callosobruchus analis observation of increased susceptibility to bacterial infection in females from the polygamous mating regime (Fig. 4). However, our results do not allow us to confidently distinguish between several, mutually inclusive, hypotheses regarding the exact mechanistic basis for the increased mortality of polygamous females. We did not find a difference in bacterial load between polygamous and monogamous females infected with the gramnegative bacteria P. entomophila, suggesting no large differences in the ability to clear infection and therefore also no large differences in the production of AMPs used to fight bacterial infection, a result that does not support a trade-off between the production of AMPs and PO in polygamous females. The result from this experiment is hardly conclusive, however. Another possibility is that the need for high PO activity in the reproductive tract of polygamous females led to a harmful "overactivation" of the proPO activating cascade upon bacterial infection and the simultaneous need for AMP production (e.g. [107]). Indeed, while such overactivation could mask allocation trade-offs by attending the dual need of producing PO and AMPs, it may have caused an inflammatory response with increased mortality of polygamous females as a result. The proPO activating cascade can have detrimental immunopathological consequences via the production of toxic secondary metabolites and needs to be strictly regulated [76], and severe bacterial infection can kill the organism also via side-effects of excessive melanization [68,73]. Future experiments are needed to pinpoint the exact mechanistic basis underlying our results, preferably including detailed measures of tissue-specific immunity responses as we here measured whole-body samples.
Interestingly, polygamous females suffered increased mortality when infected with gram-positive and gramnegative bacteria, with research on Drosophila suggesting that only gram-positive bacteria might activate immune responses via TOLL while gram-negative bacteria are thought to elicit immune responses mainly via the Imd pathway [78], which does not have a clear connection to the proPO activating cascade. This result might thus speak against immunity trade-offs between components in the proPO activation cascade as a general mechanism explaining the observed differential mortality between polygamous and monogamous females. However, several studies on invertebrates have now demonstrated cross-talk between the TOLL and Imd pathway ( [55,78,[108][109][110]), and that the proPO cascade can be readily activated by gram-negative bacteria [74,110,111]. Indeed, TOLL has even been directly implicated in regulating sexual dimorphism in immunity to gramnegative bacteria in Drosophila melanogaster [112], suggesting that the consistent difference in mortality of monogamous and polygamous females infected with the gram-positive B. thuringiensis and gram-negative P. entomophila may yet be rooted in differential usage of the proPO activating cascade.
Male reproductive success in polyandrous mating systems is typically maximized by a shift towards current reproduction in the female mating partner, as this would increase the likelihood of the male siring a larger fraction of the offspring produced by the female [5,16,23,24,44]. These ideas predict that males should evolve to manipulate females to invest in current reproduction at the expense of reduced immunity and longevity [22,23]. In line with these predictions, males with longer genital spines, that inflict more harm during mating, sire more offspring in C. maculatus [59,62] and seem to stimulate female fecundity (unpublished data). Moreover, the male ejaculate regulates female immunity post mating in Drosophila, guppies, mice and humans [44,45,51,52,113,114], although it often remains unclear to what extent the effects are detrimental or beneficial to the female overall [5,22,23,27,115]. It has even been suggested that males may gain fitness benefits by transferring sexually transmitted diseases that trigger shifts in female allocation towards current reproduction [21,116], but this possibility lacks empirical support [117]. In other insects, female PO either increases or decreases post mating and it has been suggested that in species where mating downregulates female PO activity, males corrupt the female immune function [23]. While our results do not refute this hypothesis, they are also consistent with C. maculatus females being "primed" for harmful mating and that PO activity in females initially decreases post mating as a result of wound healing but is then quickly restored. Such female anticipatory immunity activation has been observed in Drosophila [118,119] and bed bugs [120].

Conclusions
When mating rate affects both sexual dimorphism in immunity and infection rates, this can result in intricate eco-evolutionary dynamics with demographic consequences for both host and pathogen [5,16,[21][22][23][24][25]27]. Our study suggests that sexual conflict over mating rate can drive sexual dimorphism in immunity and that allocation to different components of immunity may play an important role in mediating effects of mating on females. In Drosophila, mating increases immune responses in reproductive tissue, and in most insects, mating decreases general immunity, but causality typically remains unclear [22,23]. Our results imply that baseline PO activity decreases in C. maculatus females as a genetic response to the alleviation of sexual conflict and harmful mating. Moreover, monogamous females, that evolved a reduced investment in PO activity relative to naturally polygamous females, showed an associated evolutionary increase in tolerance to bacterial infection in abdominal tissue adjacent to the reproductive tract, effects not seen in their conspecific males. This suggests that sex-specific trade-offs determine the mosaic of immune investment and that sexual selection and conflict affect the economics of these trade-offs. This complexity may explain some of the discrepancies found in the literature concerning female immune responses to mating (reviewed in [5,23,27]) and motivates further explorations of the selection pressures affecting sexual dimorphism in immunity.

Study species
Callosobruchus maculatus females lay eggs on seeds and larvae burrow into the seed where the entire development occurs. Beetles emerging from seeds are reproductively mature and require neither water nor food to reproduce successfully [121,122]. Adults typically die 7-14 days after emergence in the absence of food or water [123]. All experiments used beetles originating from a genetic stock that was originally sampled in Lome, Togo, in 2010, and subsequently maintained as 41 isofemale lines in the laboratory to maintain the genetic variation present in the original population [124], before being mixed into a large, outbred and genetically diverse experimental population (N~500). This genetic stock has been used in quantitative genetic designs (e.g. [103,[124][125][126]), artificial selection experiments [127] and experimental evolution [63,89,90] to demonstrate substantial sex-specific standing genetic variation in behaviour, morphology, life history and life time reproductive success, as expected given that the lines originate from the centre of the species range [128].

Expression of genes involved in the proPO activating cascade
To assay the effects of sex and mating status on the expression of relevant genes, we used data previously published in [79]. Briefly, RNA sequencing (Illumina TruSeq) was used to test for sex differences in gene expression in virgin and mated age-matched beetles, separately for reproductive and non-reproductive tissues (i.e. abdomen and head and thorax, respectively). In the mating treatment, RNA was extracted 24 h after mating. We pooled six individuals of each sex, tissue and treatment and replicated these pools three times. The transcriptome was assembled de novo [129], and differential expression analysed using edgeR, as described in [79]. The candidate PO genes were detected using BLAST (tblastn search in the TSA database for C. maculatus, using the protein sequences as query) and here we report the ones with a significant sex difference in expression (with a false discovery rate adjusted p value < 5%) in the virgin beetles in either tissue category.

Phenoloxidase assays
Individual beetles were homogenized by 20 s of grinding with a pestle in an Eppendorf tube containing 20 μl phosphate buffered saline (PBS). Samples were kept on ice until centrifuged at 17g for 10 min at 0°C, and the supernatants (10 μl) were stored at − 80°C prior to the assay of PO activity. The frozen homogenates were analysed by an investigator uninformed of the samples' identity and treatment affiliation, i.e. as blind tests. Due to the small volume of each sample and high background due to the crude protein extract, the assay was first developed and optimized to ensure that proper enzyme kinetics were at hand, and phenylthiourea could completely block the activity (Additional file 2: Figure S1, Table  S1). In preliminary experiments, the beetle homogenate was preincubated with curdlan (a β-1,3-glucan), trypsin or chymotrypsin to fully convert all zymogenic proPO to the active enzyme PO before assay of enzyme activity. However, the frozen homogenates did not show any increased PO activity after activation, indicating that the preparation method such as freezing at − 80°C had converted all proPO into active enzyme PO (Additional file 2: Table S1). Dopamine, L-Dopa and 4-methylcathecol+hydroxyproline ethyl ester were each tested as substrate for Callosobruchus PO, and dopamine was shown to be the most efficient substrate and was used in the further experiments (rough estimates of Km in this crude homogenate for L-dopa Km ≈ 6.3 mM, and for dopamine Km ≈ 0.2 mM, while 4-methylcathecol + hydroxyproline ethyl ester as substrate did not show linearity). For the experimental samples, six samples of beetle homogenate at a time were randomly chosen and thawed. After thawing, each individual beetle homogenate (3 μl) was incubated together with 7 μl PBS and 50 μl dopamine [10 mM in H 2 O] at 22°C. The reaction proceeded for 15 min after which 60 μl H 2 O was added to terminate the reaction and after centrifugation at 16000 ×g for 1 min the absorbance at 420 nm was recorded. The enzyme assay was first developed to ascertain zero-order kinetics, and due to the crude source of enzyme individual blank controls (without substrate) had to be measured before and after the reaction for each sample. This blank control was assayed containing 3 μl beetle homogenate, 7 μl PBS and 50 μl H 2 O and was incubated and measured as the samples above. The enzyme activity is expressed as increase in absorbance at 420 nm per minute in the focal sample relative to its blank control (ΔA420/min).

Sex-specific ontogenetic regulation of phenoloxidase activity
The eggs laid by the females in the mating status experiment (below) were followed through ontogeny. We sampled a total of 20 final instar larvae, 20 pupae and 14 adults. Larvae of C. maculatus could not be sexed. Pupae were sexed by abdominal morphology, for a total of 10 male and 10 female pupae. Virgin adults were collected as virgins within 0-36 h post emergence. All individuals were weighed and measured for PO activity. We analysed differences between developmental stages by adding mass of the tissue analysed as a covariate in an ANCOVA. As we could not determine the sex of larvae, we performed one model that averaged effects across the sexes and one model where we excluded larvae and could retain sex. Both models showed significant differences between life stages.

Female phenoloxidase activity in response to mating
We used males and females from the Lome base population, reared at standard conditions. All adults were virgin and between 24 and 48 h old at the start of the experiment. On day 1, 120 females were individually placed in small 30-mm-diameter petri dishes together with two males, in three separate bouts (40 females at a time). Matings were observed and mated females were immediately removed and placed into a 90-mmdiameter petri dish containing black-eyed beans allowing females to oviposit. In total, 114 of the 120 females mated successfully over an observation period of 20 min per bout. A random set of 35 of these females were assigned to treatment 100 (mating on day 1 and then reproduction in isolation until being measured for PO activity on day 3). The rest of the females were given the opportunity to mate on day 2 and day 3, but all females did not mate on all days. This resulted in four treatment groups; 100 (mated on day 1 only), 110 (mated on days 1 and 2), 101 (mated on days 1 and 3) and 111 (mated on all days). Approximately 2 h after the final mating on day 3, all females were weighed and then measured for PO activity as described above. Measuring PO activity is time-consuming, and since preliminary analyses of the first batch of females suggested sufficient power to detect effects of mating status (see Fig. 2), all females were not measured. The following sample sizes were attained for each treatment; 100: 15, 110: 7, 101: 13, and 111: 23 females. The treatment groups described above from the first experiment represent non-random samples of females, as not all females can be made to remate on a given day. We therefore conducted a second experiment with random samples of 100 (n = 15) and 001 (n = 15) females to confirm the main result from the first experiment. We counted the number of adult offspring produced by each female over the 48 h of egg laying in the first experiment. We analysed the effect of mating status and number of offspring produced, including their interaction, on female PO activity in an ANCOVA. Female body mass at the time of homogenization was included as a covariate.
To determine whether female PO is allocated to eggs, 10 matured eggs per female were dissected out from 25 virgin females for a total of five samples containing 50 eggs each (corresponding to approximately 50% of the lifetime production of eggs of a single female). Samples were weighed and then subjected to the same crushing and centrifuging protocol as the mated females before being frozen at − 80°C and later measured for PO activity.

Experimental evolution regimes
The experimental evolution lines used to study the effect of the mating system on the evolution of sexual dimorphism in immunity are thoroughly described in [63,89], and the applied selection protocols are briefly summarized below. The lines were maintained under standard temperature (29°C), humidity (50%RH) and light cycle (12 L: 12D) and were reared on the preferred host plant [128] Vigna unguiculata (black-eyed bean). There are three replicate "monogamy" lines, three "polygamy" lines and two replicate "male-limited" lines. Effective population size for the lines in each regime was kept approximately equal (N e ≈ 150; N Male-limited = 200, N Monogamy = 246, N Polygamy = 300) and the number of beans provided as egg laying substrate in each regime was standardized to give the same, relatively low, juvenile density (2-4 eggs/bean) to minimize (and equalize) larval competition [63]. To implement the different regimes, selection was only applied for the first 2 days of adult life. However, the reproductive output over these first days typically corresponds to half of the total lifetime reproductive output (D. Berger, unpublished data). The regimes show differences consistent with generally positive effects of sexual selection on genetic quality in terms of increased female reproductive success and population productivity in polygamy lines relative to monogamy lines at generations 16 and 20, respectively [63]. They also show differences in sexually selected male pre-and post-copulatory traits [89,90].

Polygamy
Both males and females had opportunities to mate multiply, inducing both sexual and natural selection. Each generation, 300 adults were transferred to a glass jar with beans and were free to interact, copulate and lay eggs. After 48 h, adults were removed from the jar and the beans were saved until emergence of the next generation at which point 300 individuals were randomly collected to seed the new generation.

Monogamy
Virgin beetles were paired at random in monogamous couples to remove sexual selection. Couples were left to interact during 5 h in a 6-cm petri dish, to allow for multiple matings and male-female interactions. Females were gathered in a glass jar containing beans and left 48 h to lay eggs. Beans were saved until the emergence of the next generation.

Male-limited
Natural (fecundity) selection was removed while sexual selection was allowed. Virgin individuals of each sex were placed in a 1 L glass jar containing a cardboard structure but no beans. This provided a more complex environment than a simple empty jar and allowed individuals to find hiding places (which they normally find among the beans) without having to provide beans on which females would have laid eggs. After 48 h, during which individuals interacted and copulated at will, females were removed from the jar and placed in individual 6-cm petri dishes containing beans, where they were left for 48 h to lay eggs. The next generation was formed by collecting one random offspring of each sex from each dish. This insured that very weak selection was acting on fecundity in both sexes, and in females in general, because all had the same genetic contribution to the next generation, except for the few females (a maximum of three in any generation) that died before egg laying, whereas sexual selection will have favoured the males fertilizing the highest fraction of female eggs.

Experimental evolution of phenoloxidase activity under alternative mating regimes
The experiment was performed following 27 generations of experimental evolution and one subsequent generation of common garden (polygamy) selection through standard culturing to remove any potential influence of parental environmental effects. PO activity was measured in the whole body of single male and female beetles from two replicate lines from each mating regime (6 lines in total). To manipulate the reproductive status of the beetles, newly emerged virgin adults (0-48 h old) were either placed together in 90-mm-diameter petri dishes in groups of five males and five females that were allowed to reproduce ("reproducing" treatment), or in petri dishes with 5 males and 5 females but individually isolated in aerated Eppendorf tubes ("virgin" treatment). All petri dishes contained black-eyed beans, so that all beetles experienced the olfactory stimuli of the host beans, but only reproducing females could oviposit on the beans. After 46 h, individuals were weighed before being put through the protocol to measure PO activity (see above). Beans from the mating treatment were stored until adult offspring emerged. Offspring were frozen at − 20°C and later counted to estimate allocation to reproduction in all regimes. We set up the experiment in two separate batches 1 week apart in time, with each batch containing one replicate line of each evolution regime. We analysed differences among evolution regimes and mating treatments in Bayesian mixed effect models implementing Markov chain Monte Carlo simulations using the MCMCglmm package [91] in R [92]. We ran separate models for males and females as PO activity was virtually undetectable in males. Evolution regime and mating treatment, including their interaction, were added as fixed effects and body mass was added as a covariate to control for the amount of tissue analysed as we used whole-body samples. We first tested for presence of a higher-order interaction between mating status and evolution regime, which was nonsignificant and removed. We then evaluated significance of main effects by comparing the posterior distributions of marginal means for two groups in a given comparison (e.g. comparing mean PO activity of monogamous and polygamous females, averaged over the two mating statuses). In follow-up analyses, we also assessed interactions between female body mass and mating status and evolution regime (to test for condition dependence of PO activity; see "Results"). We blocked out effects of batch by adding it as a fixed effect. Similarly, we also blocked out the potential effect of freezing some individuals before homogenizing samples, something that had to be done for logistic reasons. Replicate line crossed with mating treatment, and adult mass, when appropriate, was always included as random effects when estimating effects of evolution regime on PO activity. We used weak and unbiased priors for the random effects and ran models for 3,000,000 iterations, preceded by 100,000 burn-in iterations that were discarded, and stored every 3000th iteration (thinning), resulting in 1000 uncorrelated posterior estimates of the fixed effects upon which we calculated Bayesian P values and 95% credible intervals. Prior specification and MCMC settings were the same for all models (exemplified in Supplementary Table 3b).

Evolution of the response to bacterial infection
At generation 50, we collected beetles from each of the three replicate populations of the monogamy and polygamy regime and then maintained them under common garden conditions (natural polygamy) for one generation to minimize environmental parental effects. To measure evolved vulnerability to a bacterial pathogen, we first isolated 2-day-old experimental virgin females from each of the lines and paired them individually with a single male from their own line for 5 h. Simultaneously, we also collected another subset of females that were held as virgin throughout the experiment. On day 3 post eclosion, we infected females with a strain (DSM 2046) of the entomopathogenic gram-positive bacteria Bacillus thuringiensis, described in [130]. Beetles were first anaesthetized with carbon-dioxide and then pricked at the lateral side of the lower abdomen, using a 0.1-mm minutien pin (Fine Science Tools) dipped in overnight bacterial suspension of 1 OD or 2 OD (subcultured from an overnight culture of the bacteria). We performed sham infection with a pin dipped in sterile PBS solution. Following the start of the infection (or sham infection), we isolated females individually in 24-well plates. We monitored individual survival at every 12 h until 48 h post infection and daily around 6 pm for the next 8 days. Females still alive 10 days post infection (less than 30%) were right-censored in the subsequent survival-analysis. In a separate experiment, we also measured survival of infected 3-day-old virgin males as described above.
At generation 54, we again collected mated females from two randomly selected replicate populations each of polygamy and monogamy and maintained them under common garden conditions. In the subsequent generation, we collected virgin females from each regime. We first mated 2-day-old females with a male from their own population. We then infected the females with a 0.5OD (52.5 ± 19.3 cells/beetle) or 1.0OD (237.5 ± 124.7 cells/beetle) solution of the gram-negative bacteria Pseudomonas entomophila using the same protocol as described above for B. thuringiensis (note that we could not calculate exact cell counts for B thuringiensis as the strain used lacked an antibiotic marker). Following the start of infection, we housed females individually in the 24-welled plates. Survival was first observed after 12 h and a subset of beetles were taken out for bacterial load assay described below. We measured survival up to 120 h after the start of infection.
The P. entomophila strain used is resistant to the antibiotic ampicillin. This allowed us to screen the females collected 12 h post infection exclusively for P. entomophila by plating their whole-body extract homogenized in sterile PBS buffer on LB agar plates with ampicillin (0.1 mg/ml), and subsequently counting bacterial cultures on the plates to estimate bacterial load. We first collected 3 surviving females 12 h after start of infection and transferred them to a micro-centrifuge tube. We then washed the three beetles together with 70% ethanol twice. Following the ethanol wash, we again washed them with sterile water once. Subsequently, we added 90 μl of PBS and crushed the beetles together using a sterile micro-pestle. From this master-stock solution, we made dilutions up to 10 −5 in 96-welled plates. We spotted 3 μl of each dilution on Luria agar plates with ampicillin. We kept the plates overnight at 27°C and counted distinguishable Pseudomonas entomophila colonies. From the number of colonies, we calculated the bacterial load per female beetle and used that for further analyses. In total, we calculated load for 8 samples per line and bacterial concentration. One sample was lost, resulting in a total of 63 samples (each based on 3 females). Analyses described in the "Results" and model specifications in Additional file 2: Tables S4a-f.

Correlated evolution between PO activity and male genital morphology
We measured the PO activity of 5 virgin males and 5 virgin females of each of the 12 species (see Fig. 5) using whole-body samples. All individuals were less than 48 h old post adult emergence. As the species differ widely in body size, we modified the amount of PBS buffer added at homogenization to retain more equal concentration of tissue for all species in the original samples to be analysed for PO activity.
We used a modified version of the protocol of (23) to assess variation in the injuriousness of male genitalia. We first dissected out the male genitalium from 2 individuals per species. Each genitalium was photographed twice from complimentary angles to describe the 3D structure of the aedeagus (the intromittent apical part of male genitalia). This resulted in 48 photos of the 24 male samples. The two complimentary photos of each genitalium were placed together on a sheet and given a random ID to hide the species identity for raters. We asked 10 colleagues (evolutionary ecologists at our institution) to individually rate the 24 male genitalia on a scale from 0 to 10 in terms of the harm they predicted that the genitalia would cause inside the female reproductive tract during mating. Two of the authors of this study, with ample experience of sexual conflict theory and seed beetle biology (GA and JLR), also rated the genitalia (without knowledge of the recorded PO activity in the species, except for C. maculatus). The scores of naïve and experienced raters were highly aligned (see: "Results"), suggesting that the rating of male harmfulness was unbiased in terms of prior knowledge of the mating system. We extracted a mean score for predicted harmfulness for each of the 24 males based on scores from all 12 raters.
We analysed the covariance between harmfulness of the male genitalia and male and female PO activity based on species means across the phylogeny using phylogenetic least squares (PGLS) regression with Ohrstein-Uhlenbeck correction implemented in the ape package [97] for R (model specification and output in Additional file 2: Table S5a-b). All variables were variance standardized in the analyses. Given the uncertainty of exact branch lengths, we set all branches to unit length. PO measurements were divided by the concentration of tissue in each sample prior to analysis.
Additional file 1: Table S1. Sex-specific regulation of gene expression related to the proPO activating system. Additional file 2: Supplement 1. Optimization of PO-activity assays. Figure S1. Test kinetics of the phenoloxidase assays. Table S1. POactivity after preincubation of frozen homogenate with different activators. Supplement 2. Mating status and phenotypic plasticity of POactivity in females. Table S2. ANOVA on the effects of mating treatment and egg laying on PO-activity. Supplement 3. Experimental Evolution of PO-activity. Table S3a. Effects of mating treatment and mating regime on adult weight. Table S3b. Analysis of differences in offspring production between evolution regimes. Table S3c. Effects of mating treatment and mating regime on male PO-activity. Supplement 4. Responses to bacterial infection in the experimental evolution lines. Table S4a. Effect of infection with B. thuringiensis on survival of virgin and mated females from polygamous and monogamous regimes. Table S4b.1 Effect of infection with B. thuringiensis on survival of virgin and mated females from polygamous and monogamous regimes, using a binomial response. Table S4c. Effect of bacterial infection on survival of virgin males from polygamous and monogamous regimes. Table S4d. Effect of infection with P. entomophila on survival of mated females from polygamous and monogamous mating regimes. Table S4e. Effect of infection with P. entomophila on survival of mated females from polygamous and monogamous mating regimes using a binomial response. Table S4f. Bacterial load of P. enthomophila in mated females from polygamous and monogamous regimes. Supplement 5. Macroevolutionary change and sexually antagonistic coevolution between male genital morphology and female PO-activity. Figure S5a. Macroevolutionary change in sexual dimorphism in PO-activity across seed beetle linages. Figure S5b. Photos of genitalia rated as least and most harmful. Table S5a PGLS of male genital morphology and female PO-activity. Table S5b. PGLS of male genital morphology and male PO-activity.