Investments - Investments Measured at Fair Value on Recurring Basis (Detail) - USD ($) $ in Thousands | 9 Months Ended | 12 Months Ended |
Sep. 30, 2021 | Dec. 31, 2020 |
Schedule Of Available For Sale Securities [Line Items] | | |
Short-term investments, Fair Value | $ 504,262 | $ 307,827 |
Fair Value Measurements on Recurring Basis | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Cash equivalents, Amortized Cost | | 317,237 |
Cash equivalents, Fair Value | | 317,237 |
Short-term investments, Amortized Cost | 504,447 | 307,779 |
Short-term investments, Unrealized Gains | 78 | 86 |
Short-term investments, Unrealized Losses | (263) | (38) |
Short-term investments, Fair Value | 504,262 | 307,827 |
Cash equivalents and Short-term investments, Amortized Cost | 536,675 | 625,016 |
Cash equivalents and Short-term investments, Unrealized Gains | 78 | 86 |
Cash equivalents and Short-term investments, Unrealized Losses | (263) | (38) |
Cash equivalents and Short-term investments, Estimated Fair Value | $ 536,490 | $ 625,064 |
Fair Value Measurements on Recurring Basis | Money Market Funds | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 1 or less | 1 or less |
Cash equivalents, Amortized Cost | $ 32,228 | $ 311,239 |
Cash equivalents, Fair Value | $ 32,228 | $ 311,239 |
Fair Value Measurements on Recurring Basis | Corporate Debt Securities | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 3 or less | 2 or less |
Short-term investments, Amortized Cost | $ 199,250 | $ 113,020 |
Short-term investments, Unrealized Gains | 40 | 36 |
Short-term investments, Unrealized Losses | (126) | (36) |
Short-term investments, Fair Value | $ 199,164 | $ 113,020 |
Fair Value Measurements on Recurring Basis | U.S. Treasury Securities | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 3 or less | 1 or less |
Short-term investments, Amortized Cost | $ 143,635 | $ 88,409 |
Short-term investments, Unrealized Gains | 38 | 50 |
Short-term investments, Unrealized Losses | (92) | (2) |
Short-term investments, Fair Value | $ 143,581 | $ 88,457 |
Fair Value Measurements on Recurring Basis | Commercial Paper | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | | 1 or less |
Cash equivalents, Amortized Cost | | $ 5,998 |
Cash equivalents, Fair Value | | $ 5,998 |
Maturities (years) | 1 or less | 1 or less |
Short-term investments, Amortized Cost | $ 129,418 | $ 106,350 |
Short-term investments, Fair Value | $ 129,418 | $ 106,350 |
Fair Value Measurements on Recurring Basis | Non U S Government And Supranational Debt Securities | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 3 or less | |
Short-term investments, Amortized Cost | $ 23,151 | |
Short-term investments, Unrealized Losses | (30) | |
Short-term investments, Fair Value | $ 23,121 | |
Fair Value Measurements on Recurring Basis | U.S. Agency Bonds | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 2 or less | |
Short-term investments, Amortized Cost | $ 8,993 | |
Short-term investments, Unrealized Losses | (15) | |
Short-term investments, Fair Value | $ 8,978 | |