v3.25.2
Borrowings - Net Carrying Value (Details) - USD ($)
$ in Thousands
Jun. 30, 2025
Jun. 13, 2025
Jun. 11, 2025
Jun. 03, 2025
Dec. 31, 2024
Debt Instrument [Line Items]          
Principal $ 533,869       $ 395,535
Total borrowings 445,277       316,896
2025 Convertible Notes | Convertible Notes          
Debt Instrument [Line Items]          
Principal 250,000 $ 250,000 $ 237,500 $ 225,000 0
Unamortized debt discount (9,885) (10,000) (9,500) (9,000)  
Unamortized debt issuance costs (864) (874) (874) (874)  
Total borrowings 239,251 $ 239,126 $ 227,126 $ 215,126 0
2021 Convertible Note Payable | Convertible Notes          
Debt Instrument [Line Items]          
Principal 0       122,868
Unamortized debt discount         (13,045)
Unamortized debt issuance costs         (1,257)
Embedded conversion feature         1,272
Total borrowings 0       109,838
DOE Loan Facility          
Debt Instrument [Line Items]          
Total borrowings 68,023       65,452
DOE Loan Facility | PIK Interest          
Debt Instrument [Line Items]          
Principal 68,279       68,279
Capitalized PIK Interest 1,614       107
Unamortized debt issuance costs (1,870)       (2,934)
Total borrowings 68,023       65,452
AFG Convertible Notes | Convertible Notes | Related Party          
Debt Instrument [Line Items]          
Principal 25,315       22,353
Unamortized debt discount (1,349)       (1,906)
Unamortized debt issuance costs (380)       (538)
Embedded conversion feature 51,639       43,124
Total borrowings $ 75,225       $ 63,033