Cash, Cash Equivalents and Marketable Securities (Details) - USD ($) $ in Thousands | 12 Months Ended |
Dec. 31, 2021 | Dec. 31, 2020 |
Cash, Cash Equivalents and Marketable Securities | | |
Total cash, cash equivalents and marketable securities, Unrealized gains | $ 6 | $ 84 |
Total cash, cash equivalents and marketable securities, Unrealized losses | (86) | (37) |
Carrying value | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 36,269 | 54,004 |
Total cash, cash equivalents and marketable securities, Cost | 270,426 | 284,102 |
Fair value | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 36,269 | 54,004 |
Total cash, cash equivalents and marketable securities, Fair value | $ 270,346 | $ 284,149 |
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 | $ 6 | $ 80 |
Marketable securities, unrealized losses | (66) | (36) |
Corporate debt securities due within 1 year of date of purchase | Carrying value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, cost | 228,348 | 227,172 |
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 | $ 228,288 | $ 227,216 |
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 | 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 | 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 | | $ 4 |
Marketable securities, unrealized losses | $ (20) | (1) |
Corporate debt securities due within 1 to 2 years of date of purchase | Carrying value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, cost | 5,809 | 2,926 |
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 | 5,789 | 2,929 |
Cash | Carrying value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 18,877 | 716 |
Cash | Fair value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 18,877 | 716 |
Money market funds | Carrying value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 17,392 | 53,288 |
Money market funds | Fair value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | $ 17,392 | $ 53,288 |