.index-cards > div {
  display: flow-root;
  padding: 1rem;
  border: 1px solid #dce2e8;
  border-radius: 0.5rem;
}

.index-cards h3 { margin-top: 0; }

.index-cards .source-diagram {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0.5rem auto 1rem;
}

.index-cards .card-image {
  float: right;
  width: 35%;
  max-width: 170px;
  height: 145px;
  margin: 0 0 0.75rem 1rem;
  object-fit: contain;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 760px;
  margin: 1.25rem auto;
}

.comparison-item figure { margin: 0; }
.comparison-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f8f9fa;
}
.comparison-item figcaption { font-size: 0.85rem; line-height: 1.4; }

@media (max-width: 480px) {
  .comparison-grid { gap: 0.75rem; }
  .comparison-item img { height: 145px; }
  .index-cards .card-image { height: 110px; }
}
