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