/* About — Our reach choropleth (strict one-viewport snap; news dock aware) */
body.gal-about-page {
  --gal-about-reach-map-empty: #d4cfc3;
  --gal-about-reach-map-low: #4f9a62;
  --gal-about-reach-map-mid: #2d6b47;
  --gal-about-reach-map-high: #0f2d1f;
  --gal-about-reach-map-stroke: #9a9284;
}

.gal-about-slide--reach {
  background: var(--gal-parchment);
}

#gal-slide-reach.acc-slide--section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: var(--gal-about-visible-h, var(--acc-scroll-snap-h, 100%));
  max-height: var(--gal-about-visible-h, var(--acc-scroll-snap-h, 100%));
  min-height: var(--gal-about-visible-h, var(--acc-scroll-snap-h, 100%));
  overflow: hidden;
  padding-top: clamp(0.5rem, 1vh, 0.85rem) !important;
  padding-bottom: clamp(0.5rem, 1vh, 0.85rem) !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.acc-scroll-main #gal-slide-reach.acc-slide--section .gal-about-reach-panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gal-about-reach-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.gal-about-reach-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.6vh, 0.45rem);
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  overflow: hidden;
}

.gal-about-reach-header {
  flex: 0 0 auto;
}

.gal-about-reach-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gal-midnight);
}

.gal-about-reach-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(11.5rem, 15rem);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(0.45rem, 0.85vw, 0.7rem);
  align-items: start;
  overflow: hidden;
}

.gal-about-reach-stat {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 3.75rem;
  padding: clamp(0.5rem, 0.9vh, 0.65rem) clamp(0.55rem, 0.85vw, 0.7rem);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--gal-sage) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--gal-sage) 35%, transparent);
}

.gal-about-reach-stat-value {
  display: block;
  width: 100%;
  font-size: clamp(0.95rem, 16cqi, 1.55rem);
  font-weight: 700;
  color: var(--gal-midnight);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.gal-about-reach-stat-label {
  display: block;
  margin-top: 0.22rem;
  font-size: clamp(0.6875rem, 1.15vw, 0.78rem);
  line-height: 1.3;
  color: var(--gal-midnight-soft, #3a4552);
}

.gal-about-reach-summary {
  flex: 0 0 auto;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.gal-about-reach-map-wrap {
  position: relative;
  min-height: 0;
  max-height: 100%;
  height: 100%;
  align-self: stretch;
  border: 1px solid color-mix(in srgb, var(--gal-midnight) 12%, transparent);
  border-radius: 0.75rem;
  background: #ebe6da;
  padding: 0.35rem;
  overflow: hidden;
  cursor: default;
}

.gal-about-reach-map-fallback {
  position: absolute;
  inset: 0.35rem;
  width: calc(100% - 0.7rem);
  height: calc(100% - 0.7rem);
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.gal-about-reach-map-fallback[hidden] {
  display: none;
}

.gal-about-reach-map-wrap--hydrating .gal-about-reach-country {
  transition: none;
}

.gal-about-reach-stat--skeleton .gal-about-reach-stat-value {
  opacity: 0.55;
}

.gal-about-reach-country-item--skeleton {
  opacity: 0.55;
}

.gal-about-reach-newest {
  pointer-events: none;
}

#gal-about-reach-map {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  pointer-events: none;
}

.gal-about-reach-country {
  pointer-events: all;
}

.gal-about-reach-newest-dot {
  fill: #c62828;
  stroke: #fff;
  stroke-width: 1.25;
}

.gal-about-reach-newest-pulse {
  fill: #c62828;
  opacity: 0.45;
  transform-box: fill-box;
  transform-origin: center;
  animation: galAboutReachNewestPulse 1.6s ease-out infinite;
}

.gal-about-reach-newest-pulse--inner {
  animation-delay: 0.35s;
}

.gal-about-reach-newest-label {
  fill: var(--gal-midnight);
  font-weight: 600;
  paint-order: stroke;
  stroke: color-mix(in srgb, var(--gal-parchment) 92%, #fff);
  stroke-width: 3px;
  stroke-linejoin: round;
}

@keyframes galAboutReachNewestPulse {
  0% {
    transform: scale(0.65);
    opacity: 0.65;
  }
  70%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gal-about-reach-newest-pulse {
    animation: none;
    opacity: 0.28;
    transform: scale(1.15);
  }
}

.gal-about-reach-country {
  transition: fill 0.2s ease;
}

.gal-about-reach-country:hover,
.gal-about-reach-country:focus {
  filter: brightness(1.08) saturate(1.1);
}

#gal-about-reach-tooltip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  background: var(--gal-midnight);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.3;
  max-width: 14rem;
}

.gal-about-reach-side {
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1vh, 0.75rem);
  overflow: hidden;
  align-self: stretch;
  height: 100%;
}

.gal-about-reach-countries-block {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gal-about-reach-countries-title {
  flex: 0 0 auto;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gal-midnight);
}

.gal-about-reach-country-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.gal-about-reach-country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.gal-about-reach-country-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  font-size: clamp(0.78rem, 1.05vw, 0.875rem);
  line-height: 1.3;
  padding: 0.28rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gal-midnight) 8%, transparent);
}

.gal-about-reach-country-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gal-about-reach-country-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gal-midnight);
  text-align: right;
  white-space: nowrap;
}

.gal-about-reach-status {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gal-midnight-soft, #3a4552);
}

.gal-about-reach-status--progress::after {
  content: "…";
  animation: galAboutReachEllipsis 1.2s steps(4, end) infinite;
}

@keyframes galAboutReachEllipsis {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

.gal-about-reach-status--err {
  color: #8b2e2e;
}

@media (max-width: 959px) {
  .gal-about-reach-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .gal-about-reach-side {
    max-height: 11rem;
  }
}

@media (max-width: 719px) {
  #gal-slide-reach.acc-slide--section {
    height: auto;
    max-height: none;
    min-height: auto;
    overflow: visible;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .acc-scroll-main #gal-slide-reach.acc-slide--section .gal-about-reach-panel {
    max-height: none;
    overflow: visible;
  }

  .gal-about-reach-shell {
    max-height: none;
    overflow: visible;
  }

  .gal-about-reach-body {
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .gal-about-reach-map-wrap {
    height: auto;
    max-height: min(52vw, 240px);
  }

  .gal-about-reach-side {
    max-height: none;
  }
}
