/* Solar System Simulation, in the Panda Tutor design. The orbit canvas stays
   black on purpose (space is the simulation's content); the frame, controls,
   info panel and planet modal follow the site design. Scoped under .pv-sim. */
.pv-sim { font-family: var(--pv-font); color: var(--pv-ink); -webkit-font-smoothing: antialiased; }
.pv-sim *, .pv-sim *::before, .pv-sim *::after { box-sizing: border-box; }
.pv-sim .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.pv-sim .solar-stage { background: #000; border-radius: 26px; overflow: hidden; border: 1px solid var(--pv-line); line-height: 0; }
/* Native size, never upscaled: solar_system.js maps the pointer to canvas pixels without
   correcting for CSS scaling, so stretching the canvas would offset every hit test. */
.pv-sim #solarCanvas { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; background: #000; border: 0; cursor: grab; }
.pv-sim #solarCanvas:active { cursor: grabbing; }

.pv-sim .solar-panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }

.pv-sim .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 26px 28px; background: #f7faff; border: 1px solid var(--pv-line); border-radius: 26px; }
.pv-sim .control-group { display: flex; align-items: center; gap: 12px; flex: 1 1 100%; font-size: 14px; }
.pv-sim .control-group label { font-size: 12px; letter-spacing: 1.3px; font-weight: 700; text-transform: uppercase; color: #5b7094; min-width: 62px; }
.pv-sim .control-group span { color: var(--pv-blue); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.pv-sim input[type="range"] { flex: 1; width: auto; accent-color: var(--pv-blue); }
.pv-sim .controls button {
    min-width: 110px; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 13px;
    background: var(--pv-blue); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: transform .2s, box-shadow .2s; box-shadow: 0 7px 18px #2659ec20;
}
.pv-sim .controls button:hover { transform: translateY(-2px); background: #1b45c8; }
.pv-sim .controls button#resetBtn, .pv-sim .controls button#toggleOrbits { background: #edf3ff; color: var(--pv-blue); box-shadow: none; }
.pv-sim .controls button#resetBtn:hover, .pv-sim .controls button#toggleOrbits:hover { background: #e0eaff; }

.pv-sim .info { position: static; max-width: none; padding: 26px 28px; background: #fff; border: 1px solid var(--pv-line); border-radius: 26px; font-size: 14px; line-height: 1.7; color: var(--pv-muted); }
.pv-sim .info strong { font-family: Manrope, sans-serif; font-size: 18px; letter-spacing: -.4px; color: var(--pv-ink); font-weight: 600; }
.pv-sim .planet-info { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--pv-line); }
.pv-sim .planet-name { font-weight: 700; color: var(--pv-blue); }

/* Planet modal */
.pv-sim .modal { display: none; position: fixed; z-index: 1000; inset: 0; background: rgba(18, 35, 68, 0.62); backdrop-filter: blur(6px); animation: pvSolarFade .3s ease-in-out; }
.pv-sim .modal.active { display: flex; justify-content: center; align-items: center; padding: 20px; }
.pv-sim .modal-content { background: #fff; border: 1px solid var(--pv-line); padding: 34px; border-radius: 26px; max-width: 800px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 30px 80px rgba(18, 35, 68, 0.35); animation: pvSolarSlide .3s ease-out; }
.pv-sim .modal-close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: var(--pv-muted); cursor: pointer; background: #f3f7fe; border: 0; border-radius: 50%; }
.pv-sim .modal-close:hover { color: var(--pv-blue); }
.pv-sim .modal-image { display: block; width: 100%; border-radius: 18px; margin-bottom: 22px; }
.pv-sim .modal-title { font-family: Manrope, sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -1.4px; margin-bottom: 14px; color: var(--pv-ink); }
.pv-sim .modal-description { font-size: 16px; line-height: 1.8; color: var(--pv-muted); margin-bottom: 22px; }
.pv-sim .modal-facts { background: #f7faff; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--pv-line); }
.pv-sim .modal-facts h3 { margin: 0 0 8px; color: var(--pv-ink); font-size: 20px; letter-spacing: -.6px; }
.pv-sim .modal-facts ul { list-style: none; padding: 0; margin: 0; }
.pv-sim .modal-facts li { padding: 10px 0; border-bottom: 1px solid var(--pv-line); color: var(--pv-muted); font-size: 15px; }
.pv-sim .modal-facts li:last-child { border-bottom: 0; }
.pv-sim .modal-facts li strong { color: var(--pv-ink); }

.pv-sim-intro { padding-bottom: 28px; }
.pv-sim-body { padding-top: 0; }
/* Crawler-only description, hidden as it was before the restyle. */
.pv-sim .pv-seo-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@keyframes pvSolarFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pvSolarSlide { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1100px) { .pv-sim .solar-panels { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .pv-sim .controls { padding: 20px; gap: 14px 12px; }
    .pv-sim .controls button { flex: 1 1 28%; min-width: 0; }
    .pv-sim .info { padding: 20px; }
    .pv-sim .solar-stage { border-radius: 20px; }
}
