This week we witnessed a scathing rebuke of Trump’s morality in a leading Christian journal; only to find other leaders of the White Evangelical movement rise to Trump’s defense.

How did a group that once proudly identified itself as “values voters” come to support a candidate who had been married three times, cursed from the campaign stump, owned casinos, appeared on the cover of Playboy Magazine, and most remarkably, was caught on tape bragging in the most graphic terms about habitually grabbing women’s genitals without their permission? White evangelical voters’ attraction to Trump was even more mysterious because the early GOP presidential field offered candidates with strong evangelical credentials, such as Ted Cruz, a longtime Southern Baptist whose father was a Baptist minister, and Marco Rubio, a conservative Catholic who could talk with ease and familiarity about his own personal relationship with Jesus.

Unlike Mormons, who saw a nearly 20-point falloff in support for Trump compared with their typical support for Republican presidential candidates, white evangelicals’ support for Trump was in line with, and even slightly higher than, their 2004 support for fellow evangelical George W. Bush (81% vs. 78%, respectively), according to the exit polls.

And unlike Trump’s arts council and economic advisory councils, which saw so many resignations that the committees themselves dissolved, Trump’s evangelical advisory committee has seen just one resignation and is standing by their man.

While many may want to simply dismiss this turn of events as pure hypocrisy, anyone seeking understanding will want to look deeper. White evangelicals branded themselves as “values voters.” That they could support Trump as strongly as Bush and more resolutely than arts and business leaders ought to serve as a signal that something dramatic has happened in the interim.

The key to understanding the puzzling white evangelical/Trump alliance is grasping the large-scale changes — most prominently the declining numbers of white Christians in the country — that have transformed the American religious landscape over the past decade. These tectonic shifts are detailed in a new report Wednesday by the Public Research and Religion Institute. Based on interviews with more than 101,000 Americans last year, the American Values Atlas is the largest survey of religious and denominational identity ever conducted in the USA.

The general decline of white Catholics and white mainline Protestants, the more liberal branch of white Protestantism anchored in the Northeast and upper Midwest, has long been noted by sociologists. But until recently, their white evangelical cousins in the South and lower Midwest had seemed immune to these trends. This evangelical exceptionalism was not lost on white evangelicals themselves, who frequently pointed a judgmental finger at their more liberal cousins, arguing that there was a direct link between more progressive theology and denominational decline.

But one of the most important findings of this survey is that as the country has crossed the threshold from being a majority white Christian country to a minority white Christian country, white evangelical Protestants have themselves succumbed to the prevailing winds and in turn contributed to a second wave of white Christian decline in the country. Over the past decade, white evangelical Protestants have declined from 23% to 17% of Americans. During this same period, the proportion of religiously unaffiliated Americans has grown from 16% to 24%.

The engines of white evangelical decline are complex, but they are a combination of external factors, such as demographic change in the country as a whole, and internal factors, such as religious disaffiliation — particularly among younger adults who find themselves at odds with conservative Christian churches on issues like climate change and lesbian, gay, bisexual and transgender rights. As a result, the median age of white evangelical Protestants is now 55, and the median age of religiously unaffiliated Americans is 37. While 26% of seniors (65 and older) are white evangelicals, only 8% of Americans younger than 30 claim this identity.

The evangelical alliance with Trump can be understood only in the context of these fading vital signs among white evangelicals. They are, in many ways, a community grieving its losses. After decades of equating growth with divine approval, white evangelicals are finding themselves on the losing side of demographic changes and LGBT rights, one of their founding and flagship issues.

In the 1980s, a term such as “the moral majority” had a certain plausibility. Today, such a sweeping claim would be met with a mountain of counter evidence from public opinion polls, progressive religious voices, changing laws and court decisions.

Thinking about white evangelicals as a grieving community opens up new ways of understanding their behavior. Drawing on her interactions with dying patients and their families in the 1960s, psychiatrist Elisabeth Kübler-Ross identified at least five common “stages” of grief, which have become staples of understanding responses to loss: denial, anger, bargaining, depression and acceptance. As Kübler-Ross found, when the stubborn facts of one’s own demise don’t yield to denial or anger, people commonly attempt to make a grand deal to postpone the inevitable.

While there are some lingering pockets of denial, and anger was an all-too-visible feature of Trump’s presidential campaign, thinking about the white evangelical/Trump alliance as an end-of-life bargain is illuminating. It helps explain, for example, how white evangelical leaders could ignore so many problematic aspects of Trump’s character. When the stakes are high enough and the sun is setting, grand bargains are struck. And it is in the nature of these deals that they are marked not by principle but by desperation.

White evangelicals have entered a grand bargain with the self-described master dealmaker, with high hopes that this alliance will turn back the clock. And Donald Trump’s installation as the 45th president of the United States may in fact temporarily prop up, by pure exertions of political and legal power, what white Christian Americans perceive they have lost. But these short-term victories will come at an exorbitant price. Like Esau, who exchanged his inheritance for a pot of stew, white evangelicals have traded their distinctive values for fleeting political power. Twenty years from now, there is little chance that 2016 will be celebrated as the revival of White Christian America, no matter how many Christian right leaders are installed in positions of power over the next four years. Rather, this election will mostly likely be remembered as the one in which white evangelicals traded away their integrity and influence in a gambit to resurrect their past.

Meanwhile, the major trends transforming the country continue. If anything, evangelicals’ deal with Trump may accelerate the very changes it was designed to arrest, as a growing number of non-white and non-Christian Americans are repulsed by the increasingly nativist, tribal tenor of both conservative white Christianity and conservative white politics. At the end of the day, desperate white evangelicals’ grand bargain with Trump will be unable to hold back the sheer weight of cultural change and their self-evident desperate hypocrisy.