XML 56 R43.htm IDEA: XBRL DOCUMENT v3.23.2
Consolidated balance sheet components - Summary of Cash, Cash Equivalents, and Marketable Securities (Details) - USD ($)
$ in Thousands
Jun. 30, 2023
Dec. 31, 2022
Cash and Cash Equivalents [Line Items]    
Amortized Cost $ 465,525 $ 465,584
Unrealized Gains 21 34
Unrealized Losses (32) (246)
Fair Value 465,514 465,372
Unrealized loss position, fair value 38,765 84,017
Cash and Cash Equivalents    
Cash and Cash Equivalents [Line Items]    
Amortized Cost 323,227 313,684
Unrealized Gains 0 4
Unrealized Losses 0 (3)
Fair Value 323,227 313,685
Unrealized loss position, fair value 0 24,960
Cash and Cash Equivalents | Cash    
Cash and Cash Equivalents [Line Items]    
Amortized Cost 41,508 134,408
Unrealized Gains 0 0
Unrealized Losses 0 0
Fair Value 41,508 134,408
Cash and Cash Equivalents | Money market funds    
Cash and Cash Equivalents [Line Items]    
Amortized Cost 281,719 130,377
Unrealized Gains 0 0
Unrealized Losses 0 0
Fair Value 281,719 130,377
Cash and Cash Equivalents | U.S. government securities    
Cash and Cash Equivalents [Line Items]    
Amortized Cost   48,899
Unrealized Gains   4
Unrealized Losses   (3)
Fair Value   48,900
Marketable Securities | U.S. government securities    
Cash and Cash Equivalents [Line Items]    
Amortized Cost 142,298 151,900
Unrealized Gains 21 30
Unrealized Losses (32) (243)
Fair Value 142,287 151,687
Unrealized loss position, fair value $ 38,765 $ 59,057