/* V10 · Accesos a las fichas: el nombre identifica cada astro y la figura
   decorativa ayuda a reconocerlo. No son fotografías de la fecha elegida. */
#body-info .info-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
#body-info .body-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
#body-info .body-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 78px;
  padding: 10px 4px 8px;
  border-radius: 11px;
  border: 1px solid #5c779b66;
  background: linear-gradient(145deg, #213952, #1c2c44);
  color: #dce8f9;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}
#body-info .body-shortcut:hover {
  border-color: #9dbae3;
  background: #2b4160;
}
#body-info .body-shortcut[aria-pressed='true'] {
  border-color: #c2b0f5;
  background: linear-gradient(145deg, #434461, #333d60);
  box-shadow: inset 0 0 0 1px #c2b0f536;
  color: #fff1ce;
}
#body-info .body-shortcut:focus-visible {
  outline: 2px solid #c9dfff;
  outline-offset: 3px;
}
.body-figure {
  display: block;
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  box-shadow:
    inset -6px -3px 8px #09111b99,
    0 2px 7px #040b143d;
}
.body-figure-sun {
  background: radial-gradient(circle at 30% 26%, #fff6c1, #ffd179 52%, #ec9c48);
  box-shadow:
    0 0 13px #ffc26547,
    inset -3px -2px 7px #da803a44;
}
.body-figure-mercury {
  background:
    radial-gradient(circle at 30% 38%, #6e6865 0 10%, transparent 12%),
    radial-gradient(circle at 58% 71%, #8d8071 0 15%, transparent 17%),
    radial-gradient(circle at 30% 22%, #dad0bb, #9f9384 70%);
}
.body-figure-venus {
  background: repeating-linear-gradient(
    165deg,
    #e2bc87 0 4px,
    #f0d1a5 7px,
    #ba8e60 10px
  );
}
.body-figure-earth {
  background:
    radial-gradient(ellipse at 28% 22%, #9fc68c 0 19%, transparent 22%),
    radial-gradient(ellipse at 51% 67%, #83b989 0 21%, transparent 24%),
    radial-gradient(circle at 27% 22%, #83d8ff, #2c8cc1 60%, #21568d);
}
.body-figure-moon {
  background:
    radial-gradient(circle at 31% 30%, #7a899e 0 12%, transparent 15%),
    radial-gradient(circle at 67% 61%, #8d9aac 0 16%, transparent 19%),
    radial-gradient(circle at 67% 23%, #9ca9ba 0 8%, transparent 11%),
    radial-gradient(circle at 30% 20%, #e0e6ee, #afbdcf 66%);
}
.body-figure-mars {
  background:
    radial-gradient(ellipse at 34% 44%, #934731 0 16%, transparent 26%),
    radial-gradient(ellipse at 47% 5%, #e8d5bd 0 10%, transparent 14%),
    radial-gradient(circle at 25% 20%, #efaf7f, #cd744f 60%, #a45536);
}
.body-figure-jupiter {
  background:
    radial-gradient(ellipse at 68% 67%, #b66549 0 10%, transparent 13%),
    repeating-linear-gradient(
      175deg,
      #ddc6a3 0 3px,
      #c09470 4px,
      #e6d8bd 8px,
      #b98b68 11px
    );
}
.body-figure-saturn {
  background: repeating-linear-gradient(
    172deg,
    #dac792 0 4px,
    #bcab7c 5px,
    #eedeb1 9px
  );
}
.body-figure-saturn::after {
  content: '';
  position: absolute;
  left: -8px;
  right: -8px;
  top: 10px;
  height: 11px;
  border: 4px solid #cbb897b0;
  border-top-color: #e8dac19c;
  border-radius: 50%;
  transform: rotate(-26deg);
  box-sizing: border-box;
}
.body-figure-uranus {
  background: radial-gradient(circle at 28% 24%, #bce9e3, #7abec7 64%, #4f98ad);
}
.body-figure-neptune {
  background: radial-gradient(circle at 30% 22%, #a2c6f5, #557acc 56%, #3b58a5);
}
#body-info .body-picker-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#body-info .body-picker-actions .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}
#body-info .planet-info-picker {
  min-width: 0;
}
#body-info .planet-info-picker select {
  min-height: 34px;
  max-width: 145px;
  padding: 6px 8px;
}
@media (max-width: 480px) {
  #body-info .body-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  #body-info .body-shortcut {
    min-height: 74px;
  }
}

/* Al abrir el catálogo se aprovecha la fila: caben los diez accesos y la
   información no deja una columna vacía junto a una ficha larga. */
@media (min-width: 761px) {
  .discovery-grid > #bodies-panel[open],
  .discovery-grid:has(#bodies-panel[open]) > .sky-controls {
    grid-column: 1 / -1;
  }
  #body-info .info-content {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}
@media (min-width: 1000px) {
  #body-info .body-shortcuts {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}
