/*
 * The static research pages (web/research/*.html, written by scripts/build-seo.mjs): one company's
 * thesis, scenario assumptions, the whole notebook and its sources on one page, for readers and
 * crawlers without JavaScript. They reuse the company-page and notebook styles; this file only
 * draws the page frame, since the static pages have no app header or sidebar.
 */
@layer pages {
  /* No app header above these pages, so sticky rails sit at the top of the viewport. */
  .cp-static { --header-height: 0px; max-width: 1240px; margin: 0 auto; padding: var(--space-8) var(--space-8) 0; }
  .cp-static__back { display: inline-block; margin-bottom: var(--space-4); }
  .cp-static-section { margin-top: var(--space-6); }
  .cp-static-notebook { margin-top: var(--space-10); }
  .cp-static__meta { margin: 0 0 var(--space-6); }
  .cp-static-reading { grid-template-columns: 220px minmax(0, 1fr); }
  .cp-static-reading--single { grid-template-columns: minmax(0, 1fr); }
  .cp-static-chapter + .cp-static-chapter { margin-top: var(--space-16); }
  .cp-static-chapter :is([id]) { scroll-margin-top: var(--space-4); }
  .cp-static__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-16); padding: 0 0 var(--space-8); font-size: var(--text-s); color: var(--text-muted); }
  .cp-static__footer > span { display: inline-flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
  .cp-static__footer a { text-decoration: underline; text-underline-offset: 3px; }
  @media (max-width: 900px) {
    .cp-static { padding: var(--space-6) var(--space-4) 0; }
    .cp-static-reading { grid-template-columns: minmax(0, 1fr); }
  }
  @media print {
    .cp-static { padding: 0; max-width: none; }
    .cp-static__back, .cp-header__actions, .cp-static__footer { display: none; }
  }
}
