/* Catálogo, ficha do procedimento e galeria usam a mesma apresentação dos casos. */
.result-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #ded8cb;
  border-radius: 7px;
  background: #fcfaf5;
  color: #173c31;
}

.result-photo {
  position: relative;
  aspect-ratio: var(--photo-ratio);
  overflow: hidden;
  background: #eeece5;
}

.result-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-photo > span {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 4px;
  padding: 4px 7px;
  background: #13332aea;
  color: #fffaf0;
  font: 700 11px/1.3 Manrope, Arial, sans-serif;
}

.result-photo--vertical > span:last-child { top: calc(50% + 8px); }
.result-photo--horizontal > span:last-child { left: calc(50% + 8px); }

.result-caption {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
  font: 500 12px/1.55 Manrope, Arial, sans-serif;
}

.result-caption > strong { font-size: 14px; }
.result-caption > small { font: inherit; color: #485d51; }

.procedure-results { margin: 0 auto; padding: 22px; max-width: 900px; }
.procedure-results > h3 {
  margin: 0 0 15px;
  font: 500 clamp(27px, 3vw, 36px)/1.1 'Cormorant Garamond', Georgia, serif;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  max-width: 680px;
  align-items: start;
}

.procedure-results:has(.result-figure:only-child) .result-grid { max-width: 430px; }
.procedure-dialog .procedure-results { margin: 0; background: #f5f2e9; max-width: none; }
.institutional-home .card-visual-result { aspect-ratio: auto; }
.procedure-card .result-figure { border: 0; border-radius: 0; }
.procedure-card .result-photo { width: min(100%, 265px); margin-inline: auto; }
.procedure-card .result-caption { border-bottom: 1px solid #ded8cb; }

.comparisons-section { overflow: hidden; }
.comparisons-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.comparisons-gallery-head > span { font-size: 13px; }
.comparisons-arrow-group { display: flex; gap: 8px; }
.comparisons-arrow { background: transparent; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.comparisons-arrow:disabled { opacity: .35; }
.comparisons-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  align-items: start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  overscroll-behavior-inline: contain;
}

.comparison-card { scroll-snap-align: start; min-width: 0; }
.comparison-card .result-photo { width: min(100%, 280px); margin-inline: auto; }
.comparison-card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  padding-inline: 8px;
  background: transparent;
  color: #173c31;
  font-weight: 700;
}

.comparison-card-button:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .comparisons-track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
}

@media (max-width: 620px) {
  .comparisons-track { grid-auto-columns: 85%; gap: 12px; }
  .procedure-results { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .comparisons-track { scroll-behavior: auto; }
}
