/* Responsive site width policy (Steve, 24 Nov 2026, ASK #1830, extends #659).
   Authority: project/standards/SITE-DESIGN-SYSTEM.md, "Page width policy".

   WIDE page types (about 90% of the window on desktop, capped for ultrawide):
   homepage, hubs and catalogues, organisational pages, Briefings index and
   Library index. A page opts in by containing one of the wrappers below; the
   shared header and page frame widen with it so everything lines up.

   NEVER touched here: card and lesson prose measure, simulations/practical
   workspaces (they own their layout), phones and tablets (full width with the
   normal gutters). Change the tokens, not the selectors, to tune the policy. */
:root {
  --ifd-wide-share: 90%;
  --ifd-wide-cap: 120rem;
  --ifd-wide-width: min(var(--ifd-wide-share), var(--ifd-wide-cap));
}

@media screen and (min-width: 76.25em) {
  body:has(.ifd-entry, .ifd-brf-index, .ifd-library-landing) .md-grid {
    max-width: var(--ifd-wide-width);
  }

  .ifd-entry,
  .ifd-brf-index,
  .ifd-library-landing {
    max-width: none;
  }

  /* Reading text inside a wide page keeps a comfortable line length. */
  .ifd-brf-index-lead,
  .ifd-library-landing > p {
    max-width: 50rem;
  }
}
