Segment Operations - Financial Information for Reportable Operating Segments (Detail) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | |||||||
|---|---|---|---|---|---|---|---|---|---|
Feb. 28, 2026 |
Feb. 28, 2025 |
Feb. 28, 2026 |
Feb. 28, 2025 |
May 31, 2025 |
|||||
| Segment Reporting Information [Line Items] | |||||||||
| Net sales | $ 378,677 | $ 304,524 | $ 1,009,836 | $ 835,878 | |||||
| Cost of goods sold | 269,203 | 215,277 | 733,449 | 610,077 | |||||
| SG&A | 75,745 | 63,005 | 217,031 | 196,959 | |||||
| Restructuring and other expense (income), net | [1] | 2,186 | 5,374 | 6,306 | 9,152 | ||||
| Other segment items | [2] | 2,144 | 370 | 7,965 | 1,341 | ||||
| Equity in net income (loss) of unconsolidated affiliates | 30,715 | 32,081 | 96,490 | 102,129 | |||||
| Earnings (loss) before income taxes | 60,114 | 52,579 | 141,575 | 120,478 | |||||
| Reconciling items to adjusted EBITDA | |||||||||
| Amortization of inventory step-up | [1] | 1,500 | 3,651 | 1,477 | |||||
| Depreciation and amortization | [1] | 14,552 | 11,950 | 41,402 | 35,707 | ||||
| Interest expense (income) | [1] | 1,828 | 628 | 3,363 | 2,150 | ||||
| Stock-based compensation | [1] | 3,752 | 2,924 | 10,504 | 10,122 | ||||
| Non-cash charges in miscellaneous income | [1] | 340 | 4,534 | ||||||
| Net loss attributable to noncontrolling interest | [1] | 343 | 324 | 969 | 820 | ||||
| Adjusted EBITDA | [1] | 84,615 | 73,779 | 212,304 | 179,906 | ||||
| Total assets | 1,823,538 | 1,823,538 | $ 1,695,152 | ||||||
| Total Reportable Operating Segments | |||||||||
| Segment Reporting Information [Line Items] | |||||||||
| Net sales | 378,677 | 304,524 | 1,009,836 | 835,878 | |||||
| Cost of goods sold | 269,143 | 215,226 | 733,338 | 609,971 | |||||
| SG&A | 65,617 | 55,972 | 189,025 | 169,947 | |||||
| Restructuring and other expense (income), net | [1] | 99 | 579 | 564 | 1,382 | ||||
| Other segment items | [2] | (81) | (397) | 282 | (567) | ||||
| Equity in net income (loss) of unconsolidated affiliates | 32,822 | 34,498 | 101,570 | 105,438 | |||||
| Earnings (loss) before income taxes | 76,721 | 67,642 | 188,197 | 160,583 | |||||
| Reconciling items to adjusted EBITDA | |||||||||
| Amortization of inventory step-up | [1] | 1,500 | 3,651 | 1,477 | |||||
| Depreciation and amortization | [1] | 14,351 | 11,763 | 40,804 | 35,138 | ||||
| Interest expense (income) | [1] | (33) | 4 | 224 | 33 | ||||
| Stock-based compensation | [1] | 1,296 | 1,500 | 4,244 | 4,029 | ||||
| Net loss attributable to noncontrolling interest | [1] | 343 | 324 | 969 | 820 | ||||
| Adjusted EBITDA | [1] | 94,277 | 81,812 | 238,653 | 203,462 | ||||
| Total assets | 1,693,292 | 1,693,292 | 1,327,024 | ||||||
| Total Reportable Operating Segments | Consumer Products | |||||||||
| Segment Reporting Information [Line Items] | |||||||||
| Net sales | 154,827 | 139,714 | 393,689 | 374,057 | |||||
| Cost of goods sold | 96,172 | 88,069 | 257,713 | 242,040 | |||||
| SG&A | 28,180 | 28,406 | 83,891 | 85,975 | |||||
| Restructuring and other expense (income), net | [1] | (1) | 12 | ||||||
| Other segment items | [2] | (25) | 12 | (7) | 20 | ||||
| Earnings (loss) before income taxes | 30,501 | 23,227 | 52,080 | 46,022 | |||||
| Reconciling items to adjusted EBITDA | |||||||||
| Depreciation and amortization | [1] | 3,969 | 4,314 | 11,776 | 12,982 | ||||
| Interest expense (income) | [1] | (4) | |||||||
| Stock-based compensation | [1] | 640 | 760 | 2,054 | 2,060 | ||||
| Net loss attributable to noncontrolling interest | [1] | 343 | 324 | 969 | 820 | ||||
| Adjusted EBITDA | [1] | 35,452 | 28,625 | 66,887 | 61,884 | ||||
| Total assets | 537,382 | 537,382 | 531,187 | ||||||
| Total Reportable Operating Segments | Building Products | |||||||||
| Segment Reporting Information [Line Items] | |||||||||
| Net sales | 223,850 | 164,810 | 616,147 | 461,821 | |||||
| Cost of goods sold | 172,971 | 127,157 | 475,625 | 367,931 | |||||
| SG&A | 37,437 | 27,566 | 105,134 | 83,972 | |||||
| Restructuring and other expense (income), net | [1] | 100 | 579 | 552 | 1,382 | ||||
| Other segment items | [2] | (56) | (409) | 289 | (587) | ||||
| Equity in net income (loss) of unconsolidated affiliates | 32,822 | 34,498 | 101,570 | 105,438 | |||||
| Earnings (loss) before income taxes | 46,220 | 44,415 | 136,117 | 114,561 | |||||
| Reconciling items to adjusted EBITDA | |||||||||
| Amortization of inventory step-up | [1] | 1,500 | 3,651 | 1,477 | |||||
| Depreciation and amortization | [1] | 10,382 | 7,449 | 29,028 | 22,156 | ||||
| Interest expense (income) | [1] | (33) | 4 | 228 | 33 | ||||
| Stock-based compensation | [1] | 656 | 740 | 2,190 | 1,969 | ||||
| Adjusted EBITDA | [1] | 58,825 | 53,187 | 171,766 | 141,578 | ||||
| Total assets | 1,155,910 | 1,155,910 | 795,837 | ||||||
| Other | |||||||||
| Segment Reporting Information [Line Items] | |||||||||
| Other segment items | [2] | 340 | 4,534 | ||||||
| Equity in net income (loss) of unconsolidated affiliates | (2,107) | (2,417) | (5,080) | (3,309) | |||||
| Earnings (loss) before income taxes | (2,447) | (2,417) | (9,614) | (3,309) | |||||
| Reconciling items to adjusted EBITDA | |||||||||
| Non-cash charges in miscellaneous income | [1] | 340 | 4,534 | ||||||
| Adjusted EBITDA | [1] | (2,107) | (2,417) | (5,080) | (3,309) | ||||
| Unallocated Corp | |||||||||
| Segment Reporting Information [Line Items] | |||||||||
| Cost of goods sold | 60 | 51 | 111 | 106 | |||||
| SG&A | 10,128 | 7,033 | 28,006 | 27,012 | |||||
| Restructuring and other expense (income), net | [1] | 2,087 | 4,795 | 5,742 | 7,770 | ||||
| Other segment items | [2] | 1,885 | 767 | 3,149 | 1,908 | ||||
| Earnings (loss) before income taxes | (14,160) | (12,646) | (37,008) | (36,796) | |||||
| Reconciling items to adjusted EBITDA | |||||||||
| Depreciation and amortization | [1] | 201 | 187 | 598 | 569 | ||||
| Interest expense (income) | [1] | 1,861 | 624 | 3,139 | 2,117 | ||||
| Stock-based compensation | [1] | 2,456 | 1,424 | 6,260 | 6,093 | ||||
| Adjusted EBITDA | [1] | (7,555) | $ (5,616) | (21,269) | $ (20,247) | ||||
| Total assets | $ 130,246 | $ 130,246 | $ 368,128 | ||||||
| |||||||||