/* Site-wide card grid responsiveness */
:root {
  --card-grid-gap: clamp(1rem, 1.5vw, 1.5rem);
}

.problem-grid,
.pillars,
.cap-grid,
.value-grid,
.feature-grid,
.office-grid,
.why-edge-benefits,
.why-edge-groups,
.edge-card-grid,
.phases-grid,
.how-works-grid,
.pm-grid,
.pipeline-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--card-grid-gap) !important;
  align-items: stretch !important;
}

.problem-grid > *,
.pillars > *,
.cap-grid > *,
.value-grid > *,
.feature-grid > *,
.office-grid > *,
.why-edge-benefits > *,
.why-edge-groups > *,
.edge-card-grid > *,
.phases-grid > *,
.how-works-grid > *,
.pm-grid > *,
.pipeline-grid > * {
  min-width: 0;
}

.card,
.phase-card,
.how-card,
.pm-card,
.pipeline-card,
.why-edge-card,
.edge-card {
  height: 100%;
}

.card,
.phase-card,
.how-card,
.pm-card,
.pipeline-card,
.why-edge-card {
  display: flex;
  flex-direction: column;
}

.edge-card-inner {
  height: 100%;
}

.card h3,
.card p,
.phase-card h3,
.phase-card p,
.how-card h3,
.how-card p,
.pm-card h3,
.pm-card p,
.pipeline-card h3,
.pipeline-card p,
.why-edge-card h4,
.why-edge-card p,
.edge-card-face h3,
.edge-card-face p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.office-grid > .map-panel {
  grid-column: 1 / -1;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 899.98px) {
  .problem-grid,
  .pillars,
  .cap-grid,
  .value-grid,
  .feature-grid,
  .office-grid,
  .why-edge-benefits,
  .why-edge-groups,
  .edge-card-grid,
  .phases-grid,
  .how-works-grid,
  .pm-grid,
  .pipeline-grid {
    grid-template-columns: 1fr !important;
  }

  .office-grid > .map-panel {
    grid-column: 1 / -1;
  }
}
