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 | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 29, 2023 |
Dec. 30, 2022 |
Dec. 29, 2023 |
Dec. 30, 2022 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | $ 6,981 | $ 6,775 | $ 14,714 | $ 14,498 |
| Cost of revenue | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | 1,701 | 1,660 | 3,866 | 3,576 |
| Selling, general and administrative expense | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | $ 5,280 | $ 5,115 | $ 10,848 | $ 10,922 |