/* Mermaid diagrams: signal clickability, and the zoom overlay. */
.mermaid { cursor: zoom-in; }

.diagram-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 20, 25, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2vh 2vw;
}
.diagram-overlay__box {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  max-width: 94vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}
.diagram-overlay__box svg {
  min-width: 640px;
}
.diagram-overlay__hint {
  color: #d5dbe1;
  font-size: 12.5px;
  margin-top: 10px;
}
