/* A text overlay: the sky remains visible behind the selected object's details. */
.object-info {
  position: absolute;
  right: 28px;
  bottom: 52px;
  z-index: 8;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  max-width: calc(100% - 40px);
  pointer-events: none;
}
.info-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #c3d4e13d;
  border-radius: 50%;
  background: #0b1520a6;
  color: #e1e8ee;
  font-size: 12px;
  pointer-events: auto;
}
.info-toggle:hover { background: #1a2b3bc9; }
.panel-toggle .panel-symbol { display: block; width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-toggle[aria-expanded="true"] { color: var(--gold); border-color: #dfc49b80; background: #20232bc9; }
#inspector {
  position: static;
  width: 292px;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 220px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #9aafbd55 transparent;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  color: #e7edf2;
  text-shadow: 0 1px 4px #000, 0 0 12px #000c;
  pointer-events: auto;
}
#inspector[hidden] { display: none !important; }
#inspector .inspector-top { position: static; margin: 0 0 4px; gap: 12px; }
#inspector .eyebrow { font-size: 9px; letter-spacing: 1.5px; color: #bac9d4; }
#inspector #favorite { width: 44px; height: 44px; font-size: 22px; flex-shrink: 0; }
#inspector h2 { margin: 0 0 5px; font-size: 25px; line-height: 1.3; }
#inspector .object-english { font-size: 11px; color: #b4c3cf; }
#inspector .object-type { flex-wrap: wrap; gap: 6px 10px; margin: 13px 0; font-size: 11px; }
#inspector #type-dot, #inspector .mobile-metric { display: none; }
#inspector .model-badge {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 10px;
  color: #b3c4d0;
}
#inspector .object-summary {
  display: block;
  min-height: 0;
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.8;
  color: #c3d0db;
}
#inspector .stats { display: grid; gap: 14px 18px; margin: 0 0 12px; padding: 0; border: 0; }
#inspector .stats dt { font-size: 10px; color: #b4c4d0; margin-bottom: 5px; }
#inspector .stats dd { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
#inspector .stats dd small { font-size: 10px; color: #b4c4d0; }
#inspector .stats div:nth-child(n+3) dd { font-size: 12px; }
#inspector .primary-button, #inspector .observation-open, #inspector .object-source {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  height: auto;
  min-height: 44px;
  padding: 6px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #f0d7af;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  text-shadow: inherit;
}
#inspector .primary-button:hover, #inspector .observation-open:hover, #inspector .object-source:hover { color: #fff1d8; text-decoration: underline; text-underline-offset: 4px; }
#inspector [hidden] { display: none !important; }
#inspector .data-note { display: block; margin: 4px 0 0; text-align: left; font-size: 9px; line-height: 1.7; color: #adbecd; }
.exploring .object-info, .solar-surface-active .object-info, .solar-event-view .object-info { display: none; }

@media (max-width: 760px) {
  .observatory { min-height: 0; }
  .object-info { right: 16px; bottom: 136px; max-width: calc(100% - 32px); gap: 8px; }
  #inspector { width: min(292px, calc(100vw - 92px)); max-height: min(60dvh, max(120px, calc(100dvh - 330px))); padding: 0 4px; }
  #inspector h2 { font-size: 22px; }
  #inspector .object-summary { font-size: 11px; margin-bottom: 13px; }
  #inspector .stats { gap: 12px 16px; }
  .observatory .view-controls { bottom: 145px; max-width: calc(100% - 150px); flex-wrap: wrap; }
  /* Give the text room on touch screens; these controls return when it closes. */
  body:not(.solar-event-view,.solar-surface-active,.exploring) .observatory:has(#inspector:not([hidden])) .scene-heading,
  body:not(.solar-event-view,.solar-surface-active,.exploring) .observatory:has(#inspector:not([hidden])) .sky-settings,
  body:not(.solar-event-view,.solar-surface-active,.exploring) .observatory:has(#inspector:not([hidden])) #enter-explore { display: none !important; }
  #toast { bottom: 196px; }
}

@media (min-width: 1550px) {
  .object-info { right: 40px; bottom: 66px; }
  #inspector { width: 310px; }
}
