Fair Value Measurements (Details) - Fair Value, Measurements, Recurring - USD ($) $ in Thousands | Jun. 30, 2023 | Dec. 31, 2022 |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | $ 964,914 | $ 935,844 |
Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 34,211 | 88,073 |
Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 930,703 | 847,771 |
Cash Equivalents | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 70,451 | 147,463 |
Cash Equivalents | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 34,211 | 88,073 |
Cash Equivalents | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 36,240 | 59,390 |
Short-Term Investments | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 825,167 | 725,063 |
Short-Term Investments | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | 0 |
Short-Term Investments | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 825,167 | 725,063 |
Long Term Investments | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 69,296 | 63,318 |
Long Term Investments | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | 0 |
Long Term Investments | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 69,296 | 63,318 |
Money market funds | Cash Equivalents | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 34,211 | 88,073 |
Money market funds | Cash Equivalents | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 34,211 | 88,073 |
Money market funds | Cash Equivalents | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 0 | 0 |
Commercial paper | Cash Equivalents | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 25,946 | 50,791 |
Commercial paper | Cash Equivalents | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 0 | 0 |
Commercial paper | Cash Equivalents | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 25,946 | 50,791 |
Commercial paper | Short-Term Investments | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 367,982 | 421,279 |
Commercial paper | Short-Term Investments | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | 0 |
Commercial paper | Short-Term Investments | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 367,982 | 421,279 |
Municipal debt securities | Cash Equivalents | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 7,998 | 8,599 |
Municipal debt securities | Cash Equivalents | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 0 | 0 |
Municipal debt securities | Cash Equivalents | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 7,998 | 8,599 |
Municipal debt securities | Short-Term Investments | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 17,486 | 30,426 |
Municipal debt securities | Short-Term Investments | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | 0 |
Municipal debt securities | Short-Term Investments | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 17,486 | 30,426 |
Municipal debt securities | Long Term Investments | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 13,460 | 7,580 |
Municipal debt securities | Long Term Investments | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | |
Municipal debt securities | Long Term Investments | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 13,460 | 7,580 |
US Treasury Bonds | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 30,713 | 0 |
US Treasury Bonds | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | 0 |
US Treasury Bonds | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 30,713 | 0 |
Corporate debt securities | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 22,915 | 35,688 |
Corporate debt securities | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | 0 |
Corporate debt securities | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 22,915 | 35,688 |
Corporate debt securities | Short-Term Investments | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 189,954 | 166,136 |
Corporate debt securities | Short-Term Investments | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | 0 |
Corporate debt securities | Short-Term Investments | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 189,954 | 166,136 |
Federal agency debt securities | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 32,921 | 20,050 |
Federal agency debt securities | Cash Equivalents | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 2,296 | 0 |
Federal agency debt securities | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | 0 |
Federal agency debt securities | Fair Value, Inputs, Level 1 | Cash Equivalents | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 0 | 0 |
Federal agency debt securities | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 32,921 | 20,050 |
Federal agency debt securities | Fair Value, Inputs, Level 2 | Cash Equivalents | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Cash Equivalents | 2,296 | 0 |
Federal agency debt securities | Short-Term Investments | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 219,032 | 107,222 |
Federal agency debt securities | Short-Term Investments | Fair Value, Inputs, Level 1 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | 0 | 0 |
Federal agency debt securities | Short-Term Investments | Fair Value, Inputs, Level 2 | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt Securities, Available-for-Sale | $ 219,032 | $ 107,222 |