/*
    Public Profile — SC Design System.
    Desktop: Figma 6jVr7YbefLWCQjcGuvD59L node 2467:12104 (default) /
    2478:39656 (empty) — exact values. Mobile (.pp--mobile) keeps the earlier
    tokens-only styling until a mobile Figma lands.
    Tokens: Inter; Brand/600 #465DA6, Brand/700 #5E69A8, Brand/50 #EBF1FF,
    Brand/25 #F6F9FF; Gray/900 #181D27, Gray/700 #414651, Gray/600 #535862,
    Gray/500 #717680, Gray/300 #D5D7DA, Gray/200 #E9EAEB, Gray/100 #F5F5F5;
    AntD gray/4 #F0F0F0, gray/5 #D9D9D9, gray/7 #8C8C8C, gray/8 #595959.
    Shadow/xs 0 1px 2px rgba(10,13,18,.05); Shadow/lg 0 12px 16px -4px
    rgba(10,13,18,.08), 0 4px 6px -2px rgba(10,13,18,.03).
*/

.pp {
    font-family: 'Inter', sans-serif;
    color: #535862;
    background: #FFFFFF;
}
.pp * { box-sizing: border-box; }

/* Desktop / Mobile roots render together; CSS toggles per viewport
   (same 768px breakpoint as the other migrated desktop/mobile pairs). */
.pp--desktop { display: block; }
.pp--mobile  { display: none; }
@media (max-width: 768px) {
    .pp--desktop { display: none; }
    .pp--mobile  { display: block; }
}

/* ══ Shared base (serves the mobile view; desktop overrides below) ══ */

.pp__container { width: 100%; margin: 0 auto; }
.pp--mobile .pp__container { max-width: 100%; padding: 24px 16px; }

.pp__header { width: 100%; }
.pp--mobile .pp__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E9EAEB;
}

.pp__identity { display: flex; gap: 24px; align-items: flex-start; }
.pp--mobile .pp__identity { gap: 16px; }
.pp__avatar {
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #F5F5F5;
}
.pp--mobile .pp__avatar { width: 80px; height: 80px; }

.pp__info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pp__name {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #181D27;
}
.pp--mobile .pp__name { font-size: 24px; line-height: 32px; }
.pp__name img { height: 22px; width: auto; vertical-align: middle; }
.pp__role { margin: 0; font-size: 16px; line-height: 24px; color: #414651; font-weight: 500; }
.pp__bio { margin: 0; font-size: 16px; line-height: 24px; color: #535862; }

.pp__achievements { margin-top: 4px; }

.pp__follow {
    align-self: flex-start;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #465DA6;
    background: #465DA6;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}
.pp__follow:hover { background: #384A85; border-color: #384A85; color: #FFFFFF; }
.pp__follow.following { background: #FFFFFF; color: #465DA6; }
.pp__follow.following:hover { background: #EBF1FF; color: #465DA6; }

/* Preferred-category chips */
.pp__chips { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 16px; }
.pp--mobile .pp__chips { gap: 8px; }
.pp__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 9999px;
    background: #EBF1FF;
    color: #5E69A8;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.pp__chip:hover { background: #DADFED; color: #384A85; }

/* Followers (mobile view only) */
.pp__followers { padding-top: 24px; }
.pp__followers-title {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #414651;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pp__followers-row { display: flex; flex-wrap: wrap; }
.pp__follower-av {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #FFFFFF;
    margin-right: -8px;
    background-color: #F5F5F5;
}

/* About */
.pp__about-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: #181D27;
}
.pp__about {
    font-size: 16px;
    line-height: 24px;
    color: #535862;
}
.pp__about--empty { color: #717680; font-size: 14px; }

/* Tabs (mobile keeps Bootstrap-style tablist) */
.pp__tabs { width: 100%; padding-top: 32px; }
.pp__tablist {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #E9EAEB;
    margin-bottom: 24px;
}
.pp__tab {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #717680;
    cursor: pointer;
    text-decoration: none;
    flex: 1 1 auto;
    text-align: center;
}
.pp__tab:hover { color: #465DA6; }
.pp__tab.active { color: #465DA6; border-bottom-color: #465DA6; }

.pp__panel { padding-bottom: 40px; }
.pp__courses-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .pp__courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .pp__courses-grid { grid-template-columns: 1fr; } }

/* Badges (mobile achievements widget) */
.pp .badge-item { display: inline-block; text-align: center; margin-right: 6px; margin-bottom: 6px; cursor: pointer; transition: transform .2s ease; }
.pp .badge-item:hover { transform: scale(1.1); }
.pp .badge-item img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; border: 2px solid #79B59B; padding: 2px; background: #F5FAF9; }
@keyframes ppBadgePop { 0% { transform: scale(1);} 30% { transform: scale(1.25);} 60% { transform: scale(.95);} 100% { transform: scale(1);} }
.pp .badge-item.pop { animation: ppBadgePop .4s ease; }
@keyframes ppAchFade { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }
.pp .achievements-fade-in { animation: ppAchFade .4s ease; }

/* ══════════════════════════════════════════════════════════════════
   Desktop — Figma 2467:12104 exact values
   ══════════════════════════════════════════════════════════════════ */

.pp--desktop { position: relative; }

/* Hero band: full-bleed 193px, Brand/25 + blurred gradient blob image */
.pp--desktop .pp__hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 193px;
    background: #F6F9FF url('/images/profile/hero-gradient.png') no-repeat -435px -282px / 4030px auto;
    overflow: hidden;
}

.pp--desktop .pp__container {
    position: relative;
    max-width: 1440px;
    padding: 180px 112px 48px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
}
@media (max-width: 1280px) {
    .pp--desktop .pp__container { padding: 180px 32px 48px; }
}

.pp--desktop .pp__main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.pp--desktop .pp__sidebar {
    flex: 0 0 384px;
    width: 384px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Identity ── */
.pp--desktop .pp__identity { gap: 32px; align-items: flex-end; }
.pp--desktop .pp__avatar {
    width: 200px;
    height: 200px;
    border: 6px solid #FFFFFF;
    border-radius: 9999px;
}
.pp--desktop .pp__info { width: 550px; max-width: 100%; padding-top: 36px; gap: 12px; }
.pp--desktop .pp__name { font-size: 24px; line-height: 32px; color: #000000; gap: 8px; }
.pp--desktop .pp__name img { width: 24px; height: 24px; }
.pp--desktop .pp__role { font-size: 16px; line-height: 24px; font-weight: 500; color: #000000; }
.pp--desktop .pp__bio { font-size: 16px; line-height: 24px; color: #595959; }
.pp--desktop .pp__location {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #8C8C8C;
}

/* ── Chips ── */
.pp--desktop .pp__chips { gap: 8px; padding-top: 0; }
.pp--desktop .pp__chip {
    padding: 4px 12px;
    border-radius: 16px;
    background: #EBF1FF;
    color: #465DA6;
    mix-blend-mode: multiply;
}
.pp--desktop .pp__chip--more {
    background: #FFFFFF;
    border: 1px solid #DBDBE1;
    color: #414651;
    mix-blend-mode: normal;
}

/* ── About ── */
.pp--desktop .pp__about {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pp--desktop .pp__about-title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; color: #000000; }
.pp--desktop .pp__about-body {
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    max-height: 96px; /* 4 lines collapsed */
    overflow: hidden;
}
.pp--desktop .pp__about-body--expanded { max-height: none; }
.pp--desktop .pp__about-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #5E69A8;
    cursor: pointer;
}
.pp--desktop .pp__about-toggle--up svg { transform: rotate(180deg); }

/* ── Sidebar actions ── */
.pp--desktop .pp__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}
.pp--desktop .pp__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    cursor: pointer;
    line-height: 0;
}
.pp--desktop .pp__menu-wrap { position: relative; }
.pp--desktop .pp__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 240px;
    background: #FFFFFF;
    border: 1px solid #E9EAEB;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 16px -4px rgba(10, 13, 18, 0.08), 0 4px 6px -2px rgba(10, 13, 18, 0.03);
    z-index: 30;
}
.pp--desktop .pp__menu-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #414651;
    cursor: pointer;
}
.pp--desktop .pp__menu-item:hover { background: #F5F5F5; }

.pp--desktop .pp__follow {
    margin-top: 0;
    align-self: auto;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #465DA6;
    background: #465DA6;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}
.pp--desktop .pp__follow.following,
.pp--desktop .pp__follow--secondary {
    background: #FFFFFF;
    border-color: #D5D7DA;
    color: #414651;
}
.pp--desktop .pp__follow.following:hover { background: #F5F5F5; color: #414651; }

/* ── Sidebar cards ── */
.pp--desktop .pp__card-box {
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
}

/* Metrics card */
.pp--desktop .pp__metrics { padding: 24px; }
.pp--desktop .pp__metrics-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 39px;
    justify-items: center;
}
.pp--desktop .pp__metrics-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    max-width: 100%;
    height: 1px;
    background: #F0F0F0;
    transform: translate(-50%, -50%);
}
.pp--desktop .pp__metrics-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 141px;
    max-height: 100%;
    background: #F0F0F0;
    transform: translate(-50%, -50%);
}
.pp--desktop .pp__metric {
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.pp--desktop .pp__metric-value { font-size: 24px; line-height: 32px; font-weight: 600; color: #000000; }
.pp--desktop .pp__metric-label { font-size: 16px; line-height: 24px; color: #8C8C8C; }

/* People / Featured cards */
.pp--desktop .pp__people,
.pp--desktop .pp__featured {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pp--desktop .pp__box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pp--desktop .pp__box-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: #1C1C1C; }
.pp--desktop .pp__see-all {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #5E69A8;
    text-decoration: none;
}

.pp--desktop .pp__people-list { display: flex; flex-direction: column; gap: 8px; }
.pp--desktop .pp__person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.pp--desktop .pp__person:last-child { border-bottom: none; }
.pp--desktop .pp__person-avatar { position: relative; flex: 0 0 40px; width: 40px; height: 40px; }
.pp--desktop .pp__person-avatar > img:first-child {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #F4F4F4;
    background: #F5F5F5;
}
.pp--desktop .pp__person-verified {
    position: absolute;
    width: 18px;
    height: 18px;
    right: -5px;
    bottom: -5px;
}
.pp--desktop .pp__person-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp--desktop .pp__person-name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp--desktop .pp__person-org {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 22px;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp--desktop .pp__person-org svg { flex-shrink: 0; }
.pp--desktop .pp__person-role {
    font-size: 14px;
    line-height: 22px;
    color: #8C8C8C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp--desktop .pp__btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #414651;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.pp--desktop .pp__btn-sm:hover { background: #F5F5F5; }

.pp--desktop .pp__featured-list { display: flex; flex-direction: column; gap: 8px; }
.pp--desktop .pp__featured-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
}
.pp--desktop .pp__featured-row:last-child { border-bottom: none; }
.pp--desktop .pp__featured-thumb {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    background: #F5F5F5;
}
.pp--desktop .pp__featured-thumb--play { border-radius: 50%; background: none; }
.pp--desktop .pp__featured-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp--desktop .pp__featured-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #1C1C1C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp--desktop .pp__featured-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 22px;
    color: #262626;
}

/* ── Tabs card ── */
.pp--desktop .pp__tabs-card {
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    padding: 0 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #FFFFFF;
}
.pp--desktop .pp__tablist {
    display: flex;
    gap: 24px;
    height: 80px;
    border-bottom: 1px solid #D9D9D9;
    margin-bottom: 0;
    filter: drop-shadow(0 1px 1px rgba(10, 13, 18, 0.05));
}
.pp--desktop .pp__tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 80px;
    padding: 16px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #717680;
    text-align: left;
    cursor: pointer;
}
.pp--desktop .pp__tab:hover { color: #465DA6; }
.pp--desktop .pp__tab.active {
    font-weight: 600;
    color: #465DA6;
    border-bottom-color: #465DA6;
}

.pp--desktop .pp__panel { display: none; padding-bottom: 0; flex-direction: column; gap: 24px; }
.pp--desktop .pp__panel.active { display: flex; }

/* Content rows */
.pp--desktop .pp__card { display: flex; gap: 16px; }
.pp--desktop .pp__card--hidden { display: none; }
.pp--desktop .pp__card-thumb {
    position: relative;
    flex: 0 0 220px;
    width: 220px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
}
.pp--desktop .pp__card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp--desktop .pp__card-chip {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 2px 8px;
    border-radius: 16px;
    background: #EAF8F6;
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    color: #269387;
    white-space: nowrap;
}
.pp--desktop .pp__card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pp--desktop .pp__card-text { display: flex; flex-direction: column; gap: 8px; }
.pp--desktop .pp__card-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #1C1C1C;
    text-decoration: none;
}
.pp--desktop .pp__card-title:hover { color: #465DA6; }
.pp--desktop .pp__card-excerpt {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #595959;
    max-height: 50px;
    overflow: hidden;
}
.pp--desktop .pp__card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    line-height: 24px;
    color: #595959;
}
.pp--desktop .pp__card-count { display: inline-flex; align-items: center; gap: 4px; }

.pp--desktop .pp__show-more {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #414651;
    cursor: pointer;
}
.pp--desktop .pp__show-more:hover { background: #F5F5F5; }

/* Empty states */
.pp--desktop .pp__empty {
    width: 352px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.pp--desktop .pp__empty-text { display: flex; flex-direction: column; gap: 4px; }
.pp--desktop .pp__empty-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: #181D27; }
.pp--desktop .pp__empty-subtitle { margin: 0; font-size: 14px; line-height: 20px; color: #535862; }

/* ══ Followers / Following modal (Figma 2571:56538) — same block lives in my-profile.css ══ */
.pp--desktop .pp__metric--clickable { cursor: pointer; }

.fmodal { position: fixed; inset: 0; z-index: 1000; font-family: 'Inter', sans-serif; }
.fmodal[hidden] { display: none; }
.fmodal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.fmodal__dialog {
    position: absolute;
    top: 176px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    max-width: calc(100vw - 48px);
    max-height: 486px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 24px -4px rgba(10, 13, 18, 0.08), 0 8px 8px -4px rgba(10, 13, 18, 0.03);
    padding: 24px 24px 0;
    display: flex;
    flex-direction: column;
}
.fmodal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.fmodal__title { margin: 0; font-size: 18px; line-height: 28px; font-weight: 600; color: #181D27; }
.fmodal__close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}
.fmodal__list { overflow-y: auto; flex: 1 1 auto; padding-bottom: 16px; }
.fmodal__list::-webkit-scrollbar { width: 8px; }
.fmodal__list::-webkit-scrollbar-thumb { background: #E9EAEB; border-radius: 8px; }
.fmodal__list::-webkit-scrollbar-track { background: transparent; margin: 4px; }
.fmodal__row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
    border-radius: 8px;
}
.fmodal__avatar { position: relative; flex: 0 0 48px; width: 48px; height: 48px; }
.fmodal__avatar > img:first-child {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #F4F4F4;
    background: #F5F5F5;
}
.fmodal__verified { position: absolute; width: 18px; height: 18px; right: -5px; bottom: -5px; }
.fmodal__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fmodal__name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fmodal__name:hover { color: #465DA6; }
.fmodal__org {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 22px;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fmodal__org svg { flex-shrink: 0; }
.fmodal__role {
    font-size: 14px;
    line-height: 22px;
    color: #8C8C8C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fmodal__btn {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #414651;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.fmodal__btn:hover { background: #F5F5F5; }

/* ══ Anonymous auth gate (Figma 2594:59839 sign-up / 2594:59899 sign-in) ══ */
.agate { position: fixed; inset: 0; z-index: 1100; font-family: 'Inter', sans-serif; }
.agate[hidden] { display: none; }
.agate__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.agate__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 512px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 12px rgba(10, 13, 18, 0.08), 0 8px 4px rgba(10, 13, 18, 0.03);
    padding: 24px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.agate__close-row { display: flex; justify-content: flex-end; width: 100%; }
.agate__close { background: none; border: none; padding: 0; cursor: pointer; line-height: 0; }
.agate__content {
    width: 453px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.agate__text { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.agate__title { margin: 0; font-size: 30px; line-height: 38px; font-weight: 600; color: #181D27; text-align: center; }
.agate__desc { margin: 0; font-size: 16px; line-height: 24px; color: #535862; text-align: center; }

.agate__panel { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.agate__socials { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.agate__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.agate__social--google { background: #FFFFFF; border: 1px solid #D5D7DA; color: #414651; }
.agate__social--google:hover { background: #F5F5F5; color: #414651; }
.agate__social--facebook { background: #1877F2; border: 1px solid #1877F2; color: #FFFFFF; }
.agate__social--facebook:hover { background: #0f6ae0; color: #FFFFFF; }
.agate__social--linkedin { background: #2F63B9; border: 1px solid #2F63B9; color: #FFFFFF; }
.agate__social--linkedin:hover { background: #27579f; color: #FFFFFF; }

.agate__socials-compact { width: 100%; display: flex; gap: 16px; }
.agate__social-sm {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    cursor: pointer;
}

.agate__divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    color: #717680;
}
.agate__divider span { flex: 1 1 auto; height: 1px; background: #E9EAEB; }

.agate__form { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.agate__field { display: flex; flex-direction: column; gap: 6px; }
.agate__label { font-size: 14px; line-height: 20px; font-weight: 500; color: #414651; }
.agate__input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #181D27;
}
.agate__input::placeholder { color: #717680; }
.agate__input:focus { outline: none; border-color: #465DA6; }
.agate__forgot {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #465DA6;
    text-decoration: none;
}
.agate__form-error { margin: 0; font-size: 14px; line-height: 20px; color: #D92D20; }
.agate__login-btn {
    width: 100%;
    padding: 10px 18px;
    background: #465DA6;
    border: 1px solid #465DA6;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    cursor: pointer;
}
.agate__login-btn:hover { background: #384A85; border-color: #384A85; }

.agate__switch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    line-height: 20px;
    color: #535862;
}
.agate__switch {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #5E69A8;
    cursor: pointer;
}
.agate__terms {
    margin: 0;
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    color: #717680;
    text-align: center;
}
.agate__terms a { color: #717680; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════
   Mobile — Figma Qkw1rAqYvxShVppu34QlEv 1816:2539 exact values
   (root .pp--mobile; the old tokens-only .pp--mobile rules above are
   superseded — the new view uses ppm__ classes)
   ══════════════════════════════════════════════════════════════════ */

.pp--mobile { position: relative; }

.ppm__head { position: relative; background: #FFFFFF; overflow: hidden; }
.ppm__hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #F6F9FF url('/images/profile/hero-gradient.png') no-repeat -118px -76px / 1092px auto;
    overflow: hidden;
}
.ppm__avatar-row {
    position: relative;
    height: 117px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.ppm__avatar {
    width: 72px;
    height: 72px;
    border: 2.16px solid #FFFFFF;
    border-radius: 9999px;
    object-fit: cover;
    background: #F5F5F5;
    flex-shrink: 0;
}
.ppm__actions {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
    align-self: flex-start;
}
.ppm__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    cursor: pointer;
    line-height: 0;
}
.ppm__menu-wrap { position: relative; }
.ppm__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #FFFFFF;
    border: 1px solid #E9EAEB;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 16px -4px rgba(10, 13, 18, 0.08), 0 4px 6px -2px rgba(10, 13, 18, 0.03);
    z-index: 30;
}
.ppm__menu-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #414651;
    cursor: pointer;
}
.ppm__menu-item:hover { background: #F5F5F5; }
.ppm__follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #465DA6;
    border: 1px solid #465DA6;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
}
.ppm__follow:hover { background: #384A85; color: #FFFFFF; }
.ppm__follow.following,
.ppm__follow--secondary {
    background: #FFFFFF;
    border-color: #D5D7DA;
    color: #414651;
}
.ppm__follow.following:hover { background: #F5F5F5; color: #414651; }

.ppm__identity {
    padding: 4px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ppm__name {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: #000000;
}
.ppm__name img { width: 20px; height: 20px; }
.ppm__role { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: #000000; }
.ppm__bio { margin: 0; font-size: 14px; line-height: 20px; color: #595959; }

/* Tabs (5) */
.ppm__tablist {
    display: flex;
    gap: 24px;
    height: 57px;
    padding: 0 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #D9D9D9;
    overflow-x: auto;
}
.ppm__tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 57px;
    padding: 16px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #717680;
    cursor: pointer;
    white-space: nowrap;
}
.ppm__tab.active { font-weight: 600; color: #465DA6; border-bottom-color: #465DA6; }

.ppm__panel {
    display: none;
    padding: 16px 16px 32px;
    background: #FFFFFF;
    flex-direction: column;
    gap: 16px;
}
.ppm__panel.active { display: flex; }
.ppm__panel--about { padding: 16px 16px 48px; gap: 24px; }

/* List rows (articles / multimedia) */
.ppm__row {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}
.ppm__panel .ppm__row:last-of-type { border-bottom: none; padding-bottom: 0; }
.ppm__row--hidden { display: none !important; }
.ppm__row-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
}
.ppm__row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppm__row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ppm__row-chip {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 16px;
    background: #EAF8F6;
    font-size: 12px;
    line-height: 20px;
    color: #269387;
    mix-blend-mode: multiply;
    white-space: nowrap;
}
.ppm__row-title {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    text-decoration: none;
}
.ppm__row-title:hover { color: #465DA6; }
.ppm__row-excerpt {
    margin: 0;
    font-size: 12px;
    line-height: 20px;
    color: #595959;
    max-height: 39px;
    overflow: hidden;
}
.ppm__row-meta {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    line-height: 18px;
    color: #595959;
}
.ppm__row-count { display: inline-flex; align-items: center; gap: 4px; }

/* Cards (courses / events) */
.ppm__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 14px;
    padding: 10px 10px 12px;
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.07);
}
.ppm__card-body { display: flex; gap: 12px; padding: 0 4px; }
.ppm__card-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ppm__card-cover {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
}
.ppm__card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppm__card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.ppm__card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 20px;
    color: #595959;
}
.ppm__card-meta-item--sm { gap: 4px; color: #8C8C8C; }
.ppm__card-meta-item img { width: 16px; height: 16px; }
.ppm__card-divider { border-top: 1px solid #F0F0F0; }
.ppm__event-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px 2px 6px;
    border-radius: 16px;
    background: #F3FFFD;
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    color: #269387;
}
.ppm__event-dot { width: 8px; height: 8px; border-radius: 50%; background: #269387; }
.ppm__event-when { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 20px; }
.ppm__event-date { color: #465DA6; }
.ppm__event-time { color: #8C8C8C; }

.ppm__show-more {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #414651;
    cursor: pointer;
}

/* Empty states */
.ppm__empty {
    width: 100%;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.ppm__empty-text { max-width: 266px; display: flex; flex-direction: column; gap: 4px; }
.ppm__empty-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #181D27; }
.ppm__empty-subtitle { margin: 0; font-size: 14px; line-height: 20px; color: #535862; }

/* About tab sections */
.ppm__about-section { display: flex; flex-direction: column; gap: 8px; }
.ppm__section-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: #000000; }
.ppm__about-body {
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    max-height: 80px; /* 4 lines collapsed */
    overflow: hidden;
}
.ppm__about-body--expanded { max-height: none; }
.ppm__about-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #5E69A8;
    cursor: pointer;
}
.ppm__about-toggle--up svg { transform: rotate(180deg); }
.ppm__location {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
}
.ppm__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ppm__chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 16px;
    background: #EBF1FF;
    color: #465DA6;
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    mix-blend-mode: multiply;
}
.ppm__chip--more {
    background: #FFFFFF;
    border: 1px solid #DBDBE1;
    color: #414651;
    mix-blend-mode: normal;
}

/* Network (metrics) card */
.ppm__metrics {
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    padding: 20px;
}
.ppm__metrics-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
    justify-items: center;
}
.ppm__metrics-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 1px;
    background: #F0F0F0;
    transform: translate(-50%, -50%);
}
.ppm__metrics-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 100%;
    background: #F0F0F0;
    transform: translate(-50%, -50%);
}
.ppm__metric {
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.ppm__metric--clickable { cursor: pointer; }
.ppm__metric-value { font-size: 16px; line-height: 24px; font-weight: 600; color: #000000; }
.ppm__metric-label { font-size: 16px; line-height: 24px; color: #8C8C8C; }

/* ── Mobile sheets: followers/following modal + auth gate ≤768px ── */
@media (max-width: 768px) {
    .fmodal__dialog {
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 100vw;
        max-height: 70vh;
        border-radius: 8px 8px 0 0;
        padding: 16px 16px 0;
        box-shadow: none;
    }
    .fmodal__overlay { background: rgba(0, 0, 0, 0.3); }
    .fmodal__title { font-size: 16px; line-height: 24px; font-weight: 700; color: rgba(0, 0, 0, 0.88); }
    .fmodal__row { padding: 0 0 12px; border-bottom: 1px solid #F0F0F0; margin-bottom: 12px; border-radius: 0; }
    .fmodal__avatar { flex-basis: 36px; width: 36px; height: 36px; }
    .fmodal__avatar > img:first-child { width: 36px; height: 36px; }
    .fmodal__verified { width: 16px; height: 16px; right: -4px; bottom: -4px; }
    .fmodal__org, .fmodal__role { font-size: 12px; line-height: 20px; }
    .fmodal__org svg { width: 12px; height: 12px; }

    .agate__dialog {
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 100vw;
        max-height: 90vh;
        border-radius: 8px 8px 0 0;
        padding: 16px 16px 24px;
    }
    .agate__overlay { background: rgba(0, 0, 0, 0.3); }
    .agate__title { font-size: 20px; line-height: 30px; }
    .agate__desc { font-size: 14px; line-height: 20px; }
    .agate__terms { font-size: 12px; line-height: 18px; }
}

/* =================================================================
   Interaction & accessibility enhancements
   ================================================================= */

/* Focus-visible rings (Brand/600 accent) */
.pp__follow:focus-visible,
.pp__chip:focus-visible,
.pp__tab:focus-visible,
.pp .badge-item:focus-visible,
.pp__about-toggle:focus-visible,
.pp__icon-btn:focus-visible,
.pp__menu-item:focus-visible,
.pp__see-all:focus-visible,
.pp__person-name:focus-visible,
.pp__btn-sm:focus-visible,
.pp__card-title:focus-visible,
.pp__show-more:focus-visible,
.pp__metric--clickable:focus-visible,
.fmodal__close:focus-visible,
.fmodal__name:focus-visible,
.fmodal__btn:focus-visible,
.agate__close:focus-visible,
.agate__social:focus-visible,
.agate__social-sm:focus-visible,
.agate__forgot:focus-visible,
.agate__login-btn:focus-visible,
.agate__switch:focus-visible,
.ppm__icon-btn:focus-visible,
.ppm__menu-item:focus-visible,
.ppm__follow:focus-visible,
.ppm__tab:focus-visible,
.ppm__row-title:focus-visible,
.ppm__show-more:focus-visible,
.ppm__about-toggle:focus-visible,
.ppm__chip:focus-visible,
.ppm__metric--clickable:focus-visible {
    outline: 2px solid #465DA6;
    outline-offset: 2px;
}

/* Hover states for controls that lacked them */
.pp__about-toggle:hover,
.ppm__about-toggle:hover,
.pp__see-all:hover,
.agate__switch:hover { color: #384A85; }
.pp__person-name:hover,
.ppm__tab:hover { color: #465DA6; }
.agate__forgot:hover { color: #384A85; text-decoration: underline; }
.agate__terms a:hover { color: #535862; }
.ppm__chip:hover { background: #DADFED; color: #384A85; }
.pp__icon-btn:hover,
.agate__social-sm:hover,
.ppm__icon-btn:hover,
.ppm__show-more:hover { background: #F5F5F5; }
.pp__metric--clickable:hover,
.ppm__metric--clickable:hover,
.fmodal__close:hover,
.agate__close:hover { background: rgba(0, 0, 0, 0.04); }

/* Pressed (non-motion) state for buttons and links */
.pp__follow:active,
.pp__chip:active,
.pp__tab:active,
.pp .badge-item:active,
.pp__about-toggle:active,
.pp__icon-btn:active,
.pp__menu-item:active,
.pp__see-all:active,
.pp__person-name:active,
.pp__btn-sm:active,
.pp__card-title:active,
.pp__show-more:active,
.pp__metric--clickable:active,
.fmodal__close:active,
.fmodal__name:active,
.fmodal__btn:active,
.agate__close:active,
.agate__social:active,
.agate__social-sm:active,
.agate__forgot:active,
.agate__login-btn:active,
.agate__switch:active,
.ppm__icon-btn:active,
.ppm__menu-item:active,
.ppm__follow:active,
.ppm__tab:active,
.ppm__row-title:active,
.ppm__show-more:active,
.ppm__about-toggle:active,
.ppm__chip:active,
.ppm__metric--clickable:active { filter: brightness(0.96); }

/* Hide the mobile tablist scrollbar and smooth its scroll */
.ppm__tablist { scrollbar-width: none; scroll-behavior: smooth; }
.ppm__tablist::-webkit-scrollbar { display: none; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .pp .badge-item.pop,
    .pp .achievements-fade-in { animation: none !important; }
    .pp .badge-item,
    .pp .badge-item:hover { transition: none; transform: none; }
}
