| Contingencies and commitments - Clinical Trials and Contract Manufacturing Commitments (Details) - Clinical trials and contract manufacturing commitments - USD ($) | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Contingencies and commitments | |||
| Other commitments, due within one year | $ 11,165,000 | ||
| Other commitments, due in one to three years | 3,837,000 | ||
| Other commitments, due in three to five years | 1,556,000 | ||
| Subcontract costs | 52,061,000 | $ 48,416,000 | $ 54,689,000 | 
| Maximum | |||
| Contingencies and commitments | |||
| Other commitments | $ 16,558,000 | ||
| X | ||||||||||
| 
- Definition Amount of other commitments maturing in the next rolling twelve months following the latest balance sheet. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of other commitments maturing in the second or third rolling twelve months following the latest balance sheet. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of other commitments maturing in the fourth or fifth rolling twelve months following the latest balance sheet. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of subcontract costs incurred during the period. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Minimum amount of other commitment not otherwise specified in the taxonomy. Excludes commitments explicitly modeled in the taxonomy, including but not limited to, long-term and short-term purchase commitments, recorded and unrecorded purchase obligations, supply commitments, registration payment arrangements, leases, debt, product warranties, guarantees, environmental remediation obligations, and pensions. No definition available. 
 | 
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |