Commitments and contingencies (Details) $ in Thousands |
Dec. 31, 2023
USD ($)
|
Dec. 31, 2022
USD ($)
|
Jul. 10, 2020
ft²
|
Feb. 29, 2020
USD ($)
|
|---|---|---|---|---|
| Lease agreement term | 7 years | |||
| Square feet of office | ft² | 6,647 | |||
| Minimum payments during the term | $ 2,300 | |||
| Non-cancelable purchase and other commitments with contract research organizations and contract manufacturing organizations | $ 30,878 | |||
| Total lease liability | 1,079 | |||
| Operating lease liability, noncurrent | $ 819 | $ 1,079 | ||
| Accounting Standards Update 2016-13 [Member] | ||||
| Operating Lease, Liability, Statement of Financial Position [Extensible Enumeration] | Operating lease liability, noncurrent, Prepaid Expense and Other Assets, Current | |||
| Short-term Liabilities | $ 260 |