v3.26.1
Leases - Schedule of Cash Flow Information (Details) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2026
May 31, 2025
Leases [Abstract]    
Cash paid for amounts included in the measurement of operating lease liabilities $ 65,735 $ 56,987
Operating lease right-of-use assets obtained in exchange for new and renewed operating lease liabilities 95,527 84,629
Operating lease right-of-use assets acquired in business combinations $ 0 $ 3,077
Other information related to operating leases    
Weighted-average remaining lease term - operating leases 5 years 8 months 4 days 5 years 7 months 28 days
Weighted-average discount rate - operating leases 4.34% 4.08%