/* Self-contained: never inherits the old .network grid or .signal-dot styles. */
.connection-map {
  position: relative; display: block; width: 100%; min-width: 0;
  height: auto; max-height: none; padding: 24px; border: 1px solid #fff;
  border-radius: 24px; background: #fff; box-shadow: 0 12px 35px #53636c0c;
  color: #4f5052; overflow: hidden; isolation: isolate;
}
.map-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
.map-heading .overline { font-size: 9px; letter-spacing: .09em; }
.map-heading > span:last-child { font-size: 10px; color: #777; }
.map-plot { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; margin: 16px 0; }
.map-lines { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; pointer-events: none; }
.map-lines line { stroke: #b4b1ac; stroke-width: 1; stroke-dasharray: 4 10; vector-effect: non-scaling-stroke; animation: map-reveal .28s ease-out both; }
.map-grid { position: absolute; inset: 0; display: grid; width: 100%; height: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); place-items: center; }
.map-dot { display: grid; place-items: center; position: relative; width: 44px; max-width: 100%; height: 44px; max-height: 100%; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; }
.map-dot > span { display: block; width: 5px; height: 5px; border-radius: 50%; background: #55565b; box-shadow: 0 0 0 4px white; transition: opacity .2s, transform .2s; }
.map-dot:nth-child(3n) > span, .map-anchor > span { width: 8px; height: 8px; }
.map-dot.is-dimmed > span { opacity: .38; }
.map-dot[aria-pressed="true"] > span { width: 11px; height: 11px; background: #292a2c; box-shadow: 0 0 0 6px #fff, 0 0 0 7px #b5d9df, 0 0 0 12px #f0f7f8; }
.map-dot:hover > span, .map-dot:focus-visible > span { opacity: 1; transform: scale(1.25); }
.map-dot:focus-visible { outline: 2px solid #426f7a; outline-offset: -2px; }
.map-detail { width: 100%; min-width: 0; border-top: 1px solid #efedeb; padding-top: 15px; }
.map-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-title-row strong { font-size: 14px; font-weight: 500; }
.map-title-row button { background: transparent; font-size: 11px; color: #68696d; padding: 4px 0 4px 8px; min-height: 36px; }
.map-title-row button:disabled { opacity: .4; cursor: default; }
.map-detail > p { font-size: 11px; line-height: 1.6; margin-top: 3px; min-height: 36px; }
.map-related { display: flex; flex-wrap: wrap; align-content: start; gap: 6px; padding: 12px 0; min-height: 76px; }
.map-related button { border: 1px solid #eceae7; border-radius: 6px; background: #f7f6f4; font-size: 10px; line-height: 1.4; padding: 7px 9px; min-height: 30px; max-width: 100%; }
.map-related button:hover { border-color: #b5d9df; background: #f0f7f8; }
.map-detail > a { font-size: 12px; display: inline-block; padding: 6px 0; }
.map-fallback { font-size: 12px; padding-top: 12px; }
@keyframes map-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1000px) { .connection-map { padding: 18px; } .map-related { min-height: 112px; } }
@media (max-width: 680px) {
  .connection-map { padding: 18px 14px; border-radius: 20px; }
  .map-heading .overline { font-size: 8px; }
  .map-heading > span:last-child { font-size: 9px; }
  .map-dot { height: 36px; }
  .map-related { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .map-lines line { animation: none; } .map-dot > span { transition: none; } }
[data-motion="paused"] .map-lines line { animation: none; }
[data-motion="paused"] .map-dot > span { transition: none; }
