Fair Value Measurements - Assets and Liabilities Measured on Recurring Basis (Details) - Fair Value, Recurring - USD ($) $ in Thousands | Mar. 31, 2022 | Dec. 31, 2021 |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted cash | $ 10,233 | $ 10,233 |
Total assets | 409,832 | 409,610 |
U.S. government debt | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 19,779 | 19,927 |
Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 52,016 | 61,177 |
Certificates of deposit | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 11,419 | 21,440 |
Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 128,902 |
Money market funds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 316,385 | 155,731 |
Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | 12,000 |
Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | 200 |
Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted cash | 10,233 | 10,233 |
Total assets | 10,233 | 10,233 |
Level 1 | U.S. government debt | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 0 | 0 |
Level 1 | Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 0 | 0 |
Level 1 | Certificates of deposit | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 0 | 0 |
Level 1 | Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 0 |
Level 1 | Money market funds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 0 | 0 |
Level 1 | Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | 0 |
Level 1 | Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | 0 |
Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted cash | 0 | 0 |
Total assets | 399,599 | 399,377 |
Level 2 | U.S. government debt | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 19,779 | 19,927 |
Level 2 | Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 52,016 | 61,177 |
Level 2 | Certificates of deposit | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 11,419 | 21,440 |
Level 2 | Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 128,902 |
Level 2 | Money market funds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 316,385 | 155,731 |
Level 2 | Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | 12,000 |
Level 2 | Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | 200 |
Level 3 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted cash | 0 | 0 |
Total assets | 0 | 0 |
Level 3 | U.S. government debt | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 0 | 0 |
Level 3 | Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 0 | 0 |
Level 3 | Certificates of deposit | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | 0 | 0 |
Level 3 | Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 0 |
Level 3 | Money market funds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | $ 0 | 0 |
Level 3 | Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | 0 |
Level 3 | Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | $ 0 |