/* SOLAR density/readability tuning layered over solar.css. */

.solar-module-head {
  min-height: 36px;
  margin-bottom: 4px;
  padding: 4px 10px 6px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--special, #5e02ff) 8%, var(--foreground, #0f0f0f)),
      color-mix(in srgb, var(--foreground, #0f0f0f) 96%, transparent));
  border-top: 1px solid rgba(255,255,255,.035);
  border-bottom: 1px solid color-mix(in srgb, var(--special, #5e02ff) 18%, rgba(255,255,255,.06));
}

.solar-module-head .solar-kicker,
.solar-record-count,
.solar-result-count {
  color: color-mix(in srgb, var(--standard, #404040) 50%, #ffffff 50%);
}

.solar-title-block h1 {
  color: color-mix(in srgb, var(--special, #5e02ff) 76%, #ffffff 24%);
}

.solar-home {
  border-color: color-mix(in srgb, var(--special, #5e02ff) 25%, rgba(255,255,255,.08));
  background: color-mix(in srgb, var(--foreground, #0f0f0f) 94%, var(--special, #5e02ff) 6%);
}

/* Reference plates: deliberately thumbnail-sized; tap still opens fullscreen. */
.solar-atlas-strip {
  grid-auto-columns: minmax(82px, 22vw);
  gap: 5px;
  padding: 0 10px 5px;
}

.solar-atlas-card {
  height: 58px;
  border-radius: 4px;
}

.solar-atlas-card::after {
  inset: 24% 0 0;
}

.solar-atlas-card > span {
  left: 5px;
  right: 5px;
  bottom: 4px;
}

.solar-atlas-card strong {
  font-size: 7px;
  line-height: 1.05;
  letter-spacing: .02em;
}

.solar-atlas-card small {
  display: none;
}

/* Slightly clearer controls without turning the module into a flashlight. */
.solar-filter-chip {
  color: color-mix(in srgb, var(--solar-chip-color, var(--special, #5e02ff)) 48%, #ffffff 52%);
}

.solar-search,
.solar-search::placeholder {
  color: color-mix(in srgb, var(--standard, #404040) 46%, #ffffff 54%);
}

.solar-search::placeholder {
  opacity: .72;
}

.solar-major-chip {
  --solar-chip-color: #76649a;
}

/* Remove the artificial sticky offset so the table header starts directly below controls. */
.solar-table th {
  top: 0;
  height: 58px;
}

/* 80%ish data-row density: 22px -> 18px, planet rows 25px -> 20px. */
.solar-table th,
.solar-table td {
  height: 18px;
  padding-top: 1px;
  padding-bottom: 1px;
}

.solar-table tr.is-planet td {
  height: 20px;
}

/* Raise data text just enough to survive the darker planetary fills. */
.solar-table tbody td {
  color: color-mix(in srgb, var(--standard, #404040) 44%, #ffffff 56%);
}

.solar-object-name {
  color: color-mix(in srgb, var(--solar-system-color, #777) 46%, #ffffff 54%);
}

.solar-object-code {
  color: rgba(255,255,255,.46);
}

.solar-table tr.is-planet td {
  color: rgba(255,255,255,.92);
}

.solar-table tbody tr[hidden] {
  display: none;
}

@media (min-width: 700px) {
  .solar-atlas-strip {
    grid-auto-columns: 120px;
  }

  .solar-atlas-card {
    height: 58px;
  }
}
