In 2008, after Republicans were routed in the presidential and congressional elections, there was widespread consensus within elite GOP circles about the party’s structural problems: The Republican voter base was too old, too white, too male and too strident for the party to prosper long term in a country growing ever more diverse.