Collaboration and license agreements - Schedule of supplemental financial information related to collaboration and license agreements (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Organization, Consolidation and Presentation of Financial Statements [Abstract] | ||
| Revenue recognized that was included in the contract liability at the beginning of the period | $ 25,412 | $ 34,363 |
| Revenue recognized from performance obligations fully or partially satisfied in previous periods | $ 518 | $ 1,654 |