Fair Value Measurements (Fair Values) (Details) - USD ($) $ in Thousands | Sep. 30, 2022 | Dec. 31, 2021 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | $ 675,785 | |
Total assets at fair value | 1,110,145 | |
US treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 148,919 | $ 380,881 |
Corporate debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 526,866 | |
Total assets at fair value | | 930,911 |
Money market | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 384,575 | 402,889 |
Certificate of deposit | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 41,427 | 91,549 |
Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets at fair value | 1,104,140 | 875,319 |
Total liabilities at fair value | 238,451 | |
Fair Value, Recurring | 2027 Notes | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
2027 Notes | 238,451 | |
Fair Value, Recurring | US treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 148,919 | |
Fair Value, Recurring | Corporate debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 526,866 | |
Fair Value, Recurring | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets at fair value | 577,274 | 494,438 |
Total liabilities at fair value | 0 | |
Fair Value, Recurring | Level 1 | 2027 Notes | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
2027 Notes | 0 | |
Fair Value, Recurring | Level 1 | US treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 148,919 | |
Fair Value, Recurring | Level 1 | Corporate debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 0 | |
Fair Value, Recurring | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets at fair value | 526,866 | 380,881 |
Total liabilities at fair value | 0 | |
Fair Value, Recurring | Level 2 | 2027 Notes | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
2027 Notes | 0 | |
Fair Value, Recurring | Level 2 | US treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 0 | |
Fair Value, Recurring | Level 2 | Corporate debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 526,866 | |
Fair Value, Recurring | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets at fair value | 0 | 0 |
Total liabilities at fair value | 238,451 | |
Fair Value, Recurring | Level 3 | 2027 Notes | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
2027 Notes | 238,451 | |
Fair Value, Recurring | Level 3 | US treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 0 | |
Fair Value, Recurring | Level 3 | Corporate debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, fair value | 0 | |
Fair Value, Recurring | Money market | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 386,578 | 402,889 |
Fair Value, Recurring | Money market | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 386,578 | 402,889 |
Fair Value, Recurring | Money market | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 0 | 0 |
Fair Value, Recurring | Money market | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 0 | 0 |
Fair Value, Recurring | Certificate of deposit | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 41,777 | 91,549 |
Fair Value, Recurring | Certificate of deposit | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 41,777 | 91,549 |
Fair Value, Recurring | Certificate of deposit | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 0 | 0 |
Fair Value, Recurring | Certificate of deposit | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | $ 0 | 0 |
Fair Value, Recurring | Cash equivalents | Corporate debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | | 380,881 |
Fair Value, Recurring | Cash equivalents | Level 1 | Corporate debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | | 0 |
Fair Value, Recurring | Cash equivalents | Level 2 | Corporate debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | | 380,881 |
Fair Value, Recurring | Cash equivalents | Level 3 | Corporate debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | | $ 0 |