/* rev7 — reading width, compact paired figures. Only loaded by the story pages. */
.story-page .story-hero,.story-page .story-role-strip,.story-page .rev6-story-layout{
  max-width:1280px;margin-left:0;margin-right:auto;padding-inline:clamp(22px,2.65vw,44px);
}
.story-page .story-main{padding-right:clamp(24px,5vw,86px)}
.story-page .story-content{container-type:inline-size}
.story-page .story-hero-grid{gap:clamp(24px,3vw,52px)}
.story-page .story-hero h1{font-size:clamp(34px,3.4vw,50px)}
.story-page .story-chapter{padding-top:44px;padding-bottom:48px}
.story-page .story-chapter-grid{grid-template-columns:minmax(0,1fr);align-items:start;gap:24px}
.story-page .story-chapter-grid.reverse{grid-template-columns:minmax(0,1fr)}
.story-page .story-chapter-grid.reverse .chapter-copy,.story-page .story-chapter-grid.reverse .chapter-visual{order:initial}
.story-page .story-chapter-grid .chapter-copy{max-width:850px}
.story-page .chapter-visual{width:100%;max-width:560px;align-self:center;justify-self:center}
.story-page .chapter-visual svg{min-width:0;max-height:none;height:auto}
.story-page .compact-visual figure{margin:0;overflow:visible}
/* Full-width drawings with many nodes remain readable: no artificial tall scaling. */
.story-page .story-wide-intro{max-width:850px;margin-bottom:20px}
.story-page .story-wide > .chapter-copy{max-width:850px}
.story-page .architecture,.story-page .delivery-diagram{max-width:960px;margin:24px auto 0 0;padding-top:12px;padding-bottom:12px}
.story-page .architecture .arch-stage{overflow-x:auto}
.story-page .architecture .architecture-redraw{width:100%;min-width:790px;max-height:none;height:auto}
.story-page .delivery-view svg{width:100%;min-width:850px;max-height:none;height:auto}
.story-page .story-footer{max-width:1280px;margin-right:clamp(24px,5vw,86px);padding-inline:clamp(40px,4vw,64px)}
@container (min-width: 930px){
  .story-page .story-chapter-grid:not(.text-only){grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:clamp(28px,3vw,46px);align-items:center}
  .story-page .story-chapter-grid.reverse:not(.text-only){grid-template-columns:minmax(0,1fr) minmax(0,1.04fr)}
  .story-page .story-chapter-grid.reverse .chapter-copy{order:2}
  .story-page .story-chapter-grid.reverse .chapter-visual{order:1}
}
@media(max-width:1100px){
 .story-page .story-main{padding:0 12px}
 .story-page .story-hero,.story-page .story-role-strip,.story-page .rev6-story-layout{margin-inline:auto}
 .story-page .story-footer{margin-right:0;padding-inline:34px}
}
@media(max-width:700px){
 .story-page .story-main{padding:0 8px}
 .story-page .story-hero,.story-page .story-role-strip,.story-page .rev6-story-layout{padding-inline:14px}
 .story-page .story-hero h1{font-size:36px}
 .story-page .story-chapter{padding:35px 0 38px}
 .story-page .chapter-visual{max-width:100%}
 .story-page .story-footer{padding-inline:22px}
}
@media print{.story-page .story-main{padding:0}.story-page .story-footer{margin:0}}
