Afghanistan's changing political landscape is forcing two longtime rivals to attempt cooperation in a northern province.