/* /satellites (ADR 0076, 0077): the globe with its own sky (pale here, night in satellites-dark.css), readout on top, then time, the explorer, the numbers and the sources. */
.sat-page { max-width: 1000px; margin: 0 auto; }
.sat-intro h1 { margin-bottom: 6px; }
.sat-lede { margin: 0 0 14px; color: var(--muted); max-width: 760px; }
.sat-nojs { color: var(--muted); }
.js .sat-nojs { display: none; }

.sat-page {
  /* The dataviz palette (validated against --sat-space): eight fixed slots, Other, five age steps, the four orbits. */
  --sat-c1: #257de0; --sat-c2: #f47230; --sat-c3: #00b894; --sat-c4: #f2a600;
  --sat-c5: #ee7fac; --sat-c6: #008a17; --sat-c7: #6a4ce2; --sat-c8: #ec4647; --sat-other: #8a93a8;
  --sat-age0: #6aa8ee; --sat-age1: #3b8ae4; --sat-age2: #1f6fd1; --sat-age3: #1857a6; --sat-age4: #10397a;
  --sat-leo: var(--sat-c1); --sat-meo: var(--sat-c3); --sat-geo: var(--sat-c2); --sat-heo: var(--sat-c7); --sat-starlink: #5b6478;
}
.sat-globe {
  /* Colors the island reads for the scene: --sat-dark 1 draws a night sky. */
  --sat-space: #e8ecf4; --sat-dark: 0; --sat-ink: #0b1130; --sat-muted: #4c5677;
  --sat-panel: rgba(255, 255, 255, 0.86); --sat-line: rgba(11, 17, 48, 0.14); --sat-halo: rgba(232, 236, 244, 0.95);
  position: relative; height: clamp(440px, 72vh, 820px); margin: 0 0 12px; border-radius: 14px; overflow: hidden;
  background: var(--sat-space); color: var(--sat-ink);
}
.sat-globe[hidden] { display: none; }
.sat-globe:focus-visible { outline: 2px solid var(--accent-moon); outline-offset: 2px; }
.sat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.sat-canvas.sat-pointing { cursor: pointer; }
.sat-canvas:active { cursor: grabbing; }
.sat-readout { position: absolute; left: 12px; top: 10px; pointer-events: none; text-shadow: 0 0 3px var(--sat-halo), 0 0 6px var(--sat-halo); }
.sat-clock { margin: 0; }
.sat-clock output { font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sat-clock small { display: block; color: var(--sat-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.sat-trust { margin: 4px 0 0; max-width: 340px; font-size: 0.8rem; color: var(--sat-muted); }
.sat-trust.sat-rough { color: #b45309; font-weight: 600; }
.sat-status { position: absolute; left: 12px; bottom: 10px; margin: 0; font-size: 0.8rem; color: var(--sat-muted); pointer-events: none; }
.sat-hint {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: min(460px, calc(100% - 240px)); margin: 0;
  text-align: center; color: var(--sat-muted); font-size: 0.8rem; pointer-events: none; transition: opacity 0.8s;
}
.sat-hint.sat-gone { opacity: 0; }
.sat-tip {
  position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap;
  background: var(--sat-panel); border: 1px solid var(--sat-line); font-size: 0.82rem; color: var(--sat-ink);
}
.sat-tip[hidden], .sat-card[hidden] { display: none; }
.sat-card {
  position: absolute; right: 12px; top: 12px; width: min(290px, calc(100% - 24px)); padding: 12px 14px;
  background: var(--sat-panel); border: 1px solid var(--sat-line); border-radius: 12px; backdrop-filter: blur(8px);
}
.sat-card h3 { margin: 0 28px 0 0; font-size: 1.25rem; font-weight: 500; line-height: 1.15; }
.sat-card .sat-kind { margin: 2px 0 8px; color: var(--sat-muted); font-size: 0.84rem; }
.sat-card dl { margin: 0; }
.sat-card dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 4px 0; border-top: 1px solid var(--sat-line); }
.sat-card dt { color: var(--sat-muted); font-size: 0.8rem; }
.sat-card dd { margin: 0; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.sat-card .sat-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--sat-muted); cursor: pointer; padding: 4px; }
.sat-nogl { display: none; position: absolute; inset: 40% 10% auto; text-align: center; color: var(--sat-muted); }
.sat-globe.sat-no-webgl .sat-nogl { display: block; }
.sat-globe.sat-no-webgl :is(.sat-readout, .sat-hint, .sat-status) { display: none; }

.sat-time { margin: 0 0 16px; }
.sat-time[hidden] { display: none; }
.sat-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.sat-btn {
  font: inherit; font-size: 0.86rem; padding: 4px 12px; min-height: 32px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.sat-btn:hover { border-color: var(--muted); }
.sat-btn:focus-visible { outline: 2px solid var(--accent-moon); outline-offset: 1px; }
.sat-btn-strong, .sat-btn-strong[aria-pressed="true"] { background: var(--accent-moon); border-color: var(--accent-moon); color: #fff; font-weight: 600; }
.sat-rate { color: var(--muted); font-size: 0.86rem; }
.sat-scrub-label { display: flex; justify-content: space-between; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.sat-scrub-label output { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sat-scrub { display: block; width: 100%; min-height: 32px; margin: 2px 0; accent-color: var(--accent-moon); }
.sat-scale { position: relative; height: 1.3em; font-size: 0.78rem; color: var(--muted); }
.sat-scale span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.sat-scale .sat-at0 { left: 0; transform: none; }
.sat-scale .sat-at1 { left: calc(8px + (100% - 16px) * 0.25); }
.sat-scale .sat-at2 { left: calc(8px + (100% - 16px) * 0.375); }
.sat-scale .sat-at3 { left: 50%; color: var(--text); font-weight: 600; }
.sat-scale .sat-at4 { left: calc(8px + (100% - 16px) * 0.625); }
.sat-scale .sat-at5 { left: calc(8px + (100% - 16px) * 0.75); }
.sat-scale .sat-at6 { right: 0; left: auto; transform: none; }
@media (max-width: 640px) { .sat-scale :is(.sat-at2, .sat-at4) { display: none; } }
.sat-note { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); }

.sat-legend { margin: 0 0 24px; }
.sat-keys { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
@media (max-width: 640px) { .sat-keys { grid-template-columns: minmax(0, 1fr); } }
.sat-key small, .sat-toggle small { display: block; color: var(--muted); font-size: 0.82rem; margin-left: 20px; }
.sat-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.sat-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; vertical-align: -1px; }
.sat-swatch.sat-leo { background: var(--sat-leo); }
.sat-swatch.sat-meo { background: var(--sat-meo); }
.sat-swatch.sat-geo { background: var(--sat-geo); }
.sat-swatch.sat-heo { background: var(--sat-heo); }
.sat-swatch.sat-starlink { background: var(--sat-starlink); }
.sat-toggle { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sat-toggle[hidden] { display: none; }
.sat-toggle input { margin-right: 6px; }
.sat-toggle small { margin-left: 24px; }

/* The readout's horizon line, the place pin and the ring around the chosen satellite (positioned by the island). */
.sat-horizon { margin: 6px 0 0; max-width: 340px; font-size: 0.82rem; }
.sat-horizon:empty { display: none; }
.sat-pin, .sat-ring { position: absolute; left: 0; top: 0; pointer-events: none; }
.sat-pin[hidden], .sat-ring[hidden], .sat-fill[hidden] { display: none; }
.sat-pin { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent-sun); border: 2px solid var(--sat-space); box-shadow: 0 0 0 1px var(--accent-sun); }
.sat-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid var(--sat-ink); box-shadow: 0 0 0 2px var(--sat-halo); }
.sat-fill {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); margin: 0; padding: 4px 14px; border-radius: 999px;
  background: var(--sat-panel); border: 1px solid var(--sat-line); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none;
}
.sat-card-actions { margin: 10px 0 0; }
.sat-globe.sat-riding .sat-hint { display: none; }

/* The explorer: search, Starlink, color by and its legend, actions, filters. */
.sat-explore { margin: 0 0 28px; }
.sat-explore[hidden], .sat-legend[hidden] { display: none; }
.sat-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; margin: 0 0 12px; }
.sat-label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0 0 4px; }
.sat-search { position: relative; flex: 1 1 320px; }
.sat-search input, .sat-colors select, .sat-year input {
  font: inherit; font-size: 0.92rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-height: 36px;
}
.sat-search input { width: 100%; }
.sat-search input:focus-visible, .sat-colors select:focus-visible, .sat-year input:focus-visible { outline: 2px solid var(--accent-moon); outline-offset: 1px; }
.sat-results {
  position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.14);
}
.sat-results[hidden] { display: none; }
.sat-results li { padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.sat-results li small { color: var(--muted); margin-left: 6px; }
.sat-results li:hover, .sat-results li.sat-on { background: var(--accent-moon-soft); }
.sat-explore .sat-toggle { flex: 0 1 300px; }
.sat-colors { align-items: center; }
.sat-colors .sat-label { margin: 0; }
.sat-bars { flex: 1 1 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 20px; }
.sat-bars li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 0.86rem; }
.sat-lg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sat-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.sat-lg-bar { height: 8px; }
.sat-lg-bar i { display: block; height: 8px; min-width: 2px; border-radius: 0 4px 4px 0; }
.sat-lg-n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.sat-actions { align-items: center; }
.sat-matched { flex: 1 1 auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.sat-btn[disabled] { opacity: 0.5; cursor: default; }
.sat-btn[aria-pressed="true"]:not(.sat-btn-strong), .sat-btn[aria-expanded="true"] { background: var(--accent-moon-soft); border-color: var(--accent-moon); }
.sat-filters { border-top: 1px solid var(--line); padding-top: 8px; }
.sat-filters > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.sat-filters > .sat-note { margin: 0 0 8px; }
.sat-facet { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.sat-facet legend { padding: 0; margin: 0 0 4px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.sat-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sat-chip { position: relative; display: inline-flex; }
.sat-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sat-chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; min-height: 30px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 0.84rem; color: var(--text);
}
.sat-chip span small { color: var(--muted); font-variant-numeric: tabular-nums; }
.sat-chip input:checked + span { background: var(--accent-moon-soft); border-color: var(--accent-moon); font-weight: 600; }
.sat-chip input:focus-visible + span { outline: 2px solid var(--accent-moon); outline-offset: 2px; }
.sat-chip.sat-zero span { opacity: 0.5; }
.sat-more { font: inherit; font-size: 0.84rem; padding: 3px 8px; min-height: 30px; border-radius: 999px; border: 1px dashed var(--line); background: var(--surface); color: var(--text); }
.sat-year { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--muted); }
.sat-year input { width: 6.5em; min-height: 30px; padding: 3px 8px; }

/* The list view and the numbers' tables. */
.sat-list { margin: 0 0 16px; }
.sat-list[hidden] { display: none; }
.sat-table-wrap { overflow-x: auto; }
.sat-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sat-table caption { text-align: left; font-weight: 600; padding: 0 0 6px; }
.sat-table th, .sat-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.sat-table thead th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.sat-table tbody th { font-weight: 400; }
.sat-table small { color: var(--muted); margin-left: 4px; }
.sat-table .sat-num { text-align: right; font-variant-numeric: tabular-nums; }
.sat-sort, .sat-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.sat-link { color: var(--accent-moon); }
.sat-link:hover, .sat-sort:hover { text-decoration: underline; }
.sat-list .sat-btn { margin-top: 8px; }

.sat-numbers, .sat-explain { margin: 0 0 28px; }
.sat-numbers h2, .sat-explain h2 { margin: 0 0 6px; }
.sat-asof { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
.sat-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 24px; }
.sat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; }
.sat-explain h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.05rem; }
.sat-explain p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.sat-refs { margin: 0 0 24px; }

/* (i) buttons and their popovers, as on the transit pages. */
.ix-info {
  flex: none; width: 20px; height: 20px; display: inline-grid; place-items: center; vertical-align: middle;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted);
  font: italic 600 0.78rem/1 Georgia, "Times New Roman", serif; letter-spacing: 0; text-transform: none; cursor: pointer; padding: 0;
}
.ix-info:hover, .ix-info[aria-expanded="true"] { color: var(--text); border-color: var(--accent-moon); }
.ix-info:focus-visible { outline: 2px solid var(--accent-moon); outline-offset: 2px; }
.ix-pop {
  width: min(330px, calc(100vw - 24px)); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: 0 12px 40px rgb(0 0 0 / 0.18);
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.45; text-align: left;
}
.ix-pop.is-anchored { position: fixed; inset: auto; margin: 0; }
.ix-pop::backdrop { background: transparent; }
.ix-pop p { margin: 0; }
.ix-pop-h { color: var(--accent-moon); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ix-pop-note { margin-top: 6px !important; color: var(--muted); }
.ix-pop ol { margin: 8px 0 0; padding-left: 1.6em; }
.ix-pop li + li { margin-top: 6px; }
.ix-pop li a { color: var(--text); font-weight: 600; }
.ix-pop li span { display: block; color: var(--muted); }
.ix-all { display: inline-block; margin-top: 10px; color: var(--accent-moon); }

/* The source list (here and on /sources/satellites). */
.sat-method { max-width: 72ch; color: var(--muted); }
.sat-ref-list { margin: 12px 0 0; padding-left: 1.8em; font-size: 0.9rem; }
.sat-ref-list li + li { margin-top: 8px; }
.sat-ref-list li::marker { color: var(--muted); }
.sat-ref-list a { color: var(--text); font-weight: 600; }
.sat-ref-list span { display: block; color: var(--muted); }

@media (max-width: 640px) {
  .sat-globe { height: clamp(420px, 74vh, 620px); }
  .sat-card { top: auto; bottom: 10px; left: 10px; right: 10px; width: auto; padding: 8px 10px; }
  .sat-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .sat-card dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sat-hint { display: none; }
}
