Big shifts within small groups and small shifts within big groups helped propel Donald Trump's return to the White House.