/* Scope this presentation to member cards; operator views retain their own UI. */
body.member-page .web-profile-card {
  position: relative;
  margin: 28px 0 32px;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid #dadde0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #252b33);
  box-shadow: 0 4px 18px rgb(37 43 51 / 3%);
  overflow-wrap: anywhere;
  animation: profile-card-appear 180ms ease-out;
}
body.member-page .web-profile-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
body.member-page .web-profile-card__identity { min-width: 0; }
body.member-page .web-profile-card__grade { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 6px; background: #e9eef3; color: #3e5871; font-size: 13px; font-weight: 650; }
body.member-page h3.web-profile-card__name { margin: 0; font-size: clamp(29px, 5vw, 36px); font-weight: 750; line-height: 1.4; letter-spacing: -.035em; }
body.member-page .web-profile-card__name span { display: block; margin-top: 7px; color: #5f6872; font-size: 15px; font-weight: 400; line-height: 1.7; letter-spacing: 0; }
body.member-page .web-profile-card__age { margin: 14px 0 0; font-size: 15px; line-height: 1.8; color: #5f6872; }
body.member-page .web-profile-card__mark { width: 52px; height: 60px; flex: 0 0 52px; margin-top: 10px; color: #3e5871; }
body.member-page .web-profile-card__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid #dadde0; }
body.member-page .web-profile-card__fact { min-width: 0; }
body.member-page .web-profile-card__fact dt { margin: 0 0 4px; color: #5f6872; font-size: 13px; font-weight: 400; line-height: 1.7; }
body.member-page .web-profile-card__fact dd { margin: 0; padding: 0; color: #252b33; font-size: 16px; font-weight: 600; line-height: 1.75; white-space: pre-wrap; }
body.member-page .web-profile-card__stories { margin-top: 26px; padding-top: 24px; border-top: 1px solid #dadde0; }
body.member-page .web-profile-card__story + .web-profile-card__story { margin-top: 26px; }
body.member-page .web-profile-card__story h3 { margin: 0 0 10px; color: #3e5871; font-size: 16px; line-height: 1.7; font-weight: 700; }
body.member-page .web-profile-card__story p { margin: 0; max-width: 65ch; font-size: 17px; line-height: 1.95; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
@keyframes profile-card-appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 440px) {
  body.member-page .web-profile-card__facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.member-page .web-profile-card__mark { width: 42px; height: 50px; flex-basis: 42px; }
  body.member-page .web-profile-card__story p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.member-page .web-profile-card { animation: none; }
}
