/* TEST (case study pages only): smaller type scale and a narrower reading column.
   Largest heading 48px -> 40px, section headings 36px -> 28px, body/supporting text 18px -> 16px,
   and the page capped narrower on desktop so lines don't run too wide.
   To revert, delete this file and the <link> to it in findmylab2026.html and cattlelog.html.
   Loaded after layout-test.css, so it narrows the shared --page width (header, content, footer).
   Phone sizes (<= 700px) are left to fml-case.css, which already uses smaller type there. */

:root { --page: min(1140px, calc(100% - 2 * var(--gutter, 24px))); }

@media (min-width: 701px) {
  /* Page title: 48px -> 40px */
  .fml-title,
  .case-intro h1 { font-size: 40px; line-height: 1.3; }

  /* Section headings: 36px -> 28px; sub-headings 24px -> 20px */
  .fml-head h2 { font-size: 28px; line-height: 1.3; }
  .fml-insight h3,
  .fml-sub h3 { font-size: 20px; }
  .fml-northstar__label { font-size: 18px; }
  .fml-northstar__text,
  .fml-quote p { font-size: 20px; }

  /* Big numbers: 36px -> 28px */
  .fml-stat strong,
  .fml-finding strong,
  .fml-statband strong,
  .intro-metric strong,
  .stat-card strong { font-size: 28px; }

  /* Body text: 18px -> 16px */
  .fml-head > p:not(.fml-label),
  .fml-stat p,
  .fml-finding p,
  .fml-note,
  .fml-sub p, .fml-body,
  .fml-takeaways,
  .fml-statband p,
  .intro-summary > p { font-size: 16px; }
  .fml-facts { font-size: 16px; }

  /* Facts panel: fixed column widths overflowed the narrower column; share the space instead. */
  .fml-facts:not(.fml-facts--five) { grid-template-columns: repeat(4, minmax(0, auto)); }

  .case-toc { font-size: 15px; }

  /* Keep paragraphs to a comfortable line length (~75-85 characters); images and cards stay full width. */
  .fml-tldr,
  .fml-head,
  .fml-body,
  .fml-sub p,
  .section-intro,
  .intro-summary > p { max-width: 720px; }
}
