/* Plugin markup (shortcodes and templates). rdb- classes only, no dependency on the theme. */
.rdb-breeds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rdb-breeds__link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  min-height: 9rem;
  height: 100%;
  box-sizing: border-box;
  padding: 1rem;
  border-radius: 0.5rem;
  border-top: 0.5rem solid var(--rdb-breed-color, #4a7c3a);
  background: color-mix(in srgb, var(--rdb-breed-color, #4a7c3a) 12%, #fff);
  color: #1d1d1b;
  text-decoration: none;
}

.rdb-breeds__link:hover,
.rdb-breeds__link:focus-visible {
  background: color-mix(in srgb, var(--rdb-breed-color, #4a7c3a) 24%, #fff);
}

.rdb-breeds__image {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.rdb-breeds__name {
  font-weight: 700;
  font-size: 1.125rem;
}

.rdb-breeds__species {
  font-size: 0.875rem;
}

.rdb-breed-header {
  padding-left: 1rem;
  border-left: 0.5rem solid var(--rdb-breed-color, #4a7c3a);
}

.rdb-breed-header__image {
  max-width: 100%;
  height: auto;
}

.rdb-details {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.rdb-details__item {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 1rem;
}

.rdb-details dt {
  font-weight: 700;
}

.rdb-details dd {
  margin: 0;
}

.rdb-card {
  height: 100%;
  padding: 1rem;
  border: 1px solid #d9d9d6;
  border-radius: 0.5rem;
}

.rdb-summary {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
}

.rdb-summary__kind {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0 0.375rem;
  border-radius: 0.25rem;
  background: #ecefe8;
  font-size: 0.8125rem;
}

@media (max-width: 600px) {
  .rdb-details__item {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.rdb-summary__kind--wanted {
  background: #e6edf5;
}

.rdb-ad-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.rdb-ad-filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rdb-ad-filters__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid #d9d9d6;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.rdb-ad-filters__link:hover,
.rdb-ad-filters__link:focus-visible {
  border-color: currentcolor;
}

.rdb-ad-filters__link[aria-current="page"] {
  border-color: #1d1d1b;
  background: #1d1d1b;
  color: #fff;
}

.rdb-ad-contact {
  margin-top: 1rem;
  font-style: italic;
}
