v3.25.2
Royalty purchase liability - Additional Information (Details) - USD ($)
$ in Thousands
1 Months Ended 6 Months Ended
Nov. 30, 2018
Jun. 30, 2025
Dec. 31, 2024
Jun. 30, 2024
Jul. 31, 2021
Jun. 30, 2021
May 31, 2020
Royalty Purchase Liability [Line Items]              
Total agreed amount of royalty purchase price   $ 151,049 $ 151,049        
Effective interest rate   0.00%   0.00%      
Warrant expiration term   6 years          
Fair value of equity classified warrants   $ 4,700          
Royalty Agreements              
Royalty Purchase Liability [Line Items]              
Total agreed amount of royalty purchase price $ 80,000            
Royalty purchase price   $ 117,500          
Outstanding amount of royalty agreement             $ 20,000
Royalty Agreements | First Tranche              
Royalty Purchase Liability [Line Items]              
Royalty purchase price $ 20,000            
Royalty Agreements | Fifth Tranche              
Royalty Purchase Liability [Line Items]              
Outstanding amount of royalty agreement           $ 20,000  
Royalty Agreements | Fourth Tranche              
Royalty Purchase Liability [Line Items]              
Outstanding amount of royalty agreement         $ 37,500    
Amended Royalty Agreements              
Royalty Purchase Liability [Line Items]              
Total agreed amount of royalty purchase price             117,500
Outstanding amount of royalty agreement             37,500
Amended Royalty Agreements | Fifth Tranche              
Royalty Purchase Liability [Line Items]              
Outstanding amount of royalty agreement             $ 20,000