/* v12: one connected system, eight legible roles. Scoped to the new figure. */
/* Follow the reading column, not a fraction of an ultrawide monitor. The
   text retains a solid paper surface; the observed object keeps its colour. */
@media(min-width:901px) {
  .place,.continuity,.individual {
    --reading-end:calc(var(--edge) + (100vw - 2 * var(--edge) - clamp(32px,4vw,72px)) * .425);
    --chapter-paper:linear-gradient(180deg,var(--paper),rgb(244 241 233 / 0) 160px,rgb(244 241 233 / 0) calc(100% - 100px),var(--paper));
    --reading-paper:linear-gradient(90deg,var(--paper) 0,var(--paper) calc(var(--reading-end) - 30px),rgb(244 241 233 / .88) calc(var(--reading-end) + 16px),rgb(244 241 233 / .16) calc(var(--reading-end) + 132px),rgb(244 241 233 / 0) calc(var(--reading-end) + 220px));
  }
  .place::before,.continuity::before,.individual::before {
    background:var(--chapter-paper),var(--reading-paper);
  }
  .place::before {
    background:var(--chapter-paper),linear-gradient(270deg,var(--paper),var(--paper) max(0px,calc(var(--edge) - 130px)),rgb(244 241 233 / 0) calc(var(--edge) + 20px)),var(--reading-paper);
  }
}
@media(min-width:901px) and (max-width:1100px) {
  .place,.continuity,.individual { --reading-end:calc(var(--edge) + (100vw - 2 * var(--edge) - 28px) * .5); }
}
#systems-platform .platform-figure { margin: 40px 0 0; }
#systems-platform .platform-scene { height:clamp(480px,55svh,640px); margin:0; }
#systems-platform .platform-labels,
#systems-platform .platform-foundation {
  position:absolute; left:3%; right:3%; display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px;
  margin:0; padding:0; border:0; text-align:center;
}
#systems-platform .platform-labels { top:0; bottom:auto; }
#systems-platform .platform-foundation { top:auto; bottom:0; }
#systems-platform [data-platform-node] {
  position:relative; display:block; min-width:0; width:auto;
  transform:none; background:none; color:var(--ink,#393c35);
  font-size:15px; line-height:1.7; letter-spacing:.015em;
}
#systems-platform [data-platform-node] b {
  display:block; margin:0 0 3px; font-size:17px; font-weight:400;
  line-height:1.7; color:var(--ink,#393c35); white-space:normal;
}
#systems-platform [data-platform-node] em {
  display:block; font-style:normal; font-size:15px; line-height:1.7;
  color:#565f5d; letter-spacing:.015em; white-space:nowrap;
}
#systems-platform .platform-leaders { position:absolute; inset:0; width:100%;height:100%;overflow:visible; }
#systems-platform .platform-leaders path { fill:none; stroke:#9d8e76; stroke-width:.85; vector-effect:non-scaling-stroke; }
#systems-platform .platform-figure figcaption { margin-top:24px; }
/* The static poster contains the same eight projected names and connections.
   Keep their DOM text available to assistive technology without double ink. */
html:is(.world-static,.no-js):not(.loader-pending) #systems-platform [data-platform-node],
html:is(.world-static,.no-js):not(.loader-pending) #systems-platform .platform-leaders,
#systems-platform [data-story-loading="true"] [data-platform-node],
#systems-platform [data-story-loading="true"] .platform-leaders { opacity:0; }
html:is(.world-static,.no-js):not(.loader-pending) #systems-platform .platform-scene,
#systems-platform .platform-scene[data-story-loading="true"] { mask-image:none; }
@media(max-width:900px) {
  #systems-platform .platform-figure { margin-top:28px; }
  #systems-platform .platform-scene { height:620px; margin:0; }
  #systems-platform .platform-labels,
  #systems-platform .platform-foundation { display:contents; }
  #systems-platform [data-platform-node] {
    position:absolute; width:132px; transform:translate(-50%,-100%);
    padding:3px 0; background:none;
    font-size:14px; line-height:1.6;
  }
  #systems-platform [data-platform-node] b { font-size:14px; line-height:1.65; margin-bottom:1px; }
  #systems-platform [data-platform-node] em { font-size:14px; line-height:1.65; }
  /* A legible layout also exists before projection and in static/no-JS mode. */
  #systems-platform [data-platform-node="0"]{left:27%;top:14%}
  #systems-platform [data-platform-node="1"]{left:73%;top:14%}
  #systems-platform [data-platform-node="2"]{left:27%;top:35%}
  #systems-platform [data-platform-node="3"]{left:73%;top:35%}
  #systems-platform [data-platform-node="4"]{left:27%;top:58%}
  #systems-platform [data-platform-node="5"]{left:73%;top:58%}
  #systems-platform [data-platform-node="6"]{left:27%;top:81%}
  #systems-platform [data-platform-node="7"]{left:73%;top:81%}
  #systems-platform .platform-figure figcaption { margin-top:18px; }
}
@media(max-width:430px) {
  #systems-platform .platform-scene { height:540px; }
  .chapter-room-view[data-editorial-scene="individual"] { height:340px; }
}
