/* Shared participant card, with each site's own accent colours. */
.participant-summary, #allrecords .participant-summary { box-sizing: border-box; padding: clamp(20px,2.5vw,28px); margin: 18px 0 0; border: 1px solid var(--line,#dce4f4); border-radius: 18px; background: var(--wash,#f1f5ff); color: var(--ink,#14234b); text-align: left; font-family: var(--type,"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif); }
.participant-summary .profile-status, .participant-summary-status, #allrecords .participant-summary-status { margin: 0; padding: 0; list-style: none; color: var(--raspberry,var(--action,#ad2467)); font-size: clamp(17px,1.6vw,20px); line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.participant-summary .profile-status { display: grid; gap: 8px; }
.participant-summary .participant-summary-facts, #allrecords .participant-summary-facts { display: grid; gap: 0; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line,#dce4f4); }
.participant-summary-facts > div, #allrecords .participant-summary-facts > div { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 10px 16px; padding-top: 14px; }
.participant-summary-facts dt, #allrecords .participant-summary-facts dt { margin: 0; color: var(--muted,#506083); font: 400 14px/1.45 var(--type,"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif); }
.participant-summary-facts dd, #allrecords .participant-summary-facts dd { margin: 0; color: var(--ink,#14234b); font: 600 16px/1.45 var(--type,"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif); overflow-wrap: anywhere; }
.participant-summary-extra, #allrecords .participant-summary-extra { margin: 14px 0 0; font-size: 16px; line-height: 1.5; }
/* Place the card underneath the photograph on the static profile pages. */
.profile-head { row-gap: 18px; }
.profile-head .profile-info { display: contents; }
.profile-head .profile-photo { grid-column: 1; grid-row: 1; }
.profile-head .profile-info > h1 { grid-column: 2; grid-row: 1; }
.profile-head .profile-caption { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
.profile-head .participant-summary { grid-column: 1; grid-row: 2; width: 100%; max-width: 540px; margin: 0; align-self: start; }
.publish-profile-visual > img { display: block; }
.publish-profile-visual .participant-summary { margin-top: 18px; }
@media (max-width: 760px) {
 .participant-summary, #allrecords .participant-summary { padding: 22px 20px; border-radius: 16px; }
 .profile-head { grid-template-columns: minmax(0,1fr); }
 .profile-head :is(.profile-photo,.profile-info > h1,.profile-caption,.participant-summary) { grid-column: 1; grid-row: auto; }
 .profile-head .profile-photo { order: 0; }
 .profile-head .profile-info > h1 { order: 1; }
 .profile-head .profile-caption { order: 2; }
 .profile-head .participant-summary { order: 3; max-width: none; }
 #allrecords .t544 .t-container { display: grid !important; grid-template-columns: minmax(0,1fr); gap: 22px; padding-inline: 20px; box-sizing: border-box; }
 #allrecords .t544 .t-container::before, #allrecords .t544 .t-container::after { display: none !important; }
 #allrecords .t544__col, #allrecords .t544__textwrapper, #allrecords .t544__content { display: contents !important; }
 #allrecords .t544__blockimg { grid-row: 1; width: 100% !important; height: auto !important; min-height: 0 !important; border-radius: 18px; overflow: hidden; }
 #allrecords .t544__blockimg img { height: auto !important; min-height: 0 !important; }
 #allrecords .t544__title { grid-row: 2; margin: 0 !important; padding: 0 !important; }
 #allrecords .t544 .participant-summary { grid-row: 3; width: 100%; margin: 0; }
 .publish-profile-top { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; }
 .publish-profile-intro, .publish-profile-visual { display: contents; }
 .publish-profile-top > .publish-profile-visual > img { order: 0; }
 .publish-profile-intro > h1 { order: 1; }
 .publish-profile-intro > .lead { order: 2; margin: 0; }
 .publish-profile-top .participant-summary { order: 3; margin: 0; }
 .publish-profile-intro > .vk-link { order: 4; }
}
