@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

body {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.4rem;
  color: #ffffff;
  width: 100%;
  text-align: left;
}

.img-fluid {
  border-radius: 24px;
}

/* cr blocks */

.cr-narrative,
.cr-narrative .progress-block {
  max-width: 1200px;
  font-size: 1.4rem;
  text-align: left;
}

.cr-section img {
  width: 100vw;
  max-width: 100vw;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  border-radius: 0;
}

/* non cr blocks */

/* make default dark non-CR blocks full width */
.non-cr-block {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  background: #002B36;
  color: #fff;
  box-sizing: border-box;
  padding-block: 5rem;
  padding-inline: clamp(4rem, 15vw, 12rem);
  line-height: 1.5;
  text-align: justify;
}

.non-cr-block.white-bg {
  background: #fff;
  color: #000;
  min-height: 100vh;
}

.non-cr-block h1,
.non-cr-block h2,
.non-cr-block h3 {
  text-align: center;
}


/* figs */

.figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.figure-caption {
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.8;
  margin-top: 0.6rem;
  line-height: 1.3;
  text-align: center;
}

.figure--medium img {
  max-width: 760px;
}

.figure--wide {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.figure--wide img {
  max-width: 1000px;
}


/* map section */

.map-section {
  position: relative;
  min-height: 650vh;
  background: transparent;
}

.map-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
}

.map-map-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  pointer-events: auto;
}

.map-map-wrap .leaflet,
.map-map-wrap .leaflet-container,
.map-map-wrap .html-widget {
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: auto;
}

.map-narrative {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  margin: -100vh 0 0 0;
  padding: 15vh 0 120vh 0;
  pointer-events: none;
}

.map-block {
  background: rgba(255,255,255,.92);
  color: #000;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 55vh 0 55vh 2rem;
  max-width: 520px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  pointer-events: auto;
}

#map-sentinel {
  height: 100vh;
  margin: 0;
  padding: 0;
  background: transparent;
}

.leaflet-control-container {
  pointer-events: auto;
  z-index: 9999;
}

/* hero landing */
.story-hero {
  position: relative;
  width: 100vw;
  height: 92vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-image: url("images/img2.png"); /* ← use your story image */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.story-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.story-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 2rem;
  text-align: center;
}

.story-hero h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.05;
  font-weight: 400;
  margin: 2rem 0 1.2rem;
}

.story-hero-meta {
  font-size: 1.05rem;
  opacity: 0.92;
}

.story-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  font-size: 1rem;
  font-weight: 700;
}

.story-tags span:not(:last-child)::after {
  content: ",";
}


.story-hero-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin: 0.75rem 0 0.5rem;
}

.story-hero-logos img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.map-map-wrap img,
.leaflet-container img,
.leaflet-control img {
  max-width: none !important;
}

.leaflet-pane,
.leaflet-control-container {
  z-index: 500 !important;
}

.map-narrative {
  z-index: 900;
}