Fair Value Measurements - Summary of Marketable Securities by Security Type (Details) - USD ($) $ in Thousands |
Dec. 31, 2021 |
Dec. 31, 2020 |
|---|---|---|
| Schedule Of Available For Sale Securities [Line Items] | ||
| Amortized Cost | $ 176,015 | $ 44,489 |
| Unrealized Gains | 3 | |
| Unrealized Losses | (272) | (27) |
| Total | 175,746 | 44,462 |
| Commercial Paper | ||
| Schedule Of Available For Sale Securities [Line Items] | ||
| Amortized Cost | 12,635 | 6,412 |
| Total | 12,635 | 6,412 |
| Certificates of Deposit | ||
| Schedule Of Available For Sale Securities [Line Items] | ||
| Amortized Cost | 4,490 | 1,504 |
| Total | 4,490 | 1,504 |
| Corporate Debt Securities | ||
| Schedule Of Available For Sale Securities [Line Items] | ||
| Amortized Cost | 138,207 | 36,573 |
| Unrealized Gains | 3 | |
| Unrealized Losses | (249) | (27) |
| Total | 137,961 | $ 36,546 |
| U.S. Treasury Notes | ||
| Schedule Of Available For Sale Securities [Line Items] | ||
| Amortized Cost | 20,683 | |
| Unrealized Losses | (23) | |
| Total | $ 20,660 |