Shifted levels of sleep and activity under darkness as mechanisms underlying ectoparasite resistance