v3.26.1
Earnings per Share - Narrative (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
2 Months Ended 12 Months Ended 24 Months Ended
Jul. 29, 2026
May 31, 2026
May 31, 2025
May 31, 2024
Jul. 29, 2026
Jul. 23, 2024
Jul. 26, 2022
Jul. 27, 2021
Earnings Per Share, Basic and Diluted [Line Items]                
Options granted excluded from the computation of diluted earnings per share (in shares)   1,900 1,000 1,600        
Subsequent Event                
Earnings Per Share, Basic and Diluted [Line Items]                
Stock purchased under share buyback (in shares) 200              
Average price per share (in dollars per share) $ 199.70              
Total purchase price of shares repurchased $ 48,400              
Share Buyback Program July 27 2021                
Earnings Per Share, Basic and Diluted [Line Items]                
Share buyback program, authorized amount               $ 1,500,000
Stock purchased under share buyback (in shares)   0 0 3,425        
Average price per share (in dollars per share)   $ 0 $ 0 $ 133.80        
Total purchase price of shares repurchased   $ 0 $ 0 $ 458,284        
Share Buyback Program July 26 2022                
Earnings Per Share, Basic and Diluted [Line Items]                
Share buyback program, authorized amount             $ 1,000,000  
Stock purchased under share buyback (in shares)   1,272 3,794 339        
Average price per share (in dollars per share)   $ 207.13 $ 179.07 $ 168.44        
Total purchase price of shares repurchased   $ 263,564 $ 679,329 $ 57,104        
Share Buyback Program July 23 2024                
Earnings Per Share, Basic and Diluted [Line Items]                
Share buyback program, authorized amount           $ 1,000,000    
Stock purchased under share buyback (in shares)   2,688 0 0        
Average price per share (in dollars per share)   $ 191.29 $ 0 $ 0        
Total purchase price of shares repurchased   $ 514,221 $ 0 $ 0        
Share Buyback Program July 23 2024 | Subsequent Event                
Earnings Per Share, Basic and Diluted [Line Items]                
Stock purchased under share buyback (in shares)         2,900      
Average price per share (in dollars per share)         $ 191.99      
Total purchase price of shares repurchased         $ 562,700      
Share Buyback Program October 28 2025                
Earnings Per Share, Basic and Diluted [Line Items]                
Stock purchased under share buyback (in shares)   0 0 0        
Average price per share (in dollars per share)   $ 0 $ 0 $ 0        
Total purchase price of shares repurchased   $ 0 $ 0 $ 0        
Share Buyback Program October 28 2025 | Subsequent Event                
Earnings Per Share, Basic and Diluted [Line Items]                
Stock purchased under share buyback (in shares)         0