After sealing decisive wins in the New York mayoral election and governor's races in Virginia and New Jersey, it is clear the Democratic Party will be buoyed by a big election night on Tuesday.

It is a far cry from the scenes after last year's presidential election, when the party was left searching for answers after Donald Trump and the Republicans scored a hugely dominant victory.

The results also mark a year until vital midterm elections. So with the picture of the night becoming clearer, here's what we've learned from the results.

1. Democrats get their energy back

The Democrats notched key victories as they swept the first major elections of Trump's second term.

There were joyous celebrations at the various candidate headquarters, a stark contrast to the downbeat scenes after the party's bruising 2024 defeat.

Abigail Spanberger won in Virginia, flipping the governorship from Republican, while Mikie Sherrill was elected governor in New Jersey. Both won decisively, securing more than 56% of the vote.

In New York City, Zohran Mamdani beat independent Andrew Cuomo and became the first candidate to pass one million votes since 1969.

Barack Obama's former deputy national security adviser Ben Rhodes told the BBC that Mamdani had changed the electorate by urging young people and immigrants to vote.

The series of decisive victories may well boost a party that has at times struggled to counter President Trump's rapidly-enacted second term agenda, and rebound from its 2024 defeat.

The Democrats are back and we're winning, said Democratic National Committee (DNC) Chair Ken Martin on Wednesday. We've got the momentum going into the midterm elections.

2. Cost of living a winning message

Pledging to bring down the cost of rent, food and childcare was at the core of Mamdani's left-wing campaign, but it was also a winning issue for the more moderate Democrats elsewhere.

Sherrill in New Jersey and Spanberger in Virginia both made tackling the high cost of living front and centre in their governor campaigns. And it was seemingly top of voters' minds, too.

Exit poll data from the major US networks indicated that in all three races the most important issue for voters was the economy and affordability.

It may well give the party a message to coalesce around ahead of the crucial midterm elections next year - and pose a challenge for Republicans to counter.

3. A stark shift in the Latino vote

When Trump scored his decisive victory over Kamala Harris last year, he racked up huge support from Latino voters who had been a key part of the Democratic voter base for decades.

However, the winning candidates for governor in Virginia and New Jersey both had wide leads of around 30% with Latino voters, according to exit poll data.

4. Democratic differences were on display

In liberal New York, Mamdani ran as a democratic socialist who will tax millionaires and corporations to pay for policies such as free childcare and buses. In contrast, the candidates in New Jersey and Virginia were establishment-backed moderates emphasizing pragmatic policies.

The night illustrated the broad differences in the party between its left-wing and centrists, raising questions over how it will approach elections and candidate selection in the future.