/* NO GROUND — Sky Map extras (from Sky+ v5.2, Nov 2026): ISS + satellites, Tonight's best 3, Moon, sky calendar, launches, aurora, share sheet.
   Loaded after sky.css on sky.html only. Class names are prefixed (sp-) where the site already uses the plain name. */

/* ---- on the map */
.sky-btn-iss { font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: var(--accent) !important; }
.iss-strip { position: absolute; z-index: 3; left: 10px; right: 64px; bottom: 92px; max-width: 520px; display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 12px;
  background: rgba(10, 16, 34, .78); border: 1px solid rgba(255, 154, 46, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 .74rem/1.3 var(--body); color: var(--fg); cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; }
.iss-strip #iss-strip-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.iss-ico { flex: none; background: var(--accent); color: #1a1000; font-weight: 800; font-size: .62rem; border-radius: 6px; padding: 3px 5px; }
.sky-stage:has(.sky-card:not([hidden])) .iss-strip, .is-pointing .iss-strip { display: none; }
.sky-realsky-credit { bottom: 128px; }
@media (min-width: 760px) { .iss-strip { left: 20px; bottom: 100px; } .sky-realsky-credit { bottom: 138px; } }

/* ---- jump links under Tonight */
.sp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.sp-jump button { border: 1px solid var(--line-2); background: var(--glass-2); color: var(--fg); border-radius: 999px; padding: 8px 14px; font: 700 .8rem/1.2 var(--body); cursor: pointer; }
.sp-jump button:hover, .sp-jump button:focus-visible { border-color: var(--accent); color: var(--accent-2); }

/* ---- sections */
.sp-wrap { margin-top: 8px; }
.sp-sec { padding-top: clamp(26px, 4vw, 44px); scroll-margin-top: calc(var(--header-h) + 10px); }
.sp-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .sp-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.hero-t { margin: 0 2px 14px; }
.kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.hero-t h2 { margin: 4px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); color: #fff; line-height: 1.15; }
.hero-t p { margin: 0; font-size: .9rem; }
.muted { color: var(--muted); }
.sp-card { background: linear-gradient(180deg, rgba(13, 23, 50, .85), rgba(10, 16, 34, .85)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 0 10px; }
.sp-card > .card-head:first-child, .sp-card > div:first-child > .card-head:first-child { margin-top: 0; }
.card-head h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.02rem; color: #fff; }
.src { font-size: .66rem; color: var(--dim); text-align: right; }
.fine { font-size: .72rem; color: var(--dim); margin: 8px 0 0; line-height: 1.45; }
.sp-credit { font-size: .7rem; color: var(--dim); line-height: 1.5; margin: 6px 2px 0; }
.sp-credit a { color: var(--muted); }
.sp-btn { display: block; width: 100%; margin-top: 10px; border: 0; border-radius: 12px; padding: 12px; background: var(--accent); color: #1a1000; font: 800 .9rem/1.2 var(--body); cursor: pointer; }
.sp-btn.ghost { background: transparent; color: var(--accent); border: 1px solid rgba(255, 154, 46, .5); }
.sp-btn:disabled { opacity: .55; }

/* ISS */
.fb-photo { position: relative; width: 100%; margin-bottom: 10px; }
.fb-photo canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: 12px; background: #000; }
.fb-over { padding: 10px 2px 2px; }
@media (min-width: 640px) { .fb-photo canvas { border-radius: 12px; } }
.fb-over h3 { margin: 6px 0 2px; font-family: var(--display); font-size: 1.05rem; color: #fff; }
.fb-over p { margin: 0; font-size: .72rem; color: var(--text); }
.sp-tagpill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .18); font-size: .58rem; font-weight: 800; letter-spacing: .1em; color: #fff; }
.sp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
.stats div { background: var(--glass-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; min-width: 0; }
.stats div:first-child { grid-column: 1 / -1; }
.stats b { display: block; color: #fff; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats div:first-child b { white-space: normal; font-size: .92rem; }
.stats span { font-size: .62rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.world { width: 100%; height: auto; border-radius: 10px; display: block; background: #02040a; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .72rem; color: var(--muted); margin-bottom: 6px; }
.legend i, .dot-c { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.passes { list-style: none; margin: 0; padding: 0; }
.passes li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .84rem; display: flex; justify-content: space-between; gap: 8px; }
.passes li:last-child { border-bottom: 0; }
.passes b { color: #fff; }
.passes small { color: var(--muted); display: block; }
.passes .when { flex: none; text-align: right; font-size: .8rem; color: #fff; font-weight: 700; }
.passes .when small { font-weight: 500; }
.tag { flex: none; align-self: center; font-size: .66rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; }
.tag.go { background: rgba(87, 211, 154, .15); color: var(--ok); }
.tag.na { background: var(--glass-2); color: var(--dim); }

/* Tonight's best 3 */
.best3 { display: grid; gap: 10px; }
@media (min-width: 900px) { .best3 { grid-template-columns: repeat(3, 1fr); } }
.b3 { position: relative; display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(13, 23, 50, .9), rgba(10, 16, 34, .9)); }
.b3 .inner { display: flex; gap: 12px; }
.b3 .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--accent); color: #1a1000; }
.b3 h3 { margin: 0 0 4px; font-size: .98rem; color: #fff; }
.b3 p { margin: 0 0 8px; font-size: .84rem; line-height: 1.45; color: var(--text); }
.sp-show { border: 1px solid rgba(255, 154, 46, .5); background: transparent; color: var(--accent); border-radius: 999px; padding: 6px 12px; font: 700 .76rem/1.2 var(--body); cursor: pointer; }

/* Moon */
.moon-hero { display: flex; gap: 16px; align-items: center; }
.moon-svg { flex: none; filter: drop-shadow(0 0 18px rgba(255, 250, 220, .18)); }
.moon-facts, .moon-grid { display: grid; gap: 8px; flex: 1; }
.moon-grid { grid-template-columns: 1fr 1fr; }
.moon-facts div, .moon-grid div { display: flex; flex-direction: column; font-size: .72rem; color: var(--muted); }
.moon-facts b, .moon-grid b { color: #fff; font-size: .92rem; }
.supermoon { font-style: normal; font-size: .62rem; background: rgba(242, 186, 85, .18); color: var(--gold); padding: 2px 6px; border-radius: 999px; margin-left: 4px; }
#moon-root { display: grid; gap: 0 12px; }
@media (min-width: 900px) { #moon-root { grid-template-columns: 1fr 1fr; } #moon-root .hero-t { grid-column: 1 / -1; } }

/* calendar + launches */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--glass-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; max-width: 460px; }
.seg button { border: 0; background: none; padding: 8px 4px; border-radius: 9px; font: 700 .8rem/1.2 var(--body); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: #1a1000; }
.cal { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .cal { grid-template-columns: 1fr 1fr; } }
.cal li { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(13, 23, 50, .85), rgba(10, 16, 34, .85)); }
.cal li.muted { display: block; }
.cal li.later { opacity: .85; border-style: dashed; }
.cal-date { flex: none; width: 46px; text-align: center; border-radius: 10px; background: var(--glass-2); padding: 6px 0; align-self: flex-start; }
.cal-date b { display: block; font-family: var(--display); font-size: 1.3rem; color: #fff; line-height: 1.1; }
.cal-date span { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 800; }
.cal-body h3 { margin: 0 0 4px; font-size: .92rem; color: #fff; }
.cal-body p { margin: 0 0 4px; font-size: .8rem; color: var(--text); line-height: 1.45; }
.cal-body small { display: block; font-size: .68rem; color: var(--dim); }
.cal-body small.unsure { color: var(--gold); margin-top: 2px; }
.cal-body .sky-pill { margin-top: 6px; font-size: .72rem; padding: 5px 10px; }
.cal-eclipse .cal-date { background: rgba(255, 154, 46, .14); }
.launches, .evlist { list-style: none; margin: 0; padding: 0; }
.launches li, .evlist li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.launches li:last-child, .evlist li:last-child { border: 0; }
.launches small, .evlist small { display: block; color: var(--muted); font-size: .7rem; }
.evlist li b { display: block; color: #fff; }
.evlist li span { display: block; color: var(--text); }
.ln-top { display: flex; justify-content: space-between; gap: 8px; }
.ln-top b { color: #fff; }
.ln-cd { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 4px; font-size: .72rem; color: var(--muted); }
.ln-cd .cd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: .88rem; color: var(--cyan); }

/* aurora */
#aurora-card { max-width: 720px; }
.kp-now { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.kp-now b { color: #fff; display: block; font-size: .92rem; }
.kp-now small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.45; margin-top: 2px; }
.kp-big { flex: none; width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: #08140e; background: var(--ok); }
.kp-big.k4 { background: #F2D255; } .kp-big.k5, .kp-big.k6 { background: #FF9A2E; } .kp-big.k7, .kp-big.k8, .kp-big.k9 { background: #FF5D7A; }
.kp-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 56px; padding: 0 0 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.kp-bars i { flex: 1; background: var(--ok); border-radius: 2px 2px 0 0; opacity: .85; }
.kp-bars i.obs { opacity: .45; }
.kp-bars i.k4 { background: #F2D255; } .kp-bars i.k5, .kp-bars i.k6 { background: #FF9A2E; } .kp-bars i.k7, .kp-bars i.k8, .kp-bars i.k9 { background: #FF5D7A; }

/* sheet (share, ISS and satellite info) */
.sheet { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-card { position: relative; width: 100%; max-width: 560px; max-height: 90%; overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); color: var(--text); }
@media (min-width: 760px) { .sheet { align-items: center; } .sheet-card { border-radius: 22px; border-bottom: 1px solid var(--line-2); } }
.sheet-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass-2); color: #fff; font-size: 1.2rem; cursor: pointer; }
.sheet h2 { margin: 0 40px 8px 0; font-family: var(--display); color: #fff; font-size: 1.15rem; }
.sheet img.share-prev { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line); }
.sheet .muted { font-size: .88rem; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-link { font-size: .72rem; color: var(--cyan); word-break: break-all; margin: 8px 0; }
.sheet-photo { margin: 6px 0 10px; }
.sheet-photo img { display: block; width: 100%; max-height: 180px; object-fit: contain; background: #000; border-radius: 12px; }
.sheet-photo figcaption { margin-top: 4px; font-size: .68rem; color: var(--dim); }
.sheet-photo a { color: inherit; text-decoration: underline; }
.toast2 { position: fixed; left: 50%; top: calc(var(--header-h) + 12px); transform: translateX(-50%); z-index: 220; background: #10182f; border: 1px solid var(--accent); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: .82rem; max-width: 92%; box-shadow: var(--shadow); }
.img-hold { position: fixed; inset: 0; z-index: 9999; background: rgba(2, 4, 10, .96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(env(safe-area-inset-top) + 56px) 16px calc(env(safe-area-inset-bottom) + 20px); }
.img-hold img { max-width: 100%; max-height: calc(100% - 70px); object-fit: contain; border-radius: 12px; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.img-hold p { margin: 0; color: #eef1fa; font: 600 15px/1.4 var(--body); text-align: center; }
.img-hold-x { position: absolute; top: calc(env(safe-area-inset-top) + 10px); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* red night mode (the map's eye button) */
html.sky-night .iss-strip { background: rgba(14, 0, 0, .9); border-color: rgba(255, 60, 40, .45); color: #ff5a44; }
html.sky-night .iss-ico { background: #ff3b2a; color: #000; }
html.sky-night .sky-btn-iss { color: #ff5a44 !important; }
html.sky-night .sheet-card, html.sky-night .toast2, html.sky-night .img-hold { filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-42deg) brightness(.6); }
