v3.26.3
Segment Operations - Schedule of Capital Expenditures of Reportable Operating Segments (Detail) - USD ($)
$ in Thousands
3 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Segment Reporting Information [Line Items]    
Capital expenditures $ 12,754 $ 13,195
Total Reportable Operating Segments    
Segment Reporting Information [Line Items]    
Capital expenditures 11,226 12,550
Total Reportable Operating Segments | Building Performance Solutions    
Segment Reporting Information [Line Items]    
Capital expenditures 6,674 3,509
Total Reportable Operating Segments | Trade & Specialty Solutions    
Segment Reporting Information [Line Items]    
Capital expenditures 4,552 9,041
Unallocated Corporate    
Segment Reporting Information [Line Items]    
Capital expenditures $ 1,528 $ 645