Fair Value Measurements - Fair Value Measurements (Details) - USD ($) $ in Thousands | Mar. 31, 2022 | Dec. 31, 2021 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | $ 56,441 | $ 37,187 |
Debt securities, available-for-sale | 142,792 | 102,614 |
Total investments | 142,792 | 102,614 |
Total cash, cash equivalents and investments | 199,233 | 139,801 |
LEVEL 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 56,441 | 37,187 |
Total investments | 0 | 0 |
Total cash, cash equivalents and investments | 56,441 | 37,187 |
LEVEL 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | 0 |
Total investments | 142,792 | 102,614 |
Total cash, cash equivalents and investments | 142,792 | 102,614 |
LEVEL 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | 0 |
Total investments | 0 | 0 |
Total cash, cash equivalents and investments | 0 | 0 |
Cash and cash equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 56,441 | 37,187 |
Cash and cash equivalents | LEVEL 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 56,441 | 37,187 |
Cash and cash equivalents | LEVEL 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | 0 |
Cash and cash equivalents | LEVEL 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | 0 |
Certificates of deposit | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 9,030 | 9,038 |
Certificates of deposit | LEVEL 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 0 | 0 |
Certificates of deposit | LEVEL 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 9,030 | 9,038 |
Certificates of deposit | LEVEL 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 0 | 0 |
Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 54,270 | 50,920 |
Commercial paper | LEVEL 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 0 | 0 |
Commercial paper | LEVEL 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 54,270 | 50,920 |
Commercial paper | LEVEL 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 0 | 0 |
Corporate bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 45,554 | 42,656 |
Corporate bonds | LEVEL 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 0 | 0 |
Corporate bonds | LEVEL 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 45,554 | 42,656 |
Corporate bonds | LEVEL 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Debt securities, available-for-sale | 0 | $ 0 |
U.S. Government and government agencies | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total investments | 33,938 | |
U.S. Government and government agencies | LEVEL 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total investments | 0 | |
U.S. Government and government agencies | LEVEL 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total investments | 33,938 | |
U.S. Government and government agencies | LEVEL 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total investments | $ 0 | |