Accrued expenses and other current liabilities (Details) - USD ($) $ in Thousands |
Jun. 30, 2026 |
Dec. 31, 2025 |
|---|---|---|
| Organization, Consolidation and Presentation of Financial Statements [Abstract] | ||
| Accrued R&D costs | $ 24,615 | $ 18,904 |
| Accrued payroll and benefits | 6,019 | 13,257 |
| Accrued restructuring costs | 2,674 | 2,159 |
| Deferred royalty obligation, short-term | 21,085 | 11,054 |
| Gross-to-net sales adjustments, short-term | 8,451 | 9,020 |
| Other | 4,547 | 3,594 |
| Accrued expenses and other current liabilities | $ 67,391 | $ 57,988 |