/* Shared profile card component, independent of each view's optional metadata. */
.profile-card, .saved-card.profile-card {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
    min-width: 0; min-height: 0; height: 100%; margin: 0; padding: 18px;
    color: var(--text, #302a38); background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e1ea); border-radius: 14px;
    box-shadow: 0 3px 14px rgba(48,45,53,.035); overflow-wrap: anywhere;
}
.profile-card .profile-card-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; margin: 0; order: 0; }
.profile-card .profile-card-avatar { display: block; flex: 0 0 56px; width: 56px; height: 56px; min-width: 56px; max-width: 56px; padding: 0; margin: 0; border: 1px solid var(--border, #e5e1ea); border-radius: 12px; object-fit: cover; background: #f5f3fa; }
.profile-card .profile-card-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.profile-card .profile-card-name { order: 0; margin: 0; color: var(--text, #302a38); font-family: inherit; font-size: var(--type-h3, 1.125rem); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.profile-card .profile-card-type { order: 1; display: block; margin: 0; padding: 0; color: var(--text-soft, #6f6679); font-size: var(--type-small, .875rem); font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: normal; }
.profile-card .profile-card-copy > .entry-freshness-badge,
.profile-card .profile-card-copy > .map2-result-freshness { order: 2; align-self: flex-start; margin: 2px 0 0; }
.profile-card .profile-card-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; order: 10; }
.profile-card .profile-card-role { display: inline-flex; align-items: center; align-self: flex-start; gap: 5px; width: auto; max-width: 100%; margin: 0; padding: 5px 9px; border: 1px solid var(--purple-border, #e1daf5); border-radius: 8px; background: var(--purple-soft, #f3efff); color: var(--purple-dark, #6243df); font-size: var(--type-small, .875rem); font-weight: 700; line-height: 1.4; white-space: normal; }
.profile-card .profile-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; order: 20; }
.profile-card .profile-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 0; color: var(--text-soft, #6f6679); font-size: var(--type-small, .875rem); line-height: 1.5; order: 30; }
.profile-card > .entry-freshness-meta { margin: 0; font-size: var(--type-small, .875rem); order: 35; }
.profile-card .profile-card-distance { margin: 0; color: var(--purple-dark, #6243df); font-size: var(--type-small, .875rem); font-weight: 700; line-height: 1.5; order: 40; }
.profile-card .profile-card-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--border, #e5e1ea); order: 100; }
.profile-card .profile-card-primary, .profile-card .profile-card-secondary, .profile-card .abdl-favorite-button {
    display: inline-flex; flex: 1 1 110px; align-items: center; justify-content: center; gap: 6px;
    position: static; width: auto; min-width: 0; min-height: 44px; height: auto; margin: 0; padding: 9px 11px;
    border: 1px solid var(--purple-border, #e1daf5); border-radius: 9px; color: var(--purple-dark, #6243df); background: var(--purple-soft, #f3efff);
    font-family: inherit; font-size: var(--type-small, .875rem); font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; white-space: normal; cursor: pointer; box-shadow: none; transform: none;
}
.profile-card .profile-card-primary { color: #fff; background: var(--purple, #6243d7); border-color: var(--purple, #6243d7); }
.profile-card .profile-card-primary:hover { background: var(--purple-dark, #6243df); border-color: var(--purple-dark, #6243df); color: #fff; }
.profile-card .profile-card-secondary:hover, .profile-card .abdl-favorite-button:hover { background: #ebe5ff; color: var(--purple-dark, #6243df); }
.profile-card .profile-card-actions > :focus-visible { outline: 3px solid var(--purple-dark, #6243df); outline-offset: 3px; }
.profile-card .profile-card-actions > a::after { content: none; }

.profile-card .profile-card-copy > :not(.profile-card-name):not(.profile-card-type) { order: 2; align-self: flex-start; }
