/**
 * MPISD - Contact Cards Block
 * blocks/contact-cards/style.css
 * White cards with a brand top rule; two per row from 992px, --full keeps one.
 */

.mpisd-contact-cards__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mpisd-contact-cards__card {
  min-width: 0;
  padding: var(--space-lg) var(--space-md);
  border-top: 4px solid var(--color-primary);
  background-color: var(--color-bg-white);
  box-shadow: 0px 10px 40px 0px #0000000D;
}

/* Scoped to the block so global .mpisd-heading-4 doesn't set the margin. */
.mpisd-contact-cards .mpisd-contact-cards__title {
  margin-bottom: var(--space-30);
  color: var(--color-black);
}

.mpisd-contact-cards__copy {
  margin-bottom: var(--space-30);
}

/* The logo card puts the mark beside the list; the list drops under it when narrow */
.mpisd-contact-cards__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-lg) var(--space-xl);
}

.mpisd-contact-cards__logo {
  flex-shrink: 0;
  width: 124px;
  height: auto;
}

.mpisd-contact-cards__items {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mpisd-contact-cards__item + .mpisd-contact-cards__item {
  margin-top: 30px;
}

.mpisd-contact-cards__row {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  color: var(--color-text-primary);
  font-style: normal;
  text-decoration: none;
}

.mpisd-contact-cards__row img {
  flex-shrink: 0;
}

.mpisd-contact-cards__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .mpisd-contact-cards__card {
    padding: var(--space-lg) var(--space-40) 24px;
  }
}

@media (min-width: 992px) {
  .mpisd-contact-cards__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 60px;
  }

  /* Full width: one card per row across the whole container */
  .mpisd-contact-cards--full .mpisd-contact-cards__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Theme addition (no HTML design): an uploaded icon on an Other row takes the built-in icons' size */
.mpisd-contact-cards__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
