/* Emergo 7.8G.4 approved production diagrams — Theme adapter v0.2.10. */
.emergo-pm {
  --em-ink: #17212b;
  --em-ivory: #f7f4ef;
  --em-teal: #236a65;
  --em-clay: #b46a45;
  --em-secondary: #4a545d;
  --em-line: #cdc5ba;
  color: var(--em-ink);
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
  /* Follow the same reading measure and margins as adjacent WordPress blocks. */
  container: emergo-diagram / inline-size;
  margin-inline: auto;
  min-width: 0;
  max-width: min(100%, var(--emergo-reading-width, 45rem));
  transform: none;
  width: 100%;
}

.emergo-pm,
.emergo-pm * {
  box-sizing: border-box;
}

.emergo-pm__sheet {
  --em-mobile: 0;
  background: var(--em-ivory);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Scoped sizes retain the approved typography against global !important headings. */
.emergo-pm__title {
  color: var(--em-ink);
  font-size: 1.5625rem !important;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.emergo-pm__intro {
  color: var(--em-ink);
  font-size: 1rem !important;
  line-height: 1.45;
  margin: 0 0 1.875rem;
  max-width: 45rem;
}

.emergo-pm__note {
  color: var(--em-secondary);
  font-size: 0.875rem !important;
  line-height: 1.45;
  margin: 1.875rem 0 0;
}

.emergo-pm-geometry {
  height: 100%;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.emergo-pm :where(h3, h4, h5, p) {
  overflow-wrap: normal;
  word-break: normal;
}

.emergo-pm-node {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1rem 0.5rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

.emergo-pm-node :where(h4, h5) {
  font-size: 1rem !important;
  font-weight: 600;
  hyphens: none;
  line-height: 1.25;
  margin: 0;
}

.emergo-pm-node p {
  color: var(--em-secondary);
  font-size: 0.875rem !important;
  line-height: 1.4;
  margin: 0.4rem 0 0;
}

/* Diagnostic Path 5 + 3. */

.emergo-pm-path {
  height: 37.5rem;
  position: relative;
}

.emergo-pm-path__band-title {
  color: var(--em-teal);
  font-size: 1rem !important;
  font-weight: 600;
  left: 1.25rem;
  line-height: 1.3;
  margin: 0;
  position: absolute;
  z-index: 1;
}

.emergo-pm-path__band-title--diagnostic { top: 0; }
.emergo-pm-path__band-title--development { top: 18.625rem; }

.emergo-pm-path__band {
  display: grid;
  gap: 1rem;
  left: 1.25rem;
  position: absolute;
  right: 1.75rem;
}

.emergo-pm-path__band--diagnostic {
  grid-template-columns: minmax(5.375rem, 0.85fr) minmax(5.75rem, 0.95fr) minmax(6.875rem, 1.1fr) minmax(5.375rem, 0.85fr) minmax(9.625rem, 1.5fr);
  top: 4.5rem;
}

.emergo-pm-path__band--development {
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  top: 22.125rem;
}

.emergo-pm-path .emergo-pm-node { min-height: 7rem; }

.emergo-pm-path__bridge {
  color: var(--em-clay);
  font-size: 0.875rem !important;
  left: 50%;
  line-height: 1.3;
  margin: 0;
  max-width: 70%;
  position: absolute;
  text-align: center;
  top: 12.9375rem;
  transform: translateX(-50%);
  z-index: 1;
}

.emergo-pm-path__return {
  color: var(--em-secondary);
  font-size: 0.875rem !important;
  left: 1.25rem;
  line-height: 1.4;
  margin: 0;
  position: absolute;
  right: 1.75rem;
  text-align: center;
  top: 34.625rem;
  z-index: 1;
}

/* Core Flow. */

.emergo-pm-core { position: relative; }

.emergo-pm-core__layout {
  align-items: center;
  display: grid;
  gap: 2.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr);
  padding: 0 0.125rem;
}

.emergo-pm-core__field { min-width: 0; }
.emergo-pm-core__field > h4 {
  align-items: flex-end;
  color: var(--em-teal);
  display: flex;
  font-size: 0.875rem !important;
  font-weight: 600;
  height: 3.25rem;
  justify-content: center;
  line-height: 1.35;
  margin: 0;
  padding: 0 0.375rem 0.75rem;
  text-align: center;
}

.emergo-pm-core__outer,
.emergo-pm-core__dynamic {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 1rem 0.625rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

.emergo-pm-core__outer { min-height: 12.5rem; }
.emergo-pm-core__dynamics {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.25rem 1rem;
  position: relative;
  z-index: 1;
}
.emergo-pm-core__dynamic { min-height: 6.25rem; }
.emergo-pm-core :where(h5) {
  font-size: 1rem !important;
  font-weight: 600;
  hyphens: none;
  line-height: 1.3;
  margin: 0;
}

.emergo-pm--core[lang="de"] .emergo-pm-core__dynamic h5,
.emergo-pm--core[lang="de"] .emergo-pm-core__outer h5 {
  hyphens: manual;
}

/* Advisory Fields. */

.emergo-pm-advisory__context {
  color: var(--em-teal);
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.4;
  margin: 0 0 0.55rem;
  text-align: center;
  text-transform: uppercase;
}
.emergo-pm-advisory { height: 31.25rem; position: relative; }
.emergo-pm-advisory__field {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1rem 1.15rem;
  position: absolute;
  z-index: 1;
}
.emergo-pm-advisory__field h3 {
  font-size: 1.02rem !important;
  font-weight: 600;
  hyphens: none;
  line-height: 1.12;
  margin: 0 0 0.32rem;
}
.emergo-pm-advisory__field p {
  color: var(--em-secondary);
  font-size: 0.79rem !important;
  line-height: 1.34;
  margin: 0;
}
.emergo-pm-advisory__field--lead { height: 7rem; left: 35%; top: 3.375rem; width: 30%; }
.emergo-pm-advisory__field--org { height: 7.875rem; left: 6%; top: 21.25rem; width: 38%; }
.emergo-pm-advisory__field--biz { height: 7.875rem; right: 6%; top: 21.25rem; width: 38%; }
.emergo-pm-advisory__focus {
  background: var(--em-ivory);
  color: var(--em-clay);
  font-size: 0.78rem !important;
  font-weight: 600;
  left: 52.7%;
  line-height: 1.2;
  margin: 0;
  max-width: 10.625rem;
  padding: 0.18rem 0.4rem;
  position: absolute;
  top: 15.875rem;
  z-index: 2;
}
.emergo-pm-advisory__explanation {
  color: var(--em-secondary);
  font-size: 0.84rem !important;
  line-height: 1.45;
  margin: 0.2rem auto 0;
  max-width: 45rem;
  text-align: center;
}
.emergo-pm-advisory__legend {
  color: var(--em-secondary);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem !important;
  gap: 1.1rem;
  justify-content: center;
  margin-top: 0.8rem;
}
.emergo-pm-advisory__legend span { align-items: center; display: inline-flex; gap: 0.35rem; }
.emergo-pm-advisory__line-swatch { border-top: 2px dashed var(--em-teal); opacity: 0.55; width: 1.375rem; }
.emergo-pm-advisory__focus-swatch { background: var(--em-clay); height: 0.625rem; width: 0.625rem; }

/* Ways to Work Together. */

.emergo-pm-branch { height: 59.375rem; position: relative; }
.emergo-pm-branch__entry,
.emergo-pm-branch__option {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1rem 1.0625rem;
  position: absolute;
  z-index: 1;
}
.emergo-pm-branch__entry {
  height: 4.875rem;
  left: 0;
  padding: 0.75rem;
  text-align: center;
  width: 17%;
}
.emergo-pm-branch__entry--situation { top: 17.1875rem; }
.emergo-pm-branch__entry--diagnosis { top: 24.75rem; }
.emergo-pm-branch :where(h4) { font-size: 1.0625rem !important; font-weight: 600; line-height: 1.15; margin: 0; }
.emergo-pm-branch__option h4 { margin-bottom: 0.4375rem; }
.emergo-pm-branch__option p { color: var(--em-secondary); font-size: 0.875rem !important; line-height: 1.35; margin: 0; }
.emergo-pm-branch__option { height: 11.25rem; width: 30%; }
.emergo-pm-branch__option:nth-child(-n + 3) { left: 30%; }
.emergo-pm-branch__option:nth-child(n + 4) { left: 70%; }
.emergo-pm-branch__option:nth-child(1) { top: 7.8125rem; }
.emergo-pm-branch__option:nth-child(2) { top: 21.5625rem; }
.emergo-pm-branch__option:nth-child(3) { top: 35.3125rem; }
.emergo-pm-branch__option:nth-child(4) { top: 0.9375rem; }
.emergo-pm-branch__option:nth-child(5) { top: 14.6875rem; }
.emergo-pm-branch__option:nth-child(6) { top: 28.4375rem; }
.emergo-pm-branch__option:nth-child(7) { top: 42.1875rem; }
.emergo-pm-branch__focus {
  color: var(--em-clay);
  font-size: 0.9375rem !important;
  left: 0;
  line-height: 1.25;
  margin: 0;
  padding: 0 0.625rem;
  position: absolute;
  text-align: center;
  top: 31.25rem;
  width: 19%;
  z-index: 1;
}
.emergo-pm-branch__stop {
  color: var(--em-secondary);
  font-size: 0.9375rem !important;
  left: 0;
  line-height: 1.3;
  margin: 0;
  position: absolute;
  text-align: center;
  top: 56.375rem;
  width: 44%;
  z-index: 1;
}

/* Learning & Re-diagnosis. */

.emergo-pm-learning { height: 31.25rem; position: relative; }
.emergo-pm-learning__main {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 0;
  position: absolute;
  top: 11.25rem;
  width: 67%;
}
.emergo-pm-learning__main .emergo-pm-node { min-height: 7rem; }
.emergo-pm-learning__evidence p {
  bottom: calc(100% + 2rem);
  color: var(--em-clay);
  left: auto;
  margin: 0;
  position: absolute;
  right: -1rem;
  text-align: right;
  top: auto;
  width: 16rem;
}
.emergo-pm-learning__outcomes {
  display: grid;
  gap: 5.5rem;
  position: absolute;
  right: 0;
  top: 1.25rem;
  width: 21%;
}
.emergo-pm-learning__outcomes .emergo-pm-node { min-height: 7.5rem; padding-inline: 0.75rem; }
.emergo-pm-learning__return {
  color: var(--em-secondary);
  font-size: 0.875rem !important;
  line-height: 1.4;
  margin: 1rem auto 0;
  max-width: 45rem;
  text-align: center;
}

@container emergo-diagram (max-width: 959px) {
  .emergo-pm-core__layout { gap: 4.5rem; grid-template-columns: 1fr; }
  .emergo-pm-core__field { margin: 0 auto; position: relative; width: min(100%, 38rem); }
  .emergo-pm-core__field:not(:first-child) > h4 {
    align-items: center;
    bottom: calc(100% + 0.5rem);
    height: 3.5rem;
    justify-content: flex-start;
    left: calc(50% + 1rem);
    padding: 0;
    position: absolute;
    text-align: left;
    width: min(16rem, calc(50cqi - 1.5rem));
  }
  .emergo-pm-core__field:first-child,
  .emergo-pm-core__field:last-child { width: min(75%, 20rem); }
  .emergo-pm-core__outer { min-height: 7rem; }
  .emergo-pm-core__dynamic { min-height: 6.75rem; }
}

@container emergo-diagram (max-width: 699px) {
  .emergo-pm__sheet { --em-mobile: 1; padding: 1.5rem 0.5rem; }
  .emergo-pm__title { font-size: 1.4375rem !important; }
  .emergo-pm__intro { font-size: 0.9375rem !important; margin-bottom: 1.75rem; }
  .emergo-pm__note { font-size: 0.875rem !important; }
  .emergo-pm-core__dynamic h5 { font-size: 0.875rem !important; }
  .emergo-pm-core__layout { padding-inline: 1rem; }
  .emergo-pm-core__dynamics { padding-inline: 0.5rem; }

  /* Reserve a separate learning-return gutter outside every node. */
  .emergo-pm-path { display: flex; flex-direction: column; height: auto; padding: 0 0.25rem 0 1.5rem; }
  .emergo-pm-path__band-title { font-size: 1rem !important; left: auto; position: relative; top: auto; }
  .emergo-pm-path__band { display: grid; gap: 1.75rem; left: auto; margin-top: 1.25rem; position: relative; right: auto; top: auto; }
  .emergo-pm-path__band--diagnostic { grid-template-columns: 1fr; }
  .emergo-pm-path__band--development { gap: 1.75rem; grid-template-columns: 1fr; }
  .emergo-pm-path .emergo-pm-node { min-height: 5.5rem; }
  .emergo-pm-path__bridge { left: auto; margin: 1rem auto; max-width: 80%; min-height: 4.25rem; padding-top: 1.25rem; position: relative; top: auto; transform: none; }
  .emergo-pm-path__return { left: auto; margin: 3.5rem auto 0; max-width: 22rem; position: relative; right: auto; top: auto; }

  .emergo-pm-advisory__context { font-size: 0.71875rem !important; line-height: 1.38; margin-inline: auto; max-width: 96%; }
  .emergo-pm-advisory { height: 40rem; overflow: visible; }
  .emergo-pm-advisory__field { padding: 0.75rem 0.625rem; }
  .emergo-pm-advisory__field h3 { font-size: 0.90625rem !important; line-height: 1.13; margin-bottom: 0.3125rem; }
  .emergo-pm-advisory__field p { font-size: 0.78125rem !important; line-height: 1.34; }
  .emergo-pm-advisory__field--lead { height: 7.75rem; left: 19%; top: 1.5rem; width: 62%; }
  .emergo-pm-advisory__field--org { height: 14.125rem; left: 0.5%; top: 22.875rem; width: 49%; }
  .emergo-pm-advisory__field--biz { height: 14.125rem; right: 0.5%; top: 22.875rem; width: 49%; }
  .emergo-pm-advisory__focus { font-size: 0.75rem !important; left: 50%; max-width: none; text-align: center; top: 17.25rem; transform: translateX(-50%); width: 10.625rem; }
  .emergo-pm-advisory__explanation { font-size: 0.8125rem !important; max-width: 96%; }
  .emergo-pm-advisory__legend { font-size: 0.71875rem !important; gap: 0.85rem; }

  .emergo-pm-branch { height: auto; padding: 0 0.25rem; }
  .emergo-pm-branch__entry { height: auto; left: auto; margin-inline: auto; min-height: 4rem; padding: 0.75rem; position: relative; top: auto; width: 8.75rem; }
  .emergo-pm-branch__entry--diagnosis { margin-top: 2.25rem; }
  .emergo-pm-branch__focus { font-size: 0.875rem !important; left: calc(50% + 1.5rem); margin-top: 1.5rem; padding: 0; position: relative; text-align: left; top: auto; width: calc(50% - 1.5rem); }
  .emergo-pm-branch__stop { font-size: 0.875rem !important; left: auto; margin: 4.75rem auto 0; position: relative; top: auto; width: min(12.5rem, calc(100% - 3.5rem)); }
  .emergo-pm-branch__options { display: grid; gap: 1.25rem; margin-top: 2.5rem; padding-left: 3rem; position: relative; }
  .emergo-pm-branch__option,
  .emergo-pm-branch__option:nth-child(n) { height: auto; left: auto; min-height: 6.875rem; padding: 1.125rem 1rem; position: relative; top: auto; width: 100%; }
  .emergo-pm-branch :where(h4) { font-size: 1rem !important; line-height: 1.22; }
  .emergo-pm-branch__option p { font-size: 0.875rem !important; line-height: 1.4; }

  .emergo-pm-learning { height: auto; padding: 0 0.25rem 2.5rem; }
  .emergo-pm-learning__main { display: grid; gap: 2rem; grid-template-columns: 1fr; left: auto; margin-inline: auto; position: relative; top: auto; width: min(15.25rem, calc(100% - 3rem)); }
  .emergo-pm-learning__main .emergo-pm-node { min-height: 5.75rem; }
  .emergo-pm-learning__evidence { min-height: 9.5rem !important; padding-inline: 1rem; }
  .emergo-pm-learning__evidence p { bottom: auto; left: auto; margin-top: 0.5rem; position: relative; right: auto; text-align: center; top: auto; width: auto; }
  .emergo-pm-learning__branch-space { height: 6rem; }
  .emergo-pm-learning__outcomes { gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 1rem; position: relative; right: auto; top: auto; width: auto; }
  .emergo-pm-learning__outcomes .emergo-pm-node { min-height: 8.5rem; padding-inline: 0.5rem; }
  .emergo-pm-learning__outcomes .emergo-pm-node :where(h4) { font-size: 0.9375rem !important; }
  .emergo-pm-learning__outcomes .emergo-pm-node p { font-size: 0.8125rem !important; }
  .emergo-pm-learning__return { font-size: 0.875rem !important; margin-top: 1.5rem; }
}

@container emergo-diagram (max-width: 340px) {
  .emergo-pm-advisory { height: 40.875rem; }
  .emergo-pm-advisory__field { padding-inline: 0.5rem; }
  .emergo-pm-advisory__field h3 { font-size: 0.875rem !important; }
  .emergo-pm-advisory__field p { font-size: 0.75rem !important; line-height: 1.35; }
  .emergo-pm-advisory__field--org,
  .emergo-pm-advisory__field--biz { height: 14.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .emergo-pm * { scroll-behavior: auto !important; }
}
