Leases - Additional Information (Detail) - USD ($) $ in Thousands |
1 Months Ended | 12 Months Ended | ||||
|---|---|---|---|---|---|---|
Jun. 30, 2022 |
Dec. 31, 2023 |
Dec. 31, 2022 |
Oct. 01, 2021 |
Sep. 26, 2016 |
Apr. 30, 2015 |
|
| Operating Leased Assets [Line Items] | ||||||
| Lease agreement term | 5 years | |||||
| Restricted cash | $ 3,699 | $ 3,660 | ||||
| Description of additional lease space | The lease for the additional space commenced on October 1, 2021, with a term of five years and is considered a separate lease from the Cambridge Lease. | |||||
| Operating lease right-of-use assets | $ 22,637 | 26,843 | $ 4,500 | |||
| Operating lease liability | $ 32,118 | $ 4,500 | ||||
| Lexington, Massachusetts [Member] | ||||||
| Operating Leased Assets [Line Items] | ||||||
| Lease agreement term | 10 years 9 months | |||||
| Renewal options | 10 year and 9-month lease, which includes two successive five-year renewal options | |||||
| Restricted cash | $ 2,700 | 2,700 | ||||
| Lease renewal term | 5 years | |||||
| Cambridge, Massachusetts [Member] | ||||||
| Operating Leased Assets [Line Items] | ||||||
| Lease agreement term | 7 years 6 months | |||||
| Restricted cash | $ 1,000 | $ 1,000 | ||||
| Lease renewal term | 5 years | 5 years | ||||
| Lease option to extend description | five-year renewal option to extend the lease | |||||
| Option to extend the lease | true | |||||
| Incremental borrowing rate | 10.53% | |||||
| Operating lease right-of-use assets | $ 12,000 | |||||
| Operating lease liability | $ 12,000 |