| Accumulated other comprehensive income (loss) |
Accumulated other comprehensive income (loss) The changes in AOCI for the six months ended December 30, 2022 and December 24, 2021 were as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (in thousands) | Unrealized net (Losses)/Gains on Available-for-sale Securities | | Unrealized net (Losses)/Gains on Derivative Instruments | | Retirement benefit plan - Prior service cost | | Foreign Currency Translation Adjustment | | Total | Balance as of June 24, 2022 | $ | (6,018) | | | $ | (5,082) | | | $ | (803) | | | $ | (890) | | | $ | (12,793) | | | Other comprehensive income before reclassification adjustment | (371) | | | 12,588 | | | — | | | 162 | | | 12,379 | | Amounts reclassified out of AOCI to the unaudited condensed consolidated statements of operations and comprehensive income | 93 | | | (2,618) | | | 225 | | | — | | | (2,300) | | | Tax effects | — | | | — | | | — | | | — | | | — | | | Other comprehensive income (loss) | $ | (278) | | | $ | 9,970 | | | $ | 225 | | | $ | 162 | | | $ | 10,079 | | Balance as of December 30, 2022 | $ | (6,296) | | | $ | 4,888 | | | $ | (578) | | | $ | (728) | | | $ | (2,714) | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (in thousands) | Unrealized net (Losses)/Gains on Available-for-sale Securities | | Unrealized net (Losses)/Gains on Derivative Instruments | | Retirement benefit plan - Prior service cost | | Foreign Currency Translation Adjustment | | Total | | Balance as of June 25, 2021 | $ | 308 | | | $ | (4,504) | | | $ | (1,425) | | | $ | (645) | | | $ | (6,266) | | | Other comprehensive income before reclassification adjustment | (1,173) | | | 2,552 | | | — | | | (164) | | | 1,215 | | Amounts reclassified out of AOCI to the unaudited condensed consolidated statements of operations and comprehensive income | 13 | | | (475) | | | 324 | | | — | | | (138) | | | Tax effects | — | | | — | | | — | | | — | | | — | | | Other comprehensive income (loss) | $ | (1,160) | | | $ | 2,077 | | | $ | 324 | | | $ | (164) | | | $ | 1,077 | | Balance as of December 24, 2021 | $ | (852) | | | $ | (2,427) | | | $ | (1,101) | | | $ | (809) | | | $ | (5,189) | |
|