/* German homepage: same BASF/DBC feature as CN/EN, scoped to this module. */
/* Feature the newest solution/release inside the existing application module. */
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) !important;
  grid-template-rows:repeat(3,minmax(90px,1fr)) !important;
  gap:10px !important;
  min-height:290px !important;
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini {
  display:grid !important;
  grid-column:2 !important;
  grid-row:auto !important;
  grid-template-columns:minmax(76px,27%) minmax(0,1fr) !important;
  min-width:0 !important;
  min-height:90px !important;
  height:auto !important;
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini img {
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:90px !important;
  object-fit:cover !important;
}
/* The product group sits on the right of the source image. Bind its focal
   point to the release ID so chronological reordering cannot change it. */
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-bp7151-release-id="BP-001"]:not([data-home-release-featured]) img {
  object-position:100% 65% !important;
}
@media (max-width:1199px) {
  html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-bp7151-release-id="BP-001"]:not([data-home-release-featured]) img {
    object-position:72% 65% !important;
  }
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] .bp7140-release-mini__copy {
  min-width:0 !important;
  max-width:100% !important;
  justify-content:center !important;
  padding:11px 12px !important;
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] .bp7140-release-mini__copy > span {
  margin-bottom:5px !important;
  font-size:10px !important;
  line-height:1.4 !important;
  letter-spacing:.01em !important;
  white-space:normal !important;
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] .bp7140-release-mini__copy strong {
  min-width:0 !important;
  max-width:100% !important;
  font-size:12.5px !important;
  line-height:1.5 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  -webkit-line-clamp:3 !important;
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] {
  position:relative !important;
  grid-column:1 !important;
  grid-row:1 / span 3 !important;
  grid-template-columns:1fr !important;
  grid-template-rows:minmax(130px,1fr) auto !important;
  min-height:290px !important;
  border-color:rgba(46,117,88,.36) !important;
  background:rgba(255,255,255,.78) !important;
  box-shadow:0 8px 22px rgba(28,80,64,.08) !important;
  scroll-margin-top:110px !important;
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured]::before {
  content:attr(data-latest-label) !important;
  position:absolute !important;
  z-index:2 !important;
  top:10px !important;
  left:10px !important;
  padding:4px 10px !important;
  border:1px solid rgba(255,255,255,.8) !important;
  border-radius:999px !important;
  background:#e9f5e9 !important;
  color:#1b6344 !important;
  font-size:10px !important;
  font-weight:750 !important;
  line-height:1.5 !important;
  letter-spacing:.04em !important;
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] img {
  min-height:0 !important;
  max-height:220px !important;
  object-position:center !important;
}
/* Keep the PHA label with the homepage image; the topic uses its own overlay. */
html body.dbc-home-page #main-content #collaboration .basf-release-entry__media {
  position:relative !important;
  display:block !important;
  min-width:0 !important;
  min-height:0 !important;
  overflow:hidden !important;
  container-type:inline-size !important;
}
html body.dbc-home-page #main-content #collaboration [data-home-release-featured] .basf-release-entry__media {
  max-height:220px !important;
}
html body.dbc-home-page #main-content #collaboration .basf-release-entry__pha {
  position:absolute !important;
  left:75.22% !important;
  top:15.245% !important;
  z-index:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:27% !important;
  min-height:12% !important;
  padding:.6cqw .8cqw !important;
  border-radius:1cqw !important;
  transform:translate(-50%,-50%) rotate(-10.4deg) !important;
  background:#ffd600 !important;
  color:#111a12 !important;
  font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif !important;
  font-size:2.7cqw !important;
  font-weight:800 !important;
  line-height:1.1 !important;
  letter-spacing:-.015em !important;
  text-align:center !important;
  white-space:pre !important;
  pointer-events:none !important;
}
html[lang="de"] body.dbc-home-page #main-content #collaboration .basf-release-entry__pha {
  font-size:2cqw !important;
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] .bp7140-release-mini__copy {
  padding:14px 16px !important;
}
html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] .bp7140-release-mini__copy strong {
  display:block !important;
  overflow:visible !important;
  font-size:15px !important;
  line-height:1.45 !important;
  -webkit-line-clamp:unset !important;
}
html body.dbc-home-page #main-content #collaboration .basf-release-entry__action {
  display:block !important;
  margin-top:7px !important;
  color:#24664c !important;
  font-size:11px !important;
  font-weight:650 !important;
  line-height:1.4 !important;
  white-space:normal !important;
}
@media (max-width:660px) {
  html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] {
    grid-template-columns:1fr !important;
    grid-template-rows:none !important;
    min-height:0 !important;
  }
  html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini {
    grid-column:auto !important;
    grid-row:auto !important;
    grid-template-columns:86px minmax(0,1fr) !important;
    min-height:100px !important;
  }
  html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini img {min-height:100px;}
  html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] {
    grid-template-columns:1fr !important;
    grid-template-rows:auto auto !important;
    min-height:0 !important;
  }
  html body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] img {
    min-height:0 !important;
    height:auto !important;
    aspect-ratio:2 / 1 !important;
    object-fit:cover !important;
  }
  html body.dbc-home-page #main-content #collaboration [data-home-release-featured] .basf-release-entry__media {
    max-height:none !important;
  }
}

/* Keep German titles readable without truncation in the three side cards. */
html[lang="de"] body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] {
  grid-template-rows:repeat(3,minmax(120px,1fr)) !important;
}
html[lang="de"] body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini {
  min-height:120px !important;
}
html[lang="de"] body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] .bp7140-release-mini__copy strong {
  hyphens:auto;
  overflow-wrap:break-word !important;
}
@media (max-width:660px) {
  html[lang="de"] body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] {
    grid-template-rows:none !important;
  }
  html[lang="de"] body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] {
    min-height:0 !important;
  }
}
/* Keep the full 2:1 cover and the same content-sized copy padding as CN/EN. */
html[lang="de"] body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] {
  grid-template-rows:auto auto !important;
  align-items:start !important;
  align-self:start !important;
  min-height:0 !important;
}
html[lang="de"] body.dbc-home-page #main-content #collaboration [data-home-release-featured] .basf-release-entry__media {
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  aspect-ratio:2 / 1;
  align-self:start !important;
}
html[lang="de"] body.dbc-home-page #main-content #collaboration [data-home-release-featured] img {
  height:auto !important;
  max-height:none !important;
  aspect-ratio:2 / 1;
}
html[lang="de"] body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] .bp7140-release-mini__copy {
  align-self:start !important;
  justify-content:flex-start !important;
  padding:14px 16px !important;
}
html[lang="de"] body.dbc-home-page #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] .bp7140-release-mini__copy strong {
  margin-top:0 !important;
}

/* German homepage: align the two modules and compact the release cards. */
@media (min-width: 1101px) {
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration .home7202-packaging-entries__inner {
    align-items: stretch !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration .bp7160-sample-card {
    align-self: stretch !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration .bp7160-sample-card__foot {
    margin-top: auto !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration .bp7140-release-rail {
    align-self: stretch !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration .bp7140-release-rail__inner {
    height: 100% !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] {
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    min-height: 0 !important;
    gap: 8px !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) {
    min-height: 0 !important;
    grid-template-columns: minmax(64px, 22%) minmax(0, 1fr) !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) img {
    min-height: 0 !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) .bp7140-release-mini__copy {
    padding: 7px 9px !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) .bp7140-release-mini__copy > span {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
    margin-bottom: 3px !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) .bp7140-release-mini__copy strong {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] {
    align-self: stretch !important;
    height: 100% !important;
  }
}

/* Fill both BIOTEN and DBC business-card image areas without letterboxing. */
html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #platform :is(.v704-route,.v704-brand-card) .v709-card-media > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
@media (min-width: 1101px) {
  html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #collaboration .bp7160-sample-card__products {
    flex: 1 1 auto !important;
    align-content: space-evenly !important;
  }
}
/* Keep the BIOTEN brand name intact when the tile heading wraps. */
html[lang="de"] body.dbc-home-page:is(#de-site-page,#de-product-page,.dbc-home-page) #main-content #platform .v704-route--packaging .v704-route__copy h3 {
  hyphens: manual !important;
}
