Introduction

Natural selection theory suggests that phenotypes that deviate from the most common type experience reduced fitness and tend to be eliminated from the population due to increased predation1,2 or poor performance resulting from pleiotropic effects3,4. Morphological abnormalities are therefore infrequent in natural populations. Current evidence for the action of natural selection on morphological abnormalities is often indirect5,6 in part because of the difficulty in obtaining large samples of rare phenotypic traits. Consequently, empirical data to test theoretical predictions and measure the magnitude and direction of predicted effects are virtually non-existent.

Leucism is defined as a series of defects in melanin-producing cells (melanocytes) resulting in the lack of pigmentation in all or parts of the skin (or plumage) of an animal, but not in the soft parts4,7. This colour aberration may occur in all vertebrate classes (mammals8,9, birds10,11, fish12, amphibians13, reptiles14), but it is rare in natural populations. Leucism is thought to result from genetic mutations affecting, for instance, the melanocortin 1 receptor gene15. Lack of pigmentation may also result from the so-called progressive greying, that is, a progressive loss or reduction of melanocyte function and the subsequent suppression of melanin formation16, although the genetic basis of this process is not fully understood. Unlike congenital leucism, progressive greying starts after the animal reaches a certain age. For simplicity, in this article, the term ‘leucism’ (from the Greek leukos, ‘white’) should be interpreted according to its original and all-embracing meaning, as denoting the absence of melanin in the integument, regardless of the underlying process7. Lastly, non-genetic (environmental) factors, such as injury17 and nutritional constraints on melanization5 may also cause loss of pigmentation. Many questions remain about the causes and biological significance of leucism, yet the relative ease of detection of this trait can facilitate data collection and provide useful information to understand the emergence and maintenance of colour aberrations in natural populations18.

Leucism is assumed to be disadvantageous in terms of survival due to increased predation risk8 or because of pleiotropic effects on other physiological functions19. Consequently, as for other morphological abnormalities, the frequency of leucism is expected to remain close to zero, particularly in older age classes5. Conversely, the frequency of leucism may increase in older age classes due to a gradual deterioration of physiological function16, potentially obscuring or obliterating age-related declines in leucism at the population level. Unbiased estimation of the incidence of leucism therefore requires accounting for ageing effects and changes in the age structure of the population.

Birds are key players in studies on leucism because their conspicuous nature and ease of monitoring facilitate the detection of rare phenotypes. Leucism in birds is defined as the complete or partial absence of eumelanin and pheomelanin in one or more feathers, but not in the eyes, bill or feet, resulting in white patches in all or part of the plumage4. Leucism studies of birds are usually based on observations of unmarked animals10,11,20 or information from potentially biased sources, such as online photographs21 and animals shot for specimens5,18. Field studies of individually marked birds, although representing a small proportion of the literature, are generally more reliable and usually include information on the age and sex of individuals22,23. Nevertheless, these studies are limited in number and taxonomic scope, being restricted to a handful of predominantly black species (e.g. refs.5,23,24; but see Bensch et al.22). Moreover, due to difficulties in recapturing birds in the field, studies examining age-related changes in leucism5,23 are based on cross-sectional comparisons, offering little scope for longitudinal analyses elucidating the role of ageing (senescence) and compositional change across age classes (selection).

This study documents the prevalence of naturally occurring leucism in an intensively studied population of red-necked nightjars (Caprimulgus ruficollis), examines sex- and age-related changes in leucism expression, and combines cross-sectional and longitudinal data to investigate the mechanism(s) underlying age-related changes. Nightjars rely on their cryptic plumage and secretive behaviour to escape predation at the nests and roosts25. Cryptic plumages, based on melanic patterns, are widespread among nocturnal predatory birds, including nightjars and allies (Order Caprimulgiformes) and owls (Order Strigiformes). These species are mostly active in semidarkness and rest during the day, so they need to either avoid detection by diurnal predators (Caprimulgiformes26), or to avert mobbing by small birds during the day (Strigiformes27). Cryptic plumage (and secretive behaviour) may thus be deemed critical attributes for these species to enhance survival25. Conspicuous plumage markings that are permanently visible at rest, including aberrant white feathers and achromatic plumage ornaments (e.g. white throat badge and wing and tail patches), are expected to be targets of natural selection in cryptic nocturnal species because they can reduce the effectiveness of camouflage to a greater o lesser extent depending on their size and number26,28.

Our study population of red-necked nightjars in Doñana National Park (S Spain) provides an excellent opportunity to investigate sex- and age-related changes in leucism expression from a lifetime perspective because (i) the sex of individuals, including young, can be accurately determined by plumage characteristics29, (ii) over 25% of young return to the natal area to breed, and nearly all (80%) do so at age 130, (iii) returning individuals can be recaptured over several years due to strong breeding site fidelity31, and (iv) the annual survival of adults is relatively high (0.64–0.74) and some nightjars can still be recaptured up to 10 + years after the initial ringing date32. Moreover, all nightjars are measured for body size and mass, so morphological traits of leucistic individuals can be compared to those of normal-plumaged ones. Our study addresses three questions:

  1. (1)

    Does the frequency of leucism differ between males and females? Leucism is often sex-biased, and it is generally assumed to be less common in the sex that experiences the greatest predation risk19,23. Leucism in nightjars is expected to be male-biased based on the general assumption that females are under stronger selection than males due to greater susceptibility to predation during nesting32.

  2. (2)

    Does the frequency of leucism differ among age classes? On the one hand, the differential mortality hypothesis states that leucistic individuals are unlikely to persist long in nature due to the effects of selection against conspicuous plumage markings5,6. Under this hypothesis, one would expect an age-related decline in the prevalence of leucism at the population level, reflecting a compositional change across age classes due to the selective disappearance of leucistic individuals. This compositional change should also be reflected in a shorter life span in leucistic individuals compared to normal-plumaged ones. On the other hand, the progressive greying hypothesis states that leucism increases in the older segments of the population as a result of the partial or total loss of melanin from feathers4,33. Under the progressive greying hypothesis, one would expect an age-related increase in the prevalence of leucism at the population level due to the effects of intra-individual variability in leucism expression.

  3. (3)

    Do leucistic individuals differ in skeletal size or body mass from normally coloured individuals? Leucistic individuals have been found to be smaller than average, apparently because of nutritional constraints on plumage melanization –and therefore skeletal development– during the nestling stage5. Environmental effects on leucism expression in nightjars, if any, are expected to result in smaller body size and body mass compared to normal-coloured individuals.

Results

Our data set included 1,092 observations of 572 adults (n = 154 ringed as juveniles and 418 ringed as adults) from 12 cohorts (2009–2020), and 774 observations of 508 juveniles from 5 cohorts (2016–2020), spanning an age range of 0–8 years. Out of the 572 adults, 7 males and 11 females showed unpigmented feathers (Tables 1 and 2). The affected feathers, far from being randomly distributed, typically included lesser coverts (15%), median coverts (55%), and greater coverts (20%), although leucism also affected one secondary in two birds (Fig. 1A, B), and one body contour feather in one of the birds captured before the study (Fig. 1D). Only one bird (a female) presented more than one unpigmented feather (Fig. 1A, Table 1). The annual and sex-related frequency of leucism among adults ranged from 0% to 5.7% depending on the year and sex (Table 2). Not a single case of leucism was observed among the 508 juveniles examined over the five years of study.

Table 1 Red-necked nightjars showing partial leucism at some time during the 5-year (2016–2020) study (N = 18) or earlier (N = 2). Details on sex, period from first to last capture, life span, cohort (only for birds ringed as juveniles), number of leucistic (white) feathers and feather tract(s) affected are shown.
Table 2 Frequency of leucistic adult (≥ 1 year-old) red-necked nightjars in Doñana during 2016–2020.
Figure 1
figure 1

Leucism in red-necked nightjars. Example images illustrating variation in the number and location of unpigmented (leucistic) feathers in adult birds: one great cover, one secondary, and the tip of the outermost secondary (a), one secondary only (b), one medium covert (c), one contour feather (d), and one lesser covert (e). Photographs by Carlos Camacho.

Cross-sectional sex and age effects

The frequencies of leucism for all years combined amounted to 3.0% and 3.2% for adult males and adult females, respectively (Table 2) and increased from the extremes (0 and 8 years) to the middle (3–5 years) of the age distribution (Fig. 2A). The predicted probability that a trapped nightjar would have a white feather (i.e., the probability of leucism) was low for all ages and sexes (< 0.015%) and did not differ significantly between sexes regardless of age (Table 3). Sex accounted for a negligible proportion of the variance in the probability of leucism in the population (R2m = 0.0001). By contrast, age explained about 8% of the variance in the probability of leucism (R2m = 0.0815). Specifically, the probability of leucism (estimated from the inverse logit of the predicted log-odds in Table 2) increased by eight orders of magnitude from the first year of life (~ 10–13) to age 4 years (~ 10–5) and then decreased to almost zero (~ 10–9–10–12) at age 7–8 years (Table 1).

Figure 2
figure 2

Changes in the frequency of leucism across age classes and annual numbers of captures. (a) Frequency of leucism in red-necked nightjars first captured as juveniles and aged 0–8 years. Numbers above bars are the number of leucistic birds in each age category and sample sizes in parenthesis. Note that some individuals appear in more than one category due to repeated trapping in different years. (b) Number of captures (including intra-annual recaptures) during the study period (2016–2020, green) and prior to study initiation (2009–2015, grey).

Table 3 Results of the mixed models analysing (a) sex and age effects on the probability of leucism (coefficients on the log-odds scale), and (b, c) body-size differences between leucistic and non-leucistic individuals.

The age of first expression for 6 individuals ringed as juveniles averaged 1.8 ± 0.4 (SD) years (Table 1). Only one of these birds expressed a white feather at age 1 (second-calendar year), although moult data collected from this individual on three occasions (May, August and September) during the breeding season 2017 revealed that this feather emerged during the first post-nuptial moult in late summer. Examination of leucism expression in individuals recaptured in more than one year (all but one) revealed that they had the same white feathers in all years they were examined, indicating that leucism expression in nightjars is not a transient reversible phenomenon.

Effect of selective disappearance and ageing on age-related variation in leucism

The within-subject centering analysis showed a significant effect of intra-individual variability in leucism, and a non-significant antagonistic effect of inter-individual variability (Table 4a), these effects being statistically different from each other (Table 4b). Taken together, these results indicate that the contribution of intra-individual (ontogenetic) changes to overall age-related variation in leucism is large enough to counteract the (negligible) effects of selective disappearance and thus explain the observed population-level patterns.

Table 4 Results of the mixed models analysing age-related variation in leucism within and among individuals.

Longevity and morphology of leucistic vs. non-leucistic nightjars

The mean life span (± SD) of leucistic nightjars was 3.5 ± 1.6 years (N = 11), compared to 2 ± 1.6 years for their normal-plumaged counterparts (N = 147), although this difference was not statistically significant (permutation t-test, t = 2.95, d.f. = 156, P = 0.154). Body mass and skeletal (sternum) size were consistently smaller in leucistic adults compared to non-leucistic adults (ca. 5% and 1.5% difference for body mass and sternum length, respectively).

Discussion

Leucism is a common condition in vertebrates, especially in birds, and reports of leucistic forms are plentiful. Despite this attention, the condition has usually been treated as a curiosity rather than as a measurable trait and, although there are studies looking at age- and sex-related changes in leucism5,18,22,23, they are scarce and focused on differences at the population level. Consequently, the connection –or lack thereof– between population-level and individual-level variability in leucism remains to be established. Our study investigated age and sex effects on the probability of leucism in an intensively studied population of red-necked nightjars and extended these analyses by quantifying within- and between-individuals variability in leucism expression across ages. In addition, we examined life span and body size differences between leucistic and non-leucistic individuals. Our study revealed that: (i) there is considerable annual variation in the frequency of leucism, ranging from 0 to more than 5:102 depending on the year and sex group; (ii) the probability of leucism is not affected by sex, but increases with age at a comparable rate in males and females; (iii) this increase is due to an ontogenetic shift in leucism expression; (iv) there is no sign of compositional change across ages, as may be expected from leucism-biased mortality or reduced life span of leucistic birds; (v) normal birds are significantly larger in size than leucistic birds.

The frequency of leucism in this red-necked nightjar population (3:102) is among the highest yet recorded in natural bird populations (range: 7:106 to 1:102; refs.10,11,22; but see refs.23,34). No estimates for nocturnal or other cryptic birds exist in the literature, making direct comparisons to our results difficult. Nevertheless, the frequency of leucism in nightjars is close to the ones recorded for nocturnal mammals (bats)9. The smaller prevalence reported in most other bird studies could reflect a detection bias resulting from the use of indirect approaches, such as citizen science data and online search tools21. But, in any case, the direction of this bias should act to increase, rather than decrease, the actual frequencies of leucism, because rare plumage patterns tend to be overrepresented in non-systematic surveys and image repositories21. Our estimates are unlikely to be confounded by such methodological bias, since they are based on the close examination of individuals captured during a systematic field-based survey.

Male and female nightjars exhibited leucism at comparable rates. This finding does not support the prediction that the presumably greater susceptibility of nesting females to predation generates a male bias in leucism. Female nightjars incubate the eggs and care for the chicks during the day, but it is the male that takes over these duties during much of the night35. Thus, predation risk for breeding males and females might not be as different as generally assumed for nightjars – but see Forero et al.32 for a discussion of rainfall effects on sex-dependent predation risk. Estimates of the frequency of leucism by sex are lacking for other cryptic species, yet the sex ratios reported in studies of non-cryptic species range from male-biased (Turdus merula)23 to female-biased (Acrocephalus arundinaceus)22 or equal (Corvus corone, Hirundo rustica)5,24. It therefore seems that sex effects on leucism in birds may be species-specific or even vary among populations of the same species22,36.

The predicted probability of leucism in this nightjar population increased markedly from the juvenile to the adult stage; in fact, leucism did not occur in juvenile plumage. Based on cross-sectional data from urban and rural blackbird (Turdus merula) populations, Izquierdo et al.23 also found an age-related increase in leucism and interpreted this increase as preliminary support for the progressive greying hypothesis. Our study confirms and extends this finding through a longitudinal individual-level approach demonstrating an ontogenetic shift in leucism expression. Our data furthermore indicate a negligible effect of selective disappearance, suggesting that age differences in the prevalence of leucism in this nightjar population are (almost) entirely the result of changes in the normal plumage pattern due to the progressive loss of melanin.

Under the progressive greying hypothesis, the number of white feathers may be expected to increase after every moult23,37, as is the case for the grey hair of humans and other mammals38. Only one of all nightjars examined in this study presented more than one white feather, suggesting that progressive greying in this cryptic species implies a qualitative transition. Cross-sectional analyses actually indicated that the probability of leucism in nightjars decreased by several orders of magnitude in extreme old age. This pattern might at first sight seem to suggest that either partial leucism is reversible or that leucistic individuals progressively disappear from the population, but there is evidence that strongly argues against these possibilities. First, consistency over time in the expression of the same white feathers in repeatedly recaptured nightjars supports the notion that leucism is not a reversible phenomenon18. Second, the simultaneous analysis of cross-sectional and longitudinal data suggested negligible or small effects of selective disappearance. Mortality gradually reduces the numbers of animals from cohorts marked as young, so that the number of individuals available for analysis in the older age classes is often limited. This reduction in the sample limits our ability to detect and interpret senescence patterns39. Our sample of very old individuals (7 + years) is small (1.2% of the data; Fig. 2A) and probably too small to capture naturally rare forms like leucism; therefore, it seems most likely that, in contrast to juveniles, the estimated decrease in the occurrence and predicted probability of leucism at the upper tail of the age distribution is a representativeness bias affecting the oldest segment of the population, rather than a true biological effect. Larger longitudinal data sets are needed to check the validity of this assumption.

Leucistic individuals are generally assumed to be less likely to persist in nature than normally coloured individuals, resulting in an age-related decrease in the mean probability of leucism. Our results do not support this assumption, since all the juveniles examined in this study lacked white feathers, these being detected after the first postnuptial moult at the earliest. Moreover, the long life span of leucistic nightjars and the minor contribution of population-level processes to age-related changes in leucism also argue against the selective removal of leucistic individuals from the population. Usually, the life span of leucistic birds is shorter than that of normal-plumaged birds, although in many cases this difference may be explained by the artificial effects of selective hunting5,40. Our results suggest that neither natural nor artificial sources of mortality appear to pose a major threat to leucistic nightjars. However, it should be noted that the unpigmented patches observed in nightjars are almost imperceptible at rest and might actually reduce detection through disruption41. Leucism generally affected just one single median or lesser covert (< 1% of the visible plumage of an individual), in contrast to the cases of extensive or complete leucism reported in other birds10,11. Completely leucistic individuals may find it difficult to evade detection by predators25, yet the small number and size of white feathers exhibited by most nightjars are probably not conspicuous enough to impair camouflage through background matching and reduce survival6. Our study provides little support for the hypothesis that partial leucism is an adverse condition for nightjars, although it is still possible that natural selection acts to limit the number and extension of white patches through the removal of more conspicuous variants.

Our data cannot be used to determine the proximate mechanism(s) responsible for progressive greying, though some inferences can be made. For instance, some studies suggest that the frequency of leucism may increase in small, isolated populations due to the effects of inbreeding8,22,42, but neither population-size nor dispersal limitations appear to be strong enough to cause significant inbreeding in this nightjar population30,31. Environmental factors could also influence the appearance of leucistic forms, regardless of their genetic basis. Nutritional deficiencies due to poor diet may disrupt melanin pigmentation at feather development and thus promote the appearance of partial leucism5. Leucistic nightjars did not reach the size of individuals of normal plumage colouration, suggesting that they may have experienced poor nutritional conditions during development. Nonetheless, the pheomelanins that produce the plumage pattern of nightjars are not acquired through the diet, but synthesized by the birds themselves43. Nutritional constraints on plumage melanization can still operate if the environmental availability of pheomelanin precursors –mainly cysteine– is restricted during feather development16,44, but then feather depigmentation should occur not only in adults, but also in juveniles5. Furthermore, the consistent expression of white feathers in the same position over successive moults argues against this possibility.

Exposure to natural or anthropogenic factors promoting oxidative stress, such as extreme temperatures, radiation, and certain pro-oxidative pollutants, might alter the pigmentation process and precipitate progressive greying16. For example, the effect of radiation on metabolic function in barns swallows (Hirundo rustica) breeding around Chernobyl (Ukraine) after the nuclear catastrophe induced an increase in the frequency of partial leucism compared to the situation before the catastrophe19,24. Our study population is located near greenhouse crops of berries that are visited by nightjars on a daily basis for nocturnal foraging30. Exposure to the pesticides used in these crops45 could expose nightjars to increased oxidative stress and thus promote the appearance of leucism, as has been proposed to explain the greater incidence of leucism in urban populations of blackbirds (Turdus merula) compared to rural ones23,46. Finally, it would be worth considering the possibility that leucism, so far considered a genetic condition, had in fact an epigenetic origin due to exposure to environmental stressors early in the ontogeny47. Under the expected scenarios of global change, experimental studies based on longitudinal individual-based data are needed to elucidate the (anthropogenic) factors influencing the occurrence of morphological and colour aberrations in animals.

To sum up, our results demonstrate an ontogenetic shift in the expression of partial leucism in male and female red-necked nightjars due to progressive greying. This shift is not confounded by the selective disappearance of leucistic individuals, suggesting that partial leucism in nightjars is, unlike in non-cryptic species studied so far, not conspicuous enough to increase predation risk. Our study provides important information for a better understanding of the sources of variation in leucism in natural populations and its effects on important life-history traits, such as life span. The question as to why leucistic birds are smaller than the rest of the population is intriguing and deserves further investigation.

Methods

Study system

Data on the prevalence of leucism were collected between 2016 and 2020 as part of a long-term study of red-necked nightjars in Doñana National Park31,48,49. The study area (37°7’N, 6°33’ W) consists of a 2000-ha mosaic of sparse Mediterranean shrublands, cattle grasslands, and pine tree plantations. Human access to this area is limited, as it is granted only for scientific research and occasional small-game hunting and livestock management (see Camacho et al.35 for a detailed description of the study area).

The red-necked nightjar (hereafter ‘nightjar’) is a trans-Saharan migratory species that breeds in Mediterranean areas of the Iberian Peninsula and North Africa50. Most individuals arrive in the study area during May and return to their wintering grounds in West Africa between September and October49. Nightjars produce one or two clutches of 1–2 eggs per breeding season (May–August). Chicks fledge at 18–22 days of age and, although they are able to forage for themselves, both parents continue to care for them until the 2nd–3rd week post-fledging49.

Moult strategies in nightjars are complex, but general differences among age classes have been described. Birds in their first calendar year may undergo a post-juvenile partial moult before migration, including body contour feathers and, exceptionally also, 1–2 inner secondaries and greater coverts, but not median or lesser coverts. Birds in their second calendar year replace a small number of flight feathers (e.g., the central pair of rectrices, 1–2 outermost secondaries, 1–2 innermost primaries, and the corresponding upper coverts) before returning to their breeding grounds for the first time at age 1 year30,51. First-time breeders therefore display two generations of feathers. Upon completion of breeding in late summer, all nightjars undergo an extensive post-nuptial moult of up to 10–15 flight feathers49 and replace the rest of feathers during their second winter in Africa51. From that moment on, the moulting sequence is the same as that described for first-time breeders.

Field procedures

From early April to late October, we conducted nocturnal surveys for red-necked nightjars along a 24 km road transect. Nightjars are attracted to roads during the night because they use their bare surfaces as a foraging platform to locate and capture passing insects52, and also to reduce thermoregulation costs on cold nights, take grit for mechanical digestion, and facilitate escaping from approaching predators35,49. Nocturnal surveys started one hour after sunset and continued until we covered the 24-km transect by driving a car at slow speed (30 km h-1). Nightjars found on roads were captured using a torch and a 80-cm diameter butterfly net53 and were marked with numbered metal rings (if not already ringed). The annual number of captures during this study ranged from 301 to 449 (mean = 374, SD = 63.6), amounting to a total of 1,869 captures (Fig. 2B).

Birds first captured as juveniles of the year (described as age 0) were of known age. Those first captured as adults in their second or later calendar years were assigned an age of 1 year or a minimum age of 2 years, respectively, according to plumage characteristics29,49. Natal philopatry of nightjars is strong30 (recruitment rate = 26.4%, N = 655 marked juveniles from the 2009–2017 cohorts) and, as a result, the age of 152 (27%) adults examined during 2016–2020 could be precisely determined from ringing data. Both juveniles and adults were sexed based on the size of the white patches on the tail and wings32 and measured for sternum (keel) length (± 0.01 mm), a predictor of skeletal size in birds54 and body mass (± 0.1 g). Body mass is affected by the amount of food ingested. This effect is particularly important in caprimulgids due to their large stomach capacity52. External examination of the degree of fullness of the muscular stomach of nightjars (gizzard) provides a simple method to estimate the amount of food ingested and therefore correct body-mass measurements. For each bird, we scored gizzard size as empty, ¼, ½, ¾ or full based on the criteria of Jackson52.

For each individual, we noted the presence or absence of (abnormal) white feathers (Fig. 1) and recorded their number and location (feather tract). The naming and numbering of the feather tracts follows Svensson55. Birds in active moult could have lost unpigmented feathers prior to capture, resulting in an underestimation of their prevalence. To account for this potential bias, we recorded the state of moult of each individual as the total number of growing primaries and rectrices49. Exploratory analyses revealed no effect of state of moult on the probability of leucism, so the effect of feather loss was not considered further in the analyses.

Nightjars tend to return to the same breeding site year after year31 and are often captured over several years (mean interannual recapture rate of adults = 0.60 ± 0.24 (SD), N = 39 individuals tracked over 2–7 more years after recruitment). Longitudinal data from repeated observations of birds ringed as juveniles were used to determine the age of first expression of white feathers, to assess plasticity in leucism expression throughout life, and to estimate the life span of leucistic and normal-coloured birds. Life span was defined as the age of birds during their last breeding season at our study site. Life span estimates are presented as minimum longevity, since some birds may still be alive at the end of the study. Birds first caught before the onset of the present study (2016) or those captured intermittently during the study could have presented white feathers earlier than recorded, so the age of expression in these birds could not be determined. Non-systematic records of white feathers in birds captured before 2016 nevertheless provided useful information about the age of first expression for three adults. To maximize the sample size, in the analysis of annual frequencies by sex we considered both birds ringed as juveniles and those ringed as adults.

Data analyses

Cross-sectional patterns

To investigate sex and age effects on the probability of leucism in nightjars, we ran a generalized linear mixed model (GLMM, binomial distribution and a logit link function) using leucism (0 = no leucistic feathers, 1 = at least one leucistic feather) as the dependent variable. Only birds of precisely known age were considered in this analysis. Four out of the 1,869 records (0.2%) were excluded due to missing data. The model included sex (class variable), age (continuous covariate), quadratic age, and the interaction between sex and age as explanatory variables. Bird identity (ring number) and year of birth were included as random intercepts to account for repeated measurements of the same individuals and cohort effects, respectively. The addition of the age-specific random slope to the model increased the percentage of variance explained by only 0.3% and its effect did not reach statistical significance (LRT: Chisq = 4.99, d.f. = 2, P = 0.083; see details on the tests used at the end of the ‘Data analysis’ section). For simplicity, the model included a random intercept for individual only.

Decomposing changes in average leucism expression across ages

To separate contributions of within-individual changes and between-individual selective disappearance to the age pattern at the population level we used the within-subject centering approach56. This method enabled us to partition the total variance of leucism into two independent components: the between-subject component of variance, calculated as the average age of each individual (j), and the within-subject component, calculated by subtracting these average values from each observation value (xijj)56. To statistically assess the contribution of each component to age-related variation in leucism, we fitted the j and xijj terms into a GLMM with leucism (0/1) as the response variable. The model included the random effect of year of birth to account for cohort effects, and also the random intercept and age-specific slope of each individual to account for the non-independence of data points and to minimize the probability of obtaining overconfident estimates57. To determine whether the within-individual and between-individual components of variation differed statistically from each other, we reformulated the model including the original age predictor (xij) and the individual’s mean age term (between-subject component), but not the centred age predictor (j). The individual’s mean age term (xijj) in this model represents the difference between the between-subject and the within-subject effects in the previous model and is expected to be non-significant when there is no difference between them (see formula 3 in van de Pol and Wright56).

Longevity analysis

Leucistic nightjars are a non-random subset of the population (≥ 1-year-old adults) due to age effects on leucism expression (see ‘Results’). Thus, to facilitate comparison of the life span of leucistic and normal-plumaged birds, the analysis of this trait only included individuals that reached the adult stage to avoid underestimating the life span of normal-plumaged birds due to the inclusion of non-recruiting juveniles (69%, N = 614 ringed juveniles). We compared the mean life span of leucistic vs. normal-plumaged individuals with a permutation t-test (9,999 permutations) to account for the unbalanced nature of the data (N = 11 leucistic vs. 157 normal-plumaged) and non-normal distribution (Shapiro–Wilk normality test, W = 0.729, P < 0.001). To calculate the p-value of the t-test, we compared the observed difference between means to the frequency distribution of the simulated values.

Morphometric differences between leucistic and non-leucistic individuals

To test for morphometric differences between leucistic and normally coloured nightjars, we fitted separate linear mixed models (LMM, normal error distribution and identity link function) to the sternum length and body mass data, considered to be good predictors of general body size in birds54,58. These models included leucism (0/1) as the explanatory variable, and sex and a fixed effect to control for differences in size between males and females and among age groups. The LMM fitted to body mass data also included gizzard score to account for the influence of food consumption on body mass upon capture. Bird identity and year of birth were also used as controlling random variables, as explained above.

GLMMs and LMMs were fitted using the ‘glmmTMB’ package59 of the R environment, version 4.0.0 (http://cran.r-project.org/). Binary data are often zero-inflated, but the results of residual diagnostic tests (e.g. quantile–quantile plots) in the DHARMa package60 indicated that the GLMMs provided a good fit to the data even in the presence of excess zeros. To compute p-values for individual predictors included in the models, we compared full models containing all variables to reduced models excluding the predictor of interest using a likelihood ratio chi-square test (LRT). To estimate the proportion of variance explained by both random and fixed effects and the fixed effects only, we calculated the conditional and marginal R2 values (R2c and R2m, respectively) according to Nakagawa & Schielzeth61, using the r.squaredGLMM function of the ‘MuMIn’ package62.

Experiments on live vertebrates

The authors declare that all procedures have been approved by the ‘Dirección General de Medio Natural, Biodiversidad y Espacios Protegidos’ (regional authority) through the permits 2,016,107,300,002,288/FQH/MDCG (years 2016–2019) and 202,010,730,000,647/FQH/MDCG (year 2020). This study did not involve threatened or endangered species and was carried out in accordance with national and international guidelines for care and use of animals.