/* ENTHORIS Phase 14 — Solutions 3D visual integration. Scoped to decorative marketing visuals only. */
.pm-solution-hero-visual {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-items: center;
}
.pm-solution-hero-art {
  min-height: 230px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 8px 12px;
}
.pm-solution-hero-art picture { display: grid; place-items: center; width: 100%; height: 100%; }
.pm-solution-hero-art img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(16,42,67,.08));
}
/* Four illustration-only solution heroes: one matching 3D emoji, no product screenshot card. */
.pm-solution-hero-visual--illustration-only {
  justify-items: center;
  align-content: center;
}
.pm-solution-hero-visual--illustration-only .pm-solution-hero-art {
  min-height: 0;
  width: 100%;
  padding: 0;
}
.pm-solution-hero-visual--illustration-only .pm-solution-hero-art img {
  width: min(100%, 440px);
}

/* Exact four Solutions categories on the /solutions landing page. */
.pm-solution-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.pm-solution-category-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 16px 20px;
  border: 1px solid var(--pm-line, #dbe6ec);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pm-solution-category-card:hover {
  transform: translateY(-3px);
  border-color: #a9d9d5;
  box-shadow: 0 8px 20px rgba(16,42,67,.055);
}
.pm-solution-category-card:focus-visible { outline: 3px solid rgba(8,127,120,.25); outline-offset: 3px; }
.pm-solution-category-art {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.pm-solution-category-art img { width: 100%; height: 100%; display: block; object-fit: contain; }
.pm-solution-category-card strong { color: var(--pm-navy, #102A43); font-size: 1.04rem; line-height: 1.25; }
.pm-solution-category-card small { margin-top: 6px; color: var(--pm-slate-600, #5d6d7e); line-height: 1.45; }

/* Match the new illustration treatment only where the existing homepage cards map directly to these categories. */
.pm-solution-photo-media.pm-solution-photo-media--3d {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f7fbfd;
}
.pm-solution-photo-media--3d .pm-solution-photo { display: grid; place-items: center; }
.pm-solution-photo-media--3d .pm-solution-photo img {
  width: min(100%, 250px);
  height: auto;
  max-height: 250px;
  object-fit: contain;
  transform: none;
}
.pm-solution-photo-card:hover .pm-solution-photo-media--3d .pm-solution-photo img { transform: translateY(-3px) scale(1.015); }

/* Replace Phase 16 decorative context photography with transparent solution art without altering its content block. */
.pm-lpf-visual.pm-solution-3d-context {
  min-height: 320px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.pm-lpf-visual.pm-solution-3d-context picture { display: grid; place-items: center; width: 100%; height: 100%; }
.pm-lpf-visual.pm-solution-3d-context img { width: min(100%, 320px); height: auto; object-fit: contain; }
.pm-lpf-visual.pm-solution-3d-context figcaption { margin-top: 4px; text-align: center; }

@media (max-width: 1024px) {
  .pm-solution-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pm-solution-hero-art { min-height: 220px; }
  .pm-solution-hero-art img { width: min(100%, 300px); }
  .pm-solution-hero-visual--illustration-only .pm-solution-hero-art img { width: min(100%, 340px); }
}
@media (max-width: 640px) {
  .pm-solution-hero-visual { gap: 12px; }
  .pm-solution-hero-art { min-height: 180px; padding: 0; }
  .pm-solution-hero-art img { width: min(100%, 220px); }
  .pm-solution-hero-visual--illustration-only .pm-solution-hero-art img { width: min(100%, 260px); }
  .pm-solution-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .pm-solution-category-card { padding: 14px 10px 16px; border-radius: 15px; }
  .pm-solution-category-art { width: 112px; height: 112px; margin-bottom: 8px; }
  .pm-solution-photo-media.pm-solution-photo-media--3d { padding: 14px; }
  .pm-solution-photo-media--3d .pm-solution-photo img { width: min(100%, 200px); max-height: 200px; }
}
@media (max-width: 390px) {
  .pm-solution-category-art { width: 100px; height: 100px; }
  .pm-solution-category-card strong { font-size: .96rem; }
  .pm-solution-category-card small { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-solution-category-card,
  .pm-solution-photo-media--3d .pm-solution-photo img { transition: none !important; }
  .pm-solution-category-card:hover,
  .pm-solution-photo-card:hover .pm-solution-photo-media--3d .pm-solution-photo img { transform: none !important; }
}
