/* Size ASCII cells against each figure, keeping the text and vector overlay aligned.
   Leave a little width for font rounding; these diagrams are not scrolling code blocks. */
.orbit-demo { margin: 24px 0; container-type: inline-size; }
.orbit-body-labels { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font: 12px "Courier New", monospace; }
.blog-post-content .orbit-demo pre { width: 100%; margin: 8px 0; padding: 0; border: 0; background: transparent !important; color: inherit; font-family: "Courier New", Courier, monospace; font-size: min(8px, 1cqw); line-height: 1; letter-spacing: 0; white-space: pre; overflow: clip; overflow-wrap: normal; word-break: normal; text-shadow: none; }
.orbit-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 13px "Courier New", monospace; }
.orbit-controls button { padding: 4px 0; border: 0; background: none; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.orbit-controls input { flex: 1 1 100px; min-width: 80px; max-width: 220px; accent-color: #777; }
.orbit-controls output { min-width: 4ch; }
.orbit-demo figcaption { margin-top: 12px; font-size: 0.8125rem; opacity: 0.75; }
html[data-theme="retro"] .orbit-controls button { color: #0000ee; }

.orbit-scene-wrap { position: relative; width: fit-content; max-width: 100%; margin: 8px auto; }
.blog-post-content .orbit-scene-wrap pre { width: 160ch; margin: 0; }
#orbit-axes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#orbit-axes [hidden] { display: none; }
#orbit-axes line { stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
.orbit-normal { stroke: currentColor; opacity: 0.65; }
.orbit-spin-axis { stroke: #508cdb; }
html[data-theme="retro"] .orbit-spin-axis { stroke: #0000ee; }
.orbit-axes-switch { display: inline-flex; align-items: center; gap: 6px; }
.orbit-controls .orbit-axes-switch input { flex: none; min-width: 0; width: auto; margin: 0; }

#orbit-surface-marker { fill: #e22b32; stroke: #fff; stroke-width: 0.75px; vector-effect: non-scaling-stroke; }

.orbit-slider-row { display: grid; grid-template-columns: 15ch minmax(0, 1fr) 6ch; align-items: start; gap: 10px; flex-basis: 100%; max-width: 560px; }
.orbit-controls .orbit-slider-row input { width: 100%; min-width: 0; max-width: none; margin: 0; }
@media (max-width: 480px) {
    .orbit-slider-row { grid-template-columns: minmax(0, 1fr) 6ch; }
    .orbit-slider-row > label { grid-column: 1 / -1; }
}

.blog-post-content .earth-study-wrap pre { width: 120ch; font-size: min(8px, 1.3333cqw); }
#earth-study-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#earth-study-overlay [hidden] { display: none; }
#earth-study-overlay line { stroke: currentColor; stroke-width: 0.8px; vector-effect: non-scaling-stroke; }
#earth-study-overlay text { fill: currentColor; font: 1.6px "Courier New", monospace; }
.earth-study-normal { color: inherit; }
.earth-study-sun-vector { color: #83b9ff; }
html[data-theme="retro"] .earth-study-sun-vector { color: #0000ee; }
#earth-study-overlay .earth-study-sun-vector line { stroke-width: 1.5px; }
#earth-study-point { fill: #e22b32; stroke: #fff; stroke-width: 0.75px; vector-effect: non-scaling-stroke; }

#earth-study-ground { fill: currentColor; fill-opacity: 0.1; stroke: currentColor; stroke-opacity: 0.65; stroke-width: 0.8px; vector-effect: non-scaling-stroke; }

#local-study-scene { display: block; width: min(100%, 600px); height: auto; margin: 8px auto; overflow: visible; }
#local-study-scene line { stroke: currentColor; stroke-width: 0.8px; vector-effect: non-scaling-stroke; }
#local-study-scene text { fill: currentColor; font: 2.4px "Courier New", monospace; }
#local-study-ground { fill: currentColor; fill-opacity: 0.1; stroke: currentColor; stroke-opacity: 0.65; stroke-width: 0.8px; vector-effect: non-scaling-stroke; }
.local-study-sun { color: #83b9ff; }
html[data-theme="retro"] .local-study-sun { color: #0000ee; }
#local-study-scene .local-study-sun line { stroke-width: 1.5px; }
.local-study-origin { fill: currentColor; }
