:root {
  --bg-main: #fafafa;
  --bg-card: #ffffff;
  --text-main: #222;
  --text-muted: #666;
  --accent: #2c6bed;      /* links / highlights */
  --border-light: #e0e0e0;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

header {
  background-color: #fff;
  color: #671372;
  padding: 25px 0;
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1100px;   /* same as .catalog-intro */
  margin: 0 auto;     /* center horizontally */
  padding: 0 40px;    /* side breathing room */

  display: flex;
  align-items: center;
  gap: 30px;
}

#site-logo {
  height: 120px;
  width: auto;
}

.header-text {
  display: flex;
  flex-direction: column;
}

header h1 {
  margin: 0;
  font-size: 2.2em;
}

header h2 {
  margin: 4px 0 0;
  font-size: 1.4em;
  font-weight: 500;
}

.catalog-figure {
  max-width: 1100px;      /* same as .catalog-intro */
  margin: 30px auto 40px; /* center on page */
  text-align: center;
  padding-top: 10px;
}

.catalog-figure img {
  width: 85%;
  max-width: 900px;      /* prevent over-stretching on large screens */
  height: auto;
  border-radius: 6px;
}

.catalog-figure figcaption {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

footer {
    text-align: center;
    padding: 15px 0;
    background-color: #671372;
    color: #fff;
}

.table-card {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 16px;
  overflow-x: auto;
  margin: 0 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th.sortable {
  user-select: none;
}

.sort-symbol {
  font-size: 0.75em;
  opacity: 0.25;
  margin-left: 4px;
}

.sort-symbol.active {
  opacity: 0.9;
}

thead th {
  position: sticky;
  top: 0;
  background: #f5f7fa;
  border-bottom: 2px solid var(--border-light);
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

tbody td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

tbody tr:hover {
  background: #f4f8ff;
}

tbody tr.is-target-row {
  background: #dce9ff;
  box-shadow: inset 0 0 0 2px rgba(44, 107, 237, 0.22);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

td.ref-cell a {
  font-family: monospace;
  font-size: 0.9em;
}

.catalog-intro {
  max-width: 1100px;
  margin: 40px auto 20px;
}

.catalog-intro h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.catalog-intro p {
  color: var(--text-muted);
  max-width: 900px;
}

.figure-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.toggle-btn {
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.toggle-btn:hover {
  /* background: #eef2ff; */
  background: #cccccc;
}

.figure-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.sky-panel {
  width: 85%;
  max-width: 960px;
  margin: 0 auto;
}

.sky-map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.sky-map-hint {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sky-map-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sky-map-zoom-readout {
  min-width: 46px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(44, 107, 237, 0.08);
  color: #214fba;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.sky-reset-btn {
  border: 1px solid rgba(44, 107, 237, 0.22);
  background: #fff;
  color: #24427d;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sky-reset-btn:hover {
  background: rgba(44, 107, 237, 0.1);
  border-color: rgba(44, 107, 237, 0.36);
}

.sky-map-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(78, 102, 140, 0.16);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.96) 48%, rgba(228, 236, 251, 0.94) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(44, 107, 237, 0.05));
  box-shadow: 0 12px 32px rgba(28, 46, 79, 0.14);
}

.sky-map {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
  touch-action: none;
}

.sky-map.is-dragging {
  cursor: grabbing;
}

.sky-tooltip {
  position: absolute;
  z-index: 3;
  max-width: min(280px, calc(100% - 24px));
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 28, 37, 0.92);
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.sky-tooltip.below {
  transform: translate(-50%, 12px);
}

.sky-map-boundary-fill {
  fill: rgba(255, 255, 255, 0.48);
}

.sky-map-boundary {
  fill: none;
  stroke: rgba(83, 98, 125, 0.8);
  stroke-width: 1.5;
}

.sky-map-graticule {
  fill: none;
  stroke: rgba(101, 124, 160, 0.35);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.sky-map-baseline {
  fill: none;
  stroke: rgba(34, 47, 73, 0.82);
  stroke-width: 1.4;
}

.sky-map-title {
  fill: #192230;
  font-size: 1.05rem;
  font-weight: 700;
}

.sky-map-subtitle {
  fill: #5e6d83;
  font-size: 0.78rem;
}

.sky-map-axis-label {
  fill: #4e5f77;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sky-map-tick-label {
  fill: #5b6b82;
  font-size: 0.76rem;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

.sky-map-grid-label {
  fill: #4f5f77;
  font-size: 0.74rem;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

.sky-map-legend-label {
  fill: #56667e;
  font-size: 0.78rem;
}

.sky-map-source {
  outline: none;
  pointer-events: auto;
  cursor: pointer;
}

.sky-map-source-visible {
  fill: crimson;
  stroke: #111;
  stroke-width: 1.1;
  transition: transform 0.15s ease, stroke 0.15s ease, fill 0.15s ease;
  pointer-events: none;
}

.sky-map-source.is-binary .sky-map-source-visible {
  fill: teal;
}

.sky-map-source.is-active .sky-map-source-visible,
.sky-map-source:focus .sky-map-source-visible {
  stroke: #2c6bed;
  stroke-width: 2;
}

.sky-map-source-hit {
  fill: rgba(0, 0, 0, 0.001);
  pointer-events: all;
  cursor: pointer;
}

.hidden {
  display: none;
}

.updates {
  max-width: 1100px;
  margin: 24px auto 12px;   /* reduced vertical spacing */
  padding-left: 16px;
  border-left: 3px solid var(--border-light);
}

/* Reduce heading spacing */
.updates h3 {
  margin: 0 0 6px 0;
}

/* Reduce link spacing */
.updates p {
  margin: 0 0 8px 0;
}

/* Reset UL default indentation */
.updates ul {
  margin: 0;
  padding-left: 12px;
  list-style-position: inside;
}

/* Compact list items */
.updates li {
  margin-bottom: 4px;
  line-height: 1.0; 
}

td {
  font-variant-numeric: tabular-nums;
}

td, th {
  white-space: nowrap;
}

caption {
  caption-side: bottom;
  padding-top: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: left;
  padding-left: 4px;
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  #site-logo {
    height: 90px;
  }

  .header-text {
    align-items: center;
  }

  .table-card::after {
    content: "← scroll →";
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
  }

  .updates {
    font-size: 0.85rem;
  }

  .updates h3 {
    font-size: 1rem;
  }

  .updates li {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .updates p {
    font-size: 0.8rem;
  }

  body {
    font-size: 15px;
  }

  header h1 {
    font-size: 1.6em;
  }

  header h2 {
    font-size: 1.1em;
  }

  .catalog-intro h2 {
    font-size: 1.4rem;
  }

  .catalog-intro p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .sky-panel {
    width: 100%;
  }

  .sky-map-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sky-map-controls {
    justify-content: space-between;
  }

  .sky-map-hint {
    letter-spacing: 0.04em;
  }

  .sky-tooltip {
    font-size: 0.75rem;
    max-width: calc(100% - 16px);
  }

  table {
    font-size: 0.85rem;
  }

  .toggle-btn:hover {
  /* background: #eef2ff; */
  background: var(--accent);
}
  
}
