v3.26.1
Restructuring Plans - Schedule of Components and Restructuring Charges and Payments (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Restructuring Reserve [Roll Forward]      
Restructuring charges (recoveries) $ 63,390 $ 160,081 $ 27,054
2023 Plan      
Restructuring Reserve [Roll Forward]      
Beginning Balance 44,230 51,061  
Restructuring charges (recoveries) 893 52,997  
Payments (5,336) (12,954)  
Asset write-offs and other (11,207) (46,874)  
Ending Balance 28,580 44,230 51,061
2023 Plan | Severance      
Restructuring Reserve [Roll Forward]      
Beginning Balance 44,230 51,061  
Restructuring charges (recoveries) (11,349) 6,123  
Payments (5,336) (12,954)  
Asset write-offs and other 1,035 0  
Ending Balance 28,580 44,230 51,061
2023 Plan | Asset Write-Offs      
Restructuring Reserve [Roll Forward]      
Beginning Balance 0 0  
Restructuring charges (recoveries) 250 24,010  
Payments 0 0  
Asset write-offs and other (250) (24,010)  
Ending Balance 0 0 0
2023 Plan | Other      
Restructuring Reserve [Roll Forward]      
Beginning Balance 0 0  
Restructuring charges (recoveries) 11,992 22,864  
Payments 0 0  
Asset write-offs and other (11,992) (22,864)  
Ending Balance 0 0 0
2025 Plan      
Restructuring Reserve [Roll Forward]      
Beginning Balance 47,113 0  
Restructuring charges (recoveries) 62,497 107,084  
Payments (20,652) (59,971)  
Asset write-offs and other (44,422) 0  
Ending Balance 44,536 47,113 0
2025 Plan | Severance      
Restructuring Reserve [Roll Forward]      
Beginning Balance 16,722 0  
Restructuring charges (recoveries) 27,583 23,983  
Payments (20,652) (7,261)  
Asset write-offs and other (1,122) 0  
Ending Balance 22,531 16,722 0
2025 Plan | Asset Write-Offs      
Restructuring Reserve [Roll Forward]      
Beginning Balance 10,494 0  
Restructuring charges (recoveries) 26,068 59,068  
Payments 0 (48,574)  
Asset write-offs and other (26,788) 0  
Ending Balance 9,774 10,494 0
2025 Plan | Other      
Restructuring Reserve [Roll Forward]      
Beginning Balance 19,897 0  
Restructuring charges (recoveries) 8,846 24,033  
Payments 0 (4,136)  
Asset write-offs and other (16,512) 0  
Ending Balance $ 12,231 $ 19,897 $ 0