Annual report pursuant to Section 13 and 15(d)

Debt (Interest Expense) (Narrative) (Details)

v3.22.4
Debt (Interest Expense) (Narrative) (Details) - USD ($)
$ in Thousands
1 Months Ended 12 Months Ended
Nov. 30, 2022
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Line of Credit Facility [Line Items]        
Coupon interest   $ 10,897 $ 9,919 $ 7,442
Interest expense   16,843 16,931 31,504
Convertible Notes due 2023        
Line of Credit Facility [Line Items]        
Repurchase amount $ 300,000      
Gain (loss) on extinguishment of debt   $ (13,421) $ 0 $ 0
Effective interest rate (as a percent)   2.40% 2.40% 6.00%
Convertible Notes due 2025        
Line of Credit Facility [Line Items]        
Repurchase amount 200,000      
Gain (loss) on extinguishment of debt   $ 15,089 $ 0 $ 0
Effective interest rate (as a percent)   1.30% 1.30% 4.00%
Convertible Notes Payable | Convertible Notes due 2023        
Line of Credit Facility [Line Items]        
Interest and debt expense   $ 20,700 $ 8,000 $ 17,100
Coupon interest   5,400 6,000 6,000
Amortization of debt issuance costs and discounts   1,900 2,000 11,100
Repurchase amount   300,000    
Gain (loss) on extinguishment of debt (13,400)      
Convertible Notes Payable | Convertible Notes due 2025        
Line of Credit Facility [Line Items]        
Interest and debt expense   (8,600) 6,800 6,900
Coupon interest   3,700 3,900 1,400
Amortization of debt issuance costs and discounts   2,800 $ 2,900 $ 5,500
Repurchase amount 200,000      
Gain (loss) on extinguishment of debt $ 15,100      
Convertible Notes Payable | Convertible Notes due 2027        
Line of Credit Facility [Line Items]        
Coupon interest   1,800    
Amortization of debt issuance costs and discounts   400    
Interest expense   $ 2,200    
Effective interest rate (as a percent)   3.20%    
Convertible Debt        
Line of Credit Facility [Line Items]        
Gain (loss) on extinguishment of debt   $ 1,700    
Convertible Debt | Convertible Notes due 2023        
Line of Credit Facility [Line Items]        
Gain (loss) on extinguishment of debt   (13,400)    
Convertible Debt | Convertible Notes due 2025        
Line of Credit Facility [Line Items]        
Gain (loss) on extinguishment of debt   $ (15,100)