/* Transparent 3D explanations, with labels outside the models. */
.scale-illustration,.ledger-illustration { width:100%; height:190px; }
:is(.scale-illustration,.ledger-illustration) canvas { display:block; width:100%; height:100%; }
body #architecture-scale .route-scale-steps > div { padding:20px 24px 24px; background:transparent; }
body #architecture-scale .route-scale-steps dd { margin:0; }
body #architecture-scale .route-scale-steps dd b { font-size:25px; }
.ledger-illustration { height:210px; margin:8px 0; }
body #d100-ledger .expert-grid { display:none; }
/* Each compiler stage shows its input, transformation and output in 3D. */
body #compiler .compiler-panels { padding-top:16px; }
body #compiler .compiler-detail { display:block; min-height:0; padding:32px 36px 24px; border-radius:12px; background:var(--sapphire-paper, #f7faff); }
body #compiler .compiler-detail[hidden] { display:none; }
body #compiler .compiler-detail + .compiler-detail:not([hidden]) { margin-top:12px; }
.compiler-transform { display:grid; grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1fr); align-items:start; gap:12px; }
.compiler-endpoint,.compiler-operation { display:flex; flex-direction:column; gap:4px; min-width:0; }
.compiler-stage-art { width:100%; height:210px; background:transparent; }
.compiler-stage-art canvas { display:block; width:100%; height:100%; }
.compiler-cell-copy { display:flex; flex-direction:column; align-items:center; gap:6px; min-height:78px; text-align:center; }
.compiler-flow-label { color:var(--sapphire-muted, #385da5); font-size:12px; line-height:1.5; }
.compiler-endpoint strong { color:var(--sapphire-ink, #082b78); font-size:clamp(17px, 1.4vw, 21px); font-weight:600; line-height:1.5; letter-spacing:-.025em; }
.compiler-deliverable strong { color:var(--sapphire-blue, #2059ed); }
.compiler-operation ul { display:flex; flex-direction:column; gap:2px; margin:0; padding:0; list-style:none; }
.compiler-operation li { color:var(--sapphire-ink, #082b78); font-size:15px; line-height:1.65; }
.compiler-connector { position:relative; display:block; height:2px; margin-top:106px; background:#bdd0fa; }
.compiler-connector::after { position:absolute; content:""; top:-4px; right:-1px; width:7px; height:10px; background:#5582e1; clip-path:polygon(0 0, 100% 50%, 0 100%); }
body #compiler .compiler-summary { max-width:64em; margin:16px auto 0; color:var(--sapphire-muted, #385da5); font-size:13px; line-height:1.8; text-align:center; }
.story-stage-labels { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; color:#52637b; font-size:11px; text-align:center; padding-bottom:12px; }
.story-stage-labels [data-current="true"] { color:#1744c4; font-weight:600; }
body #operator-feedback-map > :is(.live-diagram-overlay,.site-motion-field) { display:none !important; }
/* Equal scenario tabs above a shared comparison diagram and aligned explanation. */
body #operator-feedback .tw-heading { align-items:center; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
body #operator-feedback .tw-layout { display:block; }
body #operator-feedback .tw-choices { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:24px; }
body #operator-feedback .tw-choice { grid-template-columns:28px minmax(0,1fr); min-height:88px; padding:16px 20px; align-content:center; }
body #operator-feedback .tw-choice:hover { transform:none; }
body #operator-feedback .tw-content { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); align-items:stretch; gap:32px; }
body #operator-feedback-map { padding:28px; background:var(--sapphire-paper, #f7faff); }
body #operator-feedback .tw-map-heading { min-height:26px; padding:0; margin-bottom:24px; }
body #operator-feedback .tw-panels { margin:0; padding:28px 0; }
body #operator-feedback .tw-panel { margin:0; }
body #operator-feedback .tw-panel h3 { font-size:22px; line-height:1.5; text-wrap:initial; }
body #operator-feedback .tw-panel > p { margin-top:12px; }
body #operator-feedback .tw-panel dl { margin-top:24px; gap:18px; }
body #operator-feedback .tw-panel dl > div { grid-template-columns:64px minmax(0,1fr); gap:16px; padding:0; }
.operator-loop { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 36px minmax(0,1.2fr) 36px minmax(0,1fr); grid-template-rows:70px 54px 70px 64px; align-items:center; }
.operator-loop-node { display:flex; flex-direction:column; justify-content:center; gap:6px; min-width:0; min-height:70px; padding:12px 8px; border-radius:6px; text-align:center; background:#fff; }
.operator-loop-node small { color:var(--sapphire-muted, #385da5); font-size:11px; line-height:1.5; }
.operator-loop-node strong { color:var(--sapphire-ink, #082b78); font-size:16px; font-weight:600; line-height:1.5; }
.operator-loop-input { grid-column:1; grid-row:1/4; background:transparent; }
.operator-loop-reference { grid-column:3; grid-row:1; }
.operator-loop-candidate { grid-column:3; grid-row:3; background:#eaf1ff; }
.operator-loop-result { grid-column:5; grid-row:1/4; background:transparent; }
.operator-loop-result strong { color:var(--sapphire-blue, #2059ed); }
.operator-loop-split,.operator-loop-merge { width:100%; height:194px; grid-row:1/4; overflow:visible; }
.operator-loop-split { grid-column:2; }
.operator-loop-merge { grid-column:4; }
.operator-loop svg path { fill:none; stroke:#7c9fe9; stroke-width:1.5; vector-effect:non-scaling-stroke; stroke-linecap:round; stroke-linejoin:round; }
.operator-loop .operator-loop-tip { stroke:#2059ed; }
.operator-loop svg .operator-flow-trail { stroke:#477bff; stroke-width:2.5; stroke-dasharray:.08 .92; }
.operator-flow-packet { fill:#1744c4; stroke:#cbdcff; stroke-width:.7; vector-effect:non-scaling-stroke; }
.operator-data-stream { pointer-events:none; }
.operator-loop-return { grid-column:1/-1; grid-row:4; align-self:end; text-align:right; }
.operator-loop-return svg { position:absolute; inset:0; display:block; width:100%; height:258px; pointer-events:none; }
.operator-loop-return svg path { stroke:#a7bff1; }
.operator-loop-return span { display:block; padding-right:6%; color:var(--sapphire-muted, #385da5); font-size:12px; line-height:1.7; }
@media(max-width:1050px) {
 body #operator-feedback .tw-content { grid-template-columns:minmax(0,1fr); gap:24px; }
 body #operator-feedback .tw-panels { padding:0; }
 body #operator-feedback .tw-panel dl { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
}
@media(max-width:760px) {
 .scale-illustration { height:200px; }
 .ledger-illustration { height:200px; }
 body #compiler .compiler-detail { padding:24px; }
 .compiler-transform { grid-template-columns:minmax(0,1fr); gap:8px; min-height:0; }
 .compiler-endpoint,.compiler-operation { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:center; gap:14px; }
 .compiler-stage-art { height:140px; }
 .compiler-cell-copy { align-items:flex-start; min-height:0; text-align:left; }
 .compiler-endpoint strong { font-size:18px; }
 .compiler-operation li { font-size:14px; }
 .compiler-connector { width:2px; height:18px; margin:0 0 0 24%; }
 .compiler-connector::after { top:auto; bottom:-1px; right:-4px; width:10px; height:7px; clip-path:polygon(0 0, 100% 0, 50% 100%); }
 body #compiler .compiler-summary { margin-top:22px; font-size:13px; }
 .story-stage-labels { font-size:10px; gap:5px; }
}
@media(max-width:760px) {
 body #operator-feedback .tw-heading { grid-template-columns:minmax(0,1fr); gap:16px; }
 body #operator-feedback .tw-choice { padding:14px; gap:8px; }
 body #operator-feedback-map { padding:20px 16px; }
 .operator-loop { grid-template-columns:minmax(0,1fr) 20px minmax(0,1.25fr) 20px minmax(0,1fr); }
 .operator-loop-node { padding:10px 4px; }
 .operator-loop-node strong { font-size:14px; }
 .operator-loop-node small { font-size:10px; }
}
@media(max-width:560px) {
 body #operator-feedback .tw-choices { grid-template-columns:minmax(0,1fr); gap:8px; }
 body #operator-feedback .tw-choice { min-height:76px; padding:14px 16px; }
 body #operator-feedback .tw-panel dl { grid-template-columns:minmax(0,1fr); gap:16px; }
 body #operator-feedback .tw-map-heading { display:block; }
 body #operator-feedback .tw-map-heading span { display:block; margin-top:8px; }
 .operator-loop-return span { font-size:11px; padding-right:0; }
}
