/* Live weather provenance chip — values come from the public NWS boundary.
   It stays small enough to coexist with the navigation and vehicle HUD. */
#weather-chip {
  position: fixed;
  z-index: 520;
  top: 66px;
  right: 18px;
  min-width: 188px;
  max-width: min(310px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  box-sizing: border-box;
  padding: 8px 11px;
  border: 1px solid rgba(123, 219, 255, 0.25);
  border-radius: 9px;
  background: rgba(5, 14, 25, 0.78);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
  color: #eaf8ff;
  font-family: var(--font-data, Rajdhani, sans-serif);
  pointer-events: none;
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}
#weather-chip[data-state="forecast"] { border-color: rgba(255, 202, 94, 0.32); }
#weather-chip[data-state="fallback"],
#weather-chip[data-state="unavailable"] { border-color: rgba(173, 187, 202, 0.23); }
.weather-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48e1a8;
  box-shadow: 0 0 10px rgba(72, 225, 168, 0.8);
}
#weather-chip[data-state="forecast"] .weather-chip-dot { background: #ffcf66; box-shadow: 0 0 10px rgba(255, 207, 102, 0.75); }
#weather-chip[data-state="fallback"] .weather-chip-dot,
#weather-chip[data-state="unavailable"] .weather-chip-dot { background: #9caabd; box-shadow: none; }
#weather-chip[data-state="loading"] .weather-chip-dot { background: #5ac9ff; animation: weather-sync-pulse 1.1s ease-in-out infinite; }
.weather-chip-title,
.weather-chip-detail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-chip-title { font-family: var(--font-d, Orbitron, sans-serif); font-size: 8px; font-weight: 700; letter-spacing: 1.15px; color: #dff6ff; }
.weather-chip-detail { margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .35px; color: rgba(220, 239, 250, .72); }
@keyframes weather-sync-pulse { 50% { opacity: .32; transform: scale(.72); } }
@media (max-width: 680px) {
  #weather-chip { top: 100px; right: 10px; min-width: 164px; padding: 6px 8px; }
  .weather-chip-detail { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { #weather-chip[data-state="loading"] .weather-chip-dot { animation: none; } }
