v3.26.1
Acquisitions and Divestitures - Additional Information (Details)
$ in Thousands
12 Months Ended
Apr. 30, 2025
USD ($)
May 31, 2026
USD ($)
Segment
Entity
May 31, 2025
USD ($)
Segment
Entity
May 31, 2024
USD ($)
Business Combination [Line Items]        
Business Combination, Purchase price $ 487,400      
Number of business acquisition | Entity   6 6  
Number of reportable segments | Segment   3 4  
Acquisition-related costs   $ 12,100 $ 11,300  
Goodwill   $ 1,688,164 1,617,626 $ 1,308,911
Maximum        
Business Combination [Line Items]        
Acquisition aggregate consideration $ 106,900      
2025 Acquisitions        
Business Combination [Line Items]        
Goodwill     306,025  
Indefinite-lived trade names     95,804  
Other intangible assets     213,262  
2025 Acquisitions | Star Brands Group        
Business Combination [Line Items]        
Goodwill     229,800  
Indefinite-lived trade names     89,800  
Other intangible assets     179,600  
Business Combination, Goodwill, Expected Tax Deductible, Amount     $ 35,700  
Clean Topco Limited        
Business Combination [Line Items]        
Percentage of the stocks acquired 100.00%