/*
 * Reflow fixes shared by every static page (WCAG 2.2 SC 1.4.10).
 * At 400% zoom a 1280px window is 320 CSS px wide: nothing may need sideways scrolling
 * except data tables, which scroll inside their own box instead of being cut off.
 * Loaded after each page's own stylesheet and css/inline.css.
 */

/* Grids made from former inline styles (css/inline.css is generated, so the fix lives here):
   never ask for a column wider than the screen. Page grids are fixed in their own stylesheets. */
.s-6df9e99 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important; }
.s-b20c5d5 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)) !important; }

/* Link rows wrap instead of running off the edge. */
footer .foot-links { flex-wrap: wrap; row-gap: 8px; }
nav .links { flex-wrap: wrap; }

@media (max-width: 480px) {
  /* The nav can wrap to two or three rows here, so it scrolls with the page instead of staying
     fixed on top of the content (also keeps focused items from being hidden, WCAG 2.4.11). */
  body > nav { position: relative; }
  nav .inner { flex-wrap: wrap; row-gap: 8px; height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  nav .links { gap: 8px 14px; }
}

/* Tables scroll sideways inside their own box on narrow screens. */
@media (max-width: 700px) {
  table.data-table,
  table.pricing-table,
  article table,
  main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}
