/* ── D3 diagrams ── */
.d3-diagram {
  position: relative;
  width: 100%;
  border: 1px solid var(--table-border-color);
  border-radius: 8px;
  overflow: hidden;
  margin: 1em 0;
  background: var(--bg);
}

.d3-diagram svg {
  display: block;
  width: 100%;
  height: 100%;
}

.diagram-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--fg);
  opacity: 0.4;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 14px;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

/* ── General tweaks ── */
:root {
  --content-max-width: 920px;
}
