Mr. Beshear, a 41-year-old moderate whose father preceded Mr. Bevin in the governor’s mansion, sidestepped questions about Mr. Trump and impeachment while keeping his distance from national Democrats. He focused squarely on Mr. Bevin’s efforts to cut Medicaid and overhaul the state’s pension program while drawing attention to the governor’s string of incendiary remarks, including one that suggested striking teachers had left children vulnerable to molestation.
Yet even as he sought to steer a middle path, Mr. Beshear benefited from liberal enthusiasm, running up wide margins in the state’s two largest cities, Louisville and Lexington.
In a characteristically truculent Twitter thread on Tuesday as voting was underway, Mr. Bevin snapped at the “historically challenged national media” for being surprised at the competitiveness of the Kentucky race, pointing out that only four Republicans had been elected governor since the 1920s and that registered Democrats in the state still outnumbered registered Republicans. He did not mention that this partisan registration gap has considerably shrunk in recent years, nor that Mr. Trump romped there three years ago.
The elections Tuesday featured only a handful of statewide and legislative races, but they neatly captured how thoroughly polarized politics has become in the Trump era.
In the three governors’ races, Republican candidates linked themselves to Mr. Trump at every turn, joining him for rallies in their states and assailing their Democratic rivals for their party’s effort to impeach the president.
While Mr. Trump was embraced by Republicans, the Democratic standard-bearers in the races shunned their more liberal presidential contenders and refused to support the impeachment inquiry, not wanting to fuel the G.O.P.’s strategy of making the red-state races a referendum on the president.
Yet in Virginia, the only Southern state Mr. Trump lost, it was Republicans who were distancing themselves from their national party and a president who has alienated the suburban voters they needed to retain control of the state legislature. While the president stayed away from Virginia, just across the Potomac from the White House, every major Democratic presidential hopeful was welcomed with open arms to campaign with the party’s candidates. in a state that has not elected a statewide Republican in a decade.