Cash, Cash Equivalents and Marketable Securities (Details) - USD ($) $ in Thousands | 6 Months Ended | 12 Months Ended |
Jun. 30, 2022 | Dec. 31, 2021 |
Cash, Cash Equivalents and Marketable Securities | | |
Total cash, cash equivalents and marketable securities, Unrealized gains | $ 1 | $ 6 |
Total cash, cash equivalents and marketable securities, Unrealized losses | (448) | (86) |
Carrying value | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 53,272 | 36,269 |
Total cash, cash equivalents and marketable securities, Cost | 212,213 | 270,426 |
Fair value | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 53,272 | 36,269 |
Total cash, cash equivalents and marketable securities, Fair value | $ 211,766 | $ 270,346 |
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 | |
Corporate debt securities due within 3 months of date of purchase | Carrying value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | $ 13,735 | |
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 | $ 1 | $ 6 |
Marketable securities, unrealized losses | (431) | (66) |
Corporate debt securities due within 1 year of date of purchase | Carrying value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, cost | 152,923 | 228,348 |
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 | $ 152,493 | $ 228,288 |
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 | | $ 0 |
Marketable securities, unrealized losses | | (20) |
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 |
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 |
U.S. government and government sponsored entities 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 | |
U.S. government and government sponsored entities due within 1 year of date of purchase | Carrying value | Level 2 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Marketable securities, cost | $ 6,018 | |
Marketable securities, unrealized losses | (17) | |
Marketable securities, fair value | 6,001 | |
Cash | Carrying value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 1,728 | 18,877 |
Cash | Fair value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 1,728 | 18,877 |
Money market funds | Carrying value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | 37,809 | 17,392 |
Money market funds | Fair value | Level 1 | | |
Cash, Cash Equivalents and Marketable Securities | | |
Cash and cash equivalents | $ 37,809 | $ 17,392 |