Cash, Cash Equivalents and Marketable Securities (Details) - USD ($) $ in Thousands | 9 Months Ended | 12 Months Ended |
Sep. 30, 2019 | Dec. 31, 2018 |
Cash, Cash Equivalents and Marketable Securities | | |
Total cash, cash equivalents and marketable securities, Unrealized gains | $ 323 | $ 14 |
Total cash, cash equivalents and marketable securities, Unrealized losses | (31) | (333) |
Carrying value | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 89,486 | 57,379 |
Total cash, cash equivalents and marketable securities, Cost | 453,318 | 484,037 |
Fair value | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 89,486 | 57,379 |
Total cash, cash equivalents and marketable securities, Fair value | $ 453,610 | $ 483,718 |
Corporate debt securities due within 3 months of date of purchase | | |
Cash, Cash Equivalents and Marketable Securities | | |
Maturity period from date of purchase to classify an investment as marketable securities | 3 months | 3 months |
Corporate debt securities due within 3 months of date of purchase | Carrying value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, cost | $ 85,125 | $ 11,974 |
Corporate debt securities due within 3 months of date of purchase | Fair value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, fair value | | $ 11,974 |
Corporate debt securities due within 1 year of date of purchase | | |
Cash, Cash Equivalents and Marketable Securities | | |
Maturity period from date of purchase to classify an investment as marketable securities | 1 year | 1 year |
Corporate debt securities due within 1 year of date of purchase | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, unrealized gains | $ 264 | $ 14 |
Marketable securities, unrealized losses | (9) | (333) |
Corporate debt securities due within 1 year of date of purchase | Carrying value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, cost | 278,707 | 426,658 |
Corporate debt securities due within 1 year of date of purchase | Fair value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, fair value | $ 278,962 | 426,339 |
Corporate debt securities due within 1 to 2 years of date of purchase | Maximum [Member] | | |
Cash, Cash Equivalents and Marketable Securities | | |
Maturity period from date of purchase to classify an investment as marketable securities | 2 years | |
Corporate debt securities due within 1 to 2 years of date of purchase | Minimum [Member] | | |
Cash, Cash Equivalents and Marketable Securities | | |
Maturity period from date of purchase to classify an investment as marketable securities | 1 year | |
Corporate debt securities due within 1 to 2 years of date of purchase | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, unrealized gains | $ 59 | |
Marketable securities, unrealized losses | (22) | |
Corporate debt securities due within 1 to 2 years of date of purchase | Fair value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, fair value | 85,162 | |
Cash | Carrying value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 1,975 | 2,004 |
Cash | Fair value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 1,975 | 2,004 |
Money market funds | Carrying value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 87,511 | 43,401 |
Money market funds | Fair value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | $ 87,511 | $ 43,401 |