| Income Taxes - Components of Deferred Income Tax Asset (Details) - USD ($) $ in Thousands | Dec. 31, 2022 | Dec. 31, 2021 | 
|---|---|---|
| Deferred tax assets: | ||
| Net operating loss carryforwards | $ 30,225 | $ 46,062 | 
| Research and development credits | 73,965 | 88,778 | 
| Foreign tax credits | 0 | 7,695 | 
| Accrued expenses and other | 10,271 | 2,748 | 
| Lease obligation | 1,961 | 1,041 | 
| Accrued compensation | 6,919 | 5,057 | 
| Stock-based compensation | 9,976 | 8,014 | 
| Intangible assets | 5,582 | 0 | 
| Deferred tax assets, gross | 138,899 | 159,395 | 
| Less valuation allowance | (66,273) | (68,151) | 
| Deferred tax assets, net of valuation allowance | 72,626 | 91,244 | 
| Deferred tax liabilities: | ||
| Fixed assets | (4,350) | (701) | 
| Leased right-of-use assets | (1,784) | (735) | 
| Intangible assets | 0 | (640) | 
| Pension liability | (1,569) | (792) | 
| Net deferred tax assets | $ 64,923 | $ 88,376 | 
| X | ||||||||||
| 
- Definition Deferred Tax Asset, Lease obligation No definition available. 
 | 
| X | ||||||||||
| 
- Definition Deferred Tax Liabilities, Pension Liability No definition available. 
 | 
| X | ||||||||||
| 
- Definition Deferred Tax Liability, Leased right-of-use asset No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from intangible assets including goodwill. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible foreign tax credit carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible research tax credit carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from employee compensation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences from reserves and accruals, classified as other. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of deferred tax liability attributable to taxable temporary differences from intangible assets other than goodwill. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Amount of deferred tax liability attributable to taxable temporary differences from long-lived assets other than property, plant, and equipment. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 |