/* Issue #12: margens e eixos dos diagramas; sem ocultar conteúdo excedente. */
body.refined .scenario-art.attraction-art,
body.refined .scenario-art.operation-art,
body.refined .scenario-art.decision-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, .9fr);
  align-items: center;
  justify-items: center;
  gap: clamp(5px, 1.1vw, 12px);
  padding: 24px clamp(14px, 2vw, 28px);
}

body.refined .attraction-art .campaign-paper,
body.refined .attraction-art .campaign-window {
  width: 100%;
  max-width: 95px;
  min-width: 0;
  height: 108px;
  padding: 12px 6px;
  margin: 0;
  transform: none;
  border-radius: 10px;
}
body.refined .attraction-art .campaign-paper b,
body.refined .attraction-art .campaign-window b {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}
body.refined .attraction-art .campaign-bubble {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 90px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 4px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}
body.refined .scenario-art .art-connector,
body.refined .operation-art > i {
  display: grid;
  place-items: center;
  width: 14px;
  margin: 0;
  font-size: 18px;
  line-height: 1;
  font-style: normal;
}

body.refined .operation-art > span,
body.refined .operation-art > .node-emphasis {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 12px 5px;
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
  border-radius: 10px;
}
body.refined .decision-art {
  grid-template-columns: minmax(0, .8fr) 14px minmax(0, 1.3fr) 14px minmax(0, .7fr);
}
body.refined .decision-art .source-stack { width: min(100%, 65px); }
body.refined .decision-art .mini-dashboard { width: min(100%, 110px); }
body.refined .decision-art .decision-target { width: 44px; height: 44px; }

/* O aparelho tem espaço real para a legenda e o símbolo de contato. */
body.refined .website-art .phone-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 90px;
  height: 172px;
  right: 22px;
  bottom: 62px;
  padding: 23px 8px 14px;
  border-width: 3px;
  border-radius: 17px;
}
body.refined .website-art .phone-mock > i {
  top: 7px;
  left: 50%;
  width: 20px;
  height: 3px;
  transform: translateX(-50%);
}
body.refined .website-art .phone-mock > span {
  width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-align: center;
}
body.refined .website-art .phone-mock > b {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 16px;
  line-height: 1;
}

/* A quinta frente do Sobre ocupa uma linha própria, sem dividir o núcleo. */
body.refined .ecosystem-canvas:has(.ecosystem-people) {
  grid-template-areas: "marketing sites" "core core" "automation information" "people people";
}
body.refined .ecosystem-canvas:has(.ecosystem-people) .ecosystem-connections {
  grid-column: 1 / -1;
  grid-row: 1 / 4;
  height: 100%;
}
body.refined .ecosystem-people {
  position: relative;
  grid-area: people;
  justify-self: center;
  flex-direction: row;
  width: min(100%, 350px);
  min-height: 78px;
  text-align: center;
}
body.refined .ecosystem-people > span { min-width: 0; }
body.refined .ecosystem-people::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  height: 20px;
  border-left: 1px solid #c9b34f;
  pointer-events: none;
}

@media (max-width: 900px) {
  body.refined .website-art { min-height: 440px; }
  body.refined .website-art .browser-mock { transform: translate(-8px, -28px); }
  body.refined .website-art .phone-mock {
    width: 84px;
    height: 160px;
    right: 16px;
    bottom: 54px;
  }
  body.refined .website-art .phone-mock > span { font-size: 13px; }
  body.refined .ecosystem-people::before { height: 16px; }
}
@media (max-width: 760px) {
  body.refined .attraction-art .campaign-paper,
  body.refined .attraction-art .campaign-window { height: 98px; padding: 11px 6px; }
  body.refined .website-art { min-height: 400px; }
  body.refined .website-art .browser-mock { transform: translate(-7px, -25px); }
  body.refined .website-art .phone-mock {
    width: 80px;
    height: 150px;
    right: 14px;
    bottom: 54px;
    padding: 22px 8px 13px;
    gap: 12px;
    border-radius: 16px;
  }
  body.refined .website-art .phone-mock > span { font-size: 12px; }
  body.refined .ecosystem-people::before { height: 14px; }
}
