Fair Value Measurements - Summary of Financial Assets Measured at Fair Value on Recurring Basis (Details) - USD ($) $ in Thousands | Jun. 30, 2022 | Dec. 31, 2021 |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Aggregated Fair Value | | $ 126,003 |
Recurring | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | $ 100,303 | 126,066 |
Short-term investments, Gross Unrealized Holding Gains | | 2 |
Short-term investments, Gross Unrealized Holding Losses | (335) | (65) |
Short-term investments, Aggregated Fair Value | 99,968 | 126,003 |
Recurring | Cash equivalents | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Aggregated Fair Value | 21,261 | 27,715 |
Recurring | Short-term available for sale securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Aggregated Fair Value | 78,707 | 98,288 |
Recurring | Level 1 | Money Market Funds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 14,347 | 21,477 |
Short-term investments, Aggregated Fair Value | 14,347 | 21,477 |
Recurring | Level 2 | Commercial Paper | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 45,710 | 59,647 |
Short-term investments, Gross Unrealized Holding Losses | (15) | (10) |
Short-term investments, Aggregated Fair Value | 45,695 | 59,637 |
Recurring | Level 2 | U.S. government bonds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 25,565 | 21,662 |
Short-term investments, Gross Unrealized Holding Losses | (226) | (42) |
Short-term investments, Aggregated Fair Value | 25,339 | 21,620 |
Recurring | Level 2 | Corporate Debt | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 3,630 | 8,776 |
Short-term investments, Gross Unrealized Holding Gains | | 1 |
Short-term investments, Gross Unrealized Holding Losses | (37) | (1) |
Short-term investments, Aggregated Fair Value | 3,593 | 8,776 |
Recurring | Level 2 | Agency bonds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 3,999 | 7,747 |
Short-term investments, Gross Unrealized Holding Gains | | 1 |
Short-term investments, Gross Unrealized Holding Losses | (35) | (7) |
Short-term investments, Aggregated Fair Value | 3,964 | 7,741 |
Recurring | Level 2 | U.S. treasury bills | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 1,986 | |
Short-term investments, Gross Unrealized Holding Losses | (11) | |
Short-term investments, Aggregated Fair Value | 1,975 | |
Recurring | Level 2 | Municipal Bonds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 1,587 | 4,251 |
Short-term investments, Gross Unrealized Holding Losses | (1) | (4) |
Short-term investments, Aggregated Fair Value | 1,586 | 4,247 |
Recurring | Level 2 | Non-US debt securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 3,479 | 2,506 |
Short-term investments, Gross Unrealized Holding Losses | (10) | (1) |
Short-term investments, Aggregated Fair Value | $ 3,469 | $ 2,505 |