Fair Value Measurements - Summary of Financial Assets Measured at Fair Value on Recurring Basis (Details) - USD ($) $ in Thousands | Jun. 30, 2021 | Dec. 31, 2020 |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Aggregated Fair Value | $ 169,897 | $ 181,856 |
Recurring | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 169,880 | 181,848 |
Short-term investments, Gross Unrealized Holding Gains | 22 | 17 |
Short-term investments, Gross Unrealized Holding Losses | (5) | (9) |
Short-term investments, Aggregated Fair Value | 169,897 | 181,856 |
Recurring | Cash equivalents | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Aggregated Fair Value | 34,648 | 75,410 |
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 | 135,249 | 106,446 |
Recurring | Level 1 | Money Market Funds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 30,046 | 46,134 |
Short-term investments, Aggregated Fair Value | 30,046 | 46,134 |
Recurring | Level 2 | Commercial Paper | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 76,319 | 76,605 |
Short-term investments, Gross Unrealized Holding Gains | 5 | |
Short-term investments, Gross Unrealized Holding Losses | (3) | (2) |
Short-term investments, Aggregated Fair Value | 76,321 | 76,603 |
Recurring | Level 2 | Agency bonds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 18,788 | 29,654 |
Short-term investments, Gross Unrealized Holding Gains | 7 | 15 |
Short-term investments, Aggregated Fair Value | 18,795 | 29,669 |
Recurring | Level 2 | Corporate Debt | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 18,683 | 11,890 |
Short-term investments, Gross Unrealized Holding Gains | 3 | |
Short-term investments, Gross Unrealized Holding Losses | (1) | (6) |
Short-term investments, Aggregated Fair Value | 18,685 | 11,884 |
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 | 16,665 | 7,093 |
Short-term investments, Gross Unrealized Holding Gains | 4 | |
Short-term investments, Gross Unrealized Holding Losses | (1) | |
Short-term investments, Aggregated Fair Value | 16,668 | 7,093 |
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 | 2,527 | |
Short-term investments, Aggregated Fair Value | 2,527 | |
Recurring | Level 2 | Municipal Bonds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | 6,852 | 5,592 |
Short-term investments, Gross Unrealized Holding Gains | 3 | 2 |
Short-term investments, Gross Unrealized Holding Losses | | (1) |
Short-term investments, Aggregated Fair Value | $ 6,855 | 5,593 |
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 | | 4,680 |
Short-term investments, Aggregated Fair Value | | 4,680 |
Recurring | Level 2 | Agency discount securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Short-term investments, Amortized Cost | | 200 |
Short-term investments, Aggregated Fair Value | | $ 200 |