/* static/css/management_philosophy_diagram.css */

.mpd-panel {
  margin: 2rem 0;
  padding: 2.5rem;
  background: linear-gradient(180deg, #eef4ff 0%, #fbfcff 100%);
  border: 0.0625rem solid #d3e2fa;
  border-radius: 1.5rem;
  box-shadow: 0 0.75rem 2.5rem rgba(0,0,0,0.08);
}

.mpd-lead-box {
  margin: 0 0 2rem;
}

.mpd-lead-box .mpd-lead-box__label {
  display: block;
  width: fit-content;
  margin: 0 auto 0.85rem;
  text-align: center;
}

.mpd-lead-box p {
  margin: 0;
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.9;
  text-align: center;
}

.mpd-canvas-wrap {
  position: relative;

  margin-top: 1.5rem;

  background: #ffffff;
  border: 0.0625rem solid #d9ecfb;
  border-radius: 1.25rem;
  padding: 1.5rem 0.75rem 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(14, 100, 160, 0.07);
}

.mpd-canvas-wrap__badge {
  position: absolute;
  top: -0.85rem;
  left: 1.5rem;

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;

  padding: 0.3rem 0.85rem;

  background: #0ea5e9;
  color: #ffffff;

  border-radius: 999rem;

  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;

  box-shadow: 0 0.25rem 0.625rem rgba(14, 165, 233, 0.3);
}

.mpd-canvas-wrap__badge--sample {
  background: #94a3b8;
  box-shadow: 0 0.25rem 0.625rem rgba(100, 116, 139, 0.3);
}

.mpd-canvas {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mpd-placeholder {
  margin: 0;
  padding: 2rem;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.8;
}

.mpd-svg {
  display: block;
  width: 100%;
  height: auto;
}

.mpd-svg text {
  font-family: inherit;
}

.mpd-node-company circle {
  stroke: #7dd3fc;
  stroke-width: 0.09375rem;
}

.mpd-node-company text {
  fill: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  text-anchor: middle;
}

.mpd-node-stakeholder circle {
  fill: #ffffff;
  stroke: #38bdf8;
  stroke-width: 0.125rem;
  transition: stroke 0.2s ease;
}

.mpd-node-stakeholder text {
  fill: #0c4a6e;
  font-size: 1.5rem;
  font-weight: 700;
  text-anchor: middle;
}

.mpd-edge {
  stroke: #38bdf8;
  stroke-width: 0.15rem;
  stroke-linecap: round;
  fill: none;
}

.mpd-edge-label-bg {
  fill: #f0f9ff;
  stroke: #bae4fb;
  stroke-width: 0.0625rem;
}

.mpd-edge-label {
  fill: #0369a1;
  font-size: 1.3rem;
  font-weight: 600;
}

.mpd-legend {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #f0f9ff;
  border: 0.0625rem solid #cbe8fb;
  border-radius: 0.75rem;
  color: #1f2937;
  font-size: 0.85rem;
  line-height: 1.8;
}

@media (max-width: 48rem) {

  .mpd-panel {
    padding: 1.25rem;
  }

  .mpd-lead-box p {
    font-size: 0.95rem;
    text-align: left;
  }

  .mpd-canvas-wrap {
    padding: 1.75rem 1rem 1rem;
  }

}
