Net Income (Loss) Per Share - Weighted-Average Anti-Dilutive Shares of Common Stock Excluded from the Calculation of Diluted Net Income (Loss) Per Share (Details) - shares shares in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Sep. 30, 2024 |
Sep. 30, 2023 |
Sep. 30, 2024 |
Sep. 30, 2023 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Weighted-average anti-dilutive shares of common stock (in shares) | 13,932 | 13,880 | 5,701 | 68,717 |
| Outstanding stock options | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Weighted-average anti-dilutive shares of common stock (in shares) | 0 | 8,553 | 0 | 14,750 |
| Unvested restricted stock units and restricted stock awards | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Weighted-average anti-dilutive shares of common stock (in shares) | 13,932 | 5,327 | 5,701 | 53,967 |