v3.25.1
Shareholders' equity (Details) - USD ($)
3 Months Ended 9 Months Ended
Mar. 28, 2025
Mar. 29, 2024
Mar. 28, 2025
Mar. 29, 2024
Jan. 31, 2025
Aug. 31, 2024
Jun. 28, 2024
Aug. 31, 2023
Aug. 31, 2022
Aug. 31, 2020
May 31, 2019
Feb. 28, 2018
Aug. 31, 2017
Shareholders Equity [Line Items]                          
Ordinary shares, authorized share capital (in shares) 500,000,000   500,000,000       500,000,000            
Ordinary shares, par value (in USD per share) $ 0.01   $ 0.01       $ 0.01            
Preferred shares, shares authorized (in shares) 5,000,000   5,000,000       5,000,000            
Preferred shares, par value (in USD per share) $ 0.01   $ 0.01       $ 0.01            
Share repurchase program, approved amount                         $ 30,000,000.0
Share repurchase program, increase in shares authorized for repurchase         $ 100,000,000 $ 139,500,000   $ 47,600,000 $ 78,700,000 $ 58,500,000 $ 50,000,000.0 $ 30,000,000.0  
Aggregate share repurchase authorized $ 196,500,000   $ 196,500,000         $ 534,300,000          
Buyback Program                          
Shareholders Equity [Line Items]                          
Stock repurchased during period (in shares)     453,913                    
Average price of shares repurchased (in USD per share)     $ 227.94                    
Stock repurchased, aggregate purchase price     $ 103,500,000                    
1999 and 2010 Stock Plan                          
Shareholders Equity [Line Items]                          
Ordinary shares issued upon vesting of restricted shares (in shares) 11,421 15,080 139,147 166,258