Fair Value Measurements - Assets and Liabilities Measured on Recurring Basis (Details) - Fair Value, Recurring - USD ($) $ in Thousands | Sep. 30, 2022 | Dec. 31, 2021 |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted cash | $ 10,244 | $ 10,233 |
Total assets | 412,091 | 409,610 |
U.S. government debt | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 19,927 |
Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 61,177 |
Certificates of deposit | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 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 | 401,847 | 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,244 | 10,233 |
Total assets | 412,091 | 165,964 |
Level 1 | U.S. government debt | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 0 |
Level 1 | Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 0 |
Level 1 | Certificates of deposit | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 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 | 401,847 | 155,731 |
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 | 0 | 243,646 |
Level 2 | U.S. government debt | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 19,927 |
Level 2 | Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 61,177 |
Level 2 | Certificates of deposit | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 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 | 0 | 0 |
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 |
Level 3 | Corporate bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 0 |
Level 3 | Certificates of deposit | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Investments | | 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 |