/* rev16: left-aligned reading blocks, with deliberate peripheral mesh. */
.story-page .story-chapter:is(.story-layout-text,.story-layout-wide), .story-page .story-end {
  margin-inline: 0 auto;
  position: relative;
}
.story-page .story-hero h1.story-balanced-title { font-size: clamp(30px,2.65vw,44px); line-height:1.24; word-break:keep-all; overflow-wrap:break-word; }
.story-page .story-hero h1.story-balanced-title span { display:block; }
/* The gap uses only unused width; never reserve an empty image column. */
@container (min-width: 1040px) {
  .story-page .story-chapter:is(.story-layout-text,.story-layout-wide)::after,
  .story-page .story-end::after {
    content:""; position:absolute; pointer-events:none; top:16px; bottom:16px;
    left:calc(100% + 24px); width:max(0px,calc(100cqw - 100% - 24px));
    background: url("story-margin-mesh.svg") center top / 320px 480px repeat-y;
    opacity:.83;
    mask-image:linear-gradient(90deg,transparent,#000 20%,#000 88%,transparent),linear-gradient(180deg,transparent,#000 16%,#000 68%,transparent);
    mask-composite:intersect;
  }
}
@media(min-width:1101px){
 .story-page .story-main::after{background: url("story-margin-mesh.svg") center top / 320px 480px repeat-y;opacity:.72;border-left:0;mask-image:linear-gradient(90deg,transparent,#000 32%);}
}
@media(max-width:700px){.story-page .story-hero h1.story-balanced-title{font-size:clamp(27px,6.6vw,34px)}}
@media print{.story-page .story-chapter::after,.story-page .story-end::after{display:none!important}}
