Fair Value Measurements - Summary of Fair Value, by Balance Sheet Grouping (Detail) - USD ($) $ in Thousands | Jun. 30, 2021 | Dec. 31, 2020 |
Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | $ 127,844 | $ 111,080 |
Total financial assets | 127,844 | 111,080 |
Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 2,650 | 274 |
Total financial assets | 359,022 | 434,617 |
Total financial liabilities | 66 | 16 |
Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 356,005 | 433,595 |
Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 130,494 | 111,354 |
Total financial assets | 486,866 | 545,697 |
Total financial liabilities | 66 | 16 |
Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 356,005 | 433,595 |
Prepaid Expenses and Other Current Assets [Member] | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted bank deposits included in assets | 13 | 14 |
Prepaid Expenses and Other Current Assets [Member] | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted bank deposits included in assets | 13 | 14 |
Prepaid Expenses and Other Current Assets [Member] | Designated as Hedging Instrument [Member] | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Foreign Currency Contract, Asset, Fair Value Disclosure | 98 | 468 |
Prepaid Expenses and Other Current Assets [Member] | Designated as Hedging Instrument [Member] | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Foreign Currency Contract, Asset, Fair Value Disclosure | 98 | 468 |
Prepaid Expenses and Other Current Assets [Member] | Not Designated as Hedging Instrument [Member] | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Foreign Currency Contract, Asset, Fair Value Disclosure | 1 | 2 |
Prepaid Expenses and Other Current Assets [Member] | Not Designated as Hedging Instrument [Member] | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Foreign Currency Contract, Asset, Fair Value Disclosure | 1 | 2 |
Accrued Expenses And Other Current Liabilites [Member] | Designated as Hedging Instrument [Member] | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Foreign Currency Contracts, Liability, Fair Value Disclosure | 49 | 16 |
Accrued Expenses And Other Current Liabilites [Member] | Designated as Hedging Instrument [Member] | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Foreign Currency Contracts, Liability, Fair Value Disclosure | 49 | 16 |
Accrued Expenses And Other Current Liabilites [Member] | Not Designated as Hedging Instrument [Member] | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Foreign Currency Contracts, Liability, Fair Value Disclosure | 17 | |
Accrued Expenses And Other Current Liabilites [Member] | Not Designated as Hedging Instrument [Member] | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Foreign Currency Contracts, Liability, Fair Value Disclosure | 17 | |
Bank deposits | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 104,697 | 133,386 |
Bank deposits | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 104,697 | 133,386 |
Money market funds | Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 127,844 | 111,080 |
Money market funds | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 127,844 | 111,080 |
Certificates of deposit | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | 274 |
Certificates of deposit | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 2,412 | 10,821 |
Certificates of deposit | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | | 274 |
Certificates of deposit | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 2,412 | 10,821 |
Commercial paper | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 2,500 | |
Commercial paper | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 35,971 | 34,151 |
Commercial paper | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 2,500 | |
Commercial paper | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 35,971 | 34,151 |
Corporate debt securities | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 113,304 | 128,623 |
Corporate debt securities | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 113,304 | 128,623 |
Municipal securities | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 150 | |
Municipal securities | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 57,090 | 54,233 |
Municipal securities | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 150 | |
Municipal securities | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 57,090 | 54,233 |
Government and agency debt | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 42,531 | 72,381 |
Government and agency debt | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 42,531 | 72,381 |
Other Noncurrent Assets [Member] | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted bank deposits included in assets | 255 | 264 |
Other Noncurrent Assets [Member] | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted bank deposits included in assets | $ 255 | $ 264 |