Fair Value Measurements - Fair Values (Details) - USD ($) $ in Thousands | Jun. 30, 2023 | Dec. 31, 2022 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets at fair value | $ 979,948 | $ 979,735 |
U.S. treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 98,902 | 79,517 |
Corporate bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 483,011 | 557,591 |
Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets at fair value | 933,912 | 928,084 |
Total liabilities at fair value | 218,833 | 193,439 |
Fair Value, Recurring | 2027 Notes | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
2027 Notes | 218,833 | 193,439 |
Fair Value, Recurring | U.S. treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 98,902 | 79,517 |
Fair Value, Recurring | Corporate bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 483,011 | 557,591 |
Level 1 | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets at fair value | 450,901 | 370,493 |
Total liabilities at fair value | 0 | 0 |
Level 1 | Fair Value, Recurring | 2027 Notes | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
2027 Notes | 0 | 0 |
Level 1 | Fair Value, Recurring | U.S. treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 98,902 | 79,517 |
Level 1 | Fair Value, Recurring | Corporate bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 0 | 0 |
Level 2 | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets at fair value | 483,011 | 557,591 |
Total liabilities at fair value | 218,833 | 193,439 |
Level 2 | Fair Value, Recurring | 2027 Notes | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
2027 Notes | 218,833 | 193,439 |
Level 2 | Fair Value, Recurring | U.S. treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 0 | 0 |
Level 2 | Fair Value, Recurring | Corporate bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 483,011 | 557,591 |
Level 3 | Fair Value, Recurring | | |
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 | 0 | 0 |
Level 3 | Fair Value, Recurring | 2027 Notes | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
2027 Notes | 0 | 0 |
Level 3 | Fair Value, Recurring | U.S. treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 0 | 0 |
Level 3 | Fair Value, Recurring | Corporate bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable securities, Fair Value | 0 | 0 |
Money market | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 351,999 | 249,249 |
Money market | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 351,999 | 249,249 |
Money market | Level 1 | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 351,999 | 249,249 |
Money market | Level 2 | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | 0 | 0 |
Money market | Level 3 | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | $ 0 | 0 |
Certificates of deposit | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | | 41,727 |
Certificates of deposit | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | | 41,727 |
Certificates of deposit | Level 1 | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | | 41,727 |
Certificates of deposit | Level 2 | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | | 0 |
Certificates of deposit | Level 3 | Fair Value, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents, fair value | | $ 0 |