/* The guide profile is a self-contained, responsive rendering of the public
   profile. Keep these selectors separate from the live profile page styles. */
.profile-guide__demo-profile .pg-profile,
.profile-guide__demo-profile .pg-profile * { box-sizing: border-box; }
.profile-guide__demo-profile .pg-profile { width: 100%; height: 100%; overflow: hidden; background: #fff; color: #172331; font-family: inherit; }
.profile-guide__demo-profile .pg-profile--desktop { display: grid; grid-template-rows: 31% 92px 56px 38px minmax(0, 1fr); }
.profile-guide__demo-profile .pg-profile--mobile { display: none; }
.profile-guide__demo-profile .pg-profile__cover { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #173140; }
.profile-guide__demo-profile .pg-profile__cover::after { position: absolute; inset: 0; background: linear-gradient(0deg, #0d283a5c, transparent 72%); content: ""; pointer-events: none; }
.profile-guide__demo-profile .pg-profile__cover > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.profile-guide__demo-profile .pg-profile__guide-label { position: absolute; z-index: 1; top: 12px; left: 14px; padding: 5px 9px; border: 1px solid #ffffff75; border-radius: 99px; background: #142936b5; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.1; }
.profile-guide__demo-profile .pg-profile__cover-action { position: absolute; z-index: 1; top: 10px; right: 12px; display: grid; width: 32px; height: 32px; min-height: 0; padding: 0; place-items: center; border: 1px solid #ffffff80; border-radius: 10px; background: #142936b5; color: #fff; box-shadow: none; }
.profile-guide__demo-profile .pg-profile__cover-action img,
.profile-guide__demo-profile .pg-profile__cover-action svg { display: block; width: 17px; height: 17px; filter: brightness(0) invert(1); }
.profile-guide__demo-profile .pg-profile__identity { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 0 16px; background: #fff; }
.profile-guide__demo-profile .pg-profile__avatar,
.profile-guide__demo-profile .pg-profile__mobile-avatar { position: relative; z-index: 1; width: 76px; height: 76px; padding: 3px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: conic-gradient(#f97316 0 33%, #e9eef0 33%); box-shadow: 0 5px 18px #102b3540; }
.profile-guide__demo-profile .pg-profile__avatar { align-self: start; margin-top: -26px; }
.profile-guide__demo-profile .pg-profile__avatar img,
.profile-guide__demo-profile .pg-profile__mobile-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-guide__demo-profile .pg-profile__person { min-width: 0; }
.profile-guide__demo-profile .pg-profile h3 { overflow: hidden; margin: 0; color: #15202d; font-size: 18px; font-weight: 850; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.profile-guide__demo-profile .pg-profile__handle { overflow: hidden; margin: 3px 0 0; color: #6c7886; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.profile-guide__demo-profile .pg-profile__bio { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: #596875; font-size: 10px; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.profile-guide__demo-profile .pg-profile__actions,
.profile-guide__demo-profile .pg-profile__mobile-actions { display: flex; align-items: center; gap: 5px; }
.profile-guide__demo-profile .pg-profile__actions button,
.profile-guide__demo-profile .pg-profile__mobile-actions button { display: grid; min-height: 28px; padding: 0 8px; place-items: center; border: 1px solid #e3e7eb; border-radius: 8px; background: #fff; color: #1c2b37; font-size: 10px; font-weight: 750; line-height: 1; white-space: nowrap; }
.profile-guide__demo-profile .pg-profile__actions .pg-profile__follow,
.profile-guide__demo-profile .pg-profile__mobile-actions .pg-profile__follow { border-color: #f56d2d; background: #f56d2d; color: #fff; }
.profile-guide__demo-profile .pg-profile__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: center; height: 46px; margin: 0 16px; overflow: hidden; border: 1px solid #e3e8ec; border-radius: 11px; background: #fff; box-shadow: 0 7px 22px #10273516; }
.profile-guide__demo-profile .pg-profile__stats > span { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-right: 1px solid #e8ecef; }
.profile-guide__demo-profile .pg-profile__stats > span:last-child { border-right: 0; }
.profile-guide__demo-profile .pg-profile__stats strong { color: #15202d; font-size: 15px; font-weight: 850; line-height: 1; }
.profile-guide__demo-profile .pg-profile__stats small { overflow: hidden; max-width: 100%; color: #74808a; font-size: 8px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.profile-guide__demo-profile .pg-profile__tabs { display: flex; align-items: end; gap: clamp(10px, 2vw, 20px); min-width: 0; margin: 0 16px; overflow: hidden; border-bottom: 1px solid #e7ebee; color: #798591; font-size: 10px; white-space: nowrap; }
.profile-guide__demo-profile .pg-profile__tabs > * { display: block; padding-bottom: 8px; font-weight: 500; }
.profile-guide__demo-profile .pg-profile__tabs b { border-bottom: 2px solid #f56d2d; color: #1b2935; font-weight: 800; }
.profile-guide__demo-profile .pg-profile__feed { position: relative; min-height: 0; margin: 8px 16px 12px; overflow: hidden; border-radius: 11px; background: #1a3641; color: #fff; }
.profile-guide__demo-profile .pg-profile__feed::after { position: absolute; inset: 0; background: linear-gradient(0deg, #091b27d9, transparent 82%); content: ""; pointer-events: none; }
.profile-guide__demo-profile .pg-profile__feed img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-guide__demo-profile .pg-profile__feed > span,
.profile-guide__demo-profile .pg-profile__feed > strong { position: absolute; z-index: 1; left: 12px; color: #fff; }
.profile-guide__demo-profile .pg-profile__feed > span { bottom: 29px; font-size: 9px; }
.profile-guide__demo-profile .pg-profile__feed > strong { bottom: 10px; font-size: 13px; line-height: 1.2; }

@media (max-width: 850px) {
    .profile-guide__demo-profile .pg-profile--desktop { display: none; }
    .profile-guide__demo-profile .pg-profile--mobile { display: block; overflow-y: auto; scrollbar-width: none; }
    .profile-guide__demo-profile .pg-profile--mobile::-webkit-scrollbar { display: none; }
    .profile-guide__demo-profile .pg-profile--mobile > .pg-profile__cover { height: 28%; min-height: 108px; }
    .profile-guide__demo-profile .pg-profile__mobile-top-actions { position: absolute; z-index: 1; top: 8px; right: 9px; display: flex; gap: 6px; }
    .profile-guide__demo-profile .pg-profile__mobile-top-actions .pg-profile__cover-action { position: static; width: 29px; height: 29px; border-radius: 50%; }
    .profile-guide__demo-profile .pg-profile__mobile-top-actions .pg-profile__cover-action img,
    .profile-guide__demo-profile .pg-profile__mobile-top-actions .pg-profile__cover-action svg { width: 15px; height: 15px; }
    .profile-guide__demo-profile .pg-profile__mobile-top-actions .pg-profile__cover-action svg { filter: none; }
    .profile-guide__demo-profile .pg-profile__mobile-body { padding: 0 12px 15px; }
    .profile-guide__demo-profile .pg-profile__mobile-avatar { width: 66px; height: 66px; margin-top: -30px; }
    .profile-guide__demo-profile .pg-profile__rank { display: inline-flex; align-items: center; gap: 4px; margin-top: 1px; padding: 3px 7px; border-radius: 99px; background: #fff2e9; color: #c45a2b; font-size: 8px; line-height: 1.3; }
    .profile-guide__demo-profile .pg-profile__rank span { padding-left: 5px; border-left: 1px solid #e7b79f; }
    .profile-guide__demo-profile .pg-profile__mobile-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin-top: 6px; }
    .profile-guide__demo-profile .pg-profile__mobile-name-row > div:first-child { min-width: 0; }
    .profile-guide__demo-profile .pg-profile__mobile-name-row h3 { font-size: 16px; }
    .profile-guide__demo-profile .pg-profile__mobile-name-row p { margin: 1px 0 0; color: #7b8792; font-size: 9px; }
    .profile-guide__demo-profile .pg-profile__reputation { display: flex; width: 80px; flex: 0 0 80px; flex-direction: column; padding: 4px 6px; border: 1px solid #d6e7de; border-radius: 8px; background: #f1f8f3; color: #255849; }
    .profile-guide__demo-profile .pg-profile__reputation small { font-size: 6px; line-height: 1; }
    .profile-guide__demo-profile .pg-profile__reputation strong { margin-top: 2px; font-size: 11px; line-height: 1; }
    .profile-guide__demo-profile .pg-profile__reputation em { color: #778f84; font-size: 7px; font-style: normal; }
    .profile-guide__demo-profile .pg-profile__reputation span { overflow: hidden; margin-top: 2px; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
    .profile-guide__demo-profile .pg-profile__location { margin: 4px 0 0; color: #77818c; font-size: 9px; }
    .profile-guide__demo-profile .pg-profile--mobile .pg-profile__bio { margin-top: 4px; font-size: 9px; }
    .profile-guide__demo-profile .pg-profile--mobile .pg-profile__stats { height: 42px; margin: 8px 0 0; box-shadow: none; }
    .profile-guide__demo-profile .pg-profile--mobile .pg-profile__stats strong { font-size: 13px; }
    .profile-guide__demo-profile .pg-profile--mobile .pg-profile__stats small { font-size: 7px; }
    .profile-guide__demo-profile .pg-profile__mobile-actions { margin-top: 7px; }
    .profile-guide__demo-profile .pg-profile__mobile-actions button { min-height: 31px; flex: 1; font-size: 9px; }
    .profile-guide__demo-profile .pg-profile__award { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px; border: 1px solid #f2dfcd; border-radius: 10px; background: #fff8f2; }
    .profile-guide__demo-profile .pg-profile__award > img { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
    .profile-guide__demo-profile .pg-profile__award > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 1px; }
    .profile-guide__demo-profile .pg-profile__award small { color: #d56736; font-size: 7px; text-transform: uppercase; }
    .profile-guide__demo-profile .pg-profile__award strong { color: #25303a; font-size: 10px; }
    .profile-guide__demo-profile .pg-profile__award span { color: #79828c; font-size: 7px; }
    .profile-guide__demo-profile .pg-profile--mobile .pg-profile__tabs { gap: 12px; margin: 11px 0 0; font-size: 9px; }
    .profile-guide__demo-profile .pg-profile--mobile .pg-profile__tabs > * { padding-bottom: 6px; }
    .profile-guide__demo-profile .pg-profile--mobile .pg-profile__feed { height: 82px; margin: 8px 0 0; }
}

html[data-theme="dark"] .profile-guide__demo-profile .pg-profile,
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__identity { background: #1b2b39; color: #edf3f5; }
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile h3,
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__stats strong,
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__tabs b { color: #f2f6f8; }
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__handle,
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__bio,
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__location { color: #b7c5ce; }
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__stats,
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__actions .pg-profile__message,
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__mobile-actions .pg-profile__message { border-color: #405261; background: #263948; color: #edf3f5; }
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__tabs { border-color: #405261; color: #bac6ce; }
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__award { border-color: #664838; background: #382c28; }
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__award strong { color: #f3f5f6; }
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__reputation { border-color: #436454; background: #244638; color: #def1e4; }
html[data-theme="dark"] .profile-guide__demo-profile .pg-profile__reputation em { color: #aac9b7; }
