v3.24.2.u1
Convertible Senior Notes - Narrative (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended
Mar. 31, 2024
Mar. 31, 2023
USD ($)
day
$ / shares
Jun. 30, 2024
USD ($)
$ / shares
Mar. 31, 2024
USD ($)
Jun. 30, 2023
USD ($)
Jun. 30, 2024
USD ($)
$ / shares
Jun. 30, 2023
USD ($)
Dec. 31, 2023
USD ($)
$ / shares
Debt Instrument [Line Items]                
Net proceeds from sale of convertible notes           $ 0 $ 393,518  
Common stock, par value (in dollars per share) | $ / shares   $ 0.001 $ 0.001     $ 0.001   $ 0.001
Interest costs capitalized         $ 181   $ 181  
March 2023 Note | Convertible Notes                
Debt Instrument [Line Items]                
Debt issuance   $ 402,500           $ 402,500
Interest rate   3.00% 3.00%     3.00%   3.00%
Net proceeds from sale of convertible notes   $ 391,492            
Threshold trading days (in days) | day   20            
Threshold percentage of stock price trigger 130.00% 130.00%            
Threshold consecutive business days (in days) | day   5            
Percentage of share price and conversion rate (less than)   98.00%            
Conversion ratio   0.0143516            
Conversion price (in dollars per share) | $ / shares   $ 69.68            
Redemption, threshold trading days (in days) | day   40            
Redemption price, percentage   100.00%            
Redemption, minimum aggregate principal outstanding   $ 100,000            
Effective interest rate   3.59%            
Transaction costs   $ 11,008            
Contractual interest expense     $ 3,019     $ 6,038    
Interest payment       $ 3,019        
Accrued interest expense     3,019     3,019    
Interest costs capitalized     $ 1,362     $ 2,407    
March 2023 Note | Convertible Notes | Conversion Period One                
Debt Instrument [Line Items]                
Consecutive threshold trading days (in days) | day   30            
March 2023 Note | Convertible Notes | Conversion Period Two                
Debt Instrument [Line Items]                
Consecutive threshold trading days (in days) | day   10