Investments (Details) $ in Thousands | 3 Months Ended | 6 Months Ended | 12 Months Ended |
Jun. 30, 2022 USD ($) item | Jun. 30, 2021 USD ($) | Jun. 30, 2022 USD ($) item | Jun. 30, 2021 USD ($) | Dec. 31, 2021 USD ($) item |
Schedule of Investments [Line Items] | | | | | |
Cash, cash equivalents & restricted cash, Amortized Cost | $ 63,950 | | $ 63,950 | | $ 21,252 |
Total cash, cash equivalents, restricted cash and investments, Gross Unrealized Gains | 1 | | 1 | | 48 |
Total cash, cash equivalents, restricted cash and investments, Gross Unrealized Losses | (131) | | (131) | | $ (14) |
Total cash, cash equivalents, restricted cash and investments, Fair Value | 94,300 | | 94,300 | | |
Realized gains or losses on investments | $ 0 | $ 0 | $ 0 | $ 0 | |
Number of investments in unrealized loss position for more than 12 months | item | 2 | | 2 | | 0 |
Number of investments in unrealized loss position for less than 12 months | item | 11 | | 11 | | 3 |
Unrealized loss on fair value | $ 100 | | $ 100 | | |
Unrealized loss less than 12 months | 100 | | 100 | | $ 100 |
Fair value less than 12 months | 27,400 | | 27,400 | | 15,800 |
Fair value more than 12 months | 10,900 | | 10,900 | | |
Amortized Cost | | | | | |
Schedule of Investments [Line Items] | | | | | |
Total cash, cash equivalents, restricted cash and investments, Amortized Cost | 94,678 | | 94,678 | | 100,463 |
Total | | | | | |
Schedule of Investments [Line Items] | | | | | |
Total cash, cash equivalents, restricted cash and investments, Fair Value | 94,548 | | $ 94,548 | | $ 100,497 |
Corporate bonds, agency bonds and commercial paper (due within 90 days) | | | | | |
Schedule of Investments [Line Items] | | | | | |
Original maturity period, cash and cash equivalents | | | 90 days | | |
Gross Unrealized Gains | 1 | | $ 1 | | |
Gross Unrealized Losses | (2) | | (2) | | |
Corporate bonds, agency bonds and commercial paper (due within 90 days) | Amortized Cost | | | | | |
Schedule of Investments [Line Items] | | | | | |
Cash, cash equivalents & restricted cash, Amortized Cost | 10,985 | | 10,985 | | |
Corporate bonds, agency bonds and commercial paper (due within 90 days) | Total | | | | | |
Schedule of Investments [Line Items] | | | | | |
Cash, cash equivalents & restricted cash, Fair Value | 10,984 | | $ 10,984 | | |
Corporate bonds, agency bonds and commercial paper (due within 1 year) | | | | | |
Schedule of Investments [Line Items] | | | | | |
Maturity period, investments | | | 1 year | | 1 year |
Gross Unrealized Gains | | | | | $ 48 |
Gross Unrealized Losses | (129) | | $ (129) | | (14) |
Corporate bonds, agency bonds and commercial paper (due within 1 year) | Amortized Cost | | | | | |
Schedule of Investments [Line Items] | | | | | |
Due within 1 year, Amortized Cost | 30,486 | | 30,486 | | 78,970 |
Corporate bonds, agency bonds and commercial paper (due within 1 year) | Total | | | | | |
Schedule of Investments [Line Items] | | | | | |
Due within 1 year, Fair Value | 30,357 | | 30,357 | | 79,004 |
Investments. | | | | | |
Schedule of Investments [Line Items] | | | | | |
Gross Unrealized Gains | | | | | 48 |
Gross Unrealized Losses | (129) | | (129) | | (14) |
Investments. | Amortized Cost | | | | | |
Schedule of Investments [Line Items] | | | | | |
Investments, Amortized Cost | 30,486 | | 30,486 | | 78,970 |
Investments. | Total | | | | | |
Schedule of Investments [Line Items] | | | | | |
Investments, Fair Value | 30,357 | | 30,357 | | 79,004 |
Cash and money market accounts. | Amortized Cost | | | | | |
Schedule of Investments [Line Items] | | | | | |
Cash, cash equivalents & restricted cash, Amortized Cost | 53,207 | | 53,207 | | 21,493 |
Cash and money market accounts. | Total | | | | | |
Schedule of Investments [Line Items] | | | | | |
Cash, cash equivalents & restricted cash, Fair Value | 53,207 | | 53,207 | | 21,493 |
Cash, cash equivalents & restricted cash | | | | | |
Schedule of Investments [Line Items] | | | | | |
Gross Unrealized Gains | 1 | | 1 | | |
Gross Unrealized Losses | (2) | | (2) | | |
Cash, cash equivalents & restricted cash | Amortized Cost | | | | | |
Schedule of Investments [Line Items] | | | | | |
Cash, cash equivalents & restricted cash, Amortized Cost | 64,192 | | 64,192 | | 21,493 |
Cash, cash equivalents & restricted cash | Total | | | | | |
Schedule of Investments [Line Items] | | | | | |
Cash, cash equivalents & restricted cash, Fair Value | $ 64,191 | | $ 64,191 | | $ 21,493 |