/* Merit Dog Grid — all rules scoped to the widget; no theme-wide selectors. */
.mdg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 15px;
  padding: 10px;
  background: #f0eeeb;
  font-family: 'Poppins', Arial, sans-serif;
  box-sizing: border-box;
}
.mdg-grid *, .mdg-grid *::before, .mdg-grid *::after { box-sizing: border-box; }
.mdg-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 340px;
  padding: 60px 15px 24px;
  border-radius: 9px;
  background: #363737;
  color: #fff;
}
.mdg-eyebrow {
  display: block;
  margin: 0 0 13px;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.mdg-intro__title {
  margin: 0 0 23px;
  color: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.6px;
}
.mdg-intro__text {
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.58;
}
.mdg-card {
  min-width: 0;
  min-height: 322px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 9px;
  padding: 7px 7px 13px;
  overflow: hidden;
}
.mdg-card__media { width: 100%; flex: 0 0 auto; min-width: 0; }
.mdg-card__image {
  display: block;
  width: 100%;
  height: 140px;
  border-radius: 7px;
  object-fit: cover;
  object-position: center;
  background: #c6cdd2;
}
.mdg-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 12px 0;
}
.mdg-card__category {
  margin: 0 0 12px;
  color: #d59041;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}
.mdg-card__name {
  margin: 0 0 18px;
  color: #0c0c0c;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.mdg-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 10px;
  color: #17191d;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}
.mdg-card__meta-item { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.mdg-card__meta-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #a4784e; }
.mdg-card__meta-icon svg { width: 10px; height: 10px; fill: currentColor; }
.mdg-card__footer {
  display: flex;
  min-height: 53px;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.mdg-card__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
  padding: 6px 14px;
  border: none;
  border-radius: 50px;
  background: #262932;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  transition: background-color .15s ease, color .15s ease;
}
.mdg-card__button:hover, .mdg-card__button:focus-visible { background: #bb9570; color: #fff; }
.mdg-card__button:focus-visible { outline: 2px solid #bb9570; outline-offset: 3px; }
.mdg-card__button--no-link { cursor: default; }
.mdg-card__adopted {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
  transform: rotate(-9deg);
}
@media (max-width: 767px) {
  .mdg-grid { grid-template-columns: 1fr; gap: 14px; }
  .mdg-intro { min-height: 235px; padding: 36px 24px 30px; }
  .mdg-card { min-height: 325px; }
  .mdg-card__image { height: 215px; }
  .mdg-card__body { padding: 16px 16px 2px; }
  .mdg-card__footer { padding-top: 21px; }
}
