v3.26.1
Debt (Details)
1 Months Ended 3 Months Ended 6 Months Ended 12 Months Ended
Nov. 12, 2025
USD ($)
Mar. 13, 2025
USD ($)
Dec. 13, 2023
USD ($)
$ / shares
shares
Nov. 30, 2025
USD ($)
shares
Nov. 30, 2021
USD ($)
d
$ / shares
Jun. 30, 2026
USD ($)
$ / shares
shares
Jun. 30, 2025
USD ($)
Jun. 30, 2026
USD ($)
$ / shares
shares
Jun. 30, 2025
USD ($)
Dec. 31, 2025
USD ($)
Dec. 31, 2023
USD ($)
Dec. 31, 2022
USD ($)
Nov. 16, 2021
$ / shares
Debt Instrument [Line Items]                          
Aggregate principal amount           $ 45,580,000   $ 45,580,000          
Restructuring offset       $ 2,100,000                  
Third party fees       $ 1,448,000                  
Unamortized debt discount and issuance costs           $ 113,000   113,000          
Induced conversion               $ 0          
Payment for capped call transactions         $ 18,616,000                
Initial cap price (in dollars per share) | $ / shares           $ 48.55   $ 48.55          
Premium over last reported sale price, percentage         75.00%                
Sale of stock, price per share (usd per share) | $ / shares                         $ 27.74
Strike price (usd per share) | $ / shares           $ 35.76   $ 35.76          
2022 Repurchase Transaction                          
Debt Instrument [Line Items]                          
Repurchase of debt instrument                     $ 50,000,000    
Convertible Debt                          
Debt Instrument [Line Items]                          
Debt instrument settlement (in shares) | shares       625,000                  
Limited Consent                          
Debt Instrument [Line Items]                          
Cash consideration to lenders party   $ 1,000,000                      
1.75% convertible senior notes due 2026                          
Debt Instrument [Line Items]                          
Aggregate principal amount         $ 201,250,000                
Debt issuance costs           $ 6,304,000   $ 6,304,000          
Debt instrument, interest rate, stated percentage           1.75%   1.75%          
Additional principal amount         $ 26,250,000                
Number of trading days | d         20                
Number of consecutive trading days | d         30                
Percentage of conversion price         130.00%                
Debt instrument convertible principal amount         $ 1,000,000                
Debt instrument convertible measurement period percentage         98.00%                
Initial conversion rate (in shares)         0.0272068                
Initial conversion price (usd per share) | $ / shares         $ 36.76                
Percentage of conversion stock price, redemption         130.00%                
Debt instrument, redeemable, number of trading days | d         20                
Debt instrument, redeemable, number of consecutive trading days | d         30                
Redemption price, percentage of principal amount to be redeemed         100.00%                
Sinking fund         $ 0                
Debt instrument repurchase price due to fundamental change         100.00%                
Net proceeds from issuance of notes               $ 194,945,000          
Interest expense           $ 349,000 $ 546,000 $ 698,000 $ 1,091,000        
Effective annual interest rate           2.42% 2.42% 2.42% 2.42%        
Estimated fair value of convertible notes           $ 44,754,000   $ 44,754,000          
Unwinding of capped calls related to convertible notes repurchase                   $ 0      
Sixty Five Percentage Convertible Notes | 2022 Repurchase Transaction                          
Debt Instrument [Line Items]                          
Repurchase of debt instrument                       $ 60,000,000  
Debt instrument, interest rate, stated percentage                       65.00%  
2022 Repurchase Transaction | Convertible Debt                          
Debt Instrument [Line Items]                          
Repurchase of debt instrument       $ 45,670,000                  
Aggregate purchase price       39,049,000                  
Interest payable       393,000                  
Common stock with a fair value       3,162,000                  
Gains (losses) on restructuring of debt       $ 3,589,000                  
Seventy Five Persentage Convertible Notes | 2022 Repurchase Transaction                          
Debt Instrument [Line Items]                          
Debt instrument, interest rate, stated percentage                     75.00%    
Term Loan Facility                          
Debt Instrument [Line Items]                          
Warrants remained unexercised and outstanding (in shares) | shares           2,508,683   2,508,683          
Term Loan Facility | Secured Debt                          
Debt Instrument [Line Items]                          
Repayment of term loan $ 31,801,000                        
Payment of accrued interest 480,000                        
Payment of prepayment premiums $ 4,452,000                        
Repayments                   41,176,000      
Aggregate principal amount outstanding                   $ 0      
Interest expense           $ 0 $ 2,276,000 $ 0 $ 4,751,000        
Term Loan Facility | Lenders | Commitment Letter                          
Debt Instrument [Line Items]                          
Warrant exercise price (usd per share) | $ / shares     $ 2.576                    
Term Loan Facility | Senior Secured Term Loan                          
Debt Instrument [Line Items]                          
Aggregate principal amount     $ 77,500,000                    
Consideration on convertible notes     37,500,000                    
Repurchase of debt instrument     50,000,000                    
Extinguishment of convertible debt     30,000,000                    
Debt issuance costs     23,807,000                    
Capitalized issuance costs     $ 3,120,000                    
Amortization of initial discounts and issuance costs           $ 0 $ 1,156,000 $ 0 $ 2,215,000        
Term Loan Facility | Senior Secured Term Loan | Minimum | Lenders | Commitment Letter                          
Debt Instrument [Line Items]                          
Shares of common stock purchased for issuance of warrants (in shares) | shares     3,008,540