report released in February said. “U.S. efforts to support women, girls and gender equality in Afghanistan yielded mixed results.”

Still, the Taliban’s harshly restrictive religious governing structure virtually ensures that the oppression of women is baked into whatever iteration of governance they bring.

The Taliban’s idea of justice for women was solidified for Ms. Ahmadi when she saw the insurgents beat the unveiled woman in front of her in Kunduz Province.

For many other Afghan women, the government’s judicial system has been punishment of a different kind.

Farzana Alizada believes that her sister, Maryam, was murdered by her abusive husband. But a police investigation of any sort took months to start, thwarted by absent prosecutors and corruption, she said. Ms. Alizada’s brother-in-law even pressured her to drop the charges by accusing her of stealing. The police asked her why she was pushing the case if her sister was dead.

Domestic violence remains an enduring problem in Afghanistan. About 87 percent of Afghan women and girls experience domestic abuse in their lifetimes, according to a Human Rights Watch report.

“I lost all the hope I have in this government. In some cases, maybe the Taliban is better than this system.” Ms. Alizada said. “No one is on my side.”

Ms. Alizada’s sentiments were similarly portrayed in Doha, Qatar, at the peace talks between the Afghan government and the Taliban. Despite months of negotiations, there has been little progress, especially when it comes to discussing women’s rights, which neither side has made a priority.

At a separate peace conference held in Moscow in March between the Afghan government, political power brokers and the Taliban, only one woman, Habiba Sarabi, was on the 12-member delegation sent by the Afghan government. And only four are a part of the 21-person team in Doha.

“Moscow — and Doha, as well, with its small number of women representatives — laid bare the thin veneer of support for genuine equality and the so-called post-2001 gains when it comes to who will decide the country’s future,” said Patricia Gossman, the associate Asia director for Human Rights Watch.

But one of the gains that is almost indisputable has been Afghanistan’s access to the internet and the news media. Cellphone coverage extends across much of the country, meaning that Afghan women and girls have more space to learn and connect outside their familial bubbles and villages. The Afghan news media, too, has blossomed after large investments from foreign governments and investors, and many women have become nationally known journalists and celebrities.

But even their futures are uncertain.

Lina Shirzad is the acting managing director of a small radio station in Badakhshan, in Afghanistan’s restive north. She employs 15 women and fears, given the growing insecurity, that they will lose their jobs. Even some of the larger national outlets are looking to relocate employees or move some operations outside the country.

“With the withdrawal of foreign forces in the next few months, these women that are the breadwinners for their family will be unemployed,” Ms. Shirzad said. “Will their values and achievements be maintained or not?”

Fahim Abed contributed reporting from Kabul, and Taimoor Shah from Kandahar.

View Source