Fair Value Measurements - Financial Assets and Liabilities Measured at Fair Value on Recurring Basis (Details) - USD ($) $ in Thousands | 6 Months Ended | 12 Months Ended |
Jun. 30, 2024 | Dec. 31, 2023 |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | $ 404,718 | $ 409,044 |
Maximum | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents maturity term | 3 months | 3 months |
United States Treasury securities | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | $ 90,330 | $ 115,004 |
Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 45,469 | 72,511 |
Corporate debt securities | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 93,325 | 39,375 |
Fair Value, Measurements, Recurring | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Total assets | 439,231 | 457,077 |
Fair Value, Measurements, Recurring | Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Total assets | 124,843 | 163,037 |
Fair Value, Measurements, Recurring | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Total assets | 314,388 | 294,040 |
Fair Value, Measurements, Recurring | Level 3 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Total assets | 0 | 0 |
Fair Value, Measurements, Recurring | Cash equivalents | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 34,513 | 48,033 |
Fair Value, Measurements, Recurring | Cash equivalents | Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 34,513 | 48,033 |
Fair Value, Measurements, Recurring | Cash equivalents | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 0 | 0 |
Fair Value, Measurements, Recurring | Cash equivalents | Level 3 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 0 | 0 |
Fair Value, Measurements, Recurring | United States Government-sponsored enterprises | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 175,594 | 182,154 |
Fair Value, Measurements, Recurring | United States Government-sponsored enterprises | Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 0 | 0 |
Fair Value, Measurements, Recurring | United States Government-sponsored enterprises | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 175,594 | 182,154 |
Fair Value, Measurements, Recurring | United States Government-sponsored enterprises | Level 3 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 0 | 0 |
Fair Value, Measurements, Recurring | United States Treasury securities | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 90,330 | 115,004 |
Fair Value, Measurements, Recurring | United States Treasury securities | Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 90,330 | 115,004 |
Fair Value, Measurements, Recurring | United States Treasury securities | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 0 | 0 |
Fair Value, Measurements, Recurring | United States Treasury securities | Level 3 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 0 | 0 |
Fair Value, Measurements, Recurring | Commercial paper | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 45,469 | 72,511 |
Fair Value, Measurements, Recurring | Commercial paper | Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 0 | 0 |
Fair Value, Measurements, Recurring | Commercial paper | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 45,469 | 72,511 |
Fair Value, Measurements, Recurring | Commercial paper | Level 3 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Cash equivalents | 0 | 0 |
Fair Value, Measurements, Recurring | Corporate debt securities | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 93,325 | 39,375 |
Fair Value, Measurements, Recurring | Corporate debt securities | Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 0 | 0 |
Fair Value, Measurements, Recurring | Corporate debt securities | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | 93,325 | 39,375 |
Fair Value, Measurements, Recurring | Corporate debt securities | Level 3 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | $ 0 | 0 |
Fair Value, Measurements, Recurring | Supranational bonds | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | | 0 |
Fair Value, Measurements, Recurring | Supranational bonds | Level 1 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | | 0 |
Fair Value, Measurements, Recurring | Supranational bonds | Level 2 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | | 0 |
Fair Value, Measurements, Recurring | Supranational bonds | Level 3 | | |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | | |
Debt securities, available for sale | | $ 0 |