/* Terra 3D da hero — não modifica os cards, pop-ups ou páginas de notícias. */
.hero-planet {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 510px;
  isolation: isolate;
}
.planet-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100%, 450px);
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 124, 238, .22), transparent 66%);
  filter: blur(14px);
}
.earth-3d-wrap {
  position: relative;
  width: min(100%, 500px);
  min-width: 0;
  aspect-ratio: 1;
  border: 0;
  background: none;
  box-shadow: none;
}
#earth-3d {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  isolation: isolate;
}
#earth-3d:active { cursor: grabbing; }
#earth-3d canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .45s ease;
}
#earth-3d[data-earth-state="ready"] canvas { opacity: 1; }
#earth-3d canvas:focus-visible { outline: 2px solid #ffd500; outline-offset: 4px; border-radius: 50%; }
.earth-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
#earth-3d[data-earth-state="ready"] .earth-fallback { opacity: 0; }
#earth-3d[data-earth-state="fallback"] canvas { display: none; }
#earth-3d[data-earth-state="fallback"] .earth-destination-labels { display: none; }
.earth-destination-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.earth-destination-labels[hidden], .earth-destination-label[hidden] { display: none; }
.earth-destination-label {
  position: absolute;
  display: block;
  max-width: calc(100% - 12px);
  padding: 4px 7px;
  color: #102d63;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(239,65,82,.24);
  border-radius: 5px;
  box-shadow: 0 3px 12px rgba(2,15,48,.2);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.earth-destination-label::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #ef4152;
  vertical-align: 1px;
}
.earth-3d-hint {
  display: block;
  margin: -4px 0 0;
  padding: 0;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .5px;
  text-align: center;
  pointer-events: none;
}
.earth-geodata-credit { display: block; margin-top: 5px; color: rgba(255,255,255,.55); text-align: center; font-size: 8px; line-height: 1.4; }
.earth-geodata-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.earth-geodata-credit a:hover { color: #fff; }
@media (max-width: 980px) and (min-width: 781px) {
  .hero-panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
@media (max-width: 780px) {
  .hero-planet { min-height: 365px; margin-top: 24px; }
  .earth-3d-wrap { width: min(100%, 350px); }
}
@media (max-width: 470px) {
  .hero-planet { min-height: 325px; margin-top: 22px; }
  .earth-3d-wrap { width: min(100%, 315px); }
  .earth-3d-hint { font-size: 9px; }
  .earth-destination-label { padding: 3px 5px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { #earth-3d canvas { transition: none; } }
