/* DM3 growth map. All styles are scoped to the map container. */
#growth-map {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(440px, 42vw, 600px);
  min-width: 0;
  overflow: hidden;
  color: #f0efe5;
}
#growth-map .gm-canvas,
#growth-map .gm-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#growth-map .gm-canvas { pointer-events: none; }
#growth-map .gm-overlay { pointer-events: none; }
#growth-map .gm-hub {
  position: absolute;
  z-index: 2;
  width: 164px;
  min-height: 74px;
  margin: 0;
  padding: 15px 3px 8px;
  transform: translate(-50%, -18px);
  border: 0;
  border-radius: 8px;
  color: #f0efe5;
  background: transparent;
  font: inherit;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
#growth-map .gm-hub::after {
  content: '';
  position: absolute;
  inset: 22px 0 0;
  z-index: -1;
  border-radius: 8px;
  background: radial-gradient(ellipse, #092f29 16%, rgb(9 47 41 / .83) 48%, transparent 73%);
  opacity: .85;
  transition: opacity 450ms cubic-bezier(.22, 1, .36, 1);
}
#growth-map .gm-node {
  position: relative;
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 auto 14px;
  background: #d9f29d;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(217 242 157 / .09), 0 0 18px rgb(217 242 157 / .22);
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1), box-shadow 500ms cubic-bezier(.22, 1, .36, 1);
}
#growth-map .gm-node::after {
  content: '';
  position: absolute;
  inset: -9px;
  border: 1px solid rgb(217 242 157 / .26);
  border-radius: 50%;
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1), opacity 500ms cubic-bezier(.22, 1, .36, 1);
}
#growth-map .gm-chapter-number {
  display: block;
  color: #b6c5a4;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size:11px;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.4;
  transition: color 400ms cubic-bezier(.22, 1, .36, 1);
}
#growth-map .gm-chapter-name {
  display: block;
  margin-top: 4px;
  font-size:15px;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: .08em;
  white-space: nowrap;
}
#growth-map .gm-hub:hover .gm-node,
#growth-map .gm-hub[data-active='true'] .gm-node,
#growth-map .gm-hub:focus-visible .gm-node {
  transform: scale(1.35);
  box-shadow: 0 0 0 7px rgb(217 242 157 / .12), 0 0 26px rgb(217 242 157 / .35);
}
#growth-map .gm-hub[data-active='true'] .gm-node::after,
#growth-map .gm-hub:focus-visible .gm-node::after { transform: scale(1.25); opacity: .8; }
#growth-map .gm-hub[data-active='true'] .gm-chapter-number,
#growth-map .gm-hub:hover .gm-chapter-number { color: #d9f29d; }
#growth-map .gm-hub:focus-visible { outline: 1px solid #d9f29d; outline-offset: 3px; }
#growth-map .gm-hub:active .gm-node { transform: scale(.9); }
#growth-map .gm-topic {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, 7px);
  padding: 0 4px;
  color: #c4cbb4;
  font-family: 'SFMono-Regular', Consolas, 'PingFang SC', 'Microsoft YaHei', monospace;
  font-size:11px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: .6;
  transition: opacity 450ms cubic-bezier(.22, 1, .36, 1), color 450ms cubic-bezier(.22, 1, .36, 1);
}
#growth-map .gm-topic[data-active='true'] { color: #e0e9cb; opacity: .95; }
#growth-map[data-has-active='true'] .gm-topic:not([data-active='true']) { opacity: .22; }
#growth-map .gm-map-label {
  position: absolute;
  left: 3%;
  bottom: 7%;
  margin: 0;
  color: #c6ad77;
  opacity: .75;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size:10px;
  letter-spacing: .18em;
  line-height: 1.9;
}
#growth-map .gm-map-label span { display: block; color: #b1c2a9; opacity: .65; font-size:10px; }
@media (max-width: 700px) {
  #growth-map { height: 510px; }
}
  #growth-map[data-compact='true'] .gm-hub { width: min(146px, 44%); }
#growth-map[data-compact='true'] .gm-chapter-name { font-size:14px; letter-spacing: .02em; }
#growth-map[data-compact='true'] .gm-chapter-number { font-size:10px; letter-spacing: .06em; white-space: nowrap; }
#growth-map[data-compact='true'] .gm-topic { display: none; }
#growth-map[data-compact='true'] .gm-map-label { bottom: 2%; left: 5%; font-size:10px; }
#growth-map[data-compact='true'] .gm-map-label span { display: none; }
@media (prefers-reduced-motion: reduce) {
  #growth-map *, #growth-map *::after { transition-duration: 0.01ms !important; }
}
