/* Lab activities (space): orbit seasons (site/js/science/lab-space.js). */

.sp-space { fill: #0f1838; }
.sp-star { fill: #fff; opacity: 0.6; }
.sp-word { fill: #ffe59a; font: 600 17px var(--ui); text-anchor: middle; pointer-events: none; }
.sp-word.start { text-anchor: start; }

/* ---- Orbit: the Sun, a planet and the pushes ---- */

.or-path { fill: none; stroke: rgb(255 255 255 / 0.25); stroke-width: 2; stroke-dasharray: 5 8; }
.or-trail { fill: none; stroke: #8fd3ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.or-pull { stroke: #ff8b80; stroke-width: 4; stroke-linecap: round; }
.or-shove { stroke: #5ad06d; stroke-width: 6; stroke-linecap: round; }
.or-ball { fill: #3a86d8; stroke: #bfe0ff; stroke-width: 2; }
.or-bands { fill: none; stroke: #6fd18a; stroke-width: 3; stroke-linecap: round; }
.or-shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4cqmin; }
.or-shelf .card { width: clamp(88px, 12cqw, 136px); }
.or-shelf .card-emoji { font-size: clamp(28px, 6cqmin, 44px); }
.or-shelf .card-label { font-size: clamp(14px, 2.6cqmin, 19px); }

/* ---- Seasons: the Earth's orbit and Melbourne's daylight ---- */

.ss-rig { display: flex; align-items: center; justify-content: center; gap: 2cqmin; width: 100%; height: 100%; min-height: 0; }
.ss-scene { flex: 1 1 0; height: 100%; min-width: 0; cursor: grab; }
.ss-scene.held { cursor: grabbing; }
.ss-path { fill: none; stroke: rgb(255 255 255 / 0.35); stroke-width: 2.5; stroke-dasharray: 6 8; }
.ss-dot circle { fill: #8fa3d8; }
.ss-dot.near circle { fill: #f2b01e; }
.ss-globe { fill: #3a86d8; }
.ss-land { fill: #6fd18a; }
.ss-night { fill: rgb(8 16 48 / 0.62); }
.ss-axis { stroke: #fff; stroke-width: 3; stroke-dasharray: 5 4; stroke-linecap: round; }
.ss-pin { fill: #e0453a; stroke: #fff; stroke-width: 2; }
.ss-hit { fill: transparent; }
.ss-panel { flex: none; display: grid; justify-items: center; gap: 0.6cqmin; width: clamp(150px, 22cqw, 230px); padding: 1.6cqmin; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.ss-title { margin: 0; font: 600 clamp(15px, 3cqmin, 21px)/1.1 var(--ui); }
.ss-clock { width: min(100%, 22cqh); height: auto; }
.ss-ring-night { fill: none; stroke: #26386e; stroke-width: 15; }
.ss-ring-day { fill: none; stroke: #f2b01e; stroke-width: 15; }
.ss-clock-word { font: 16px var(--emoji); text-anchor: middle; dominant-baseline: middle; }
.ss-hours { margin: 0; font: 600 clamp(16px, 3.2cqmin, 23px)/1.15 var(--book); text-align: center; }
.ss-season { margin: 0; min-height: 1.2em; color: var(--muted); font: 400 clamp(14px, 2.6cqmin, 19px)/1.2 var(--book); text-align: center; }

@container (max-aspect-ratio: 23/20) {
  .ss-rig { flex-direction: column; }
  .ss-scene { width: 100%; height: auto; flex: 1 1 auto; }
  .ss-panel { grid-template-columns: auto auto; grid-template-areas: 't t' 'c h' 'c s'; align-items: center; width: auto; column-gap: 2cqw; }
  .ss-title { grid-area: t; }
  .ss-clock { grid-area: c; width: min(16cqh, 30cqw); }
  .ss-hours { grid-area: h; }
  .ss-season { grid-area: s; }
}
