Cash, Cash Equivalents and Marketable Securities - Summary of Cash, Cash Equivalents and Available-For-Sale Marketable Securities (Unaudited) (Details) - USD ($) $ in Thousands | Mar. 31, 2020 | Dec. 31, 2019 |
Marketable Securities [Line Items] | | |
Cash, cash equivalents and available-for-sale marketable securities, Amortized Cost | $ 335,306 | $ 346,206 |
Cash, cash equivalents and available-for-sale marketable securities, Unrealized Gains | 245 | 39 |
Cash, cash equivalents and available-for-sale marketable securities, Unrealized Losses | (366) | (34) |
Cash, cash equivalents and available-for-sale marketable securities, Fair Value | 335,185 | 346,211 |
Cash and cash equivalents | 163,575 | 200,851 |
Current Marketable Securities | 151,255 | 113,945 |
Non-Current Marketable Securities | 20,355 | 31,415 |
Cash | | |
Marketable Securities [Line Items] | | |
Cash, cash equivalents and available-for-sale marketable securities, Amortized Cost | 28,972 | 26,821 |
Cash, cash equivalents and available-for-sale marketable securities, Fair Value | 28,972 | 26,821 |
Cash and cash equivalents | 28,972 | 26,821 |
Level 1 | | |
Marketable Securities [Line Items] | | |
Cash, cash equivalents and available-for-sale marketable securities, Amortized Cost | 126,131 | 157,777 |
Cash, cash equivalents and available-for-sale marketable securities, Fair Value | 126,131 | 157,777 |
Cash and cash equivalents | 126,131 | 157,777 |
Level 1 | Money Market Funds | | |
Marketable Securities [Line Items] | | |
Cash, cash equivalents and available-for-sale marketable securities, Amortized Cost | 126,131 | 157,777 |
Cash, cash equivalents and available-for-sale marketable securities, Fair Value | 126,131 | 157,777 |
Cash and cash equivalents | 126,131 | 157,777 |
Level 2 | | |
Marketable Securities [Line Items] | | |
Cash, cash equivalents and available-for-sale marketable securities, Amortized Cost | 180,203 | 161,608 |
Cash, cash equivalents and available-for-sale marketable securities, Unrealized Gains | 245 | 39 |
Cash, cash equivalents and available-for-sale marketable securities, Unrealized Losses | (366) | (34) |
Cash, cash equivalents and available-for-sale marketable securities, Fair Value | 180,082 | 161,613 |
Cash and cash equivalents | 8,472 | 16,253 |
Current Marketable Securities | 151,255 | 113,945 |
Non-Current Marketable Securities | 20,355 | 31,415 |
Level 2 | US Treasury Securities | | |
Marketable Securities [Line Items] | | |
Cash, cash equivalents and available-for-sale marketable securities, Amortized Cost | 17,702 | 9,623 |
Cash, cash equivalents and available-for-sale marketable securities, Unrealized Gains | 164 | 7 |
Cash, cash equivalents and available-for-sale marketable securities, Fair Value | 17,866 | 9,630 |
Current Marketable Securities | 8,119 | 4,805 |
Non-Current Marketable Securities | 9,747 | 4,825 |
Level 2 | Corporate Debt Securities | | |
Marketable Securities [Line Items] | | |
Cash, cash equivalents and available-for-sale marketable securities, Amortized Cost | 108,887 | 96,964 |
Cash, cash equivalents and available-for-sale marketable securities, Unrealized Gains | 38 | 28 |
Cash, cash equivalents and available-for-sale marketable securities, Unrealized Losses | (362) | (25) |
Cash, cash equivalents and available-for-sale marketable securities, Fair Value | 108,563 | 96,967 |
Cash and cash equivalents | | 3,203 |
Current Marketable Securities | 97,955 | 67,174 |
Non-Current Marketable Securities | 10,608 | 26,590 |
Level 2 | Commercial Paper | | |
Marketable Securities [Line Items] | | |
Cash, cash equivalents and available-for-sale marketable securities, Amortized Cost | 53,614 | 55,021 |
Cash, cash equivalents and available-for-sale marketable securities, Unrealized Gains | 43 | 4 |
Cash, cash equivalents and available-for-sale marketable securities, Unrealized Losses | (4) | (9) |
Cash, cash equivalents and available-for-sale marketable securities, Fair Value | 53,653 | 55,016 |
Cash and cash equivalents | 8,472 | 13,050 |
Current Marketable Securities | $ 45,181 | $ 41,966 |