/* Shared across React pages and generated HTML. Mobile layouts are intentional
   legacy layouts: none of these rules apply below 768px. */
:root {
  --pft-page-max: 1440px;
  --pft-page-gutter: 24px;
  --pft-reading-max: 720px;
}
@media (min-width: 768px) {
  .pft-page-container,
  .pft-static-page > .wrap,
  .pft-static-page.compare-page > .wrap,
  .pft-static-page .nav-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--pft-page-max);
    margin-inline: auto;
    padding-inline: var(--pft-page-gutter);
  }
  .pft-static-page .wrap .pft-newsletter .pft-newsletter-inner.pft-page-container {
    padding-inline: 0;
  }
  .pft-card-grid,
  .pft-static-page .grid-2,
  .pft-static-page .grid-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pft-reading-width {
    width: 100%;
    max-width: var(--pft-reading-max);
    margin-inline: auto;
  }
  /* On the server-made pages (firm, compare) the text keeps its reading width but starts at the left edge, in line
     with the headings, boxes and tables above and below it. Centred, it sat in a column of its own (22 November). */
  .pft-static-page .wrap :is(p, ul, ol) {
    width: 100%;
    max-width: var(--pft-reading-max);
    margin-inline: 0;
  }
}
@media (min-width: 1280px) {
  .pft-card-grid,
  .pft-static-page .grid-2,
  .pft-static-page .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
