/* One correctly framed official mark per university on every public surface. */
:is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide):is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide) .pg-hero-identity > img[src*="/university-seals/"],
:is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide):is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide) .pg-seal-wordmark-crop:has(> img[src*="/university-seals/"]) {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  overflow: visible;
  transform: none;
  clip-path: none;
}
:is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide):is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide) .pg-seal-wordmark-crop > img[src*="/university-seals/"] {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  transform: none;
  clip-path: none;
}
/* The viewport already isolates the mark; old wordmark crops must not crop it again. */
.csg-directory-page .csg-directory-card .csg-directory-card-logo:has(img[src*="/university-seals/"]) {
  background: transparent;
  overflow: visible;
  border-radius: 0;
}
.csg-directory-page .csg-directory-card .csg-directory-card-logo img[src*="/university-seals/"] {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: none;
  clip-path: none;
  border-radius: 0;
}
.csg-home-page .csg-home-uni-title img[src*="/university-seals/"] {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  transform: none;
}
@media (max-width: 760px) {
  :is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide):is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide) .pg-hero-identity > img[src*="/university-seals/"],
  :is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide):is(.csg-university-profile-active, .csg-pku-editorial, .pku-guide) .pg-seal-wordmark-crop:has(> img[src*="/university-seals/"]) {
    flex-basis: 49px;
    width: 49px;
    height: 49px;
    padding: 3px;
  }
}
