.nws-report-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border: 1px solid #e8e8ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(40, 40, 51, 0.06);
  color: #2a2a33;
  font-family: "Public Sans", system-ui, sans-serif;
  transition: box-shadow 0.15s, transform 0.15s;
}
.nws-report-card[hidden] { display: none !important; }
.nws-report-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.nws-report-card__metric { display: flex; align-items: baseline; gap: 5px; }
.nws-report-card__value {
  color: #aab0b8;
  font-size: 46px;
  font-weight: 900;
  line-height: 0.85;
}
.nws-report-card__value--hail { color: #0f9d58; }
.nws-report-card__value--wind { color: #1277e1; }
.nws-report-card__value--tornado { color: #e8590c; }
.nws-report-card__value--unknown { color: #9a9aa2; }
.nws-report-card__unit { color: #6e6e76; font-size: 17px; font-weight: 700; }
.nws-report-card__time {
  padding-top: 4px;
  color: #9a9aa2;
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
}
.nws-report-card__title,
.nws-report-card__county {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nws-report-card__title { margin-top: 14px; font-size: 16px; font-weight: 700; }
.nws-report-card__county { margin-top: 3px; color: #6e6e76; font-size: 13.5px; }
.nws-report-card__description { height: 72px; margin-top: 14px; overflow: hidden; }
.nws-report-card__description-text {
  display: -webkit-box;
  overflow: hidden;
  color: #6e6e76;
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.nws-report-card__description-toggle {
  min-height: 20px;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1277e1;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.nws-report-card__spacer { flex: 1 1 0; }
.nws-report-card__source {
  min-height: 48px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #eef0f2;
  color: #9a9aa2;
  font-size: 12px;
  line-height: 1.4;
}

/* Keep MapLibre's composited canvas clipped after map initialization/resizes. */
.nws-report-map-card {
  overflow: hidden;
  border-radius: 13px;
  isolation: isolate;
  transform: translateZ(0);
}

/* No isolation/transform here: they would trap the report popups inside the
   map's own stacking context, below the floating "Report type" legend. */
.nws-report-map {
  overflow: hidden;
  border-radius: 13px;
}

/* Open report popups must sit above the "Report type" legend (z-index: 2). */
.nws-report-map .maplibregl-popup {
  z-index: 3;
}

.nws-report-map.maplibregl-map,
.nws-report-map .maplibregl-canvas-container,
.nws-report-map .maplibregl-canvas {
  border-radius: inherit;
}
