Debt - Long-term Debt (Details) - USD ($) | | 12 Months Ended | | | | | | | | | | |
Oct. 14, 2021 | Jun. 28, 2024 | Jun. 30, 2023 | Jul. 01, 2022 | Sep. 13, 2023 | May 30, 2023 | Nov. 30, 2022 | Aug. 18, 2022 | Dec. 08, 2020 | Jun. 18, 2020 | Jun. 10, 2020 | May 14, 2015 | Dec. 02, 2014 | May 28, 2014 |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | | | | | 8.50% | 9.625% | | | | | | | |
Current portion of long-term debt | | $ (479,000,000) | $ (63,000,000) | | | | | | | | | | | |
Long-term debt, less current portion | | 5,195,000,000 | 5,388,000,000 | | | | | | | | | | | |
Net (loss) gain from early redemption of debt | | (29,000,000) | 190,000,000 | $ 0 | | | | | | | | | | |
Medium-term Notes | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | | | | | | | | $ 600,000,000 | | | | | | |
Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Long-Term Debt, Gross | | 5,704,000,000 | 5,487,000,000 | | | | | | | | | | | |
Debt Issuance Costs, Net | | (30,000,000) | (36,000,000) | | | | | | | | | | | |
Debt, net of debt issuance costs | | 5,674,000,000 | 5,451,000,000 | | | | | | | | | | | |
Current portion of long-term debt | | (479,000,000) | (63,000,000) | | | | | | | | | | | |
Long-term debt, less current portion | | $ 5,195,000,000 | 5,388,000,000 | | | | | | | | | | | |
4.750% Senior Notes due June 2023 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 4.75% | | | | | | | | | | | | |
4.875% Senior Notes due March 2024 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 4.875% | | | | | | | | | | | | |
4.75% Senior Notes due January 2025 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 4.75% | | | | | | | | | | | | |
4.75% Senior Notes due January 2025 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 479,000,000 | 479,000,000 | | | | | | | | | | | |
Stated interest rate (as a percent) | | 4.75% | | | | | | | | | | | | |
4.875% Senior Notes due June 2027 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 505,000,000 | 504,000,000 | | | | | | | | | | | |
Stated interest rate (as a percent) | | 4.875% | | | | | | | | | | | | |
4.091% Senior Notes due June 2029 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 471,000,000 | 465,000,000 | | | | | | | | | | | |
Stated interest rate (as a percent) | | 4.091% | | | | | | | | | | | | |
3.125% Senior Notes due July 2029 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 3.125% | | | | | | | | | | | | |
3.125% Senior Notes due July 2029 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 163,000,000 | 163,000,000 | | | | | | | | | | | |
Stated interest rate (as a percent) | | 3.125% | | | | | | | | | | | | |
4.125% Senior Notes due January 2031 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 4.125% | | | | | | | | | | | | |
4.125% Senior Notes due January 2031 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 275,000,000 | 275,000,000 | | | | | | | | | | | |
Stated interest rate (as a percent) | | 4.125% | | | | | | | | | | | | |
3.375% Senior Notes due July 2031 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 3.375% | | | | | | | | | | | | |
3.375% Senior Notes due July 2031 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 72,000,000 | 72,000,000 | | | | | | | | | | | |
Stated interest rate (as a percent) | | 3.375% | | | | | | | | | | | | |
5.75% Senior Notes due December 2034 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 5.75% | | | | | | | | | | | | |
5.75% Senior Notes due December 2034 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 489,000,000 | 489,000,000 | | | | | | | | | | | |
Term Loan A1 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | 0 | 430,000,000 | | | | | | | | | | | |
Term Loan A2 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | 0 | 430,000,000 | | | | | | | | | | | |
SOFR Based Term Loan A3 due July 2027 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 0 | 430,000,000 | | | | | | | | | | | |
8.25% Senior Notes due December 2029 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 8.25% | | | | | | | | | | | | |
8.25% Senior Notes due December 2029 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 500,000,000 | 500,000,000 | | | | | | | | | | | |
Stated interest rate (as a percent) | | 8.25% | | | | | | | | | | | | |
8.50% Senior Notes due July 2031 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 8.50% | | | | | | | | | | | | |
8.50% Senior Notes due July 2031 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 500,000,000 | 500,000,000 | | | | | | | | | | | |
Stated interest rate (as a percent) | | 8.50% | | | | | | | | | | | | |
9.625% Senior Notes due December 2032 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 9.625% | | | | | | | | | | | | |
9.625% Senior Notes due December 2032 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 750,000,000 | 750,000,000 | | | | | | | | | | | |
Stated interest rate (as a percent) | | 9.625% | | | | | | | | | | | | |
Convertible Senior note 3.50 percent due June 2028 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Stated interest rate (as a percent) | | 3.50% | | | | | | | | | | | | |
Convertible Senior note 3.50 percent due June 2028 | Reported Value Measurement | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Current and noncurrent debt including short-term borrowings | | $ 1,500,000,000 | 0 | | | | | | | | | | | |
Convertible Debt | | $ 1,500,000,000 | $ 0 | | | | | | | | | | | |
Senior Notes | 4.75% Senior Notes due January 2025 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | | | | $ 1,000,000,000 |
Stated interest rate (as a percent) | | | | | | | | | | | | | | 4.75% |
Senior Notes | 4.875% Senior Notes due June 2027 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | | $ 700,000,000 | | |
Stated interest rate (as a percent) | | | | | | | | | | | | 4.875% | | |
Senior Notes | 4.091% Senior Notes due June 2029 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | $ 500,000,000 | | | | |
Stated interest rate (as a percent) | | | | | | | | | | 4.091% | | | | |
Senior Notes | 3.125% Senior Notes due July 2029 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | $ 500,000,000 | | | | | |
Stated interest rate (as a percent) | | | | | | | | | 3.125% | | | | | |
Senior Notes | 4.125% Senior Notes due January 2031 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | $ 500,000,000 | | | |
Stated interest rate (as a percent) | | | | | | | | | | | 4.125% | | | |
Senior Notes | 3.375% Senior Notes due July 2031 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | $ 500,000,000 | | | | | |
Stated interest rate (as a percent) | | | | | | 8.50% | | | 3.375% | | | | | |
Senior Notes | 5.75% Senior Notes due December 2034 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | | | | | | | $ 500,000,000 | |
Stated interest rate (as a percent) | | | | | | | | | | | | | 5.75% | |
Senior Notes | 8.25% Senior Notes due December 2029 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | $ 500,000,000 | | | | | | | | |
Stated interest rate (as a percent) | | | | | | 8.25% | | | | | | | | |
Senior Notes | 8.50% Senior Notes due July 2031 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | $ 500,000,000 | | | | | | | | |
Senior Notes | 9.625% Senior Notes due December 2032 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Aggregate principal amount | | | | | | | $ 750,000,000 | | | | | | | |
Term Loan A1 | Medium-term Notes | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | $ 600,000,000 | | | | | | | | | | | | | |
Term Loan A2 | Medium-term Notes | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | $ 600,000,000 | | | | | | | | | | | | | |
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% | | | | | | | | | |
Minimum | Term Loan A1 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Basis spread on variable rate (basis points) | 1.125% | | | | | | | | | | | | | |
Minimum | Term Loan A2 | Medium-term Notes | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Basis spread on variable rate (basis points) | 1.25% | | | | | | | | | | | | | |
Maximum | Term Loan A1 | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Basis spread on variable rate (basis points) | 2.375% | | | | | | | | | | | | | |
Maximum | Term Loan A2 | Medium-term Notes | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | |
Basis spread on variable rate (basis points) | 2.50% | | | | | | | | | | | | | |