Fair Value Measurements - Summary of Financial Assets Measured at Fair Value on Recurring Basis (Details) - USD ($) $ in Thousands | Mar. 31, 2022 | Dec. 31, 2021 |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total cash equivalents, short-term investments and long-term investments | $ 106,348 | $ 116,747 |
Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 68,005 | 46,221 |
Long Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 17,601 | 32,459 |
Money Market Funds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Cash equivalents, fair value | 20,742 | 38,067 |
Commercial Paper | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 30,488 | 33,973 |
Corporate Bond | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 14,529 | 6,262 |
Corporate Bond | Long Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | | 8,436 |
US Treasury Securities | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 22,988 | 5,986 |
US Treasury Securities | Long Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 17,601 | 24,023 |
Fair Value Recurring | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Cash equivalents, fair value | 20,742 | 38,067 |
Total cash equivalents, short-term investments and long-term investments | 106,348 | 116,747 |
Fair Value Recurring | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 68,005 | 46,221 |
Fair Value Recurring | Long Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 17,601 | 32,459 |
Fair Value Recurring | Level 1 | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Cash equivalents, fair value | 20,742 | 38,067 |
Total cash equivalents, short-term investments and long-term investments | 75,860 | 82,774 |
Fair Value Recurring | Level 1 | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 37,517 | 12,248 |
Fair Value Recurring | Level 1 | Long Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 17,601 | 32,459 |
Fair Value Recurring | Level 2 | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total cash equivalents, short-term investments and long-term investments | 30,488 | 33,973 |
Fair Value Recurring | Level 2 | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 30,488 | 33,973 |
Fair Value Recurring | Money Market Funds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Cash equivalents, fair value | 20,742 | 38,067 |
Fair Value Recurring | Money Market Funds | Level 1 | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Cash equivalents, fair value | 20,742 | 38,067 |
Fair Value Recurring | Commercial Paper | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 30,488 | 33,973 |
Fair Value Recurring | Commercial Paper | Level 2 | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 30,488 | 33,973 |
Fair Value Recurring | Corporate Bond | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 14,529 | 6,262 |
Fair Value Recurring | Corporate Bond | Long Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | | 8,436 |
Fair Value Recurring | Corporate Bond | Level 1 | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 14,529 | 6,262 |
Fair Value Recurring | Corporate Bond | Level 1 | Long Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | | 8,436 |
Fair Value Recurring | US Treasury Securities | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 22,988 | 5,986 |
Fair Value Recurring | US Treasury Securities | Long Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 17,601 | 24,023 |
Fair Value Recurring | US Treasury Securities | Level 1 | Short Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | 22,988 | 5,986 |
Fair Value Recurring | US Treasury Securities | Level 1 | Long Term Investments | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Available for sale, fair value | $ 17,601 | $ 24,023 |