/* Application fields on BIOTEN Packaging landing pages. */
#domains .bp7141-domain-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 12px 16px;
}

#domains .bp7141-domain-card {
  display: grid;
  grid-template-columns: clamp(88px, 10vw, 132px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.25vw, 16px);
  padding: 9px 16px 9px 9px;
  background: var(--bp7141-paper-soft);
  border: 1px solid var(--bp7141-line);
  border-radius: 16px;
  text-decoration: none;
}

#domains .bp7141-domain-card:hover {
  border-color: var(--bp7141-blue);
}

#domains .bp7141-domain-card:focus-visible {
  outline: 2px solid var(--bp7140-blue);
  outline-offset: 3px;
}

#domains .bp7141-domain-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bp7141-paper-warm);
}

#domains .bp7141-domain-card__body {
  overflow-wrap: anywhere;
  hyphens: auto;
}

#main-content #domains .bp7141-domain-card h3 {
  margin: 0;
  color: var(--bp7141-ink);
  /* Override the shared H3 size for the two card sizes. */
  font-size: clamp(17px, 1.5vw, 20px) !important;
  line-height: 1.28;
}

#domains .bp7141-domain-card p {
  margin: 6px 0 0;
  color: var(--bp7141-copy);
  font-size: 13px;
  line-height: 1.55;
}

#domains :is(.bp7141-domain-card__arrow, .bp7141-domain-card__action) {
  color: var(--bp7318-r22-blue, var(--bp7140-blue));
}

#domains .bp7141-domain-card__arrow {
  font-size: 20px;
}

#domains .bp7141-domain-card--featured {
  grid-row: span 3;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 0;
  padding: 5px;
  border-radius: 22px;
  box-shadow: 0 9px 26px rgba(23, 53, 47, .065);
}

#domains .bp7141-domain-card--featured > img {
  max-height: 320px;
  aspect-ratio: 2 / 1;
  object-position: center 72%;
  border-radius: 16px;
}

#domains .bp7141-domain-card--featured .bp7141-domain-card__body {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(16px, 2vw, 24px);
}

#main-content #domains .bp7141-domain-card--featured h3 {
  font-size: clamp(24px, 2.4vw, 32px) !important;
}

#domains .bp7141-domain-card--featured p {
  font-size: 14px;
  line-height: 1.65;
}

#domains .bp7141-domain-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 860px) {
  #domains .bp7141-domain-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #domains .bp7141-domain-card--featured {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  #domains .bp7141-domain-card:not(.bp7141-domain-card--featured) {
    grid-template-columns: clamp(68px, 22vw, 88px) minmax(0, 1fr) auto;
    padding: 8px 12px 8px 8px;
  }

  #domains .bp7141-domain-card--featured > img {
    aspect-ratio: 16 / 9;
  }
}
