/* Gulf of Mexico Loop Current animation — embeddable styling */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #FFFFFF; /* white ocean — the basemap has no ocean polygon */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  cursor: default;
}
#map:active { cursor: default; }

/* Panning is disabled (map.dragging.disable() in app.js), so suppress the
   grab/grabbing "hand" cursor Leaflet would otherwise paint on its draggable
   container and panes. Without these overrides Leaflet's own leaflet.css still
   shows the grab hand even though dragging does nothing. */
.leaflet-grab,
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-grabbing {
  cursor: default;
}

/* The map container's background is the ocean (no ocean polygon); Natural Earth
   land renders over it and the current canvas over that. */
.leaflet-container { background: #FFFFFF; }

/* ---- Title overlay ----
   The headline and subtitle float directly on the map — no card, background
   fill, border, or shadow box behind them (news-graphic style). The map is
   light (white ocean, grayish-blue land), so the text is dark; a soft white
   text-shadow halo keeps it legible where colorful particles flow beneath. */
.title-card {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 500;
  max-width: min(58%, 460px);
  pointer-events: none;
}
.title-card h1 {
  margin: 0 0 5px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.1px;
  color: #0b2038;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85), 0 0 12px rgba(255, 255, 255, 0.7);
}
.title-card p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  color: #294056;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.75);
}

/* ---- Legend / color scale ---- */
.legend {
  position: absolute;
  left: 14px;
  bottom: 22px;
  z-index: 500;
  padding: 8px 10px 6px;
  border-radius: 8px;
  color: #eaf4ff;
  background: rgba(8, 22, 38, 0.72);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.legend .bar {
  width: 180px;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(to right,
    #1d4e89 0%, #1f7fb0 18%, #1aa0a0 34%, #3fb56b 48%,
    #9ccb3b 60%, #e8d52f 72%, #f5a623 84%, #f2682c 93%, #9e1b1b 100%);
}
.legend .labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #b9d2ea;
  margin-top: 3px;
}
.legend .caption {
  font-size: 10.5px;
  color: #8fb0cf;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Tidy Leaflet attribution/zoom for an article embed */
.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(8, 22, 38, 0.6) !important;
  color: #9db8d2 !important;
}
.leaflet-control-attribution a { color: #cfe3f7 !important; }
.leaflet-bar a {
  background: rgba(8, 22, 38, 0.85);
  color: #eaf4ff;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.leaflet-bar a:hover { background: rgba(20, 44, 70, 0.95); }

@media (max-width: 520px) {
  .title-card { max-width: 82%; }
  .title-card h1 { font-size: 20px; }
  .title-card p { font-size: 12px; }
  .legend .bar { width: 130px; }
}
