/* rev13 — Three editorial layout types. Only story pages load this file.
   The existing paired illustration grid and SVG display geometry are untouched. */
.story-page {
  --story-reading-width: 940px;
}
/* Type 1: text-only. Type 3: wide visual / comparison.
   Center the reading column within story-content with equal inline margins.
   Keep headings, prose, diagrams, comparison grids and chapter rules aligned. */
.story-page .story-chapter:is(.story-layout-text,.story-layout-wide) {
  width: 100%;
  max-width: var(--story-reading-width);
  margin-inline: auto;
  min-width: 0;
}
.story-page .story-layout-text > .story-chapter-grid {
  grid-template-columns: minmax(0,1fr);
  width: 100%;
  gap: 0;
  align-items: start;
}
.story-page .story-layout-text > .story-chapter-grid > .chapter-copy,
.story-page .story-layout-wide > :is(.story-wide-intro,.chapter-copy,.architecture,.delivery-diagram,.delivery-pilot-list,.pilot-outcome) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
}
/* Type 2: paired copy and visual retain rev12's container breakpoint,
   column widths, visual limit, and alternating left/right placement. */
.story-page .story-layout-paired { min-width: 0; }
/* Closing reflection shares the centered reading measure as text-only chapters. */
.story-page .story-end {
  width: 100%;
  max-width: var(--story-reading-width);
  margin-inline: auto;
}
.story-page .story-end p { max-width: 100%; }
/* At narrow widths the existing stacked cards and internally scrollable
   detailed diagrams remain in effect. No additional image placeholders. */
/* Override the legacy text-only grid's own width cap as well as its copy cap. */
.story-page .story-layout-text > .story-chapter-grid { max-width: 100%; }
