@font-face { font-family: "Anton"; src: url("../assets/fonts/anton-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/space-grotesk-variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
.galactic-page { --font-heading: "Anton", "Arial Narrow", sans-serif; --font-display: "Anton", "Arial Narrow", sans-serif; --font-body: "Space Grotesk", system-ui, sans-serif; --explorer-ink: #fff; --explorer-surface: #0e0a18; --explorer-panel: #e4d2f2; --explorer-fold: #a88bd9; --explorer-button-ink: #0e0a18; }
.galactic-page :is(.brand__text, .distance-marker) { color: var(--explorer-ink); font-weight: 400; }
.galactic-page .brand__text { font-size: 1.8rem; overflow: visible; text-overflow: clip; }
.galactic-page .distance-label { font-family: var(--font-body); font-size: .9rem; }
.galactic-page .partner-logo--esa { width: clamp(4.875rem, 7.7vw, 7rem); }
.galactic-page .distance-bar, .galactic-page .distance-bar::before, .galactic-page .distance-bar::after { background: var(--explorer-ink); }
.galactic-page :is(.icon-button, .text-button, .mode-switch) { position: relative; isolation: isolate; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--explorer-button-ink); padding-bottom: .2rem; }
.galactic-page :is(.text-button, .mode-switch) { font-family: var(--font-body); font-size: .875rem; font-weight: 600; }
.galactic-page .mode-switch__track { background: #746583; }
.galactic-page .mode-switch > .panel-label { display: inline-flex; align-items: center; gap: .5rem; height: 100%; }
.galactic-page .mode-switch[aria-pressed="true"] .mode-switch__track { background: #514461; }
.galactic-page .mode-switch__thumb { background: #fff; }
.galactic-page .control-panel { position: absolute; inset: 0; z-index: -1; pointer-events: none; --panel-profile: polygon(0 0, 100% 0, 100% calc(100% - .35rem), calc(100% - .75rem) calc(100% - .35rem), calc(100% - .75rem) 100%, .65rem 100%, 0 calc(100% - .65rem)); }
.galactic-page :is(.control-panel-outline, .control-panel-face, .control-panel-fold) { position: absolute; inset: 0; }
.galactic-page :is(.control-panel-outline, .control-panel-face) { background: var(--explorer-panel); clip-path: var(--panel-profile); }
.galactic-page .control-panel-fold { background: var(--explorer-fold); clip-path: polygon(0 calc(100% - .65rem), .65rem 100%, calc(100% - .75rem) 100%, calc(100% - .75rem) calc(100% - .35rem), 100% calc(100% - .35rem), 100% calc(100% - .5rem), calc(100% - .9rem) calc(100% - .5rem), calc(100% - .9rem) calc(100% - .15rem), .75rem calc(100% - .15rem), .15rem calc(100% - .65rem)); }
.galactic-page :is(.text-button, .icon-button, .mode-switch):hover { --explorer-panel: #f2ead9; }
.galactic-page :is(.feature-panel, .status, .video-dialog) { background: var(--explorer-surface); color: var(--explorer-ink); border-color: var(--explorer-fold); border-radius: 0; }
.galactic-page :is(.feature-panel h2, .video-dialog__header h2) { font-family: var(--font-heading); font-weight: 400; font-size: 1.75rem; }
.galactic-page .feature-panel p { font-size: .9375rem; }
.galactic-page .video-playlist__item { border-radius: 0; font-size: .875rem; line-height: 1.3; }
.galactic-page .video-overlay { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; }
.galactic-page .video-overlay:not([open]) { display: none; }
.galactic-page .video-overlay::backdrop { background: rgb(0 0 0 / .75); }
.galactic-page .skip-link { position: absolute; z-index: 30; top: .5rem; left: .5rem; padding: .75rem; transform: translateY(-200%); background: #fff; color: #000; }
.galactic-page .skip-link:focus { transform: none; }
.galactic-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.galactic-page :is(button, a, #viewer):focus-visible { outline: 3px solid var(--explorer-ink); outline-offset: 3px; opacity: 1; }
.galactic-page #viewer:focus-visible { outline-offset: -4px; }
@media (max-width: 480px) {
  .galactic-page .partner-logo--esa { width: 4.125rem; }
  .galactic-page .brand__text { font-size: 1.2rem; }
  .galactic-page .distance-label { font-size: .75rem; }
}
@media (forced-colors: active) {
  .galactic-page .brand { background: Canvas; }
  .galactic-page :is(.brand__text, .distance-marker) { color: CanvasText; }
  .galactic-page .distance-bar, .galactic-page .distance-bar::before, .galactic-page .distance-bar::after { background: CanvasText; }
  .galactic-page :is(.control-panel-face, .control-panel-outline) { background: ButtonFace; }
  .galactic-page .control-panel-fold { background: ButtonText; }
  .galactic-page :is(.text-button, .icon-button, .mode-switch) { color: ButtonText; outline: 1px solid ButtonText; }
  .galactic-page :is(.feature-panel, .status, .video-dialog) { background: Canvas; color: CanvasText; border-color: CanvasText; }
}

/* Filter-style controls aligned with the explorer title. */
.galactic-page .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 1rem; padding: .75rem 1rem; }
.galactic-page .toolbar { grid-row: 1; grid-column: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; width: 100%; gap: .5rem; }
.galactic-page .brand { grid-row: 1; grid-column: 1; max-width: 100%; padding: 0; }
.galactic-page .distance-label { font-family: var(--font-body); font-weight: 600; line-height: 1.4; white-space: normal; }
.galactic-page .toolbar :is(.text-button, .icon-button, .mode-switch) { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: auto; height: auto; min-height: 2.75rem; max-width: 100%; padding: .4rem .7rem; border: 1px solid transparent; border-radius: .35rem; background: #fff; color: #000; font-family: var(--font-heading); font-size: .9rem; font-weight: 400; line-height: 1.3; text-transform: uppercase; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.galactic-page .toolbar .icon-button { min-width: 2.75rem; font-family: var(--font-body); font-size: 1.25rem; }
.galactic-page .toolbar .control-panel { display: none; }
.galactic-page .toolbar .panel-label { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.galactic-page .toolbar .mode-switch__label { display: inline-flex; flex-direction: row; height: auto; gap: .25rem; font: inherit; }
.galactic-page .toolbar .mode-switch__label :is(span) { font: inherit; }
.galactic-page .toolbar .mode-switch[aria-pressed="true"] { background: #fff; color: #000; border-color: transparent; outline: none; }
@media (forced-colors: active) { .galactic-page .toolbar :is(.text-button, .icon-button, .mode-switch), .galactic-page .toolbar .mode-switch[aria-pressed="true"] { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; } }

.galactic-page .explorer-home-link { grid-column: 3; grid-row: 1; justify-self: end; display: block; min-width: 2.75rem; }
.galactic-page .explorer-home-link img { display: block; width: clamp(6rem, 10vw, 9rem); height: auto; }
.galactic-page .brand__text { line-height: 1.2; white-space: normal; }
.galactic-page .brand { gap: .5rem; }
@media (max-width: 70rem) {
  .galactic-page .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .galactic-page .brand { grid-column: 1; grid-row: 1; }
  .galactic-page .explorer-home-link { grid-column: 2; grid-row: 1; }
  .galactic-page .toolbar { grid-column: 1 / -1; grid-row: 2; }
}
@media (forced-colors: active) {
  .galactic-page .toolbar :is(.text-button, .icon-button, .mode-switch), .galactic-page .toolbar .mode-switch[aria-pressed="true"] { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; outline-color: Highlight; }
}

.galactic-page .toolbar .text-button--wide { margin-right: 0; }
.galactic-page .toolbar .mode-switch__track { background: #fff; border-color: #555; width: 2rem; height: 1.125rem; }
.galactic-page .toolbar .mode-switch__thumb { background: #000; width: .5rem; height: .5rem; left: .1875rem; }
.galactic-page .toolbar .mode-switch[aria-pressed="true"] .mode-switch__track { background: #bbb; }
.galactic-page .toolbar .mode-switch[aria-pressed="true"] .mode-switch__thumb { left: 1.0625rem; }
.galactic-page .toolbar :is(button, a):focus:not(:focus-visible) { outline: none; }
.galactic-page .toolbar :is(button, a):focus-visible { outline: 2px solid #000; outline-offset: -4px; }
@media (forced-colors: active) {
  .galactic-page .toolbar :is(button, a):focus-visible { outline-color: Highlight; }
  .galactic-page .toolbar .mode-switch__track { border-color: ButtonText; background: ButtonFace; }
  .galactic-page .toolbar .mode-switch__thumb { background: ButtonText; }
}

.galactic-page #app .toolbar :is(button, a):focus:not(:focus-visible) { outline: none; }
.galactic-page #app .toolbar :is(button, a):focus-visible { outline: 2px solid #000; outline-offset: -4px; }
/* Match the editorial cards and compact monochrome controls. */
.galactic-page .video-overlay { padding: 1rem; background: rgb(0 0 0 / .78); }
.galactic-page .video-dialog { width: min(40rem, 100%); max-width: 100%; max-height: calc(100dvh - 2rem); border: 0; border-radius: .5rem; background: #111; color: #fff; box-shadow: 0 1rem 3rem #0005; }
.galactic-page .video-dialog__header { padding: 1.5rem 4.5rem 1rem 1.5rem; }
.galactic-page .video-dialog__header h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; text-transform: uppercase; }
.galactic-page .video-dialog__body { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 0 1.5rem 1.5rem; }
.galactic-page .video-player { width: 100%; height: auto; max-width: 100%; max-height: 65dvh; aspect-ratio: 9 / 16; border-radius: .35rem; }
.galactic-page .video-playlist { display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.galactic-page .video-playlist__item { width: auto; flex: 1 1 12rem; min-height: 2.75rem; padding: .7rem 1rem; border: 1px solid transparent; border-radius: .35rem; background: #fff; color: #000; font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.galactic-page .video-playlist__item--active { background: #d9d9d9; color: #000; border-color: #777; font-weight: 700; }
.galactic-page .video-dialog__close { top: .75rem; right: .75rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 0; background: transparent; color: #fff; font-family: var(--font-body); font-size: 2rem; }
.galactic-page #app .video-dialog :is(button, a):focus-visible { outline: 2px solid #000; outline-offset: -4px; opacity: 1; }
.galactic-page #app .video-dialog .video-dialog__close:focus-visible { outline-color: #fff; }
@media (max-width: 45rem) {
  .galactic-page .video-dialog__body { grid-template-columns: minmax(0, 1fr); padding-inline: 1rem; gap: 1rem; }
  .galactic-page .video-dialog__header { padding-left: 1rem; }
  .galactic-page .video-player { max-height: 50dvh; }
}
@media (forced-colors: active) {
  .galactic-page .video-dialog { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .galactic-page .video-playlist__item, .galactic-page .video-dialog__close { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .galactic-page #app .toolbar :is(button, a):focus-visible, .galactic-page #app .video-dialog :is(button, a):focus-visible { outline-color: Highlight; }
}
/* An unframed player with a column of equal-height question buttons. */
.galactic-page .video-dialog { width: min(50rem, 100%); background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.galactic-page .video-dialog__header { padding: .5rem 3.5rem 1rem 0; }
.galactic-page .video-dialog__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding: 0; gap: 1.5rem; }
.galactic-page .video-player { grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, calc(65dvh * 9 / 16)); height: auto; max-height: none; aspect-ratio: 9 / 16; border: 0; border-radius: 0; }
.galactic-page .video-playlist { grid-column: 1; grid-row: 1; display: grid; grid-auto-rows: 1fr; align-self: start; gap: .5rem; }
.galactic-page .video-playlist__item { width: 100%; min-height: 2.75rem; padding: .65rem 1rem; }
.galactic-page .video-dialog__close { top: 0; right: 0; background: transparent; border: 0; box-shadow: none; }
@media (max-width: 45rem) {
  .galactic-page .video-dialog__body { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .galactic-page .video-player { grid-column: 1; grid-row: 1; width: min(100%, calc(50dvh * 9 / 16)); }
  .galactic-page .video-playlist { grid-column: 1; grid-row: 2; }
}
@media (forced-colors: active) {
  .galactic-page .video-dialog__header { background: Canvas; color: CanvasText; }
  .galactic-page .video-dialog__close { background: transparent; color: ButtonText; }
}
.galactic-page .feature-panel { border: 0; border-radius: .5rem; background: #111; color: #fff; }
.galactic-page .feature-panel__close { color: #fff; background: transparent; border: 0; }
@media (forced-colors: active) { .galactic-page .feature-panel { background: Canvas; color: CanvasText; } .galactic-page .feature-panel__close { color: ButtonText; } }
.galactic-page #app #astronomer-close:focus-visible { outline: none; text-decoration: underline; text-underline-offset: .15em; }

.galactic-page .toolbar #fullscreen svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
