v3.25.2
Senior Notes - Convertible Note (Details) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended
Apr. 12, 2025
Feb. 29, 2024
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2025
Jun. 30, 2024
Dec. 31, 2024
Debt Instrument [Line Items]              
Convertible Notes     $ 0   $ 0   $ 519,749
Payment for notes         110,000 $ 1,103  
Senior Notes     200,409   200,409   0
Convertible Notes              
Debt Instrument [Line Items]              
Interest expense on debt     0 $ 1,600 1,700 $ 4,300  
Convertible Notes | Convertible Debt              
Debt Instrument [Line Items]              
Convertible Notes     0   0   519,700
Repayments of debt   $ 2,500          
Principal payment, debt   1,100          
Interest payment, debt   $ 1,400          
Long-term debt $ 532,500            
Fixed interest rate (as a percent) 1.00%            
Convertible debt $ 521,400            
Debt, discount 11,000            
Gain on troubled debt restructuring 210,000            
Tax effect on gain on troubled debt restructuring $ 1,000            
Senior Secured Notes due 2028 | Secured Debt              
Debt Instrument [Line Items]              
Fixed interest rate (as a percent) 6.00%            
Aggregate principal amount $ 155,000            
Payment for notes $ 110,000            
Right of investor threshold, aggregate principal amount held, percentage 25.00%            
Right of investor threshold, outstanding shares of common stock held, percentage 12.00%            
Senior Notes $ 200,400            
Redemption premium $ 45,400            
Redemption price percentage 108.00%            
Senior Notes Indenture | Senior Notes              
Debt Instrument [Line Items]              
Fixed interest rate (as a percent) 6.00%            
Right of investor threshold, aggregate principal amount held, percentage 60.00%            
Senior Notes     $ 200,400   $ 200,400   $ 0