/**
 * Detail hero: title sits on the photo. Hot outline does not box the text.
 * PC ≥1200 pet page: den/engage go under the row so the description
 * is not a tall empty field beside the den.
 * Scoped. Does not edit custom.css / mobile-card-fixes / footer.php.
 * Marker: detailheroboost20260927a
 */

html body .profile-detail-page .pet__top.cotinder-boost-card,
html body .pet-detail-page .pet__top.cotinder-boost-card {
  outline: none !important;
  box-shadow: none !important;
}

html body .profile-detail-page .pet__top > .pet__top_image > .pet__top_photo {
  position: relative;
}

html body .profile-detail-page .pet__top > .pet__top_image > .pet__top_photo > .cotinder-boost-card__title-ribbon {
  position: absolute !important;
  left: 8px !important;
  right: auto !important;
  top: auto !important;
  bottom: 8px !important;
  z-index: 4 !important;
  margin: 0 !important;
  max-width: calc(100% - 16px) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

@media (min-width: 1200px) {
  html body .pet .pet-detail-page .pet__top {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  html body .pet .pet-detail-page .pet__top > .pet__top_media {
    display: contents !important;
  }

  html body .pet .pet-detail-page .pet__top > .pet__top_media > .pet__top_image {
    order: 1;
    flex: 0 0 420px !important;
    flex-basis: 420px !important;
    width: 420px !important;
    max-width: min(420px, 46%) !important;
    min-width: 0 !important;
    align-self: flex-start !important;
  }

  html body .pet .pet-detail-page .pet__top > .pet__top_description {
    order: 2;
    flex: 1 1 280px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    align-self: flex-start !important;
  }

  html body .pet .pet-detail-page .pet__top > .pet__top_media > .pet-engage-strip,
  html body .pet .pet-detail-page .pet__top > .pet__top_media > .cotinder-den {
    order: 3;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
