XML 45 R35.htm IDEA: XBRL DOCUMENT v3.22.1
Fair Value Measurements - Fair Value of Assets Measured on a Recurring Basis (Details) - USD ($)
$ in Thousands
Mar. 31, 2022
Dec. 31, 2021
Mar. 31, 2021
Debt Securities, Available-for-sale [Line Items]      
Total cash and cash equivalents $ 438,052 $ 439,488 $ 85,453
Fair Value, Recurring      
Debt Securities, Available-for-sale [Line Items]      
Total cash and cash equivalents 438,052 439,488  
Total cash and cash equivalents, unrealized gain 1    
Total cash and cash equivalents, unrealized loss (1)    
Investments, amortized cost 210,480 218,289  
Investments, gross unrealized gain 0 16  
Investments, gross unrealized loss (723) (87)  
Investments, aggregate fair value 209,757 218,218  
Total assets measured at fair value on a recurring basis, amortized cost 648,532 657,777  
Total assets measured at fair value on a recurring basis, unrealized gain 1    
Total assets measured at fair value on a recurring basis, unrealized loss (724)    
Total assets measured at fair value on a recurring basis, aggregate fair value 647,809 657,706  
Fair Value, Recurring | Level 1      
Debt Securities, Available-for-sale [Line Items]      
Cash 105,219 114,533  
Money market funds 321,351 324,955  
Fair Value, Recurring | Level 2      
Debt Securities, Available-for-sale [Line Items]      
Commercial paper 11,482    
Commercial paper, gross unrealized gain 1    
Commercial paper, gross unrealized loss (1)    
Fair Value, Recurring | Level 2 | Commercial paper      
Debt Securities, Available-for-sale [Line Items]      
Investments, amortized cost 132,631 177,852  
Investments, gross unrealized gain 0 16  
Investments, gross unrealized loss (412) (57)  
Investments, aggregate fair value 132,219 177,811  
Fair Value, Recurring | Level 2 | U.S. Treasuries      
Debt Securities, Available-for-sale [Line Items]      
Investments, amortized cost 48,632 12,021  
Investments, gross unrealized gain 0 0  
Investments, gross unrealized loss (211) (9)  
Investments, aggregate fair value 48,421 12,012  
Fair Value, Recurring | Level 2 | Asset-backed securities      
Debt Securities, Available-for-sale [Line Items]      
Investments, amortized cost 6,037 12,084  
Investments, gross unrealized gain 0 0  
Investments, gross unrealized loss (22) (8)  
Investments, aggregate fair value 6,015 12,076  
Fair Value, Recurring | Level 2 | Corporate bonds      
Debt Securities, Available-for-sale [Line Items]      
Investments, amortized cost 18,180 16,332  
Investments, gross unrealized gain 0 0  
Investments, gross unrealized loss (65) (13)  
Investments, aggregate fair value 18,115 $ 16,319  
Fair Value, Recurring | Level 2 | Agency bonds      
Debt Securities, Available-for-sale [Line Items]      
Investments, amortized cost 5,000    
Investments, gross unrealized gain 0    
Investments, gross unrealized loss (13)    
Investments, aggregate fair value $ 4,987