/* ==========================================================================
   Nightwatcher app styles
   Everything lives under .nightwatcher-app so this file is safe to load on
   any page (front page, or a normal post via the [nightwatcher] shortcode)
   without touching body/html or anything outside the app's own container.
   ========================================================================== */

.nightwatcher-app {
  --nw-bg: #0b1026;
  --nw-panel: #141b3c;
  --nw-panel-alt: #1b2350;
  --nw-border: #2a3468;
  --nw-border-soft: #232c58;
  --nw-text: #e8e6f5;
  --nw-text-muted: #9098c4;
  --nw-text-faint: #5c6494;
  --nw-gold: #e8b84b;
  --nw-teal: #4fd1c5;
  --nw-violet: #7a6ff0;
  --nw-pink: #ff7a9c;
  --nw-orange: #f0975a;
  --nw-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --nw-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  box-sizing: border-box;
  font-family: var(--nw-font-body);
  color: var(--nw-text);
  background: var(--nw-bg);
  border-radius: 18px;
  padding: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.nightwatcher-app.nw-fullpage {
  border-radius: 0;
  min-height: 100vh;
  padding: 36px 20px 60px;
}

.nightwatcher-app *, .nightwatcher-app *::before, .nightwatcher-app *::after {
  box-sizing: inherit;
}

.nightwatcher-app a { color: var(--nw-teal); text-decoration: none; }
.nightwatcher-app a:hover, .nightwatcher-app a:focus-visible { text-decoration: underline; }

.nightwatcher-app :focus-visible {
  outline: 2px solid var(--nw-teal);
  outline-offset: 2px;
}

.nightwatcher-app button {
  font-family: inherit;
  cursor: pointer;
}

/* Subtle static starfield, sitting behind everything else via a negative
   z-index so it never intercepts clicks or covers real content. */
.nightwatcher-app .nw-starfield {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 340px 340px;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(232, 230, 245, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 65%, rgba(232, 230, 245, 0.32) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(232, 230, 245, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 82%, rgba(232, 230, 245, 0.28) 50%, transparent 51%),
    radial-gradient(1px 1px at 75% 35%, rgba(232, 230, 245, 0.42) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 68%, rgba(232, 230, 245, 0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 15% 92%, rgba(232, 230, 245, 0.26) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 8%, rgba(232, 230, 245, 0.38) 50%, transparent 51%);
}

.nightwatcher-app .nw-note {
  background: var(--nw-panel-alt);
  border: 1px solid var(--nw-border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--nw-text-muted);
  font-size: 13.5px;
}

/* -------------------------------------------------------------------- */
/* Header                                                                 */
/* -------------------------------------------------------------------- */
.nw-header { margin-bottom: 22px; max-width: 780px; }

.nw-brand-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.nw-brand-mark { width: 34px; height: 34px; flex: none; align-self: center; }
.nw-brand-mark svg { display: block; }
.nw-brand-name {
  font-family: var(--nw-font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--nw-text);
  margin: 0;
}
.nw-tagline {
  color: var(--nw-text-muted);
  font-size: 14px;
}

.nw-intro {
  color: var(--nw-text-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 560px;
  margin: 0;
}

/* -------------------------------------------------------------------- */
/* Search row and location row                                           */
/* -------------------------------------------------------------------- */
.nw-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.nw-search-wrap { position: relative; flex: 1 1 320px; min-width: 220px; }
.nw-search-input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--nw-text);
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: 10px;
  padding: 11px 14px;
}
.nw-search-input:focus { border-color: var(--nw-teal); }
.nw-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
}
.nw-search-result {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--nw-border-soft);
  padding: 10px 14px;
  color: var(--nw-text);
  font: inherit;
  font-size: 14px;
}
.nw-search-result:last-child { border-bottom: none; }
.nw-search-result:hover, .nw-search-result:focus-visible { background: var(--nw-panel-alt); }

.nw-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--nw-text);
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: 10px;
  padding: 11px 16px;
  white-space: nowrap;
}
.nw-btn:hover, .nw-btn:focus-visible { border-color: var(--nw-teal); color: var(--nw-teal); }

.nw-location-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--nw-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.nw-pin { width: 16px; height: 16px; flex: none; display: flex; }
.nw-location-row strong { color: var(--nw-text); font-weight: 600; }
.nw-bortle-pill {
  border: 1px solid var(--nw-border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  color: var(--nw-text-muted);
  margin-left: 4px;
}

/* -------------------------------------------------------------------- */
/* Sections, shared                                                       */
/* -------------------------------------------------------------------- */
.nw-section { margin-top: 30px; }
.nw-section-title {
  font-family: var(--nw-font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--nw-text-muted);
  margin-bottom: 12px;
}
/* Section headers nested inside the main detail card (night timeline, sky
   clarity, best time, what's visible, showers, ISS, comets) sit one tier
   below the standalone panel titles (one week outlook, sky brightness). */
.nw-detail .nw-section-title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--nw-text);
}
.nw-section-intro {
  color: var(--nw-text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 14px;
  max-width: 640px;
}

/* -------------------------------------------------------------------- */
/* Detail panel wrapper (holds the score card and every per night         */
/* section below it)                                                      */
/* -------------------------------------------------------------------- */
.nw-detail {
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: 16px;
  padding: 28px 30px 32px;
  margin-top: 30px;
  outline: none;
}
.nw-detail-empty { color: var(--nw-text-muted); font-size: 14px; }
.nw-detail-flash { animation: nw-flash 1.1s ease; }
@keyframes nw-flash {
  0% { box-shadow: 0 0 0 2px var(--nw-gold); }
  100% { box-shadow: 0 0 0 0 rgba(232, 184, 75, 0); }
}

/* -------------------------------------------------------------------- */
/* Score card                                                             */
/* -------------------------------------------------------------------- */
.nw-score-card-top {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.nw-ring-stack { position: relative; width: 128px; height: 128px; flex: none; }
.nw-score-ring-big { position: absolute; inset: 0; }
.nw-score-ring-big svg { display: block; }
.nw-score-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nw-score-ring-num {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
}
.nw-score-ring-den { color: var(--nw-text-muted); font-size: 11px; margin-top: 2px; }

.nw-score-headline-wrap { flex: 1 1 260px; min-width: 220px; }
.nw-score-date {
  color: var(--nw-text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.nw-score-headline {
  font-family: var(--nw-font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--nw-text);
}
.nw-detail-flags { display: inline-flex; gap: 6px; }
.nw-flag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 2px 9px;
}
.nw-flag-best { color: #241a05; background: var(--nw-gold); }

.nw-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--nw-border-soft);
}
.nw-stat-label { color: var(--nw-text-muted); font-size: 12px; margin-bottom: 2px; }
.nw-stat-label-hint {
  text-decoration: underline dotted var(--nw-text-faint);
  text-underline-offset: 3px;
  cursor: help;
}
.nw-stat-value { font-weight: 600; font-size: 16px; }

/* -------------------------------------------------------------------- */
/* Night timeline and moon phase                                         */
/* -------------------------------------------------------------------- */
.nw-moon-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.nw-moon-icon { width: 52px; height: 52px; flex: none; }
.nw-moon-icon svg, .nw-day-moon svg { width: 100%; height: 100%; display: block; }
.nw-moon-icon.nw-flip-south svg, .nw-day-moon.nw-flip-south svg { transform: scaleX(-1); }
.nw-moon-phase-name { font-weight: 600; font-size: 14px; }
.nw-moon-phase-pct { color: var(--nw-text-muted); font-size: 12.5px; }

.nw-timeline { display: flex; flex-direction: column; gap: 6px; }
.nw-timeline-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
}
.nw-timeline-time {
  color: var(--nw-text);
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nw-timeline-text { color: var(--nw-text-muted); }

/* -------------------------------------------------------------------- */
/* Sky clarity chart                                                     */
/* -------------------------------------------------------------------- */
.nw-chart-wrap { overflow-x: auto; padding-bottom: 4px; }
.nw-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-width: 460px;
  height: 92px;
}
.nw-chart-bar-col { flex: 1 1 0; min-width: 18px; height: 100%; display: flex; align-items: flex-end; }
.nw-chart-bar-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-end;
}
.nw-chart-bar { width: 100%; border-radius: 4px 4px 2px 2px; transition: opacity 0.15s ease; }
.nw-chart-bar-dark { background: rgba(79, 209, 197, 0.55); }
.nw-chart-bar-twilight { background: rgba(232, 230, 245, 0.12); }
.nw-chart-bar-best { background: var(--nw-gold); }
.nw-chart-bar-btn:hover .nw-chart-bar, .nw-chart-bar-btn:focus-visible .nw-chart-bar { opacity: 0.75; }
.nw-chart-moon-dot {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nw-violet);
}
.nw-chart-edge-labels {
  display: flex;
  justify-content: space-between;
  color: var(--nw-text-faint);
  font-size: 11px;
  margin-top: 8px;
  min-width: 460px;
}
.nw-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--nw-text-faint);
}
.nw-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.nw-legend-swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.nw-legend-best { background: var(--nw-gold); }
.nw-legend-moon-dot { background: var(--nw-violet); border-radius: 50%; width: 7px; height: 7px; }
.nw-legend-dark { background: rgba(79, 209, 197, 0.55); }
.nw-chart-help {
  color: var(--nw-text-faint);
  font-size: 12px;
  margin: 12px 0 0;
  min-height: 1.3em;
}
.nw-chart-help.nw-chart-help-active {
  color: var(--nw-text);
  font-weight: 600;
  font-size: 13px;
}

/* -------------------------------------------------------------------- */
/* Best time to photograph                                               */
/* -------------------------------------------------------------------- */
.nw-best-window {
  border-left: 3px solid var(--nw-gold);
  padding-left: 16px;
}
.nw-best-window-time {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--nw-gold);
  margin-bottom: 4px;
}
.nw-best-window-reason { color: var(--nw-text-muted); font-size: 13.5px; line-height: 1.5; }

/* -------------------------------------------------------------------- */
/* What's visible from here                                              */
/* -------------------------------------------------------------------- */
.nw-object-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.nw-object-group-title {
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--nw-text-muted);
  margin-bottom: 8px;
}
.nw-object-list { display: flex; flex-direction: column; gap: 0; }
.nw-object-item { border-bottom: 1px solid var(--nw-border-soft); padding: 6px 0; }
.nw-object-item:last-child { border-bottom: none; }
.nw-object-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 1px;
}
.nw-object-name { color: var(--nw-text); }
.nw-object-pos { color: var(--nw-teal); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.nw-object-desc { color: var(--nw-text-faint); font-size: 11.5px; margin-top: 1px; margin-bottom: 0; }
.nw-object-link { display: block; color: var(--nw-teal); font-size: 11px; margin-top: 3px; }
.nw-object-footnote { color: var(--nw-text-muted); font-size: 13px; margin-top: 18px; }

/* -------------------------------------------------------------------- */
/* Meteor showers                                                        */
/* -------------------------------------------------------------------- */
.nw-shower-card {
  background: var(--nw-panel-alt);
  border: 1px solid var(--nw-border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.nw-shower-card:last-child { margin-bottom: 0; }
.nw-shower-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.nw-peak-flag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #241a05;
  background: var(--nw-gold);
  border-radius: 999px;
  padding: 1px 7px;
}
.nw-shower-meta { color: var(--nw-text-muted); font-size: 12.5px; margin-top: 3px; }

/* -------------------------------------------------------------------- */
/* ISS passes                                                             */
/* -------------------------------------------------------------------- */
.nw-pass-card {
  background: var(--nw-panel-alt);
  border: 1px solid var(--nw-border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.nw-pass-card:last-child { margin-bottom: 0; }
.nw-pass-name {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nw-visible-flag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1f6f5c;
  background: #dff2ec;
  border-radius: 999px;
  padding: 1px 7px;
}
.nw-pass-meta { color: var(--nw-text-muted); font-size: 12.5px; margin-top: 2px; }
.nw-iss-note { color: var(--nw-text-faint); font-size: 12.5px; margin-top: 12px; }

/* -------------------------------------------------------------------- */
/* Comets                                                                 */
/* -------------------------------------------------------------------- */
.nw-comet-note { border-left: 3px solid var(--nw-orange); background: var(--nw-panel-alt); }

/* -------------------------------------------------------------------- */
/* One week outlook (calendar)                                           */
/* -------------------------------------------------------------------- */
.nw-outlook-section {
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: 16px;
  padding: 26px 28px 28px;
}
.nw-outlook-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.nw-outlook-head .nw-section-title { margin-bottom: 0; }
.nw-outlook-range { color: var(--nw-text); font-family: var(--nw-font-display); font-weight: 500; font-size: 17px; }
.nw-outlook-instructions { color: var(--nw-text-muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 20px; max-width: 640px; }
.nw-outlook-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--nw-text-faint);
}

.nw-calendar-wrap { overflow-x: auto; }
.nw-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 10px;
  min-width: 700px;
}

.nw-day {
  position: relative;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: 12px;
  padding: 10px 10px 12px;
  text-align: left;
  color: var(--nw-text);
  font: inherit;
  min-height: 128px;
  display: flex;
  flex-direction: column;
}
.nw-day-best { border-color: var(--nw-gold); }
.nw-day-selected { border-color: var(--nw-teal); box-shadow: 0 0 0 1px var(--nw-teal); }
.nw-day-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.nw-day-moon { width: 18px; height: 18px; flex: none; }
.nw-day-weekday {
  color: var(--nw-text-faint);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nw-day-datenum { color: var(--nw-text); font-weight: 600; font-size: 11.5px; margin-bottom: 2px; }
.nw-day-ring-stack { position: relative; width: 46px; height: 46px; margin: 2px auto 0; }
.nw-day-score-ring { position: absolute; inset: 0; }
.nw-day-score-ring svg { display: block; }
.nw-day-score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 13px;
}
.nw-day-cloud { color: var(--nw-text-muted); font-size: 10.5px; text-align: center; margin-top: auto; }
.nw-day-best-pill {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nw-gold);
  color: #241a05;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 2px 7px;
}
/* -------------------------------------------------------------------- */
/* Your sky brightness                                                   */
/* -------------------------------------------------------------------- */
.nw-bortle-section {
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: 16px;
  padding: 26px 28px 28px;
}
.nw-bortle-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.nw-select {
  font: inherit;
  font-size: 14px;
  color: var(--nw-text);
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 220px;
}
.nw-bortle-note { color: var(--nw-text-faint); font-size: 12.5px; margin: 0 0 20px; }
.nw-bortle-tip-box {
  border-left: 3px solid var(--nw-teal);
  background: var(--nw-panel-alt);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
}
.nw-bortle-tip-title { font-weight: 600; margin-bottom: 4px; }
.nw-bortle-tip-desc { color: var(--nw-text-muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 8px; }
.nw-bortle-tip-box p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.nw-bortle-tip-box p strong { color: var(--nw-gold); }

/* -------------------------------------------------------------------- */
/* Footer note inside the app                                            */
/* -------------------------------------------------------------------- */
.nw-app-footnote {
  margin-top: 30px;
  color: var(--nw-text-faint);
  font-size: 12.5px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */
@media (max-width: 560px) {
  .nightwatcher-app { padding: 20px 16px 48px; border-radius: 14px; }
  .nw-detail, .nw-outlook-section, .nw-bortle-section { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .nightwatcher-app * { transition: none !important; animation: none !important; }
}

/* -------------------------------------------------------------------- */
/* Print: force a clean light layout regardless of what the on screen     */
/* palette happens to be, and regardless of whether the browser's print   */
/* dialog has "background graphics" turned on.                            */
/* -------------------------------------------------------------------- */
@media print {
  .nightwatcher-app {
    --nw-bg: #ffffff;
    --nw-panel: #f4f5fb;
    --nw-panel-alt: #eceefa;
    --nw-border: #b9bedd;
    --nw-border-soft: #cfd3ec;
    --nw-text: #14162b;
    --nw-text-muted: #4a4f72;
    --nw-text-faint: #6b7093;
    --nw-gold: #8a5c00;
    --nw-teal: #0b6f66;
    --nw-violet: #4a3fd6;
    --nw-pink: #a3315a;
    --nw-orange: #a04f18;
    box-shadow: none !important;
  }
  .nightwatcher-app .nw-starfield { display: none !important; }
  .nightwatcher-app .nw-chart-bar-dark { background: rgba(11, 111, 102, 0.35) !important; }
  .nightwatcher-app .nw-chart-bar-twilight { background: rgba(20, 22, 43, 0.08) !important; }
  .nightwatcher-app a { text-decoration: underline !important; }
  .nightwatcher-app .nw-search-input,
  .nightwatcher-app .nw-search-results,
  .nightwatcher-app .nw-use-location-btn { display: none !important; }
}

/* -------------------------------------------------------------------- */
/* Solar system page: planet cards                                       */
/* -------------------------------------------------------------------- */
.nw-planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.nw-card {
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: 14px;
  padding: 18px 20px;
}
.nw-planet-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.nw-planet-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; }
.nw-planet-name { font-family: var(--nw-font-display); font-weight: 600; font-size: 17px; color: var(--nw-text); flex: 1; }
.nw-planet-mag { color: var(--nw-text-faint); font-size: 12.5px; }
.nw-planet-status { font-weight: 600; font-size: 15px; color: var(--nw-gold); margin-bottom: 4px; }
.nw-planet-detail { color: var(--nw-text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.nw-planet-brightness { color: var(--nw-teal); font-size: 12.5px; font-style: italic; }

@media print {
  .nw-planet-status { color: #8a5c00 !important; }
}
