.reach-map {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.35rem 1.35rem 1.15rem;
}

.reach-map__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.reach-map__head h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.reach-map__head .lede {
  margin: 0;
  font-size: 0.95rem;
  max-width: 36rem;
}

.reach-map__stat {
  min-width: 11rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid #e25a28;
  background: linear-gradient(135deg, #fff8f2, var(--canvas));
  position: relative;
  overflow: hidden;
}

.reach-map__stat--alive::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #2f9d63;
  box-shadow: 0 0 0 0 rgba(47, 157, 99, 0.55);
  animation: reachPulse 2.2s ease-out infinite;
}

@keyframes reachPulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 157, 99, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(47, 157, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 157, 99, 0); }
}

.reach-map__stat strong,
.reach-map__stat-value {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #c23b22;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.reach-map__stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--mute);
  max-width: 12rem;
}

.reach-map__stat-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--mute);
  line-height: 1.35;
  max-width: 12rem;
}

.reach-map__body {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 1.15rem;
  align-items: stretch;
}

.reach-map__canvas-wrap {
  border: 1px solid #6f879c;
  background: #4a6d88;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.reach-map__svg {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  border-radius: 1px;
}

.reach-map__country {
  transition: fill 0.18s ease, opacity 0.18s ease, stroke 0.18s ease, stroke-width 0.18s ease;
  cursor: default;
  vector-effect: non-scaling-stroke;
}

.reach-map__country.is-base {
  opacity: 0.92;
}

.reach-map__country[data-market] {
  cursor: pointer;
}

.reach-map__country.is-hot.lv5,
.reach-map__country.is-hot.lv4 {
  filter: var(--reach-glow);
}

.reach-map__country.is-hot:hover,
.reach-map__country.is-active {
  stroke: #fffdf8 !important;
  stroke-width: 1.35px !important;
  filter: brightness(1.08) saturate(1.12);
}

.reach-map__country.is-dim {
  opacity: 0.22;
}

.reach-map__country.is-base.is-dim {
  opacity: 0.18;
}

.reach-map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  font-size: 0.76rem;
  color: rgba(255, 248, 240, 0.88);
  padding: 0.15rem 0.35rem 0.35rem;
}

.reach-map__ramp {
  width: 7.5rem;
  height: 0.55rem;
  border-radius: 1px;
  background: linear-gradient(90deg, #f7d48a, #f08a2a, #e25a28, #c23b22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(15, 23, 36, 0.12);
}

.reach-map__ramp-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.reach-map__legend-gap {
  width: 0.4rem;
}

.reach-map__legend i {
  display: inline-block;
  width: 0.75rem;
  height: 0.55rem;
  margin-right: 0.3rem;
  vertical-align: 1px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.reach-map__legend .lv0 { background: #9aafc0; }
.reach-map__legend-strong {
  opacity: 0.75;
  font-size: 0.72rem;
}

.reach-map__hover {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.84rem;
  color: #fff8f0;
  font-weight: 600;
  padding: 0 0.35rem 0.3rem;
  text-shadow: 0 1px 2px rgba(15, 23, 36, 0.25);
}

.reach-map__side {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.85rem 0.85rem 0.7rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.reach-map__side-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
}

.reach-map__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.reach-map__row {
  width: 100%;
  display: grid;
  grid-template-columns: 0.55rem 1fr 1fr auto;
  gap: 0.45rem;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.48rem 0.15rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

.reach-map__swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 36, 0.12);
}

.reach-map__row:hover,
.reach-map__row.is-active {
  background: #fff4ea;
}

.reach-map__row-name {
  font-size: 0.8rem;
  font-weight: 500;
}

.reach-map__row-bar {
  height: 0.4rem;
  background: #eceff3;
  border-radius: 1px;
  overflow: hidden;
}

.reach-map__row-bar i {
  display: block;
  height: 100%;
  background: #e25a28;
}

.reach-map__row-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c23b22;
  min-width: 2.6rem;
  text-align: right;
}

.reach-map__note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.45;
}

.reach-map--compact .reach-map__body {
  grid-template-columns: 1fr;
}

.reach-map--compact .reach-map__side {
  display: none;
}

.reach-map--compact .reach-map__head .lede {
  max-width: 42rem;
}

@media (max-width: 900px) {
  .reach-map__body { grid-template-columns: 1fr; }
  .reach-map__row {
    grid-template-columns: 0.55rem 1fr auto;
  }
  .reach-map__row-bar { display: none; }
}
