.science-page .site-shell { width: min(1360px, calc(100% - 80px)); }
.science-page .site-header { min-height: 96px; }
.observatory-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 38px 0 28px; }
.observatory-heading .eyebrow { margin-bottom: 13px; font-size: 10px; letter-spacing: .12em; }
.observatory-heading h1 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.5; letter-spacing: -.03em; }
.title-and { color: var(--muted); }
.title-dot { color: #9aab86; }
.observatory-intro { margin: 9px 0 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.mobile-break { display: none; }
.back-link { flex-shrink: 0; padding-bottom: 5px; font-size: 11px; color: var(--muted); }
.back-link:hover { color: var(--green); }
.observatory-layout { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 24px; align-items: start; }
.space-lab { min-width: 0; overflow: hidden; border: 1px solid #d9ddd3; border-radius: 16px; background: #fcfcf8; }
.space-stage { position: relative; height: clamp(390px, 35vw, 510px); background: #0a1421; overflow: hidden; isolation: isolate; }
#space-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#space-canvas:active { cursor: grabbing; }
#space-canvas:focus-visible { outline-offset: -4px; outline-color: #a6cabb; }
.stage-topline, .stage-bottomline { position: absolute; z-index: 2; left: 25px; right: 25px; display: flex; align-items: center; justify-content: space-between; gap: 14px; pointer-events: none; }
.stage-topline { top: 23px; }
.stage-bottomline { bottom: 17px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; color: #c2cbd1; font-size: 10px; letter-spacing: .06em; }
.live-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #8fc6a8; box-shadow: 0 0 10px #8fc6a84d; }
.stage-coordinate { font: 8px ui-monospace, monospace; color: #728390; letter-spacing: .13em; }
.scene-hint { margin: 0; font-size: 10px; line-height: 1.7; color: #9caebb; }
.scene-button { pointer-events: auto; background: #1b2a3a99; border: 1px solid #ffffff20; border-radius: 6px; padding: 7px 10px; color: #c4d5df; cursor: pointer; font-size: 13px; }
.scene-button span { margin-left: 5px; font-size: 10px; }
.body-label { position: absolute; z-index: 1; top: 0; left: 0; pointer-events: none; color: #ecbc69; font-size: 12px; font-weight: 500; white-space: nowrap; transform: translate(-50%, 0); text-shadow: 0 1px 6px #050b15; }
.body-label small { display: block; padding-left: 11px; margin-top: 4px; font-size: 9px; font-weight: 400; color: #8699a9; }
.label-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 7px 2px 0; }
.earth-label { color: #93cdbd; }
.moon-label { color: #d9dce6; }
.scene-notice { position: absolute; z-index: 4; top: 35%; left: 10%; right: 10%; padding: 20px; border: 1px solid #516578; border-radius: 12px; background: #101d30f0; color: #dee6ec; font-size: 14px; line-height: 1.8; text-align: center; }
.scene-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px; border-bottom: 1px solid #e4e6dd; }
.view-switch { display: flex; align-items: center; gap: 4px; padding: 3px; background: #eef1e8; border-radius: 7px; }
.view-button { padding: 8px 11px; border: 0; border-radius: 5px; background: transparent; font-size: 11px; color: var(--muted); cursor: pointer; }
.view-button[aria-pressed="true"] { background: #fff; color: var(--green); box-shadow: 0 1px 4px #2444310c; }
.display-options { display: flex; gap: 13px; font-size: 10px; color: var(--muted); }
.display-options label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; min-height: 32px; }
.display-options input { margin: 0; accent-color: var(--green); width: 13px; height: 13px; }
.transport { border: 0; padding: 22px 25px 18px; margin: 0; min-width: 0; }
.playback-row { display: flex; align-items: center; gap: 12px; }
.play-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 91px; min-height: 43px; border-radius: 7px; border: 1px solid var(--green); background: var(--green); color: white; font-size: 12px; cursor: pointer; flex-shrink: 0; }
#play-icon { width: 15px; font-size: 16px; }
.play-button:hover { background: #416753; }
.restart-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: transparent; border: 0; padding: 10px 5px; color: var(--muted); cursor: pointer; font-size: 20px; }
.restart-button span { font-size: 10px; }
.time-readout { display: flex; flex-direction: column; gap: 4px; margin-left: 4px; }
.time-readout > span { color: var(--muted); font-size: 9px; }
.time-readout strong { font: 500 13px/1.5 var(--sans); font-variant-numeric: tabular-nums; }
.speed-control { display: inline-flex; gap: 7px; align-items: center; margin-left: auto; font-size: 10px; color: var(--muted); }
.speed-control select { padding: 8px 23px 8px 9px; background: #f5f6ef; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: 11px var(--sans); cursor: pointer; }
.timeline-label { display: flex; justify-content: space-between; gap: 14px; margin: 23px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }
#rate-label { white-space: nowrap; font-variant-numeric: tabular-nums; }
.timeline { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--green); touch-action: pan-y; }
.timeline::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: linear-gradient(to right, var(--green) var(--progress, 0%), #dce3d5 var(--progress, 0%)); }
.timeline::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; background: var(--green); border: 3px solid #fcfcf8; border-radius: 50%; box-shadow: 0 0 0 1px #93a88c; }
.timeline::-moz-range-track { height: 4px; border-radius: 3px; background: #dce3d5; }
.timeline::-moz-range-progress { height: 4px; background: var(--green); }
.timeline::-moz-range-thumb { width: 11px; height: 11px; background: var(--green); border: 3px solid #fcfcf8; border-radius: 50%; }
.timeline-ticks { display: flex; justify-content: space-between; margin-top: 3px; font-size: 9px; color: #87927f; }
.pause-tip { margin: 16px 0 0; font-size: 10px; color: #7a8578; line-height: 1.7; }
.discovery-panel { padding: 5px 0; min-width: 0; }
.panel-eyebrow { display: flex; align-items: center; justify-content: space-between; margin: 0 0 17px; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.panel-eyebrow > span { font-size: 22px; color: #93a889; }
.lesson-list { display: flex; flex-direction: column; gap: 9px; }
.lesson-button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 15px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.lesson-button[aria-pressed="true"] { background: #e9eee3; border-color: #a7b79c; }
.lesson-button:hover { border-color: #94aa88; }
.lesson-number { font: italic 20px Georgia, serif; color: #93a08b; }
.lesson-button[aria-pressed="true"] .lesson-number { color: var(--green); }
.lesson-button strong { display: block; font-size: 12px; font-weight: 500; }
.lesson-button small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.lesson-arrow { margin-left: auto; color: #7c8d72; font-size: 16px; }
.discovery-copy { padding: 24px 2px 20px; }
.discovery-kicker { font-size: 9px; color: #859477; letter-spacing: .05em; }
.discovery-copy h2 { font-size: 25px; line-height: 1.5; margin-top: 9px; }
.discovery-copy > p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 12px 0 16px; }
.fact-chips { display: flex; gap: 8px; }
.fact-chips > span { flex: 1; padding: 10px; border: 1px solid #dde3d6; border-radius: 6px; font-size: 9px; color: var(--muted); line-height: 1.7; }
.fact-chips strong { display: block; margin-top: 3px; color: var(--green); font-size: 13px; font-weight: 500; }
.try-box { display: flex; gap: 9px; align-items: start; margin-top: 15px; }
.try-box > span { color: #9b8754; font-size: 21px; line-height: 1.3; }
.try-box p { margin: 0; font-size: 10px; line-height: 1.9; color: #847751; }
.moon-observation { display: flex; align-items: center; gap: 15px; padding-top: 18px; border-top: 1px solid var(--line); }
.moon-disc { display: grid; place-items: center; width: 68px; height: 68px; background: #121d2c; border-radius: 50%; flex-shrink: 0; }
#phase-canvas { display: block; width: 62px; height: 62px; }
.phase-eyebrow { font-size: 9px; color: var(--muted); }
#phase-name { display: block; margin-top: 5px; font-size: 15px; font-weight: 500; }
#phase-detail { margin: 5px 0 0; font-size: 10px; color: var(--muted); }
.phase-jumps { display: flex; gap: 7px; margin-top: 13px; }
.phase-jump { flex: 1; min-height: 34px; border: 1px solid var(--line); border-radius: 5px; background: #fcfcf8; color: var(--green); font-size: 10px; cursor: pointer; }
.little-notes { margin: 42px 0 26px; padding-top: 25px; border-top: 1px solid var(--line); }
.notes-heading { display: flex; gap: 10px; align-items: center; }
.notes-heading > span { color: #8a9f7e; font-size: 22px; }
.notes-heading h2 { font-size: 18px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 23px; }
.knowledge-grid article { position: relative; padding-left: 37px; }
.knowledge-icon { position: absolute; left: 0; top: -4px; font-size: 27px; }
.sun-icon { color: #bba165; }.earth-icon { color: #729980; }.moon-icon { color: #8693a6; }
.knowledge-grid h3 { font-size: 13px; font-weight: 500; margin: 0 0 9px; }
.knowledge-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.model-notes { margin: 0 0 35px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.model-notes summary { cursor: pointer; padding: 10px 0; }
.model-notes > div { max-width: 900px; padding: 4px 18px; border-left: 2px solid var(--line); }
.model-notes a { color: var(--green); margin-right: 15px; text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button:disabled { cursor: default; opacity: .5; }
.noscript-note { margin: 20px; padding: 18px; border: 1px solid var(--line); }
.space-lab:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; border: 0; border-radius: 0; background: var(--paper); overflow: auto; }
.space-lab:fullscreen .space-stage { flex: 1; min-height: 200px; height: auto; }
.space-lab:fullscreen .transport { padding-top: 14px; padding-bottom: 10px; }
.space-lab:fullscreen .pause-tip { display: none; }
@media (max-width: 1100px) {
    .science-page .site-shell { width: calc(100% - 48px); }
    .observatory-layout { grid-template-columns: minmax(0, 1fr) 267px; gap: 20px; }
    .scene-toolbar { padding: 12px 15px; flex-wrap: wrap; }
    .transport { padding: 18px; }
    .speed-control { gap: 5px; }.speed-control select { padding-right: 14px; }
    .playback-row { gap: 8px; }.restart-button span { display: none; }
    .knowledge-grid { gap: 25px; }
}
@media (max-width: 820px) {
    .observatory-layout { grid-template-columns: 1fr; }
    .space-stage { height: 470px; }
    .discovery-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; padding-top: 12px; }
    .panel-eyebrow { grid-column: 1; margin-bottom: 12px; }.lesson-list { grid-column: 1; grid-row: 2 / 4; }
    .discovery-copy { grid-column: 2; grid-row: 1 / 3; padding: 4px 0 18px; }
    .moon-observation { grid-column: 2; }.phase-jumps { grid-column: 2; }
}
@media (max-width: 540px) {
    .science-page .site-shell { width: calc(100% - 32px); }
    .science-page .site-header { min-height: 80px; }
    .observatory-heading { display: block; padding: 29px 0 22px; }
    .observatory-heading .eyebrow { font-size: 9px; margin-bottom: 10px; }
    .observatory-heading h1 { font-size: clamp(25px, 6.8vw, 36px); }
    .observatory-intro { font-size: 11px; margin-top: 9px; }.mobile-break { display: inline; }
    .back-link { display: inline-block; margin-top: 15px; font-size: 10px; }
    .space-lab { border-radius: 12px; }
    .space-stage { height: 365px; }
    .stage-topline, .stage-bottomline { left: 16px; right: 16px; }.stage-topline { top: 18px; }
    .stage-coordinate { display: none; }.scene-hint { font-size: 9px; max-width: 225px; }
    .body-label { font-size: 10px; }.body-label small { font-size: 8px; }
    .scene-toolbar { padding: 10px 13px; gap: 3px; }.view-button { padding: 9px 11px; font-size: 10px; }
    .display-options { width: 100%; gap: 18px; justify-content: end; margin-top: 4px; font-size: 9px; }
    .transport { padding: 17px 15px; }.play-button { width: 75px; min-height: 42px; }
    .playback-row { gap: 10px; }.time-readout { margin-left: 0; }.time-readout > span { font-size: 8px; }.time-readout strong { font-size: 11px; }
    .speed-control { flex-direction: column; gap: 2px; font-size: 8px; align-items: start; }.speed-control select { font-size: 10px; padding: 6px; }
    .timeline-label { margin-top: 19px; font-size: 9px; gap: 9px; }.pause-tip { font-size: 9px; margin-top: 13px; }
    .discovery-panel { display: block; padding-top: 6px; }.panel-eyebrow { margin-bottom: 12px; }
    .lesson-list { flex-direction: row; gap: 7px; }.lesson-button { flex: 1; flex-direction: column; align-items: start; gap: 7px; padding: 12px 10px; }.lesson-number { font-size: 16px; }.lesson-button strong { font-size: 10px; line-height: 1.7; }.lesson-button small { display: none; }.lesson-arrow { display: none; }
    .discovery-copy { padding: 22px 2px 20px; }.discovery-copy h2 { font-size: 26px; }.discovery-copy > p { font-size: 12px; }
    .fact-chips > span { font-size: 10px; }.fact-chips strong { font-size: 15px; }.try-box p { font-size: 11px; }
    .moon-observation { padding-top: 15px; }.phase-jumps { max-width: 330px; }
    .little-notes { margin-top: 30px; }.knowledge-grid { grid-template-columns: 1fr; gap: 25px; }.knowledge-grid p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lesson-button { transition: none; } }
