body {
  padding-bottom: 0;
  overflow-x: hidden;
}
/* scrolly */
.sticky-intro-mask {
  position: sticky;
  top: 0;
  background-color: var(--white);
  z-index: 15;
  padding: 1.5rem 0;
  margin-bottom: 0.1rem;
}

.adaptation-scrolly-stacked {
  position: relative;
  margin-top: 0rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* mask and layout */
.adaptation-chart-background {
  background-color: var(--white, #ffffff);
  position: sticky;
  top: 50vh;
  height: 50vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

#adaptation-chart {
  width: 100%;
  pointer-events: auto;
}

.adaptation-text-overlay {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 25vh;
  padding-top: 0;
  margin-top: 0;
}

.curve-step-card {
  padding: 1rem;
  pointer-events: auto;
  max-width: 30rem;
  margin-bottom: 20vh;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.curve-step-card:last-child {
  margin-bottom: 15rem;
}

.curve-step-card.is-active {
  opacity: 1;
  transform: translateY(0);
}

.curve-step-card h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.chart-highlight {
  fill: var(--lightblue);
  opacity: 0;
  transition: x 0.5s ease, width 0.5s ease, opacity 0.5s ease;
}

/* Tooltip styling */
.chart-tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--blue);
  padding: 10px;
  pointer-events: none; /* Let mouse pass through */
  opacity: 0;
  color: var(--blue);
  font-family: body;
  font-size: 0.85rem;
  z-index: 1000;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 2px 0;
}

/* MAP */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: 1rem;
}

.ranking-column h3 {
  font-family: H2;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1rem;
  text-align: center;
}

.map-ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 60vh;
  overflow-y: auto;
  border-top: 2px solid var(--lightblue);
  border-bottom: 2px solid var(--lightblue);
}

.map-ranking-list li {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(96, 181, 255, 0.3);
  cursor: pointer;
  display: flex;
  /* justify-content: space-between; */
  gap: 0.5rem;
  text-align: left;
  font-family: body;
  font-size: 0.9rem;
  color: var(--blue);
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: left;
  border-right: 1px solid rgba(96, 181, 255, 0.3);
  border-left: 1px solid rgba(96, 181, 255, 0.3);
}

.map-ranking-list::-webkit-scrollbar {
  width: 6px;
}
.map-ranking-list::-webkit-scrollbar-thumb {
  background-color: rgba(96, 181, 255, 0.5);
  border-radius: 10px;
}

/* Hover effect */
.map-ranking-list li:hover,
.map-ranking-list li.highlighted {
  background-color: var(--brown);
  color: var(--white);
  font-weight: bold;
}
