Annual report [Section 13 and 15(d), not S-K Item 405]

Debt - Narrative (Details)

v3.25.1
Debt - Narrative (Details)
3 Months Ended 12 Months Ended
Mar. 13, 2023
USD ($)
quarter
Apr. 04, 2022
USD ($)
shares
Mar. 31, 2024
Dec. 31, 2024
USD ($)
shares
Dec. 31, 2023
USD ($)
Dec. 31, 2022
USD ($)
Mar. 28, 2023
USD ($)
quarter
$ / shares
shares
Jan. 06, 2023
USD ($)
Dec. 30, 2022
USD ($)
Aug. 11, 2022
USD ($)
quarter
Sep. 03, 2021
USD ($)
Debt Instrument [Line Items]                      
Write-off of financing fees       $ 1,228,000 $ 0            
Warrants outstanding (in shares) | shares       833,330              
Warrant liability       $ 6,403,000 7,214,000            
Proceeds from issuance of debt       100,113,000 152,608,000            
March 2023 Cargill Warrant                      
Debt Instrument [Line Items]                      
Warrant liability       $ 25,700,000 $ 25,700,000            
Senior Credit Agreement | Loans Payable                      
Debt Instrument [Line Items]                      
Debt, face amount                     $ 200,000,000
Debt covenant, minimum liquidity amount                     30,000,000
Debt instrument, increase of interest rate   2.00%                  
Senior Facility | Loans Payable                      
Debt Instrument [Line Items]                      
Debt, face amount                     150,000,000.0
Subordinated Facility | Loans Payable                      
Debt Instrument [Line Items]                      
Debt, face amount                     $ 50,000,000.0
Debt instrument, increase of interest rate   2.00%                  
Interest rate percentage   12.50%   12.50%              
Debt instrument, amortization period     10 years                
Subordinated Facility | Loans Payable | Minimum                      
Debt Instrument [Line Items]                      
Debt basis spread on variable rate       7.50%              
Subordinated Facility | Loans Payable | Maximum                      
Debt Instrument [Line Items]                      
Debt basis spread on variable rate       8.50%              
First Amendment of the Credit Agreements | Loans Payable                      
Debt Instrument [Line Items]                      
Debt, face amount   $ 170,000,000                  
Debt covenant, minimum liquidity amount   $ 20,000,000                  
Interest rate percentage   12.50%                  
Debt amendment fee   $ 2,000,000                  
Issuance of common stock for debt modification (in shares) | shares   1,932,931                  
Write-off of financing fees           $ 700,000          
Stock issued during period, value, debt modification           $ 17,400,000          
Second Amendment of the Credit Agreements | Loans Payable                      
Debt Instrument [Line Items]                      
Debt instrument, covenant, interest amount                   $ 0  
Outstanding period | quarter                   4  
Third Amendment of the Credit Agreements | Loans Payable                      
Debt Instrument [Line Items]                      
Debt covenant, debt service reserve account requirement                 $ 11,300,000    
Capital expenditures covenant, applicable construction budget                 $ 1,000,000    
Fourth Amendment of the Credit Agreements | Loans Payable                      
Debt Instrument [Line Items]                      
Debt covenant, minimum liquidity amount               $ 11,000,000      
Fifth Amendment To Original Credit Agreements | Loans Payable                      
Debt Instrument [Line Items]                      
Debt, face amount $ 170,000,000                    
Debt covenant, minimum liquidity amount 1,000,000                    
Debt covenant, debt service reserve account requirement $ 11,000,000                    
Debt covenant, debt service reserve account requirement, number of calendar quarters | quarter 2                    
Debt covenant, payment in kind of quarterly interest and unused commitment fee payable $ 4,300,000                    
Sixth Amendment To Original Credit Agreements | Loans Payable                      
Debt Instrument [Line Items]                      
Debt, face amount             $ 280,000,000        
Debt covenant, payment in kind of quarterly interest payment due and payable             5,000,000        
Debt service reserve account             $ 0        
Debt covenant, debt service reserve account requirement, number of quarters of scheduled interest payments | quarter             2        
Debt covenant, debt service reserve account requirement, number of quarters of scheduled amortization payments | quarter             2        
Sixth Amendment To Original Credit Agreements | Loans Payable | March 2023 Cargill Warrant                      
Debt Instrument [Line Items]                      
Warrants outstanding (in shares) | shares             5,400,000        
Warrant price (in dollars per share) | $ / shares             $ 13.00        
Warrants term             5 years        
Ninth Amendment to Credit Agreements | Loans Payable                      
Debt Instrument [Line Items]                      
Debt, working capital borrowing capacity       $ 15,000,000              
Proceeds from issuance of debt       $ 15,000,000