/* ── 12 · PROFILE PANEL ──
   The sliding profile panel and its minimal variant, the memories block
   inside it, the "discover someone" button, and their narrow-screen rules.

   Part of the numbered set in css/ — the sheets are one stylesheet cut into
   pieces and index.html links them in this order. Order is the cascade: a
   rule here loses to the same-specificity rule in any later file. */

/* ── Profile sliding panel ── */
.profile-panel {
    --profile-accent: rgba(170, 85, 255, 0.94);
    position: fixed;
    top: 0;
    right: 0;
    width: min(980px, 100vw);
    height: 100vh;
    background: linear-gradient(180deg, #fbfaf7 0%, #f4f1eb 100%);
    box-shadow: -18px 0 56px rgba(7, 12, 22, 0.18);
    border-left: 1px solid rgba(17, 17, 17, 0.06);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.profile-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 18%);
    pointer-events: none;
    z-index: 0;
}

.profile-panel > * {
    position: relative;
    z-index: 1;
}

.profile-panel.is-open {
    transform: translateX(0);
}

/* ── Minimal profile panel (Alumni / Collaborators) ── */
.profile-panel__minimal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0 1.2rem;
    gap: 0.75rem;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.profile-panel__avatar--minimal {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(18, 24, 36, 0.12);
}

.profile-panel__minimal-desc {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.62;
    color: rgba(88, 92, 102, 0.84);
    margin: 0;
    letter-spacing: 0.02em;
    max-width: 40ch;
}
/* ── End minimal profile panel ── */

.profile-panel__close {
    position: sticky;
    top: 1rem;
    align-self: flex-end;
    margin: 1rem 1.25rem 0 0;
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 17, 17, 0.08);
    font-size: 1.3rem;
    cursor: pointer;
    color: #273141;
    z-index: 1;
    line-height: 1;
    padding: 0;
    border-radius: 999px;
    box-shadow: none;
    backdrop-filter: none;
    transition:
        background 0.15s ease,
        transform 0.15s ease,
        color 0.15s ease;
}

.profile-panel__close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    transform: translateY(-1px);
}

.profile-panel__body {
    --profile-body-inline-padding: 2.2rem;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 var(--profile-body-inline-padding) 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-panel--has-discover .profile-panel__body {
    padding-bottom: 8.25rem;
}

.profile-panel__hero {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: start;
}

.profile-panel__sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    position: sticky;
    top: 4rem;
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
    isolation: auto;
}

.profile-panel__sidebar::before {
    display: none;
}

.profile-panel__main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.4rem;
    min-width: 0;
}

.profile-panel__avatar {
    width: min(100%, 188px);
    aspect-ratio: 1;
    height: auto;
    border-radius: 28px;
    object-fit: cover;
    border: 0;
    box-shadow: 0 14px 30px rgba(18, 24, 36, 0.12);
}

.profile-panel__name {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 0.98;
    color: #141821;
    text-align: left;
}

.profile-panel__title {
    display: block;
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--profile-accent) 62%, #596574);
    text-align: left;
}

.profile-panel__affiliation {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
    text-align: left;
    color: #5d6470;
    font-size: 0.95rem;
    line-height: 1.58;
}

.profile-panel__affiliation > :last-child {
    color: color-mix(in srgb, var(--profile-accent) 48%, #6f7784);
}

.profile-panel__summary,
.profile-panel__details-content {
    display: grid;
    gap: 1rem;
    position: relative;
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.profile-panel__details-content {
    margin-top: 0.15rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.profile-panel__summary::before,
.profile-panel__details-content::before {
    display: none;
}

.profile-panel__summary > *,
.profile-panel__details-content > * {
    margin: 0;
}

.profile-panel__summary p,
.profile-panel__summary li,
.profile-panel__details-content p,
.profile-panel__details-content li,
.profile-panel__details {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.03rem;
    line-height: 1.8;
    color: #383c44;
    text-align: left;
}

.profile-panel__summary strong,
.profile-panel__summary b,
.profile-panel__details-content strong,
.profile-panel__details-content b {
    color: #1e1b17;
}

.profile-panel__summary a,
.profile-panel__details-content a {
    color: #214c8d;
    text-decoration-color: rgba(33, 76, 141, 0.35);
}

.profile-panel__summary a:hover,
.profile-panel__details-content a:hover {
    color: #111;
}

.profile-panel__details-media-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.profile-panel__details-media-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 30, 0.42);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.profile-panel__details-media-link::after {
    content: "See my CV";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, calc(-50% + 0.35rem));
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
    pointer-events: none;
}

.profile-panel__details-media-link:hover::before,
.profile-panel__details-media-link:focus-visible::before {
    opacity: 1;
}

.profile-panel__details-media-link:hover::after,
.profile-panel__details-media-link:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.profile-panel__details-media-link:focus-visible {
    outline: none;
}

.profile-panel__details-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.profile-panel__achievement-box {
    display: grid;
    gap: 0.2rem;
}

.profile-panel__achievement-list {
    display: grid;
    gap: 0.85rem;
}

.profile-panel__achievement-item {
    display: grid;
    gap: 0.35rem;
}

.profile-panel__achievement-toggle {
    display: grid;
    grid-template-columns: 1.05rem minmax(0, 1fr);
    column-gap: 0.8rem;
    align-items: start;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.profile-panel__achievement-toggle.is-static {
    cursor: default;
}

.profile-panel__achievement-toggle:focus-visible {
    outline: none;
}

.profile-panel__achievement-marker {
    display: inline-block;
    align-self: start;
    padding-top: 0.58rem;
    font-size: 1rem;
    line-height: 1;
    color: #b8891c;
    transform-origin: center;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.profile-panel__achievement-copy {
    display: grid;
    min-width: 0;
    padding: 0.55rem 0 0.15rem;
    transition: transform 0.18s ease;
}

.profile-panel__achievement-toggle:hover .profile-panel__achievement-copy,
.profile-panel__achievement-toggle.is-active .profile-panel__achievement-copy,
.profile-panel__achievement-toggle:focus-visible .profile-panel__achievement-copy {
    transform: translateX(2px);
}

.profile-panel__achievement-toggle:hover .profile-panel__achievement-marker,
.profile-panel__achievement-toggle.is-active .profile-panel__achievement-marker,
.profile-panel__achievement-toggle:focus-visible .profile-panel__achievement-marker {
    color: #8f6a11;
    transform: scale(1.08);
}

.profile-panel__achievement-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.02rem;
    line-height: 1.34;
    color: #20242c;
}

.profile-panel__achievement-detail {
    display: none;
    padding: 0 0 0.25rem calc(1.05rem + 0.8rem);
}

.profile-panel__achievement-detail.is-visible {
    display: block;
}

.profile-panel__achievement-detail-text {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    line-height: 1.68;
    color: #5a5145;
}

.profile-panel__contact {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    align-items: flex-start;
}

.profile-panel__email {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    color: #254f91;
    word-break: break-word;
    text-align: left;
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.profile-panel__email:hover {
    color: #111;
    transform: none;
}

.profile-panel__fun-fact {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.95rem 0 0.15rem 1.1rem;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.profile-panel__fun-fact::before {
    content: "";
    position: absolute;
    inset: 0.95rem auto 0.15rem 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(212, 165, 74, 0.95), rgba(240, 190, 86, 0.35));
}

.profile-panel__fun-fact-label {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #926815;
}

.profile-panel__fun-fact-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.72;
    color: #4a4237;
}

.profile-panel__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
}

.profile-panel__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    border: 0;
    color: color-mix(in srgb, var(--profile-accent) 72%, #293955);
    text-decoration: none;
    box-shadow: none;
    padding: 0.15rem;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-panel__social svg {
    width: 1.25rem;
    height: 1.25rem;
}

.si-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background-color: currentColor;
    -webkit-mask: var(--si) center / contain no-repeat;
    mask: var(--si) center / contain no-repeat;
    flex-shrink: 0;
}

.profile-panel__social:hover {
    background: none;
    color: #111;
    transform: translateY(-1px);
    box-shadow: none;
}

.profile-panel__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-panel__keyword {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.05);
    color: #555;
}

.profile-panel__sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 2.5rem;
    align-items: start;
}

.profile-panel__sections-column {
    display: grid;
    gap: 2rem;
    align-content: start;
    min-width: 0;
}

.profile-panel__section {
    background: none;
    border: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 0;
    padding: 1.25rem 0 0;
    box-shadow: none;
}

.profile-panel__section-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--profile-accent) 62%, #546270);
    margin-bottom: 0.9rem;
}

.profile-panel__interest-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 0;
    margin: 0;
    list-style: none;
    color: #3d3933;
    line-height: 1.68;
}

.profile-panel__interest-list li {
    position: relative;
    padding-left: 1rem;
}

.profile-panel__interest-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--profile-accent) 70%, white);
    box-shadow: none;
}

.profile-panel__education-list {
    position: relative;
    display: grid;
    gap: 0.85rem;
}

.profile-panel__education-list::before {
    content: "";
    position: absolute;
    left: 5.7rem;
    top: 0.95rem;
    bottom: 0.95rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.22), rgba(17, 17, 17, 0.06));
}

.profile-panel__education-list.has-one-entry::before {
    display: none;
}

.profile-panel__education-item {
    position: relative;
    display: grid;
    gap: 0.45rem;
}

.profile-panel__education-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 4.25rem 1.1rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.9rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.profile-panel__education-toggle.is-static {
    cursor: default;
}

.profile-panel__education-toggle:focus-visible {
    outline: none;
}

.profile-panel__education-year {
    display: inline-block;
    align-self: start;
    padding-top: 0.95rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: color-mix(in srgb, var(--profile-accent) 78%, #24364f);
    text-transform: uppercase;
}

.profile-panel__education-marker {
    position: relative;
    justify-self: center;
    align-self: start;
    width: 0.78rem;
    height: 0.78rem;
    margin-top: 1.1rem;
    border-radius: 50%;
    background: #fbfaf7;
    border: 2px solid color-mix(in srgb, var(--profile-accent) 66%, white);
    box-shadow: 0 0 0 0.36rem #f4f1eb;
}

.profile-panel__education-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.95rem;
    min-width: 0;
    padding: 0.8rem 1rem 0.84rem;
    border-radius: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: none;
    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.profile-panel__education-copy {
    display: grid;
    gap: 0.14rem;
    min-width: 0;
}

.profile-panel__education-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.03rem;
    line-height: 1.3;
    color: #20242c;
}

.profile-panel__education-meta {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6d7580;
}

.profile-panel__education-logo {
    width: 2.65rem;
    height: 2.65rem;
    object-fit: contain;
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.profile-panel__education-toggle:hover .profile-panel__education-card,
.profile-panel__education-toggle.is-active .profile-panel__education-card,
.profile-panel__education-toggle:focus-visible .profile-panel__education-card {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.72);
}

.profile-panel__education-toggle.is-active .profile-panel__education-marker,
.profile-panel__education-toggle:focus-visible .profile-panel__education-marker {
    border-color: var(--profile-accent);
}

.profile-panel__education-detail {
    display: none;
    margin-left: calc(4.25rem + 1.1rem + 1.8rem);
    padding: 0.15rem 0 0.25rem 0.95rem;
}

.profile-panel__education-detail.is-visible {
    display: block;
}

.profile-panel__education-detail-text {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.93rem;
    line-height: 1.68;
    color: #4c5562;
    white-space: pre-line;
}

.profile-panel__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 18, 0.34);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

.profile-panel__backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Memories section ── */
.profile-panel__memories {
    background: none;
    border: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 0;
    padding: 1.25rem 0 0;
    box-shadow: none;
    margin-top: 0.6rem;
}

.profile-panel__memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    max-height: 9rem;
    overflow: hidden;
}

.profile-panel__memories-grid.is-expanded {
    max-height: 9999px;
}

.profile-panel__memories-toggle {
    display: block;
    width: calc(100% + (var(--profile-body-inline-padding) * 2));
    margin-top: 0.95rem;
    margin-inline: calc(var(--profile-body-inline-padding) * -1);
    padding: 0.78rem 0.2rem 0.82rem;
    background: linear-gradient(180deg, rgba(115, 123, 137, 0.1), rgba(115, 123, 137, 0.16));
    border: 0;
    border-radius: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--profile-accent) 62%, #52606c);
    cursor: pointer;
    text-align: center;
    box-shadow: none;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.profile-panel__memories-toggle:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(115, 123, 137, 0.13), rgba(115, 123, 137, 0.2));
    color: #223a62;
}

.profile-panel__memory-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.profile-panel__memory-thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(18, 24, 36, 0.12);
}

.profile-panel__memory-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-panel__memory-thumb-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
    opacity: 0;
    transition: opacity 0.18s ease;
    text-align: left;
}

.profile-panel__memory-thumb:hover .profile-panel__memory-thumb-caption {
    opacity: 1;
}

/* ── Discover random person button ── */
.profile-panel__discover {
    position: fixed;
    right: clamp(1rem, 2.2vw, 1.7rem);
    bottom: clamp(1rem, 2.2vw, 1.7rem);
    z-index: 205;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.78rem;
    width: min(19rem, calc(100vw - 2rem));
    height: 3.3rem;
    margin: 0;
    padding: 0 0.92rem;
    border: 1px solid color-mix(in srgb, var(--discover-color, rgba(170, 85, 255, 0.94)) 24%, rgba(255, 255, 255, 0.35));
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 26%),
        linear-gradient(
            160deg,
            color-mix(in srgb, var(--discover-color, rgba(170, 85, 255, 0.94)) 76%, white),
            color-mix(in srgb, var(--discover-color, rgba(170, 85, 255, 0.94)) 90%, #172030)
        );
    color: #fff;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
    box-shadow: 0 18px 34px rgba(18, 24, 36, 0.24);
    text-align: left;
    backdrop-filter: blur(10px);
}

.profile-panel__discover:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(18, 24, 36, 0.28);
    filter: saturate(1.04);
}

.profile-panel__discover:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
}

.profile-panel__discover-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.profile-panel__discover-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.71rem;
    font-weight: 600;
    line-height: 1.32;
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
    letter-spacing: 0.01em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-panel--minimal .profile-panel__body {
    max-width: 820px;
}

.profile-panel--minimal .profile-panel__sections {
    grid-template-columns: 1fr;
}

.profile-panel__minimal-header .profile-panel__name {
    text-align: center;
}

/* ── Profile panel responsive: stack on narrow screens ── */
@media (max-width: 820px) {
    .profile-panel__hero {
        grid-template-columns: 1fr;
    }

    .profile-panel__sidebar {
        position: static;
        align-items: center;
        text-align: center;
    }

    .profile-panel__avatar {
        align-self: center;
    }

    .profile-panel__name,
    .profile-panel__title,
    .profile-panel__affiliation,
    .profile-panel__contact,
    .profile-panel__socials {
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .profile-panel__sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .profile-panel__body {
        --profile-body-inline-padding: 1.1rem;
        padding: 0 var(--profile-body-inline-padding) 5rem;
    }

    .profile-panel--has-discover .profile-panel__body {
        padding-bottom: 7.6rem;
    }

    .profile-panel__avatar {
        width: min(100%, 180px);
    }

    .profile-panel__name {
        font-size: 1.65rem;
    }

    .profile-panel__summary p,
    .profile-panel__summary li,
    .profile-panel__details-content p,
    .profile-panel__details-content li,
    .profile-panel__details {
        font-size: 1rem;
        line-height: 1.72;
    }

    .profile-panel__contact {
        align-items: center;
    }

    .profile-panel__socials {
        justify-content: center;
    }

    .profile-panel__summary,
    .profile-panel__details-content,
    .profile-panel__achievement-box,
    .profile-panel__section,
    .profile-panel__memories,
    .profile-panel__minimal-header,
    .profile-panel__sidebar {
        border-radius: 0;
    }

    .profile-panel__education-list::before {
        left: 4.7rem;
    }

    .profile-panel__education-toggle {
        grid-template-columns: 3.4rem 0.9rem minmax(0, 1fr);
        column-gap: 0.7rem;
    }

    .profile-panel__education-year {
        padding-top: 0.9rem;
        font-size: 0.64rem;
    }

    .profile-panel__education-marker {
        margin-top: 1rem;
    }

    .profile-panel__education-card {
        column-gap: 0.7rem;
        padding: 0.76rem 0.8rem 0.78rem;
    }

    .profile-panel__education-logo {
        width: 2.2rem;
        height: 2.2rem;
    }

    .profile-panel__education-detail {
        margin-left: calc(3.4rem + 0.9rem + 1.4rem);
        padding-left: 0.8rem;
    }

    .profile-panel__discover {
        right: 0.85rem;
        bottom: 0.9rem;
        width: min(16rem, calc(100vw - 1.7rem));
        height: 3rem;
        padding: 0 0.82rem;
        column-gap: 0.72rem;
    }

    .profile-panel__discover-avatar {
        width: 2.7rem;
        height: 2.7rem;
    }

    .profile-panel__discover-text {
        font-size: 0.64rem;
    }

    .people-tabs-nav {
        padding: 0 1rem;
    }

    .research-tabs-nav {
        justify-content: flex-start;
    }

    .people-tab-btn {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .research-tab-btn {
        white-space: nowrap;
    }

    .collaboration-network {
        aspect-ratio: 1 / 1.06;
        min-height: 24rem;
    }
}

