@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(../fonts/poppins-800-latin.woff2) format("woff2"); }
:root {
  --bg: #070B16; --bg-2: #0A1022; --panel: #0D1732; --glass-2: rgba(255,255,255,.045); --line: rgba(150,175,255,.13); --line-2: rgba(150,175,255,.22);
  --fg: #EEF1FA; --text: #D5DBEC; --muted: #9AA5C4; --dim: #6E7898; --accent: #FF9A2E; --accent-2: #FFB25C; --gold: #F2BA55; --ok: #57D39A; --cyan: #63D3FF;
  --radius: 18px; --shadow: 0 18px 50px -20px rgba(0,0,0,.75);
  --display: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 0px; --top-h: 52px; --tab-h: 62px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
.app { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--bg); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.topbar { height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 12px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(7,11,22,.96); z-index: 20; flex: none; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1rem; color: #fff; letter-spacing: .01em; line-height: 1.1; }
.acc { color: var(--accent); }
.proto-tag { display: block; font-size: .6rem; letter-spacing: .12em; color: var(--dim); font-weight: 600; }
.plan-pill { border: 1px solid var(--line-2); background: var(--glass-2); border-radius: 999px; padding: 6px 12px; font-size: .75rem; font-weight: 700; cursor: pointer; }
.plan-pill.plus { border-color: var(--accent); color: var(--accent); background: rgba(255,154,46,.12); }
.views { position: relative; flex: 1; min-height: 0; }
.view { position: absolute; inset: 0; display: none; }
.view.active { display: block; }
.scroll { position: absolute; inset: 0; overflow-y: auto; padding: 14px 14px 30px; -webkit-overflow-scrolling: touch; }
.tabbar { flex: none; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: rgba(7,11,22,.98); z-index: 20; }
.tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabbar svg { width: 22px; height: 22px; fill: currentColor; }
.tabbar button.on { color: var(--accent); }
.tabbar .tab-plus svg { background: var(--accent); fill: #1a1000; border-radius: 50%; padding: 2px; }

/* sky stage fills the view */
/* first page scrolls like nogroundnews.com/sky: the map is a fixed-height section, the rest is below it */
#view-sky.active { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
#view-sky .sky-stage { position: relative; inset: auto; height: calc(100% - 52px); min-height: 430px; max-height: none; border: 0; }
#view-sky .sky-stage.is-full { position: fixed; inset: 0; height: 100vh; height: 100dvh; min-height: 0; }
.sky-title { font-size: 1.05rem !important; }
.sky-btn-iss { font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: var(--accent) !important; }
.sky-time { padding-bottom: 10px !important; }
.sky-card { bottom: 128px !important; }
.iss-strip { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 92px; display: flex; gap: 8px; align-items: center; padding: 7px 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-size: .74rem; line-height: 1.3; color: var(--fg); cursor: pointer; }
.iss-ico { flex: none; background: var(--accent); color: #1a1000; font-weight: 800; font-size: .62rem; border-radius: 6px; padding: 3px 5px; }
.sky-below { padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.sky-below-in { padding: 6px 14px 0; }
.sky-peek { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; height: 52px; padding: 7px 0 0; border: 0; border-top: 1px solid var(--line);
  background: var(--bg-2, #0b1224); color: var(--muted); font: 700 .78rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.sky-peek-bar { width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); }
.sky-below .sky-hl-head h2 { font-size: 1.5rem; }
.sky-below .section-kicker { color: var(--accent); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 14px; }
.app-version { margin: 18px 0 0; font-size: .72rem; color: var(--dim); }
.app-version b { color: var(--accent); }
.ver-tag { color: var(--accent); font-weight: 800; }

/* cards */
.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-bottom: 10px; }
.card h2 { margin: 0; font-family: var(--display); font-size: 1.02rem; color: #fff; }
.src { font-size: .64rem; color: var(--dim); text-align: right; }
.fine { font-size: .7rem; color: var(--dim); margin: 8px 0 0; line-height: 1.4; }
.muted { color: var(--muted); }
.credit { font-size: .68rem; color: var(--dim); line-height: 1.45; margin: 8px 2px 0; }
.btn { display: block; width: 100%; margin-top: 10px; border: 0; border-radius: 12px; padding: 12px; background: var(--accent); color: #1a1000; font-weight: 800; cursor: pointer; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid rgba(255,154,46,.5); }
.btn.big { padding: 15px; font-size: 1rem; }
.ghost-btn { border: 1px solid var(--line-2); background: var(--glass-2); border-radius: 999px; padding: 6px 12px; font-size: .74rem; font-weight: 700; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.stats div { background: var(--glass-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; min-width: 0; }
.stats b { display: block; color: #fff; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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; }

/* video */
.vid-wrap { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.yt, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fallback { position: absolute; inset: 0; z-index: 2; background: #000; }
.fallback canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.fb-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.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); }
.pill { 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; }
.pill .dot, .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.vid-bar { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 12px; gap: 8px; }
.live-dot { font-size: .74rem; color: var(--muted); }
.live-dot.on::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; margin-right: 6px; box-shadow: 0 0 8px #ff3b3b; }

/* passes */
.passes { list-style: none; margin: 0; padding: 0; }
.passes li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .8rem; 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; }
.tag { flex: none; align-self: center; font-size: .64rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; }
.tag.go { background: rgba(87,211,154,.15); color: var(--ok); }
.tag.skip { background: rgba(255,93,122,.15); color: #FF8DA2; }
.tag.na { background: var(--glass-2); color: var(--dim); }

/* tonight */
.hero-t { margin: 4px 2px 12px; }
.kicker { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.hero-t h1 { margin: 2px 0 4px; font-family: var(--display); font-size: 1.45rem; color: #fff; }
.hero-t p { margin: 0; font-size: .82rem; }
.best3 { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.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)); overflow: hidden; }
.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: .95rem; color: #fff; }
.b3 p { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--text); }
.b3 .sky-pill, .b3 .show { margin-top: 8px; border: 1px solid rgba(255,154,46,.5); background: rgba(255,154,46,.12); color: var(--accent); border-radius: 999px; padding: 6px 12px; font-size: .74rem; font-weight: 700; cursor: pointer; }
.b3.locked .inner { filter: blur(6px); opacity: .55; pointer-events: none; user-select: none; }
.b3 .lock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,11,22,.35); }
.b3 .lock button { border: 0; border-radius: 999px; padding: 9px 16px; background: var(--accent); color: #1a1000; font-weight: 800; font-size: .8rem; cursor: pointer; }
.b3 .inner { display: flex; gap: 12px; }
.soon { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1a1000; background: var(--gold); border-radius: 999px; padding: 2px 7px; vertical-align: middle; }

/* alerts */
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sw b { display: block; color: #fff; font-size: .88rem; }
.sw small { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { flex: none; width: 46px; height: 28px; border-radius: 999px; background: #2a3350; position: relative; transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + i { background: var(--accent); }
.sw input:checked + i::after { transform: translateX(18px); }
.plus-badge { font-style: normal; font-size: .58rem; font-weight: 800; color: #1a1000; background: var(--accent); border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
body.is-plus .plus-badge { background: var(--ok); }
.evlist { list-style: none; margin: 0; padding: 0; }
.evlist li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.evlist li:last-child { border: 0; }
.evlist b { display: block; color: #fff; }
.evlist small { display: block; margin-top: 3px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.evlist small.real { color: var(--ok); }
.evlist .example small { color: var(--gold); }
.evlist .example { opacity: .85; }

/* paywall */
.paywall { text-align: center; }
.pw-logo { display: block; margin: 6px auto 4px; }
.paywall h1 { margin: 0; font-family: var(--display); font-size: 1.6rem; color: #fff; }
.pw-lede { margin: 4px 0 14px; color: var(--muted); font-size: .88rem; }
.feat { list-style: none; padding: 0; margin: 0 0 14px; text-align: left; }
.feat li { position: relative; padding: 7px 0 7px 26px; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.feat li b { display: block; color: #fff; font-size: .86rem; }
.feat li::before { content: "✓"; position: absolute; left: 2px; top: 7px; color: var(--accent); font-weight: 800; }
.plans { display: grid; gap: 8px; }
.plan { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--glass-2); cursor: pointer; }
.plan.sel { border-color: var(--accent); background: rgba(255,154,46,.08); }
.plan .pn { font-weight: 800; color: #fff; }
.plan .pp { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: #fff; }
.plan .pp small { font-family: var(--body); font-size: .7rem; color: var(--muted); font-weight: 600; }
.plan .pm { grid-column: 1 / -1; font-size: .7rem; color: var(--muted); }
.plan .badge { position: absolute; top: -9px; right: 12px; font-size: .6rem; font-weight: 800; background: var(--accent); color: #1a1000; border-radius: 999px; padding: 2px 8px; }
.plan .badge.gold { background: var(--gold); }
.pw-trust { margin: 10px 0 2px; font-weight: 700; color: var(--fg); font-size: .82rem; }
.pw-proto { margin: 2px 0; font-size: .7rem; color: var(--gold); font-weight: 700; }
.pw-links { margin: 6px 0 14px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .74rem; cursor: pointer; }
.cmp { width: 100%; border-collapse: collapse; font-size: .74rem; text-align: left; }
.cmp th, .cmp td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.cmp th { color: #fff; } .cmp td:nth-child(n+2), .cmp th:nth-child(n+2) { text-align: center; width: 64px; }
.cmp td:last-child { color: var(--accent); font-weight: 700; }

/* sheet (modals) */
.sheet { position: fixed; inset: 0; z-index: 100; 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-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.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); font-size: 1.2rem; cursor: pointer; }
.sheet h2 { margin: 0 0 8px; 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); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast2 { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 120; background: #10182f; border: 1px solid var(--accent); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: .8rem; max-width: 92%; box-shadow: var(--shadow); }

.stats div:first-child { grid-column: 1 / -1; }
.stats div:first-child b { white-space: normal; font-size: .9rem; }

/* ---------- test build extras (Oct 31) ---------- */
.tabbar { grid-template-columns: repeat(6, 1fr); }
.tabbar button { font-size: .62rem; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-red { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: var(--glass-2); border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 700; cursor: pointer; }
.top-red svg { width: 14px; height: 14px; fill: #ff6a55; }
.top-red.on { background: #3a0000; border-color: #ff3b2a; color: #ff5a44; }
html.red-all body::after { content: ""; position: fixed; inset: 0; background: #ff0000; mix-blend-mode: multiply; pointer-events: none; z-index: 9999; }
html.red-all .app, html.red-all .sheet { filter: brightness(.85); }
.vid-wrap { position: relative; }
.nasa-credit { position: absolute; right: 8px; bottom: 8px; z-index: 3; font-size: .62rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 6px; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .7rem; 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 .when { flex: none; text-align: right; font-size: .78rem; color: #fff; font-weight: 700; }
.passes .when small { font-weight: 500; }
.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: .7rem; color: var(--muted); }
.moon-facts b, .moon-grid b { color: #fff; font-size: .9rem; }
.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; }
.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; }
.seg button { border: 0; background: none; padding: 8px 4px; border-radius: 9px; font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: #1a1000; }
.cal { list-style: none; margin: 0 0 12px; padding: 0; }
.cal li { display: flex; gap: 12px; padding: 12px; margin-bottom: 8px; 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: .8; 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: .9rem; color: #fff; }
.cal-body p { margin: 0 0 4px; font-size: .76rem; color: var(--text); line-height: 1.4; }
.cal-body small { display: block; font-size: .66rem; color: var(--dim); }
.cal-body small.unsure { color: var(--gold); margin-top: 2px; }
.cal-body .sky-pill { margin-top: 6px; font-size: .7rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--accent); cursor: pointer; font-weight: 700; }
.cal-eclipse .cal-date { background: rgba(255,154,46,.14); }
.launches { list-style: none; margin: 0; padding: 0; }
.launches li { position: relative; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.launches li:last-child { border: 0; }
.launches small { display: block; color: var(--muted); font-size: .68rem; }
.ln-top { display: flex; justify-content: space-between; gap: 8px; }
.ln-top b { color: #fff; }
.ln-cd { display: flex; gap: 10px; align-items: baseline; margin-top: 4px; font-size: .7rem; color: var(--muted); }
.ln-cd .cd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: .86rem; color: var(--cyan); }
.ln-watch { position: absolute; right: 0; bottom: 10px; font-size: .7rem; font-weight: 800; color: var(--accent); text-decoration: none; }
.kp-now { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.kp-now b { color: #fff; display: block; font-size: .9rem; }
.kp-now small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.4; 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; 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; }
.kp-th { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255,255,255,.55); }
#kp-th { width: 100%; accent-color: var(--accent); }
.share-link { font-size: .7rem; color: var(--cyan); word-break: break-all; margin: 8px 0; }
.steps { padding-left: 20px; font-size: .88rem; line-height: 1.6; }

/* full-screen "press and hold to save" fallback */
.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 Inter, system-ui, sans-serif; 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; }
.btn:disabled { opacity: .55; }
.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; }

/* v6.1d: explicit, shrink-safe Moon and content-sized calendar cards on Safari. */
.moon-photo { display:block; width:132px; height:132px; flex:0 0 132px; max-width:45%; aspect-ratio:1; }
.moon-hero { min-height:160px; height:auto; flex-wrap:nowrap; }
.moon-facts { min-width:0; }
#ev-list { display:block; height:auto; overflow:visible; }
#ev-list > li { height:auto; min-height:0; max-height:none; flex-shrink:0; overflow:visible; align-items:flex-start; }
#ev-list .cal-body { flex:1 1 0; min-width:0; height:auto; overflow:visible; overflow-wrap:anywhere; }
#ev-list .cal-body small { line-height:1.5; white-space:normal; max-height:none; overflow:visible; -webkit-line-clamp:unset; }
#ev-list .unsure { padding-bottom:3px; }

#ev-list .cal-body { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
