/* Sticky, non-dismissable ethics banner above the Material header. */
.cvs-ethics-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff3cd;
  color: #664d03;
  border-bottom: 1px solid #ffecb5;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.4;
}

[data-md-color-scheme="slate"] .cvs-ethics-banner {
  background: #3e3a1f;
  color: #ffe69c;
  border-bottom: 1px solid #5a531f;
}

/* "In review" badge for Phase 1b pages */
.cvs-review-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #ff8c00;
  color: white;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

/* MapLibre popups: texte foncé sur fond blanc, indépendamment du schéma Material
   (sinon --md-typeset-color hérite en gris clair et rend les popups illisibles). */
.maplibregl-popup-content {
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.4;
}
.maplibregl-popup-content code {
  color: #0a0a0a;
  background: #f1f3f5;
  padding: 0 0.25em;
  border-radius: 3px;
}
.maplibregl-popup-content strong {
  color: #000;
}
.maplibregl-popup-content small {
  color: #555;
}
.maplibregl-popup-tip {
  border-top-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}
.civvec-map-tooltip .maplibregl-popup-content {
  background: rgba(255, 255, 255, 0.96);
  color: #1a1a1a;
  font-size: 0.85rem;
}

/* Bandeau contextuel du mode « Champ continu » (entre les sélecteurs et la
   carte). Les fonds pastel sont fixés inline en JS ; on épingle ici une
   couleur de texte foncée pour que le contraste reste lisible aussi en
   thème sombre (sinon --md-typeset-color hérite en gris clair). */
#civvec-continuous-mode-banner,
#civvec-continuous-mode-banner strong,
#civvec-continuous-mode-banner em,
#civvec-continuous-mode-banner small,
#civvec-continuous-mode-banner li,
#civvec-continuous-mode-banner th,
#civvec-continuous-mode-banner td {
  color: #1a1a1a;
}
#civvec-continuous-mode-banner small {
  color: #555;
}
