Share-based compensation - Schedule of Share-Based Compensation Expense Recorded in Condensed Consolidated Statements of Operations and Comprehensive Income (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 28, 2025 |
Mar. 29, 2024 |
Mar. 28, 2025 |
Mar. 29, 2024 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | $ 7,783 | $ 6,726 | $ 24,903 | $ 21,440 |
| Cost of revenue | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | 2,221 | 1,561 | 7,883 | 5,427 |
| Selling, general and administrative expense | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | $ 5,562 | $ 5,165 | $ 17,020 | $ 16,013 |