/* ==========================================================================
   moon-status-widget — standalone styles
   Self-contained: no external fonts, no dependency on any host theme.
   Override the --msw-* custom properties to match your own site's colours.
   ========================================================================== */

.moon-status-widget{
  --msw-accent:#4a90e2;
  --msw-ink:#1f2733;
  --msw-muted:#66748c;
  --msw-border:#e6e9ef;
  --msw-card:#ffffff;
  --msw-above:#2e7d32;
  --msw-below:#b3541e;

  max-width:560px;
  margin:1.5rem 0 2rem;
  padding:20px 24px;
  background:var(--msw-card);
  border:1px solid var(--msw-border);
  border-radius:8px;
  box-shadow:0 1px 2px rgba(20,30,50,.04), 0 10px 30px rgba(20,30,50,.06);
  color:var(--msw-ink);
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height:1.5;
}
.moon-status-widget, .moon-status-widget *{ box-sizing:border-box; }

.moon-status-widget h3{
  margin:0 0 16px;
  font-size:1.2rem;
  font-weight:700;
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.moon-status-widget .msw-grid-tag{
  font-weight:400;
  color:var(--msw-muted);
  font-size:.85rem;
}

.moon-status-widget .msw-grid{
  display:flex;
  gap:20px;
  align-items:flex-start;
}
.moon-status-widget .msw-icon{
  font-size:4rem;
  line-height:1;
  flex-shrink:0;
}
.moon-status-widget .msw-details{
  flex:1 1 auto;
  min-width:0;
}
.moon-status-widget .msw-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:5px 0;
  border-bottom:1px solid var(--msw-border);
  font-size:.95rem;
}
.moon-status-widget .msw-row:last-child{ border-bottom:none; }
.moon-status-widget .msw-label{ color:var(--msw-muted); font-weight:600; }
.moon-status-widget .msw-value{ text-align:right; }
.moon-status-widget .msw-value.msw-below{ color:var(--msw-below); }
.moon-status-widget .msw-value.msw-above{ color:var(--msw-above); font-weight:600; }

.moon-status-widget .msw-updated{
  margin-top:10px;
  font-size:.75rem;
  color:#98a2b3;
  text-align:right;
}
.moon-status-widget .msw-error{
  margin:0;
  color:var(--msw-below);
  font-size:.9rem;
}

@media (max-width:480px){
  .moon-status-widget .msw-grid{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .moon-status-widget .msw-details{ width:100%; }
}

@media (prefers-color-scheme:dark){
  .moon-status-widget{
    --msw-ink:#e6e9ef;
    --msw-muted:#9aa6bd;
    --msw-border:#2a3240;
    --msw-card:#161b24;
    --msw-above:#66bb6a;
    --msw-below:#e08a4b;
    box-shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}
