Long-term Debt - Narrative (Details) | | | | | | 1 Months Ended | 3 Months Ended | 9 Months Ended | | | | | |
Feb. 27, 2024 USD ($) | Jun. 23, 2023 USD ($) | Nov. 21, 2022 USD ($) | Feb. 03, 2022 USD ($) | Apr. 21, 2020 USD ($) | Jul. 31, 2023 USD ($) | Apr. 30, 2020 USD ($) | Mar. 31, 2024 USD ($) | Mar. 26, 2023 USD ($) | Mar. 31, 2024 USD ($) day | Mar. 26, 2023 USD ($) | Jun. 25, 2023 USD ($) | Nov. 16, 2022 $ / shares | Jun. 27, 2022 | Jan. 31, 2022 $ / shares | Aug. 24, 2018 |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Cash paid for capped call transactions | | | | | | | | | | $ 0 | $ 273,900,000 | | | | | |
Cap price (in USD per share) | $ / shares | | | | | | | | | | | | | $ 202.538 | | $ 212.04 | |
Capped call premium (as a percent) | | | | | | | | | | | | | 130% | | 125% | |
2030 senior notes, interest term, period one | | 3 years | | | | | | | | | | | | | | |
Supply agreement, term | | | | | | 10 years | | | | | | | | | | |
Convertible Notes | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Threshold percentage of stock price trigger (as a percent) | | | | | | | | | | 130% | | | | | | |
Threshold trading days | day | | | | | | | | | | 20 | | | | | | |
Threshold consecutive trading days | day | | | | | | | | | | 30 | | | | | | |
Discount and issuance costs capitalized | | | | | | | | $ 42,400,000 | | $ 42,400,000 | | $ 49,400,000 | | | | |
Interest expense capitalized | | | | | | | | 8,600,000 | $ 200,000 | 16,100,000 | 200,000 | | | | | |
Discount and issuance costs capitalized | | | | | | | | 1,100,000 | $ 100,000 | 2,100,000 | $ 100,000 | | | | | |
Convertible Notes | Convertible Notes Due 2023 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | | | | | | | | | | | | | | 0.875% |
Repurchase of aggregate principal amount of debt instrument | | | | | | | $ 150,200,000 | | | | | | | | | |
Decrease in accrued interest from repurchase of debt | | | | | | | 200,000 | | | | | | | | | |
Convertible Notes | Convertible Notes Due 2026 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | | | 1.75% | | | | | | | | | | | |
Proceeds from issuance of long-term debt | | | | | $ 561,400,000 | | | | | | | | | | | |
Proceeds from Notes used to repurchase debt | | | | | | | $ 144,300,000 | | | | | | | | | |
Effective interest rate (as a percent) | | | | | | | | | | | | | | 2.20% | | |
Convertible Notes | Convertible Notes Due 2028 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | $ 650,000,000 | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | | 0.25% | | | | | | | | | | | | |
Proceeds from issuance of long-term debt | | | | $ 732,300,000 | | | | | | | | | | | | |
Cash paid for capped call transactions | | | | 108,200,000 | | | | | | | | | | | | |
Effective interest rate (as a percent) | | | | | | | | | | | | | | 0.60% | | |
Convertible Notes | Convertible Notes Due 2028 | Underwriters | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | $ 100,000,000 | | | | | | | | | | | | |
Convertible Notes | Convertible Notes Due 2029 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | $ 1,525,000,000 | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 1.875% | | | | | | | | | | | | | |
Proceeds from issuance of long-term debt | | | $ 1,718,600,000 | | | | | | | | | | | | | |
Cash paid for capped call transactions | | | 273,900,000 | | | | | | | | | | | | | |
Effective interest rate (as a percent) | | | | | | | | | | | | | | 2.10% | | |
Convertible Notes | Convertible Notes Due 2029 | Underwriters | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | $ 225,000,000 | | | | | | | | | | | | | |
Convertible Notes | Convertible Notes Due May 1, 2026, Over-Allotment Option | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | 75,000,000 | | | | | | | | | | | |
Convertible Notes | Convertible Notes Due May 1, 2026, Excluding Over-Allotment Option | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | $ 500,000,000 | | | | | | | | | | | |
Senior Notes | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Discount and issuance costs capitalized | | | | | | | | 118,300,000 | | 118,300,000 | | $ 100,500,000 | | | | |
Senior Notes | Senior Notes Due 2030 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | $ 1,250,000,000 | | | | | | | | | | | | | | |
Proceeds from issuance of long-term debt | | 1,149,300,000 | | | | | | | | | | | | | | |
Effective interest rate (as a percent) | | | | | | | | | | | | | | 12.40% | | |
Discount and issuance costs capitalized | | $ 50,000,000 | | | | | | | | | | | | | | |
2030 senior notes, interest term, period one | | 3 years | | | | | | | | | | | | | | |
2030 senior notes, matures after September 2029 | | $ 175,000,000 | | | | | | | | | | | | | | |
2030 senior notes, additional issuance available, maximum | | $ 750,000,000 | | | | | | | | | | | | | | |
2030 senior notes, cash repurchase offer requirement | | 1 | | | | | | | | | | | | | | |
2030 senior notes, asset sales and casualty events, minimum amount | | $ 25,000,000 | | | | | | | | | | | | | | |
2030 senior notes amount purchased requirement, percentage | | 0.0300 | | | | | | | | | | | | | | |
2030 senior notes, optional redemption price maximum of debt | | 0.35 | | | | | | | | | | | | | | |
2030 senior notes, redemption price prior to third year, percentage | | 1.09875 | | | | | | | | | | | | | | |
2030 senior notes, unrestricted cash and cash equivalents minimum requirement | | $ 500,000,000 | | | | | | | | | | | | | | |
2030 senior notes, material fabrication utilization requirement | | 0.30 | | | | | | | | | | | | | | |
2030 senior notes, revenue generated minimum requirement | | $ 240,000,000 | | | | | | | | | | | | | | |
2030 senior notes, liquid covenant requirement reduction term | | 6 months | | | | | | | | | | | | | | |
2030 senior notes, liquidity covenant requirement | | $ 325,000,000 | | | | | | | | | | | | | | |
2030 senior notes, material fabrication utilization achievement two | | 0.50 | | | | | | | | | | | | | | |
2030 senior notes, revenue generated minimum requirement, achievement two | | $ 450,000,000 | | | | | | | | | | | | | | |
2030 senior notes, liquidity covenant minimum requirement | | $ 0 | | | | | | | | | | | | | | |
Senior Notes | Senior Notes Due 2030 | Debt Instrument, Redemption, Period One | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Redemption price (as a percent) | | 109.875% | | | | | | | | | | | | | | |
Senior Notes | Senior Notes Due 2030 | Debt Instrument, Redemption, Period Two | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Redemption price (as a percent) | | 109.40625% | | | | | | | | | | | | | | |
Senior Notes | Senior Notes Due 2030 | Debt Instrument, Redemption, Period Three | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Redemption price (as a percent) | | 104.9375% | | | | | | | | | | | | | | |
Senior Notes | Senior Notes Due 2030 | Debt Instrument, Redemption, Period Four | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Redemption price (as a percent) | | 100% | | | | | | | | | | | | | | |
Senior Notes | Senior Notes Due 2030 | Interest Period One | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 9.875% | | | | | | | | | | | | | | |
Senior Notes | Senior Notes Due 2030 | Interest Period Two | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 10.875% | | | | | | | | | | | | | | |
Senior Notes | Senior Notes Due 2030 | Interest Period Three | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 11.875% | | | | | | | | | | | | | | |
Unsecured Promissory Note | Customer Refundable Deposit Agreement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Proceeds from issuance of long-term debt | | | | | | $ 1,000,000,000 | | | | | | | | | | |
Effective interest rate (as a percent) | | | | | | 6.30% | | | | | | | | | | |
Maximum borrowing capacity | | | | | | $ 2,000,000,000 | | | | | | | | | | |
Remaining borrowing capacity | | | | | | $ 1,000,000,000 | | | | | | | | | | |
Repayment of prepaid deposits, percentage | | | | | | 1.06 | | | | | | | | | | |
Unamortized debt Issuance expense | | | | | | | | 11,400,000 | | 11,400,000 | | | | | | |
Unsecured Promissory Note | Customer Refundable Deposit Agreement | Minimum | Variable Rate Component Two | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Basis spread on variable rate of debt instrument (as a percent) | | | | | | 10% | | | | | | | | | | |
Unsecured Promissory Note | Customer Refundable Deposit Agreement | Maximum | Variable Rate Component Two | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Basis spread on variable rate of debt instrument (as a percent) | | | | | | 15% | | | | | | | | | | |
Unsecured Promissory Note | Customer Refundable Deposit Agreement | Base Rate | Variable Rate Component One | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Basis spread on variable rate of debt instrument (as a percent) | | | | | | 6% | | | | | | | | | | |
Unsecured Promissory Note | Customer Refundable Deposit Agreement, Second Draw | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Proceeds from issuance of long-term debt | $ 500,000,000 | | | | | | | | | | | | | | | |
Unamortized debt Issuance expense | | | | | | | | $ 11,400,000 | | $ 11,400,000 | | | | | | |