Restructuring, impairment, and other related costs - Restructuring Costs (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2026 |
Jun. 30, 2025 |
|
| Restructuring and Related Activities [Abstract] | ||||
| Severance costs | $ 2,674 | $ 6,677 | $ 2,674 | $ 6,677 |
| Impairment of long-lived assets and prepaid expenses | 0 | 6,414 | 0 | 6,414 |
| Total restructuring, impairment and other related costs | $ 2,674 | $ 13,091 | $ 2,674 | $ 13,091 |