v3.26.1
Business Realignment - Schedule of Business Realignment Charges (Details) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold      
Restructuring Cost and Reserve [Line Items]      
Business realignment charges $ 43 $ 31 $ 30
Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] Cost of Product and Service Sold Cost of Product and Service Sold Cost of Product and Service Sold
Income Statement Location [Axis]: us-gaap:OtherNonoperatingIncomeExpense      
Restructuring Cost and Reserve [Line Items]      
Business realignment charges $ 0 $ 2 $ 2
Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] Other Nonoperating Income (Expense) Other Nonoperating Income (Expense) Other Nonoperating Income (Expense)
Income Statement Location [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense      
Restructuring Cost and Reserve [Line Items]      
Business realignment charges $ 29 $ 23 $ 21
Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] Selling, general and administrative expenses Selling, general and administrative expenses Selling, general and administrative expenses