Tectonic shifts in American politics-particularly around issues of race and civil rights-had triggered an ideological sorting between the two parties.