Share-based compensation - Schedule of Share-based Compensation Expense Recorded in Statement of Operations and Comprehensive Loss (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
---|---|---|---|---|
Jun. 30, 2025 |
Jun. 30, 2024 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
Research and development | ||||
Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Abstract] | ||||
Share-based compensation expense | $ 2,318 | $ 2,172 | $ 4,499 | $ 4,152 |
Selling, general and administrative | ||||
Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Abstract] | ||||
Share-based compensation expense | $ 7,715 | $ 7,828 | $ 15,023 | $ 14,812 |