Debt (Narrative) (Details) | | | 3 Months Ended | 9 Months Ended | | | | | | | | | | |
Aug. 18, 2022 USD ($) | Oct. 14, 2021 USD ($) | Mar. 29, 2024 USD ($) | Mar. 31, 2023 USD ($) | Mar. 29, 2024 USD ($) | Mar. 31, 2023 USD ($) | Sep. 13, 2023 USD ($) $ / shares | Jun. 30, 2023 USD ($) | May 30, 2023 USD ($) | Nov. 30, 2022 USD ($) | Dec. 08, 2020 USD ($) | Jun. 18, 2020 USD ($) | Jun. 10, 2020 USD ($) | May 14, 2015 USD ($) | Dec. 02, 2014 USD ($) | May 28, 2014 USD ($) |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Less: current portion of debt, net of debt issuance costs | | | $ (479,000,000) | | $ (479,000,000) | | | $ (63,000,000) | | | | | | | | |
Long-term debt, less current portion, net of debt issuance costs | | | 5,192,000,000 | | 5,192,000,000 | | | 5,388,000,000 | | | | | | | | |
Capped call transaction, price per share (in dollars per share) | $ / shares | | | | | | | $ 107.848 | | | | | | | | | |
Expenses related to the capped call transaction | | | | | 95,000,000 | | | | | | | | | | | |
Net gain (loss) recognized from early redemption of debt | | | 0 | $ (3,000,000) | 29,000,000 | $ (207,000,000) | | | | | | | | | | |
Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Long-term debt, gross | | | 5,702,000,000 | | 5,702,000,000 | | | 5,487,000,000 | | | | | | | | |
Less: unamortized debt issuance costs | | | (31,000,000) | | (31,000,000) | | | (36,000,000) | | | | | | | | |
Debt, net of debt issuance costs | | | 5,671,000,000 | | 5,671,000,000 | | | 5,451,000,000 | | | | | | | | |
Less: current portion of debt, net of debt issuance costs | | | (479,000,000) | | (479,000,000) | | | (63,000,000) | | | | | | | | |
Long-term debt, less current portion, net of debt issuance costs | | | $ 5,192,000,000 | | $ 5,192,000,000 | | | 5,388,000,000 | | | | | | | | |
Senior Notes 4.75 Percent Due January 2025 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 4.75% | | 4.75% | | | | | | | | | | | |
Senior Notes 4.75 Percent Due January 2025 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 479,000,000 | | $ 479,000,000 | | | 479,000,000 | | | | | | | | |
Senior Notes 4.875 percent Due June 2027 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 4.875% | | 4.875% | | | | | | | | | | | |
Senior Notes 4.875 percent Due June 2027 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 505,000,000 | | $ 505,000,000 | | | 504,000,000 | | | | | | | | |
Senior Notes 4.091 percent due June 2029 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 4.091% | | 4.091% | | | | | | | | | | | |
Senior Notes 4.091 percent due June 2029 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 469,000,000 | | $ 469,000,000 | | | 465,000,000 | | | | | | | | |
Senior Notes 3.125 percent due July 2029 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 3.125% | | 3.125% | | | | | | | | | | | |
Senior Notes 3.125 percent due July 2029 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 163,000,000 | | $ 163,000,000 | | | 163,000,000 | | | | | | | | |
Senior Notes 8.25 percent due December 2029 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 8.25% | | 8.25% | | | | | | | | | | | |
Senior Notes 8.25 percent due December 2029 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 500,000,000 | | $ 500,000,000 | | | 500,000,000 | | | | | | | | |
Senior Notes 4.125 percent due January 2031 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 4.125% | | 4.125% | | | | | | | | | | | |
Senior Notes 4.125 percent due January 2031 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 275,000,000 | | $ 275,000,000 | | | 275,000,000 | | | | | | | | |
Senior Notes 3.375 Percent due July 2031 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 3.375% | | 3.375% | | | | | | | | | | | |
Senior Notes 3.375 Percent due July 2031 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 72,000,000 | | $ 72,000,000 | | | 72,000,000 | | | | | | | | |
Senior Notes 8.50 percent due July 2031 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 8.50% | | 8.50% | | | | | | | | | | | |
Senior Notes 8.50 percent due July 2031 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 500,000,000 | | $ 500,000,000 | | | 500,000,000 | | | | | | | | |
Senior Notes 9.625 Percent due December 2032 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 9.625% | | 9.625% | | | | | | | | | | | |
Senior Notes 9.625 Percent due December 2032 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 750,000,000 | | $ 750,000,000 | | | 750,000,000 | | | | | | | | |
Senior notes 5.75 percent due December 2034 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 5.75% | | 5.75% | | | | | | | | | | | |
Senior notes 5.75 percent due December 2034 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 489,000,000 | | $ 489,000,000 | | | 489,000,000 | | | | | | | | |
Convertible Senior Note 3.50 percent due June 2028 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | 3.50% | | 3.50% | | | | | | | | | | | |
Convertible Senior Note 3.50 percent due June 2028 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | $ 1,500,000,000 | | $ 1,500,000,000 | | | 0 | | | | | | | | |
Convertible Debt | | | 1,500,000,000 | | 1,500,000,000 | | | 0 | | | | | | | | |
Term Loan A1 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | 0 | | 0 | | | 430,000,000 | | | | | | | | |
Term Loan A2 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | 0 | | 0 | | | 430,000,000 | | | | | | | | |
Term Loan A3 | Reported Value Measurement | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Senior Notes | | | 0 | | $ 0 | | | $ 430,000,000 | | | | | | | | |
Senior note 3.50 percent due June 2028 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Debt redemption price, percentage of total principal amount plus accrued interest (as a percent) | | | | | 100% | | | | | | | | | | | |
Minimum principal amount outstanding required for redemption | | | 150,000,000 | | $ 150,000,000 | | | | | | | | | | | |
Exceeded amount of principal | | | $ 100,000,000 | | $ 100,000,000 | | | | | | | | | | | |
Term Loan | Debt Instrument, Leverage, Period Two | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Maximum interest coverage ratio | | | 2.25 | | 2.25 | | | | | | | | | | | |
Minimum interest coverage ratio | | | 1 | | 1 | | | | | | | | | | | |
Term Loan | Debt Instrument, Leverage, Period Three | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Maximum interest coverage ratio | | | 3.25 | | 3.25 | | | | | | | | | | | |
Minimum interest coverage ratio | | | 1 | | 1 | | | | | | | | | | | |
Senior Notes | Senior Notes 4.75 Percent Due January 2025 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | | | | | | $ 1,000,000,000 |
Stated interest rate (as a percent) | | | | | | | | | | | | | | | | 4.75% |
Senior Notes | Senior Notes 4.875 percent Due June 2027 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | | | | $ 700,000,000 | | |
Stated interest rate (as a percent) | | | | | | | | | | | | | | 4.875% | | |
Senior Notes | Senior Notes 4.091 percent due June 2029 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | | $ 500,000,000 | | | | |
Stated interest rate (as a percent) | | | | | | | | | | | | 4.091% | | | | |
Senior Notes | Senior Notes 3.125 percent due July 2029 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | $ 500,000,000 | | | | | |
Stated interest rate (as a percent) | | | | | | | | | | | 3.125% | | | | | |
Senior Notes | Senior Notes 8.25 percent due December 2029 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | $ 500,000,000 | | | | | | | |
Stated interest rate (as a percent) | | | | | | | | | 8.25% | | | | | | | |
Senior Notes | Senior Notes 4.125 percent due January 2031 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | | | $ 500,000,000 | | | |
Stated interest rate (as a percent) | | | | | | | | | | | | | 4.125% | | | |
Senior Notes | Senior Notes 3.375 Percent due July 2031 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | $ 500,000,000 | | | | | |
Stated interest rate (as a percent) | | | | | | | | | | | 3.375% | | | | | |
Senior Notes | Senior Notes 8.50 percent due July 2031 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | $ 500,000,000 | | | | | | | |
Stated interest rate (as a percent) | | | | | | | | | 8.50% | | | | | | | |
Senior Notes | Senior Notes 9.625 Percent due December 2032 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | $ 750,000,000 | | | | | | |
Stated interest rate (as a percent) | | | | | | | | | | 9.625% | | | | | | |
Senior Notes | Senior notes 5.75 percent due December 2034 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | | | | | $ 500,000,000 | |
Stated interest rate (as a percent) | | | | | | | | | | | | | | | 5.75% | |
Convertible Debt | Convertible Senior Note 3.50 percent due June 2028 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | $ 1,500,000,000 | | | | | | | | | |
Stated interest rate (as a percent) | | | | | | | 3.50% | | | | | | | | | |
Convertible Debt | Senior note 3.50 percent due June 2028 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Aggregate principal amount pursuant to over-allotment option | | | | | | | $ 200,000,000 | | | | | | | | | |
Term Loan A1 | Term Loan | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | | $ 600,000,000 | | | | | | | | | | | | | | |
Term Loan A2 | Term Loan | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | | $ 600,000,000 | | | | | | | | | | | | | | |
Term Loan A3 | Term Loan | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | $ 600,000,000 | | | | | | | | | | | | | | | |
Tenth Amendment to Credit Agreement | Term Loan | Debt Instrument, Leverage, Period Two | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Maximum leverage ratio | | | 6.75 | | 6.75 | | | | | | | | | | | |
Minimum leverage ratio | | | 1 | | 1 | | | | | | | | | | | |
Covenant relief period, maximum leverage ratio, minimum aggregate revolving commitments percentage required (as a percent) | | | 0.25 | | 0.25 | | | | | | | | | | | |
Tenth Amendment to Credit Agreement | Term Loan | Debt Instrument, Leverage, Period Three | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Maximum leverage ratio | | | 4 | | 4 | | | | | | | | | | | |
Minimum leverage ratio | | | 1 | | 1 | | | | | | | | | | | |
Terms Loans A1, A2 and A3 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Net gain (loss) recognized from early redemption of debt | | | | | $ 29,000,000 | | | | | | | | | | | |
Senior note 3.50 percent due June 2028 | Convertible Debt | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Exchange rate per share | | | | | 0.012153 | | | | | | | | | | | |
Minimum | Term Loan A1 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Variable interest rate (as a percent) | | 1.125% | | | | | | | | | | | | | | |
Minimum | Term Loan A2 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Variable interest rate (as a percent) | | 1.25% | | | | | | | | | | | | | | |
Minimum | Term Loan A3 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Variable interest rate (as a percent) | 1.25% | | | | | | | | | | | | | | | |
Maximum | Senior note 3.50 percent due June 2028 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Debt redemption price, percentage of total principal amount plus accrued interest (as a percent) | | | | | 130% | | | | | | | | | | | |
Maximum | Term Loan A1 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Variable interest rate (as a percent) | | 2.375% | | | | | | | | | | | | | | |
Maximum | Term Loan A2 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Variable interest rate (as a percent) | | 2.50% | | | | | | | | | | | | | | |
Maximum | Term Loan A3 | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | |
Variable interest rate (as a percent) | 2.50% | | | | | | | | | | | | | | | |