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. 30, 2022 |
Dec. 24, 2021 |
Dec. 30, 2022 |
Dec. 24, 2021 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | $ 6,775 | $ 6,686 | $ 14,498 | $ 15,978 |
| Cost of revenue | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | 1,660 | 1,421 | 3,576 | 3,396 |
| Selling, general and administrative expense | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | $ 5,115 | $ 5,265 | $ 10,922 | $ 12,582 |