Job centers are rarely upbeat places. In Brazil, where they are often a last resort for those who lack the personal connections that lubricate much of life in the country, they can be particularly bleak. Francisco, a 54-year-old driver in line at one in downtown São Paulo, has had no work for over two years. The lines have never been longer, he sighs. "It's the crisis."

Brazil's growth has been anemic for years. It averaged 2 percent a year during President Dilma Rousseff's first term in office from 2011 to 2014 — despite booming global demand for the country's soybeans, iron ore and oil.

Government meddling with the private sector, combined with excessively loose monetary and fiscal policy, sapped confidence; investment dried up and inflation soared. Without the crutch of high commodity prices, GDP has now collapsed (by 1.9 percent in the second quarter of 2015, compared with the first), pulling the hitherto resilient labor market with it.

Nearly 500,000 jobs have been cut since January. Researchers at Fundação Getulio Vargas, a business school, reckon another 2.5 million will be shed before the end of 2016. Unemployment rose to 7.5 percent in July, from 4.9 percent a year earlier — the fastest annual rise on record. It is expected to hit roughly 10 percent at the end of next year, and stay there for some time. Speak to Brazilians and it is hard to find anyone without a friend or family member on the dole.

From flophouses to boardrooms, moods darkened further in the wake of the decision this month by Standard & Poor's to demote Brazil's debt to junk status, following Rousseff's inept efforts to cast onto an uncooperative Congress the responsibility for balancing the budget.

The rating agency subsequently downgraded dozens of big Brazilian companies, including several large banks. Petrobras, the state-controlled energy firm that is also at the center of Brazil's biggest-ever corruption scandal, earned another dubious distinction as the world's largest company without an investment-grade credit rating. At the start of the year Petrobras accounted for about one-tenth of total Brazilian investment; now it may need to trim its capital expenditure by even more than the 40 percent it announced in June.

S&P's decision mainly reflected pre-existing worries about the Brazilian economy. Neither the stock market nor the real — down by 30 percent against the dollar since January — nose-dived in the days after the announcement; this suggested that a return to junk status had largely been priced in.

But the news has certainly added to the gloom. Already-high borrowing costs for both the public and private sector will rise, and with them the risk of further downgrades. Pension and mutual funds that can only hold investment-grade assets will offload Brazilian bonds at a brisker pace, in anticipation of similar moves by Moody's and Fitch. Typically, two of the big three rating agencies need to slap a "junk" label on a country's bonds before such funds are obliged to divest.

This will not cripple the Brazil of today, with its diversified economy and plump foreign-exchange reserves, as it might have in earlier, more chaotic times. Ilan Goldfajn of Itaú, a big Brazilian bank, expects net inflows into Brazil's capital markets to bottom out at $10 billion in 2016, down from $45 billion in 2014.

But divestment will make it harder for Brazil to shake off its worst recession in decades. Last week, analysts polled by the Central Bank once again took an ax to growth forecasts. The Organisation for Economic Cooperation and Development, a rich-country club, thinks GDP could shrink by 2.8 percent this year and 0.7 percent next. A weaker currency has stoked inflation, which the Central Bank has been trying hard to quench with (contractionary) interest-rate rises. This has failed to boost exporters much — leaving aside Brazil's hypercompetitive farmers. Few expect growth to rebound before 2018, when the next presidential election is due. Income per person, which peaked in 2011, may take longer to recover.

Since disavowing the interventionist policies of her first term, Rousseff has tried, unsuccessfully, to pick a path between fiscal orthodoxy, championed by her finance chief, and stimulus demanded by her planning minister and many in her left-wing Workers' Party. To appease the former camp, on Sept. 14 the government presented another set of belt-tightening measures worth 65 billion reais ($17 billion), including a pay freeze for some public servants and a controversial tax on financial transactions.

Just like the government's earlier efforts, these look halfhearted: insufficient to repair public finances and unleash a spirit of exuberance, but more than enough to enrage Congress, over which the increasingly unpopular president has no control and where a movement to oust her is gaining steam. Rousseff is clinging on to her job for the time being. Many ordinary Brazilians have not been so lucky.

Copyright 2013 The Economist Newspaper Limited, London. All Rights Reserved. Reprinted with permission.