/* Tablet header fix 2026-11-27 (homepage + GST calculator only). Loaded after layout-fix.20261127.css.
   651-980 px: the one-row flex header (brand + 5 links + search + Dark mode, 2rem gaps) is wider than the
   viewport, so Dark mode is pushed off-screen and the search box shrinks to 26px. Place the same items on two
   grid rows: row 1 brand + links, row 2 search + (Install app slot) + Dark mode. DOM and focus order unchanged. */
@media (min-width:650.02px) and (max-width:980px){
 .site-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:.5rem .75rem;height:auto;padding-block:.6rem}
 .site-header .brand{grid-row:1;grid-column:1}
 .site-header .site-nav{grid-row:1;grid-column:2/-1;justify-self:end;min-width:0;margin:0;flex-wrap:wrap;justify-content:flex-end;gap:.2rem 1.25rem}
 .site-header .site-search{grid-row:2;grid-column:1/3;width:auto;min-width:0;margin:0}
 .site-header .pwa-install{grid-row:2;grid-column:3}
 .site-header .theme-toggle{grid-row:2;grid-column:4;white-space:nowrap}
}
