XML 47 R35.htm IDEA: XBRL DOCUMENT v3.21.1
Summary of significant accounting policies - Collaboration and Royalty Revenue (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2021
Mar. 31, 2020
Collaboration and royalty revenue    
Revenue $ 117,942 $ 68,259
Collaboration revenue    
Collaboration and royalty revenue    
Revenue 20,007 63
Royalty revenue    
Collaboration and royalty revenue    
Revenue 6,655 0
Licensing And Collaboration Agreement    
Collaboration and royalty revenue    
Revenue 20,000 100
Licensing And Collaboration Agreement | Collaboration revenue    
Collaboration and royalty revenue    
Revenue 20,000 100
Licensing And Collaboration Agreement | Royalty revenue    
Collaboration and royalty revenue    
Revenue 6,700 0
Licensing And Collaboration Agreement | Sales Milestones    
Collaboration and royalty revenue    
Milestone payments received $ 20,000 $ 0