Effects of local versus global competition on reproductive skew and sex differences in social dominance behaviour