Sentence:  Variation in caste ratio is associated with additional variation in mating behavior (mating flights vs. <WSD>intranidal</WSD> mating, i.e., mating in the nest) and the pattern of brood production [12 ]. 
Meaning of the word marked with <WSD> tags:  Within a nest