In recent months, the Taliban authorities in Afghanistan have arrested or detained dozens of women for alleged violations of dress codes.