/* Profile information card layered over the home-page portrait. */
.portrait .doctor-profile-card {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 13px;
  left: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid rgba(215, 245, 239, .38);
  border-radius: 12px;
  background: linear-gradient(115deg, rgba(4, 46, 57, .96), rgba(7, 91, 96, .9));
  box-shadow: 0 10px 22px rgba(1, 29, 35, .35), inset 0 1px rgba(255, 255, 255, .13);
  backdrop-filter: blur(8px);
  animation: profileCardEnter .85s .35s cubic-bezier(.22, 1, .36, 1) both;
}

.portrait .doctor-profile-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6c96f, #b98827);
  color: #fff;
  font: 700 .6rem/1 "DM Sans", Arial, sans-serif;
  font-style: normal;
  letter-spacing: .03em;
  box-shadow: 0 4px 10px rgba(0, 30, 34, .28);
}

.portrait .doctor-profile-content {
  position: static;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  color: #fff;
  text-align: left;
  font-family: "DM Sans", Arial, sans-serif;
}

.portrait .doctor-profile-content strong {
  color: #fff;
  font: 700 .82rem/1.1 "DM Sans", Arial, sans-serif;
  letter-spacing: .005em;
}

.portrait .doctor-profile-content b {
  color: #d6f4ee;
  font: 700 .53rem/1.28 "DM Sans", Arial, sans-serif;
  letter-spacing: .035em;
}

.portrait .doctor-profile-content small {
  position: static;
  display: block;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(213, 243, 237, .2);
  color: #b9dcda;
  font: 500 .49rem/1.32 "DM Sans", Arial, sans-serif;
  letter-spacing: .005em;
  opacity: 1;
}

.portrait:hover .doctor-profile-card {
  box-shadow: 0 15px 29px rgba(1, 29, 35, .42), inset 0 1px rgba(255, 255, 255, .17);
  transition: box-shadow .35s ease;
}

@keyframes profileCardEnter {
  from { opacity: 0; transform: translateY(15px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .portrait .doctor-profile-card { right: 8px; bottom: 8px; left: 8px; grid-template-columns: 27px minmax(0, 1fr); gap: 7px; padding: 8px; border-radius: 9px; }
  .portrait .doctor-profile-mark { width: 27px; height: 27px; font-size: .53rem; }
  .portrait .doctor-profile-content strong { font-size: .62rem; }
  .portrait .doctor-profile-content b { font-size: .49rem; }
  .portrait .doctor-profile-content small { font-size: .42rem; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait .doctor-profile-card { animation: none; transition: none; }
}
