The dynamics of partisanship within election cycles