Fair Value Measurements - Summary of Fair Value, by Balance Sheet Grouping (Details) - USD ($) $ in Thousands | Mar. 31, 2021 | Dec. 31, 2020 |
Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | $ 105,755 | $ 111,080 |
Total financial assets | 105,755 | 111,080 |
Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 1,002 | 274 |
Total financial assets | 460,309 | 434,617 |
Total financial liabilities | 220 | 16 |
Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 458,977 | 433,595 |
Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 106,757 | 111,354 |
Total financial assets | 566,064 | 545,697 |
Total financial liabilities | 220 | 16 |
Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 458,977 | 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 | 14 | 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 | 14 | 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 | 64 | 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 | 64 | 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 | | 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 | | 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 | 213 | 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 | 213 | 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 | 7 | |
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 | 7 | |
Bank deposits | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 133,878 | 133,386 |
Bank deposits | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 133,878 | 133,386 |
Money market funds | Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 105,755 | 111,080 |
Money market funds | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 105,755 | 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 | 6,889 | 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 | 6,889 | 10,821 |
Commercial paper | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 41,401 | 34,151 |
Commercial paper | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 41,401 | 34,151 |
Corporate debt securities | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 158,561 | 128,623 |
Corporate debt securities | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 158,561 | 128,623 |
Municipal securities | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 1,002 | |
Municipal securities | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 55,375 | 54,233 |
Municipal securities | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 1,002 | |
Municipal securities | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 55,375 | 54,233 |
Government and agency debt | Level 2 | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 62,873 | 72,381 |
Government and agency debt | Fair Value | Short-term Investments | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Short-term investments | 62,873 | 72,381 |
Other Noncurrent Assets [Member] | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted bank deposits included in assets | 252 | 264 |
Other Noncurrent Assets [Member] | Fair Value | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Restricted bank deposits included in assets | $ 252 | $ 264 |