/** Version 5.0.28 requested popup-media presentation. */
.had-detail-drawer.is-v5026-source-grounded-image .had-record-cover.has-record-image,
.had-detail-drawer.is-v5026-blog-media .had-record-cover.has-record-image {
  background: #eef3f6;
}
.had-detail-drawer.is-v5026-source-grounded-image .had-record-cover.has-record-image > img,
.had-detail-drawer.is-v5026-blog-media .had-record-cover.has-record-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background: #fff;
}
.had-drawer-actions [data-had-detail-url] {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
@media (max-width: 760px) {
  .had-detail-drawer.is-v5026-source-grounded-image .had-record-cover.has-record-image,
  .had-detail-drawer.is-v5026-blog-media .had-record-cover.has-record-image {
    min-height: 240px;
  }
}

/*
 * v5.0.28 targeted footer-action repair.
 * Older popup-standard/blog-summary styles intentionally suppress the shared
 * source anchor. Blog and Public Engagement are the two explicit exceptions.
 * Keep the action in the same footer row immediately beside Return to dashboard.
 */
.had-detail-drawer.is-v5026-blog-media.is-blog-summary .had-drawer-actions [data-had-detail-url]:not([hidden]),
.had-detail-drawer.is-v5026-blog-media.is-academic-portfolio-standard .had-drawer-actions [data-had-detail-url]:not([hidden]) {
  display: inline-flex !important;
}

/* v5.0.29 Blog share action. */
.had-share-control {
  position: relative;
  display: inline-flex;
}
.had-share-button,
.had-drawer-actions .had-share-button,
.had-blog-single-actions .had-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .68rem 1rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.had-share-button:focus-visible,
.had-share-menu a:focus-visible,
.had-share-menu button:focus-visible {
  outline: 2px solid #0a8aa0;
  outline-offset: 2px;
}
.had-share-menu {
  position: absolute;
  z-index: 80;
  left: 0;
  bottom: calc(100% + .55rem);
  display: none;
  min-width: 210px;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  padding: .45rem;
  background: #fff;
  color: #173846;
  border: 1px solid #bfd2d9;
  box-shadow: 0 18px 42px rgba(9, 39, 52, .18);
}
.had-share-menu.is-open { display: grid; }
.had-share-menu a,
.had-share-menu button {
  display: block;
  width: 100%;
  padding: .62rem .7rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.had-share-menu a:hover,
.had-share-menu button:hover { background: #edf5f7; }
@media (max-width: 760px) {
  .had-share-menu {
    left: auto;
    right: 0;
    min-width: 190px;
  }
}
