/* ==========================================================================
   Mwanga wa Elimu — Luminary Map component
   Namespaced under .mwe-lmap. No background colour on the section itself:
   it sits on your #79D0CF section. Poppins only.
   ========================================================================== */
.mwe-lmap {
  --mwe-navy: #123262;
  --mwe-teal: #79D0CF;
  --mwe-white: #FFFFFF;
  --mwe-gold: #F6E69C;
  --mwe-soft: #D6E4F0;
  --mwe-muted: #A9BED6;
  --mwe-ink: #123262;
  color: var(--mwe-ink);
  display: flex;
  flex-direction: column;
  gap: 28px;
  scroll-margin-top: 50px;
}

.mwe-lmap *,
.mwe-lmap *::before,
.mwe-lmap *::after {
  box-sizing: border-box;
}

.mwe-lmap [hidden] {
  display: none !important;
}

.mwe-lmap__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.mwe-lmap__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mwe-lmap__title {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--mwe-ink);
}

.mwe-lmap__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.mwe-lmap__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 4px;
  background: var(--mwe-navy);
  color: var(--mwe-white);
}

.mwe-lmap__stat b {
  font-size: 22px;
  line-height: 1;
}

.mwe-lmap__stat span {
  font-size: 13px;
  color: var(--mwe-soft);
}

.mwe-lmap__panel {
  background: var(--mwe-navy);
  color: var(--mwe-white);
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  box-shadow: 0 40px 80px -40px rgba(18, 50, 98, .7);
}

.mwe-lmap__mapcol {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border-right: 1px solid rgba(121, 208, 207, .2);
  min-width: 0;
}

.mwe-lmap__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mwe-lmap__seg {
  display: flex;
  padding: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
}

body[data-button-style*="slightly_rounded"] .mwe-lmap__seg button {
  border-radius: 4px !important;
}

.mwe-lmap__seg button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--mwe-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mwe-lmap__seg button[aria-pressed="true"] {
  background: var(--mwe-teal);
  color: var(--mwe-navy);
}

.mwe-lmap__hint {
  font-size: 13px;
  color: var(--mwe-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mwe-lmap__hint i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mwe-teal);
  display: inline-block;
}

.mwe-lmap__hint i+i {
  width: 18px;
  height: 18px;
}

.mwe-lmap__map {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.mwe-lmap__map[data-view="africa"] {
  max-width: 560px;
}

.mwe-lmap__map svg {
  display: block;
  width: 100%;
  height: auto;
}

body[data-button-style*="slightly_rounded"] button.mwe-lmap__bub {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  line-height: 1 !important;
  border: 2px solid var(--mwe-navy);
  border-radius: 50% !important;
  background: var(--mwe-teal);
  color: var(--mwe-navy);
  font: inherit;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(121, 208, 207, .25);
  transition: transform .2s, background .2s, box-shadow .2s;
}

.mwe-lmap__bub:hover,
.mwe-lmap__bub:focus-visible {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 5;
  outline: none;
  box-shadow: 0 0 0 4px var(--mwe-white);
}

.mwe-lmap__bub.is-on {
  background: var(--mwe-white);
  z-index: 6;
  box-shadow: 0 0 0 4px var(--mwe-gold), 0 0 24px rgba(246, 230, 156, .7);
}

.mwe-lmap__bub::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(121, 208, 207, .6);
  animation: mwe-lmap-ping 3s ease-out infinite;
  animation-delay: var(--d, 0s);
  pointer-events: none;
}

.mwe-lmap__zoom {
  position: absolute;
  left: 34%;
  bottom: 4%;
  z-index: 7;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--mwe-white);
  color: var(--mwe-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
}

.mwe-lmap__zoom:hover {
  background: var(--mwe-teal);
}

.mwe-lmap__tip {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--mwe-white);
  color: var(--mwe-navy);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .15s;
}

.mwe-lmap__tip.is-on {
  opacity: 1;
}

.mwe-lmap__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-button-style*="slightly_rounded"] .mwe-lmap__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 6px;
  border-radius: 4px !important;
  border: 1px solid rgba(121, 208, 207, .35);
  background: rgba(255, 255, 255, .05);
  color: var(--mwe-white);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mwe-lmap__chip b {
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--mwe-teal);
  color: var(--mwe-navy);
  font-size: 12px;
  display: grid;
  place-items: center;
}

.mwe-lmap__chip:hover,
.mwe-lmap__chip.is-on {
  border-color: var(--mwe-teal);
  background: rgba(121, 208, 207, .16);
}

.mwe-lmap__also {
  font-size: 12px;
  color: var(--mwe-muted);
}

.mwe-lmap__side {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-height: 600px;
  scroll-margin-top: 50px;
}

.mwe-lmap__side h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  color: var(--mwe-white);
}

.mwe-lmap__side p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--mwe-soft);
}

.mwe-lmap__people {
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(121, 208, 207, .4) transparent;
}

.mwe-lmap__person {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}

.mwe-lmap__tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--mwe-gold);
  color: var(--mwe-navy);
}

.mwe-lmap__tag--fou {
  background: var(--mwe-white);
}

.mwe-lmap__person strong {
  display: block;
  font-size: 15px;
}

.mwe-lmap__person span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mwe-muted);
}

.mwe-lmap__person q {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mwe-soft);
  quotes: '“' '”';
}

.mwe-lmap__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  border: 0;
  background: var(--mwe-teal);
  color: var(--mwe-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.mwe-lmap__btn--ghost {
  background: transparent;
  color: var(--mwe-white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
}

.mwe-lmap button:focus-visible,
.mwe-lmap a:focus-visible {
  outline: 3px solid var(--mwe-white);
  outline-offset: 2px;
}

.mwe-lmap__status {
  padding: 40px;
  text-align: center;
  color: var(--mwe-soft);
}

@keyframes mwe-lmap-ping {
  0% {
    transform: scale(.8);
    opacity: .9;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mwe-lmap__bub::after {
    animation: none;
    opacity: 0;
  }

  .mwe-lmap__bub,
  .mwe-lmap__tip {
    transition: none;
  }
}

@media (max-width: 980px) {
  .mwe-lmap__panel {
    grid-template-columns: 1fr;
  }

  .mwe-lmap__mapcol {
    border-right: 0;
    border-bottom: 1px solid rgba(121, 208, 207, .2);
    padding: 16px;
  }

  .mwe-lmap__side {
    max-height: none;
  }
}