@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --ink: #070b16;
  --navy: #10182b;
  --card: #161e34;
  --card-2: #1c2640;
  --line: rgba(239, 230, 214, 0.12);
  --cream: #efe6d6;
  --muted: #9aa3b8;
  --amber: #e0b15c;
  --amber-soft: #f0d399;
  --teal: #7ec8c3;
  --good: #8fcea0;
  --fair: #e0b15c;
  --poor: #d9897a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --sans: "Source Sans 3", "Segoe UI", "Avenir Next", system-ui, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
button, input { font: inherit; }
.hidden { display: none !important; }
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--amber);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.sky {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(239,230,214,.85), transparent),
    radial-gradient(1px 1px at 28% 72%, rgba(239,230,214,.55), transparent),
    radial-gradient(1.4px 1.4px at 67% 22%, rgba(224,177,92,.8), transparent),
    radial-gradient(1px 1px at 81% 64%, rgba(239,230,214,.7), transparent),
    radial-gradient(1px 1px at 44% 36%, rgba(126,200,195,.6), transparent),
    radial-gradient(1px 1px at 8% 84%, rgba(239,230,214,.45), transparent),
    radial-gradient(1.2px 1.2px at 92% 12%, rgba(239,230,214,.75), transparent),
    linear-gradient(180deg, #070b16 0%, #0c1222 55%, #10182b 100%);
}
/* Soft page wash lives behind content; never large translucent blobs over cards. */


.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand img { flex: none; }
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.86rem;
}
.loc-and-kids {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 auto;
  min-width: 0;
}
.loc-chip {
  border: 1px solid var(--line);
  background: rgba(22, 30, 52, 0.85);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  max-width: 16rem;
  min-height: 44px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-chip:hover, .loc-chip:focus-visible { border-color: var(--amber); }
.kids-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  min-width: 54px;
  padding: 0.6rem 1.2rem 0.6rem 1rem;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: rgba(224, 177, 92, 0.18);
  border: 2px solid #e0b15c;
  box-shadow: 0 0 0 3px rgba(224, 177, 92, 0.18);
}
.kids-toggle-icon { display: block; flex: none; width: 26px; height: 26px; }
.mode-chip.kids-toggle[aria-pressed="true"],
body.kid-mode .mode-chip.kids-toggle {
  background: #e0b15c;
  border-color: #f0d29a;
  color: #1a1408;
  box-shadow: 0 0 0 4px rgba(224, 177, 92, 0.45);
}

main { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 4rem; }

.share-banner {
  background: rgba(126, 200, 195, 0.12);
  border: 1px solid rgba(126, 200, 195, 0.3);
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}


.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.35rem 1.25rem 0.85rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink, #efe6d6);
  border-bottom-color: var(--teal, #7ec8c3);
}

.live-track-section .live-track-card {
  background: rgba(16, 24, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1rem 1.1rem;
}
.live-track-section h3 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.live-track-map {
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 160px;
  max-height: min(52vh, 420px);
}
@media (max-width: 640px) {
  .live-track-map {
    min-height: 140px;
    max-height: 46vw;
    aspect-ratio: 2 / 1;
  }
  .site-nav {
    padding-inline: 1rem;
    gap: 0.35rem 0.7rem;
    font-size: 0.88rem;
  }
}
#next-pass .pass-card.next {
  border-color: rgba(224, 177, 92, 0.45);
  box-shadow: 0 0 0 1px rgba(224, 177, 92, 0.12);
}

.hero { margin: 0.5rem 0 2.5rem; }
.hero-card {
  background: linear-gradient(180deg, rgba(28, 38, 64, 0.92), rgba(16, 24, 43, 0.92));
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--amber);
  margin: 0 0 0.4rem;
}
.hero-card h1, .pass-title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
}
.lede { font-size: 1.08rem; color: var(--muted); margin: 0 0 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.8rem; }
.fineprint { color: var(--muted); font-size: 0.88rem; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.btn.primary { background: var(--amber); color: #2a1d05; font-weight: 600; }
.btn.primary:hover { background: var(--amber-soft); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--cream); }
.btn.ghost:hover { border-color: var(--teal); }
.btn.small { padding: 0.45rem 0.8rem; font-size: 0.92rem; }

.section { margin: 2.6rem 0; }
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}
.section-head p { margin: 0 0 1.1rem; color: var(--muted); }

.pass-list, .launch-list { display: grid; gap: 1rem; }
.placeholder, .noscript { color: var(--muted); }

.pass-card, .tile, .launch-card, .feed-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem 1.05rem;
}
.pass-card.next { border-color: rgba(224, 177, 92, 0.45); }
.pass-top { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; }
.pass-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0.15rem 0 0.35rem;
}
.when { color: var(--muted); margin: 0 0 0.6rem; }
.look-row {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.9rem;
  align-items: center;
}
/* Three children (compass, path, copy). On a 2-column phone grid the copy
   would otherwise sit in the first 7.2rem column under the compass. */
.look-copy {
  grid-column: 1 / -1;
}
.compass {
  width: 7.2rem;
  height: 7.2rem;
}
.compass svg { width: 100%; height: 100%; }
.sky-path {
  width: 7.5rem;
  height: 7.5rem;
  max-width: 7.5rem;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
}
.look-row {
  align-items: center;
}
.look-row .compass svg,
.look-row .sky-path {
  width: 7.5rem;
  height: 7.5rem;
}
.pass-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.85rem 0 0.7rem; }
.pill {
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.86rem;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.pill.good { color: var(--good); border-color: rgba(143, 206, 160, 0.35); }
.pill.fair { color: var(--fair); border-color: rgba(224, 177, 92, 0.35); }
.pill.poor { color: var(--poor); border-color: rgba(217, 137, 122, 0.35); }
.pass-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pass-share {
  min-width: 9.4rem;
}
.pass-share.is-copied {
  border-color: rgba(126, 200, 195, 0.75);
  color: var(--teal);
}

.countdown {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--amber-soft);
  margin: 0.2rem 0 0.8rem;
}

.tile-grid {
  display: grid;
  gap: 1rem;
}
.tile-stat {
  font-family: var(--serif);
  font-size: 3rem;
  margin: 0.2rem 0;
  color: var(--amber-soft);
}
.tile-copy { color: var(--muted); margin: 0; }

.world-map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #0a1020;
  border: 1px solid var(--line);
}
.world-map svg { width: 100%; height: 100%; display: block; }
.world-map.picker { cursor: crosshair; min-height: 180px; }

.feed-grid {
  display: grid;
  gap: 1rem;
}
.feed-card { padding: 0.7rem; }
.feed-card figcaption { padding: 0.7rem 0.35rem 0.4rem; }
.feed-card figcaption strong { display: block; margin-bottom: 0.25rem; }
.feed-card figcaption span { color: var(--muted); display: block; }
.video-ph, .image-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #0a1020;
}
.image-link { aspect-ratio: 5 / 3; }
.video-ph img, .image-link img, .video-ph iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.play-btn {
  position: absolute;
  inset: auto 50% 1rem auto;
  transform: translateX(50%);
  background: var(--amber);
  color: #2a1d05;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.feed-card.link-only { display: flex; align-items: center; min-height: 8rem; }
.text-link { color: var(--teal); }

.launch-card { display: grid; gap: 0.45rem; }
.launch-card.gulf { border-color: rgba(126, 200, 195, 0.4); }
.launch-card h3 { font-family: var(--serif); margin: 0; font-size: 1.2rem; }
.gulf-flag {
  color: var(--teal);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  gap: 1.3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer h2 {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.site-footer p { margin: 0; }
.site-footer .donate { margin-top: 0.75rem; }
.site-footer a { color: var(--teal, #7ec8c3); }
.legal { font-size: 0.9rem; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

dialog {
  width: min(34rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--navy);
  color: var(--cream);
  padding: 1.1rem;
}
dialog::backdrop { background: rgba(4, 7, 14, 0.72); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 0.4rem; }
.dialog-head h2 { font-family: var(--serif); margin: 0; font-size: 1.35rem; }
.icon-btn {
  background: transparent;
  color: var(--cream);
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.field { display: grid; gap: 0.3rem; margin: 0.8rem 0; }
.field input, .coords input {
  background: #0b1120;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 0.6rem;
  padding: 0.6rem 0.7rem;
}
.city-results {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  overflow: hidden;
}
.city-results button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}
.city-results button:hover { background: var(--card); }
.coords { display: grid; gap: 0.6rem; }
.map-hint { color: var(--muted); margin: 1rem 0 0.4rem; font-size: 0.9rem; }

@media (min-width: 720px) {
  .hero-card { padding: 2rem 2.1rem; }
  .tile-grid, .feed-grid { grid-template-columns: 1fr 1fr; }
  .coords { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .site-footer { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer .legal { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .look-row { grid-template-columns: 8rem 1fr auto; }
  .look-copy { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .countdown { transition: none; }
}

.track-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.75rem, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  align-items: stretch;
}
button.track-card,
.track-card {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.5rem;
  height: 100%;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(126, 200, 195, 0.28);
  color: var(--cream);
  cursor: pointer;
  text-align: left;
  font: inherit;
  line-height: 1.25;
  background-color: #161e34;
  background-image:
    linear-gradient(145deg, rgba(126, 200, 195, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(28, 38, 64, 0.98), rgba(16, 24, 43, 0.96));
  box-shadow: inset 0 1px 0 rgba(239, 230, 214, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
button.track-card:hover,
.track-card:hover {
  border-color: rgba(126, 200, 195, 0.55);
  transform: translateY(-1px);
}
button.track-card:focus-visible,
.track-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--teal);
}
button.track-card[aria-pressed="true"],
.track-card[aria-pressed="true"] {
  border-color: rgba(224, 177, 92, 0.75);
  color: var(--amber-soft);
  background-color: #1c1830;
  background-image:
    linear-gradient(145deg, rgba(224, 177, 92, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(40, 34, 24, 0.65), rgba(22, 30, 52, 0.96));
  box-shadow:
    0 0 0 1px rgba(224, 177, 92, 0.22),
    0 10px 28px rgba(224, 177, 92, 0.14),
    inset 0 1px 0 rgba(240, 211, 153, 0.14);
}
button.track-card[aria-pressed="false"],
.track-card[aria-pressed="false"] {
  color: var(--muted);
  opacity: 0.9;
}
.track-card-icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  min-width: 2.1rem;
  min-height: 2.1rem;
  border-radius: 0.75rem;
  background: rgba(7, 11, 22, 0.55);
  border: 1px solid rgba(239, 230, 214, 0.1);
  color: var(--teal);
  flex: 0 0 auto;
  overflow: hidden;
}
.track-card[aria-pressed="true"] .track-card-icon {
  color: var(--amber);
  border-color: rgba(224, 177, 92, 0.4);
  background: rgba(224, 177, 92, 0.12);
}
.track-card-icon svg,
.track-icon {
  width: 1.15rem !important;
  height: 1.15rem !important;
  max-width: 1.15rem;
  max-height: 1.15rem;
  display: block;
  fill: currentColor;
}
.track-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}
.track-card-title {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
}
.track-card-sub {
  display: block;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-card[aria-pressed="true"] .track-card-sub { color: rgba(240, 211, 153, 0.85); }
.chip-toggle {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--cream);
  cursor: pointer;
}
.chip-toggle[aria-pressed="true"] {
  border-color: rgba(224, 177, 92, 0.55);
  color: var(--amber-soft);
}
.chip-toggle:hover, .chip-toggle:focus-visible { border-color: var(--teal); }

.alert-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 0.95rem 1.05rem;
  margin: 0 0 1.15rem;
  display: grid;
  gap: 0.75rem;
}
.alert-check, .alert-mins {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--cream);
  font-size: 0.95rem;
}
.alert-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(126, 200, 195, 0.45);
  background: #0b1120;
  display: inline-grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}
.alert-check input[type="checkbox"]:checked {
  background: rgba(224, 177, 92, 0.25);
  border-color: rgba(224, 177, 92, 0.7);
}
.alert-check input[type="checkbox"]:checked::after {
  content: "";
  width: 0.35rem;
  height: 0.6rem;
  border: solid var(--amber);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 0.15rem;
}
.alert-mins select {
  appearance: none;
  -webkit-appearance: none;
  background: #0b1120 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%7ec8c3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.55rem center;
  color: var(--cream);
  border: 1px solid rgba(126, 200, 195, 0.35);
  border-radius: 0.65rem;
  padding: 0.4rem 1.6rem 0.4rem 0.65rem;
}

.sky-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem 1.05rem 1.15rem;
  margin: 0 0 1rem;
}
.sky-panel h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}
.section-copy, .legend { color: var(--muted); margin: 0 0 0.9rem; }
.legend { font-size: 0.92rem; margin: 0.8rem 0 0.6rem; }
.sky-dome-wrap {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
}
.sky-dome { width: 100%; height: auto; display: block; }
.sky-dome svg { width: 100%; height: auto; display: block; }
.sky-view-layout {
  display: grid;
  gap: 0.75rem;
}
.sky-caption {
  min-height: 5.5rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  background: var(--card);
  box-sizing: border-box;
}
.sky-caption-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.sky-caption-empty, .sky-caption-desc { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .sky-view-layout {
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    align-items: start;
  }
  .sky-caption { min-height: 8.5rem; }
}
.sky-hit.sky-selected circle.sky-select-ring {
  fill: none;
  stroke: #efe6d6;
  stroke-width: 1.15;
}
.plane-tip {
  margin: 0.4rem 0 0.5rem;
  color: var(--cream);
}
.plane-tip strong { color: var(--amber-soft); }

.tonight-grid { display: grid; gap: 1rem; }
.tonight-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}
.tonight-card p { margin: 0 0 0.45rem; }
.tonight-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.tonight-card li { margin: 0 0 0.45rem; }

@media (min-width: 720px) {
  .tonight-grid { grid-template-columns: 1fr 1fr 1fr; }
  .alert-bar {
    grid-template-columns: auto auto;
    align-items: center;
  }
  .alert-bar .fineprint { grid-column: 1 / -1; }
}

.live-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: #c62828;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.45rem;
  border-radius: 0.3rem;
}
.live-badge.hidden { display: none !important; }
.updated-ago {
  display: block;
  color: var(--teal);
  font-size: 0.88rem;
  margin: 0.15rem 0 0.4rem;
}


/* —— Feel-alive: sky mood, ISS glide, countdown, saw-it —— */
body[data-sky="day"] {
  --ink: #0c1a2e;
  background: #0c1a2e;
}
body[data-sky="dusk"], body[data-sky="civil"] {
  background: #10182b;
}
body[data-sky="nautical"], body[data-sky="astro"],
body[data-sky="night"] {
  background: var(--ink);
}
.sky-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
  overflow: hidden;
}
body[data-sky="day"] .sky-stars { opacity: 0.04; }
body[data-sky="dusk"] .sky-stars, body[data-sky="civil"] .sky-stars { opacity: 0.2; }
body[data-sky="nautical"] .sky-stars { opacity: 0.35; }
.sky-star { fill: #efe6d6; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .sky-star {
    animation: twinkle var(--twinkle-dur, 3s) ease-in-out var(--twinkle-delay, 0s) infinite;
  }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}
.iss-pulse {
  transform-origin: center;
  opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
  .iss-pulse {
    animation: issPulse 1.6s ease-out infinite;
  }
}
@keyframes issPulse {
  0% { opacity: 0.7; }
  100% { r: 14; opacity: 0; }
}
.iss-trail { opacity: 0.55; }
.iss-live-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.iss-live-stats span {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.35);
}
.pass-card {
  --pass-warmth: 0;
  border-color: color-mix(in srgb, var(--teal) calc(var(--pass-warmth) * 0%), var(--line));
  box-shadow: 0 0 calc(var(--pass-warmth) * 28px) rgba(224, 177, 92, calc(var(--pass-warmth) * 0.28));
  transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.pass-card.pass-warming {
  background:
    linear-gradient(160deg, rgba(224,177,92, calc(var(--pass-warmth) * 0.14)), transparent 55%),
    var(--card);
  border-color: rgba(224, 177, 92, calc(0.25 + var(--pass-warmth) * 0.5));
}
.pass-card.pass-now {
  border-color: rgba(224, 177, 92, 0.85);
}
.look-callout {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(224, 177, 92, 0.55);
  background:
    linear-gradient(135deg, rgba(224,177,92,0.2), rgba(126,200,195,0.08)),
    var(--card);
  box-shadow: var(--shadow);
}
.look-callout-inner { display: grid; gap: 0.35rem; justify-items: start; }
.look-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--amber-soft);
}
.look-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--cream);
}
.look-arrow-wrap { display: flex; align-items: center; gap: 0.8rem; }
.look-arrow {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(224,177,92,0.15);
  border: 1px solid rgba(224,177,92,0.45);
  font-size: 1.6rem;
  color: var(--amber);
}
.look-sub { margin: 0; color: var(--muted); font-size: 0.9rem; }
.pass-replay { margin: 0.7rem 0 0; }
.replay-svg { width: min(100%, 12rem); height: auto; }
.sawit-hud { margin: 0.4rem 0 0; }
.sawit-hud .text-link {
  background: none;
  border: none;
  color: var(--teal);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.pass-sparkle {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0;
  z-index: 40;
  background:
    radial-gradient(circle at 20% 30%, rgba(224,177,92,0.35), transparent 28%),
    radial-gradient(circle at 70% 40%, rgba(126,200,195,0.28), transparent 30%),
    radial-gradient(circle at 45% 75%, rgba(239,230,214,0.2), transparent 25%);
  transition: opacity 0.4s ease;
}
.pass-sparkle.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sky-star, .iss-pulse, .pass-sparkle { animation: none !important; }
  .pass-sparkle.on { opacity: 0; }
}

section.hero[hidden] { display: none !important; }


/* Equipment disclosure on pass cards — collapsed by default, tidy on mobile */
.equip-details {
  margin: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}
.equip-details > summary {
  cursor: pointer;
  list-style: none;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 560;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.equip-details > summary::-webkit-details-marker { display: none; }
.equip-details > summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}
.equip-details[open] > summary::before {
  transform: rotate(45deg);
}
.equip-details > summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.equip-body { padding: 0.35rem 0 0.2rem; }
.equip-note {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.equip-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.equip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 18rem;
}
.equip-table th,
.equip-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(239,230,214,0.08);
}
.equip-table thead th {
  color: var(--muted);
  font-weight: 550;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.equip-table tbody th {
  color: var(--muted);
  font-weight: 550;
  white-space: nowrap;
  width: 4.5rem;
}
.equip-table tbody td {
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.equip-meta {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0 0 0.7rem;
}
.equip-meta th {
  text-align: left;
  color: var(--muted);
  font-weight: 550;
  padding: 0.25rem 0.55rem 0.25rem 0;
  white-space: nowrap;
  vertical-align: top;
  width: 11rem;
}
.equip-meta td {
  padding: 0.25rem 0;
  color: var(--cream);
}
.equip-tle {
  margin-top: 0.35rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: rgba(7, 11, 22, 0.55);
  border: 1px solid var(--line);
}
.equip-tle-label {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.equip-tle-pre {
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.55rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--cream);
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  white-space: pre;
}
.equip-tle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
@media (max-width: 520px) {
  .equip-table { font-size: 0.78rem; }
  .equip-meta th { width: auto; display: block; padding-bottom: 0; }
  .equip-meta td { display: block; padding-top: 0.1rem; padding-bottom: 0.45rem; }
}


/* Night planner timeline */
.night-plan-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}
.night-day-btn[aria-pressed="true"] {
  border-color: var(--teal);
  color: var(--cream);
  background: rgba(126, 200, 195, 0.12);
}
.night-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  isolation: isolate;
}
#night-plan {
  position: relative;
  z-index: 1;
}
.night-timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(239,230,214,0.08);
  align-items: start;
}
.night-timeline li:last-child { border-bottom: none; }
.night-timeline .nt-time {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 560;
}
.night-timeline .nt-title {
  margin: 0;
  color: var(--cream);
  font-size: 0.98rem;
}
.night-timeline .nt-detail {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.night-timeline .nt-kind {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.night-timeline .nt-kind.pass,
.night-timeline .nt-kind.train { color: var(--teal); border-color: rgba(126,200,195,0.35); }
.night-timeline .nt-kind.meteor { color: var(--amber); border-color: rgba(224,177,92,0.35); }
.night-timeline .nt-kind.moon-phase,
.night-timeline .nt-kind.moon-rise,
.night-timeline .nt-kind.moon-set { color: #efe6d6; }
@media (max-width: 520px) {
  .night-timeline li { grid-template-columns: 4.4rem 1fr; gap: 0.55rem; padding: 0.65rem 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .night-timeline li { transition: none; }
}


/* ISS Moon/Sun crossings */
.solar-warning {
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(217, 137, 122, 0.55);
  background: rgba(217, 137, 122, 0.12);
  color: var(--cream);
  line-height: 1.45;
}
.solar-warning strong {
  display: block;
  color: #f0b4a8;
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}
.crossings-list {
  display: grid;
  gap: 0.75rem;
}
.crossing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.crossing-card.solar {
  border-color: rgba(217, 137, 122, 0.4);
}
.crossing-card .cx-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.crossing-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.crossing-card p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.crossing-card .cx-sep {
  color: var(--cream);
}
.crossing-card .cx-filter {
  margin-top: 0.55rem;
  color: #f0b4a8;
  font-weight: 600;
}

#crossings.section,
#night-plan.section {
  background: var(--ink);
  border-radius: 16px;
  padding: 1.25rem 1rem 1.4rem;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}


/* Wave at the crew — quiet, warm line on ISS cards */
.wave-crew {
  margin: 0.75rem 0 0.15rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(224, 177, 92, 0.08);
  border: 1px solid rgba(224, 177, 92, 0.22);
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.4;
}
.wave-crew .wave-emoji {
  margin-right: 0.15rem;
}
@media (prefers-reduced-motion: reduce) {
  .wave-crew { transition: none; }
}


/* Look up now — phone sky view */
.lookup-launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.85rem 0 0.25rem;
}
.lookup-panel {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #0b1120;
  overflow: hidden;
}
.lookup-panel.hidden { display: none; }
.lookup-shell { display: flex; flex-direction: column; min-height: 22rem; }
.lookup-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(239,230,214,0.08);
}
.lookup-status { flex: 1 1 12rem; margin: 0; color: var(--cream); font-size: 0.95rem; }
.lookup-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 18rem;
  background: #070b16;
}
.lookup-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
}
.lookup-crosshair {
  pointer-events: none;
  position: absolute;
  inset: 0;
  /* Drawn on canvas; keep empty hook for a11y layout */
}
.lookup-hint {
  position: absolute;
  left: 0; right: 0; bottom: 0.6rem;
  margin: 0;
  text-align: center;
  color: #c9c2b4;
  font-size: 0.9rem;
  text-shadow: 0 1px 4px #070b16;
}
.lookup-privacy { padding: 0.5rem 1rem 0.85rem; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .lookup-shell[data-reduced="1"] .lookup-stage canvas {
    /* calm redraw cadence handled in JS */
  }
}

/* —— Header mode chips —— */
.header-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
  margin-right: 0.5rem;
}
.mode-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.mode-chip[aria-pressed="true"] {
  border-color: var(--amber);
  background: rgba(224, 177, 92, 0.15);
  color: var(--amber-soft, #f0d29a);
}
.mode-chip.kids-toggle[aria-pressed="true"],
body.kid-mode .mode-chip.kids-toggle {
  background: #e0b15c;
  border-color: #f0d29a;
  color: #1a1408;
  box-shadow: 0 0 0 4px rgba(224, 177, 92, 0.45);
}
@media (max-width: 720px) {
  .header-toggles { order: 3; margin: 0.35rem 0 0; width: 100%; }
  .loc-and-kids {
    order: 2;
    width: 100%;
    margin-top: 0.4rem;
    justify-content: flex-start;
  }
  .loc-chip { flex: 1 1 0; min-width: 0; max-width: none; }
  .kids-toggle { flex: 0 0 auto; }
  .site-header { flex-wrap: wrap; }
}
@media (min-width: 721px) {
  .kids-toggle {
    min-height: 58px;
    padding: 0.68rem 1.35rem 0.68rem 1.15rem;
    font-size: 1.22rem;
  }
  .kids-toggle-icon { width: 28px; height: 28px; }
}
@media (max-width: 380px) {
  .kids-toggle { padding: 0.5rem 0.85rem; font-size: 1.08rem; min-height: 52px; }
  .kids-toggle-icon { width: 24px; height: 24px; }
}

/* —— Kid mode —— */
body.kid-mode .countdown {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
body.kid-mode .pass-card h3 { font-size: 1.55rem; }
body.kid-mode .lede,
body.kid-mode .section-copy,
body.kid-mode .tile-copy,
body.kid-mode .pass-card p { font-size: 1.08rem; }
body.kid-mode .fineprint { font-size: 0.92rem; }
body.kid-mode .kid-fact {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(224, 177, 92, 0.1);
  border: 1px solid rgba(224, 177, 92, 0.28);
  color: var(--cream);
  font-size: 1.05rem;
}

.kid-look {
  margin: 0.4rem 0 0;
  font-size: 1.22rem;
  line-height: 1.35;
}
.kid-go-outside {
  margin: 0.35rem 0 0.15rem;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  font-weight: 750;
  line-height: 1.15;
  color: var(--amber);
}
.kid-phase {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 650;
}
.grownup-panel {
  margin-top: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 0.35rem;
}
.grownup-panel summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.98rem;
  color: var(--muted);
}
.grownup-panel summary::-webkit-details-marker { display: none; }
.grownup-panel summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: none;
}
.grownup-panel[open] summary::before { transform: rotate(45deg); }
.grownup-panel[open] summary { color: var(--cream); }
.grownup-safety {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.15rem;
  color: var(--cream);
}
.grownup-safety li { margin: 0.25rem 0; }
.kid-saw {
  display: grid;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
}
.kid-saw h4 {
  margin: 0 0 0.15rem;
  font-size: 1.18rem;
}
.kid-saw-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 177, 92, 0.38);
  background: rgba(224, 177, 92, 0.08);
  cursor: pointer;
}
.kid-saw-item input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--amber);
  flex: none;
}
.kid-saw-item.is-checked,
.kid-saw-item:has(input:checked) {
  background: rgba(224, 177, 92, 0.24);
  border-color: var(--amber);
}
.kid-split .kid-look { margin-top: 0.45rem; }
.ns-check {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.ns-check li {
  position: relative;
  margin: 0.28rem 0;
  padding-left: 1.55rem;
}
.ns-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid #111;
  border-radius: 0.15rem;
}
.ns-color-box {
  border: 1.6px solid #111;
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
}
.ns-coloring {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.ns-kid-safe { margin: 0.4rem 0 0; color: #111; }
.night-sheet.ns-kid h1 { font-size: 1.85rem; }
.night-sheet.ns-kid .ns-look { font-size: 1.08rem; }
.night-sheet.ns-kid .ns-check li { font-size: 1.12rem; padding-left: 1.85rem; margin: 0.38rem 0; }
.night-sheet.ns-kid .ns-check li::before { width: 1.2rem; height: 1.2rem; top: 0.12rem; }
@media (prefers-reduced-motion: reduce) {
  .kid-go-outside, .kid-sticker, .kid-saw-item { animation: none !important; transition: none !important; }
}

.kid-sticker {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(1rem);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: #1c1830;
  border: 2px solid var(--amber);
  color: var(--cream);
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.kid-sticker-in { opacity: 1; transform: translateX(-50%) translateY(0); }
.kid-sticker-out { opacity: 0; transform: translateX(-50%) translateY(0.6rem); }
.kid-sticker-emoji { font-size: 1.35rem; }
@media (prefers-reduced-motion: reduce) {
  .kid-sticker { transition: none; }
}

/* —— Red-light night vision —— */
body.red-light {
  --bg: #0a0404;
  --navy: #1a0808;
  --cream: #ffb0b0;
  --muted: #c97878;
  --amber: #ff6b6b;
  --amber-soft: #ff8e8e;
  --teal: #e07070;
  --line: rgba(255, 120, 120, 0.28);
  --card: #140606;
  background: #0a0404;
  color: #ffb0b0;
}
body.red-light .sky { opacity: 0.25; filter: grayscale(1) sepia(1) hue-rotate(-50deg) saturate(3) brightness(0.7); }
body.red-light .pass-card,
body.red-light .tile,
body.red-light .launch-card,
body.red-light .feed-card,
body.red-light .hero-card,
body.red-light .live-track-card,
body.red-light .sky-panel,
body.red-light .lookup-panel,
body.red-light .night-plan-card,
body.red-light dialog {
  background: #140606 !important;
  border-color: rgba(255, 100, 100, 0.35) !important;
  color: #ffb0b0;
}
body.red-light .btn.primary {
  background: #ff6b6b;
  color: #1a0505;
}
body.red-light .btn.ghost,
body.red-light .mode-chip,
body.red-light .loc-chip,
body.red-light .pill {
  border-color: rgba(255, 120, 120, 0.4);
  color: #ffb0b0;
}
body.red-light .countdown { color: #ff8e8e; }
body.red-light a { color: #ff8e8e; }
body.red-light .world-map,
body.red-light .sky-dome,
body.red-light .sky-path,
body.red-light .compass,
body.red-light .lookup-stage canvas {
  filter: grayscale(1) sepia(1) hue-rotate(-55deg) saturate(4) brightness(0.85) contrast(1.05);
}
body.red-light #sky-dome svg text,
body.red-light .sky-path text {
  fill: #ffb0b0 !important;
}
body.red-light .site-nav a { color: #ffb0b0; }
body.red-light .wave-crew {
  background: rgba(80, 10, 10, 0.65);
  border-color: rgba(255, 100, 100, 0.3);
}


/* Tab pages hide Your-sky sections without a flash (class names avoid lazy-tab CSS). */
body.tab-now #hero,
body.tab-launches #hero,
body.tab-now #live-track,
body.tab-launches #live-track,
body.tab-now #tonight,
body.tab-launches #tonight,
body.tab-now #night-plan,
body.tab-launches #night-plan,
body.tab-now #crossings,
body.tab-launches #crossings,
body.tab-now #now,
body.tab-launches #now,
body.tab-now #next-pass,
body.tab-launches #next-pass,
body.tab-now #passes,
body.tab-launches #passes,
body.tab-now #next-launch-line,
body.tab-launches #next-launch-line,
body.tab-now #sky-tonight,
body.tab-launches #sky-tonight,
body.tab-now nav.site-nav:not(#view-tabs),
body.tab-launches nav.site-nav:not(#view-tabs),
body.tab-now #kid-grownup-panel,
body.tab-launches #kid-grownup-panel {
  display: none;
}
#launches[hidden],
#space-now[hidden] {
  display: none !important;
}
#view-tabs .btn[aria-current="page"] {
  background: rgba(224, 177, 92, 0.16);
  border-color: var(--amber);
  color: var(--amber-soft);
}
body.red-light #view-tabs .btn[aria-current="page"] {
  background: rgba(255, 107, 107, 0.16);
  border-color: #ff6b6b;
  color: #ff8e8e;
}
.sky-tonight {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  font-size: 1.08rem;
  line-height: 1.45;
  min-height: 4.6em;
}
#hero-copy {
  min-height: 6.8em;
}
.get-alerts {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}
.get-alerts #get-alerts {
  font-size: 1.05rem;
  padding: 0.7rem 1.25rem;
}
.get-alerts .alert-check {
  margin-top: 0.35rem;
}
#tonight-best-help {
  max-width: 38rem;
}
body.red-light .sky-tonight {
  background: #140606;
  border-color: rgba(255, 100, 100, 0.35);
  color: #ffb0b0;
}

/* Collapsible section headers — reserved height, no layout jump. */
.section { scroll-margin-top: 5.5rem; }
.section-toggle-heading { margin: 0; }
.section-toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.85rem 0;
  margin: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.section-toggle-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  display: block;
}
.section-toggle-summary {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}
.section-toggle-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.section.is-open .section-toggle-chevron { transform: rotate(-135deg); }
.section-panel { padding-top: 0.75rem; }
.section-panel[hidden] { display: none !important; }
.next-launch-line {
  margin: 1.75rem 0 0;
  color: var(--cream);
}
body.kid-mode .section-toggle-title { font-size: 1.7rem; }
body.red-light .section-toggle-chevron { border-color: #ffb0b0; }
body.red-light .sky-caption { background: #140606; border-color: rgba(255, 100, 100, 0.35); }

.section-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  color: var(--teal);
}
.section-icon svg { display: block; width: 1.5rem; height: 1.5rem; }
.section-toggle-copy { min-width: 0; flex: 1; }
.page-jump { align-items: baseline; flex-wrap: wrap; }
.page-jump-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.2rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Printable night sheet — always light ink, even in red-light or dark UI. */
.night-sheet-launch {
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}
.night-sheet-view {
  display: none;
  background: #fff;
  color: #111;
}
.night-sheet-view:not([hidden]) {
  display: block;
}
body.night-sheet-open {
  background: #fff;
  color: #111;
}
body.night-sheet-open > :not(#night-sheet-view) {
  display: none !important;
}
body.red-light .night-sheet-view,
body.red-light .night-sheet,
body.red-light .night-sheet-view * {
  background: #fff;
  color: #111;
  border-color: #111;
}
.night-sheet-toolbar {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  padding: 1rem 1.1rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid #ccc;
}
.night-sheet-toolbar .btn.primary {
  background: #fff;
  color: #111;
  border: 2px solid #111;
  font-weight: 700;
}
.night-sheet-toolbar .btn.ghost {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}
.night-sheet-print-hint {
  margin: 0;
  max-width: 36rem;
  color: #222;
  font-size: 1rem;
}
.night-sheet {
  background: #fff;
  color: #111;
  padding: 1rem 1.15rem 1.35rem;
  font-size: 1.2rem;
  line-height: 1.35;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}
.night-sheet h1 {
  font-family: var(--serif);
  font-size: 2.45rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0.05rem 0 0.3rem;
  color: #111;
}
.night-sheet h2 {
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  margin: 0 0 0.55rem;
  color: #111;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.32rem;
  border-bottom: 1px solid #111;
}
.ns-head {
  padding: 0.15rem 0 0.75rem;
  border-top: 2px solid #111;
  border-bottom: 1px solid #111;
  margin: 0 0 0.15rem;
}
.ns-wordmark {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111;
}
.ns-mark {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.ns-lede {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
}
.ns-sub {
  margin: 0;
  color: #222;
}
.ns-dot { color: #555; }
.ns-kicker, .ns-date, .ns-cloud {
  margin: 0;
  color: #111;
}
.ns-sec { margin: 1rem 0 0; break-inside: avoid; page-break-inside: avoid; }
.ns-sec-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.ns-passes, .ns-list, .ns-planets { list-style: none; margin: 0; padding: 0; }
.ns-pass {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  column-gap: 0.65rem;
  row-gap: 0.16rem;
  align-items: center;
  margin: 0 0 0.7rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  break-inside: avoid;
  page-break-inside: avoid;
}
.ns-pass-mid,
.ns-bright {
  grid-column: 1 / -1;
  min-width: 0;
}
.ns-time {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ns-clock {
  white-space: nowrap;
}
.ns-pass-name {
  font-weight: 700;
  margin: 0 0 0.1rem;
  font-size: 1.12rem;
}
.ns-look, .ns-bright { margin: 0; color: #111; }
.ns-deg { font-size: 0.75em; font-weight: 400; color: #333; }
.ns-pass-copy p, .ns-sec > p, .ns-list li, .ns-empty, .ns-more, .ns-site,
.ns-moon-copy p, .ns-motto, .ns-qr-caption { margin: 0 0 0.15rem; color: #111; }
.ns-arrow {
  display: block;
  width: 2.9rem;
  height: 2.9rem;
}
.ns-moon {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 0.7rem;
  align-items: center;
}
.ns-moon-glyph {
  display: block;
  width: 2.7rem;
  height: 2.7rem;
}
.ns-moon-phase {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.12rem;
}
.ns-moon-times { margin: 0; }
.ns-planets {
  display: grid;
  gap: 0.35rem 1rem;
}
.ns-planets li {
  display: grid;
  grid-template-columns: 4.7rem 1fr;
  gap: 0.45rem;
  align-items: baseline;
}
.ns-planet-name { font-weight: 700; }
.ns-planet-when { color: #111; }
.ns-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 0.7rem;
  border-top: 1px solid #111;
  break-inside: avoid;
  page-break-inside: avoid;
}
.ns-motto {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  margin: 0 0 0.25rem;
}
.ns-site a { color: #111; }
.ns-qr { display: grid; justify-items: center; gap: 0.25rem; }
.ns-qr-svg { display: block; width: 6.5rem; height: 6.5rem; }
.ns-qr-caption {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
@media (min-width: 720px) {
  .ns-pass {
    grid-template-columns: 6.4rem 3.3rem minmax(11rem, 1.3fr) minmax(10rem, 1fr);
    align-items: center;
  }
  .ns-pass-mid,
  .ns-bright { grid-column: auto; grid-row: auto; }
  .ns-planets li { grid-template-columns: 7.2rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .night-sheet-view, .night-sheet, .night-sheet-toolbar { transition: none !important; animation: none !important; }
}
@page {
  margin: 0.45in;
}
#bingo-print-view { display: none !important; }

@media print {
  body { background: #fff !important; color: #111 !important; }
  body:not(.printing-bingo) > :not(#night-sheet-view) { display: none !important; }
  body:not(.printing-bingo) #night-sheet-view {
    display: block !important;
    position: static;
    background: #fff !important;
    color: #111 !important;
  }
  body.printing-bingo > :not(#bingo-print-view) { display: none !important; }
  body.printing-bingo #bingo-print-view {
    display: block !important;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff !important;
    color: #111 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.printing-bingo #bingo-print-view .bingo-sheet,
  body.printing-bingo #bingo-print-view .bingo-print-sheet {
    background: #fff !important;
    color: #111 !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
  body.printing-bingo #bingo-print-view .bingo-head h2 {
    color: #111;
    font-size: 22pt;
    margin: 0.06in 0 0.05in;
  }
  body.printing-bingo #bingo-print-view .bingo-head p,
  body.printing-bingo #bingo-print-view .eyebrow {
    color: #222;
    font-size: 12pt;
    margin: 0;
  }
  body.printing-bingo #bingo-print-view .bingo-facts {
    color: #111;
    font-size: 12pt;
    margin: 0.1in 0 0.08in;
    padding-left: 0.22in;
  }
  body.printing-bingo #bingo-print-view .bingo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.12in;
    margin: 0.12in 0;
  }
  body.printing-bingo #bingo-print-view .bingo-cell {
    min-height: 1.55in;
    border: 1.6pt solid #222;
    border-radius: 0.08in;
    background: #fff !important;
    color: #111 !important;
    font-size: 14pt;
    font-weight: 650;
    padding: 0.12in;
  }
  body.printing-bingo #bingo-print-view .bingo-note {
    color: #333;
    font-size: 11pt;
    margin: 0.08in 0 0;
  }
  body.printing-bingo .print-hide { display: none !important; }
  .night-sheet-toolbar { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden; }
  .night-sheet {
    padding: 0;
    font-size: 16pt;
    line-height: 1.22;
    min-height: 9.92in;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .night-sheet h1 { font-size: 30pt; line-height: 1.05; margin: 0.02in 0 0.05in; }
  .night-sheet h2 { font-size: 10.5pt; margin: 0 0 0.05in; padding-bottom: 0.03in; letter-spacing: 0.14em; }
  .ns-head { padding: 0.04in 0 0.07in; }
  .ns-wordmark { font-size: 9.5pt; margin: 0.04in 0 0.05in; }
  .ns-mark { width: 0.22in; height: 0.22in; }
  .ns-lede { font-size: 10pt; }
  .ns-sub { font-size: 13pt; }
  .ns-sec { margin: 0; }
  .ns-sec-icon { width: 0.2in; height: 0.2in; }
  .ns-pass {
    grid-template-columns: 1.3in 0.68in minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 0.14in;
    row-gap: 0;
    margin: 0 0 0.035in;
    align-items: center;
  }
  .ns-pass-mid,
  .ns-bright { grid-column: auto; grid-row: auto; }
  .ns-time { font-size: 20pt; font-weight: 700; white-space: nowrap; }
  .ns-clock { white-space: nowrap; }
  .ns-pass-name { font-size: 16pt; margin: 0 0 0.015in; }
  .ns-look, .ns-bright { font-size: 14pt; line-height: 1.2; margin: 0; }
  .ns-bright { grid-column: auto; }
  .ns-arrow { width: 0.64in; height: 0.64in; }
  .ns-deg { font-size: 10pt; }
  .ns-moon { grid-template-columns: 0.56in 1fr; gap: 0.12in; }
  .ns-moon-glyph { width: 0.52in; height: 0.52in; }
  .ns-moon-phase { font-size: 18pt; margin: 0 0 0.02in; }
  .ns-planets { gap: 0.028in 0.16in; }
  .ns-planets li { grid-template-columns: 1.15in 1fr; gap: 0.14in; }
  .ns-qr-svg { width: 1.1in; height: 1.1in; }
  .ns-qr-caption { font-size: 7.5pt; margin: 0.04in 0 0; }
  .ns-motto { font-size: 16pt; margin: 0 0 0.04in; }
  .ns-foot { margin-top: 0; padding-top: 0.08in; align-items: center; }
  .ns-sec > p, .ns-list li, .ns-empty, .ns-more, .ns-site,
  .ns-moon-times, .ns-planet-when { margin: 0 0 0.03in; }
  .night-sheet.ns-compact { font-size: 14.5pt; }
  .night-sheet.ns-compact h1 { font-size: 26pt; }
  .night-sheet.ns-compact h2 { font-size: 10pt; }
  .night-sheet.ns-compact .ns-time { font-size: 18pt; }
  .night-sheet.ns-compact .ns-arrow { width: 0.72in; height: 0.72in; }
  .night-sheet.ns-compact .ns-pass { grid-template-columns: 1.2in 0.7in minmax(0, 1.2fr) minmax(0, 1fr); margin: 0 0 0.05in; }
  .night-sheet.ns-compact .ns-qr-svg { width: 1in; height: 1in; }
  .night-sheet.ns-compact .ns-moon-glyph { width: 0.5in; height: 0.5in; }
  .night-sheet.ns-kid {
    font-size: 16pt;
    height: 9.92in;
    min-height: 9.92in;
    max-height: 9.92in;
    overflow: hidden;
    justify-content: space-between;
  }
  .night-sheet.ns-kid .ns-foot { margin-top: 0; padding-top: 0.08in; flex: 0 0 auto; }
  .night-sheet.ns-kid .ns-qr-svg { width: 0.95in; height: 0.95in; }
  .night-sheet.ns-kid h1 { font-size: 26pt; }
  .night-sheet.ns-kid .ns-look { font-size: 15pt; }
  .night-sheet.ns-kid .ns-pass {
    grid-template-columns: 1.3in 0.64in minmax(0, 1fr);
    margin: 0 0 0.03in;
  }
  .night-sheet.ns-kid .ns-pass-mid { grid-column: auto; }
  .night-sheet.ns-kid .ns-check-sec { margin-top: 0; flex: 0 0 auto; }
  .night-sheet.ns-kid .ns-color-sec {
    margin-top: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    break-inside: auto;
    page-break-inside: auto;
  }
  .night-sheet.ns-kid .ns-color-box {
    position: relative;
    flex: 1 1 auto;
    height: 0;
    min-height: 1.05in;
    padding: 0;
    border-width: 1.7pt;
    overflow: hidden;
  }
  .night-sheet.ns-kid .ns-coloring {
    position: absolute;
    top: 0.06in;
    left: 0.1in;
    width: calc(100% - 0.2in);
    height: calc(100% - 0.12in);
    min-height: 0;
    max-height: none;
  }
  .night-sheet.ns-kid .ns-check li { font-size: 16pt; margin: 0.05in 0; padding-left: 0.38in; }
  .night-sheet.ns-kid .ns-check li::before { width: 0.24in; height: 0.24in; top: 0.04in; border-width: 1.7pt; }
  .night-sheet.ns-kid .ns-kid-safe { font-size: 12pt; margin: 0.06in 0 0; flex: 0 0 auto; }
  .night-sheet.ns-kid.ns-compact { font-size: 15pt; }
  .night-sheet.ns-kid.ns-compact h1 { font-size: 24pt; }
  .night-sheet.ns-kid.ns-compact .ns-color-sec { min-height: 0; }
  .night-sheet.ns-kid.ns-compact .ns-color-box { min-height: 0.95in; }
  .night-sheet.ns-kid.ns-compact .ns-check li { font-size: 15pt; }
}

