v3.22.2.2
Fair value of financial instruments and investments - Available-for-sale securities (Details) - USD ($)
$ in Thousands
Sep. 30, 2022
Dec. 31, 2021
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses $ (2,347) $ (673)
Securities in an unrealized loss position less than 12 months - Fair Value 55,290 256,801
Securities in an unrealized loss position greater than 12 months - Unrealized losses (587) (36)
Securities in an unrealized loss position greater than 12 months - Fair Value 15,710 4,985
Total - Unrealized losses (2,934) (709)
Total - Fair Value 71,000 261,786
Commercial paper    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses   (1)
Securities in an unrealized loss position less than 12 months - Fair Value   12,992
Total - Unrealized losses   (1)
Total - Fair Value   12,992
Corporate debt securities    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses (2,143) (608)
Securities in an unrealized loss position less than 12 months - Fair Value 50,497 217,540
Securities in an unrealized loss position greater than 12 months - Unrealized losses (550) (36)
Securities in an unrealized loss position greater than 12 months - Fair Value 14,871 4,985
Total - Unrealized losses (2,693) (644)
Total - Fair Value 65,368 222,525
Asset-backed securities    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses   (5)
Securities in an unrealized loss position less than 12 months - Fair Value   10,786
Total - Unrealized losses   (5)
Total - Fair Value   10,786
Government obligations    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses (204) (59)
Securities in an unrealized loss position less than 12 months - Fair Value 4,793 15,483
Securities in an unrealized loss position greater than 12 months - Unrealized losses (37)  
Securities in an unrealized loss position greater than 12 months - Fair Value 839  
Total - Unrealized losses (241) (59)
Total - Fair Value $ 5,632 $ 15,483