/* ============================================================================
   app-medico.css — lo que solo usa la ficha del medico.
   GENERADO por tools/split-families-css.php — NO editar a mano.
   La fuente es assets/css/app.css. Tras cualquier cambio ahi:
       php tools/split-families-css.php
   ========================================================================== */

/* ==== repartido desde app.css (split-families-css.php) ==== */
.profile-header {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.profile-header img {
    height: 52px;
    width: auto;
}

.profile-header nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 900;
}

.profile-header nav a,
.profile-header nav button {
    border: 0;
    border-radius: 8px;
    background: #fff;
    padding: .75rem .9rem;
}

.profile-header nav button {
    background: var(--green);
    color: #fff;
}

.profile-floating-cta {
    position: absolute;
    right: 0;
    bottom: -2.1rem;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 72px;
    border: 0;
    border-radius: 999px 0 0 999px;
    background: #fff;
    padding: 0 2rem;
    color: var(--navy);
    font-weight: 950;
    box-shadow: 0 18px 40px rgba(38, 33, 97, .18);
}

.profile-floating-cta svg {
    color: var(--green);
}

.profile-story {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem 4rem;
    max-width: 1180px;
    padding-top: 2rem;
}

.profile-story article {
    border: 0;
    padding: 0;
    box-shadow: none;
}

.profile-section-title {
    border-left: 3px solid var(--green);
    padding-left: 1rem;
}

.profile-section-title h2 {
    color: #1769aa;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 950;
    line-height: 1.1;
}

.profile-story article strong {
    display: block;
    margin-bottom: 1rem;
    color: #111827;
    font-weight: 950;
}

@media (max-width: 900px) {
.profile-section-title {
        margin-top: 1rem;
    }
.profile-header {
        align-items: start;
        flex-direction: column;
    }
.profile-header nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
.profile-shell #colinasAi.cai-root {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

.profile-shell {
    background: #f7f3ec;
    min-height: 100vh;
}

.profile-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1rem clamp(2rem, 4vw, 3rem);
}

@media (min-width: 640px) {
.profile-hero {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
.profile-hero {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.profile-hero-card {
    display: grid;
    grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 80px rgba(38, 33, 97, .06), 0 2px 8px rgba(38, 33, 97, .02);
}

.profile-portrait {
    position: relative;
    background: linear-gradient(135deg, #f8f6f0, #eae2d6);
    display: flex;
}

.profile-portrait img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-portrait::after {
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .4));
    pointer-events: none;
}

.profile-portrait-badge {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    padding: .5rem 1rem;
    color: var(--navy);
    font-size: .75rem;
    font-weight: 950;
    box-shadow: 0 8px 24px rgba(38, 33, 97, .12);
}

.profile-portrait-badge svg {
    color: var(--green);
}

.profile-identity {
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff, #fdfbf7);
}

.profile-pills {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.profile-specialty-pill {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    background: rgba(111, 180, 63, .12);
    padding: .35rem .8rem;
    color: var(--green);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-subspecialty-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--navy-soft, #efeff8);
    padding: .35rem .8rem;
    color: var(--navy);
    font-size: .76rem;
    font-weight: 800;
}

.profile-identity h1 {
    margin-top: 1rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.1rem, 3.6vw, 3.4rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -.015em;
}

.profile-identity>p {
    margin-top: 1.1rem;
    color: #57534c;
    font-size: 1rem;
    line-height: 1.7;
}

.profile-quick-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.profile-quick-actions .btn {
    min-height: 52px;
}

.profile-quick-actions .btn-ghost {
    border: 1px solid #e5ddd1;
    background: #fff;
    color: var(--navy);
}

.profile-quick-actions .btn-ghost:hover {
    border-color: var(--navy);
    background: #faf7f1;
}

.profile-meta-strip {
    margin-top: 3rem;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    border-top: 1px solid #ece5da;
}

.profile-meta-strip>div {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.profile-meta-strip span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(111, 180, 63, .1);
    color: var(--green);
    flex-shrink: 0;
}

.profile-meta-strip small {
    display: block;
    color: #8c8982;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.profile-meta-strip strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
    word-break: break-word;
    line-height: 1.3;
}

.profile-meta-strip a {
    color: var(--navy);
}

.profile-meta-strip a:hover {
    color: var(--green);
}

.profile-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem clamp(4rem, 6vw, 6rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 640px) {
.profile-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
.profile-body {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.profile-card {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #fcfcfb);
    padding: clamp(2rem, 3.5vw, 2.5rem);
    box-shadow: 0 24px 48px rgba(38, 33, 97, .04), 0 4px 12px rgba(38, 33, 97, .01);
}

.profile-card+.profile-card {
    margin-top: 1.5rem;
}

.profile-card h2 {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.2;
}

.profile-card h2 svg {
    color: var(--green);
}

.profile-card p {
    margin-top: 1rem;
    color: #57534c;
    line-height: 1.75;
    font-size: .96rem;
}

.profile-card .profile-card-lead {
    display: block;
    margin-top: .5rem;
    color: #1c1a17;
    font-weight: 900;
    font-size: 1rem;
}

.profile-associations {
    margin-top: 1.2rem;
    display: grid;
    gap: .65rem;
}

.profile-associations p {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 0;
    padding: .85rem 1rem;
    border: 1px solid #f0ebe3;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--navy);
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.4;
}

.profile-associations p svg {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    padding: 7px;
}

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

.profile-info-card {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #fcfcfb);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(38, 33, 97, .04), 0 4px 12px rgba(38, 33, 97, .01);
}

.profile-info-card h3 {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(38, 33, 97, .04);
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 950;
}

.profile-info-card h3 svg {
    color: var(--green);
}

.profile-info-card dl {
    display: grid;
}

.profile-info-card dl div {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(38, 33, 97, .03);
}

.profile-info-card dl div:last-child {
    border-bottom: 0;
}

.profile-info-card dt {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #a8a39a;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.profile-info-card dt svg {
    color: var(--green);
}

.profile-info-card dd {
    margin: .4rem 0 0;
    color: var(--navy);
    font-size: .94rem;
    font-weight: 850;
    line-height: 1.5;
    word-break: break-word;
}

.profile-info-card dd a {
    color: var(--navy);
}

.profile-info-card dd a:hover {
    color: var(--green);
}

.profile-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    text-align: center;
}

.profile-empty h1 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 950;
}

.profile-empty p {
    margin-top: 1rem;
    color: #6f6d68;
    line-height: 1.7;
}

.profile-empty .btn {
    margin-top: 2rem;
}

@media (max-width: 1180px) {
.profile-meta-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.profile-meta-strip>div:nth-child(2n) {
        border-left: 1px solid #f0ebe3;
    }
.profile-meta-strip>div:nth-child(2n+1) {
        border-left: 0;
    }
}

@media (max-width: 900px) {
.profile-hero-card {
        grid-template-columns: 1fr;
    }
.profile-bottom-grid {
        grid-template-columns: 1fr;
    }
.profile-portrait {
        min-height: 360px;
    }
.profile-meta-strip {
        grid-template-columns: 1fr;
    }
.profile-meta-strip>div+div {
        border-left: 0;
        border-top: 1px solid #f0ebe3;
    }
}

@media (max-width: 640px) {
.profile-hero-card {
        border-radius: 20px;
    }
.profile-identity {
        padding: 1.75rem 1.5rem;
    }
.profile-identity h1 {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
    }
.profile-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
.profile-info-card h3,
    .profile-info-card dl div {
        padding: 1.1rem 1.25rem;
    }
.profile-quick-actions .btn {
        flex: 1 1 calc(50% - 0.75rem);
        justify-content: center;
        padding: 0 1rem;
    }
.profile-quick-actions .btn-green {
        flex: 1 1 100%;
    }
}

.profile-shell {
    min-height: 100dvh;
    background: #edf1f3;
}

.profile-hero {
    max-width: none;
    margin: 0;
    padding: .85rem max(1rem, calc((100vw - 1280px) / 2 + 2rem)) 3.5rem;
    background: #1d1957;
}

.profile-hero-card {
    display: grid;
    max-width: 1216px;
    min-height: 610px;
    margin: 0 auto;
    grid-template-columns: minmax(360px, .4fr) minmax(0, .6fr);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-portrait {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border-radius: 8px;
    background: #dfe5e7;
}

.profile-portrait img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% 14%;
    transform: scale(1.01);
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.profile-portrait:hover img {
    transform: scale(1.035);
}

.profile-portrait::after {
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(15, 13, 47, .76));
}

.profile-portrait-badge {
    left: 1.25rem;
    top: auto;
    bottom: 1.2rem;
    z-index: 2;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    box-shadow: none;
}

.profile-portrait-badge svg {
    color: #b8ef9e;
}

.profile-identity {
    display: flex;
    justify-content: center;
    padding: 2.25rem 0 1rem clamp(2.5rem, 5vw, 5rem);
    background: transparent;
}

.profile-pills {
    gap: .65rem 1rem;
}

.profile-specialty-pill,
.profile-subspecialty-pill {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
}

.profile-specialty-pill {
    gap: .4rem;
    color: #b8ef9e;
}

.profile-subspecialty-pill {
    color: rgba(255, 255, 255, .82);
}

.profile-identity h1 {
    max-width: 700px;
    margin-top: 1.15rem;
    color: #fff;
    font-size: clamp(3.4rem, 5vw, 5.6rem);
    font-weight: 760;
    line-height: .92;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.profile-identity > p {
    max-width: 620px;
    margin-top: 1.4rem;
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 1.65;
    text-wrap: pretty;
}

.profile-quick-actions {
    margin-top: 1.65rem;
    gap: .6rem;
}

.profile-quick-actions .btn {
    min-height: 48px;
    border-radius: 6px;
    box-shadow: none;
}

.profile-quick-actions .btn-green {
    color: #171442;
}

.profile-quick-actions .btn-ghost {
    border-color: rgba(255, 255, 255, .28);
    background: transparent;
    color: #fff;
}

.profile-quick-actions .btn-ghost:hover {
    border-color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .08);
}

.profile-meta-strip {
    margin-top: 2.25rem;
    padding-top: 1.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.5rem;
    border-top-color: rgba(255, 255, 255, .2);
}

.profile-meta-strip > div {
    gap: .65rem;
}

.profile-meta-strip span {
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: transparent;
    color: #b8ef9e;
}

.profile-meta-strip small {
    margin-bottom: .15rem;
    color: rgba(255, 255, 255, .5);
    font-size: .66rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.profile-meta-strip strong,
.profile-meta-strip a {
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}

.profile-meta-strip a:hover {
    color: #d1f6be;
}

.profile-body {
    display: block;
    max-width: 1280px;
    padding-top: clamp(3.5rem, 5vw, 5rem);
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
    align-items: start;
    gap: 1.5rem;
}

.profile-narrative {
    display: grid;
    gap: 1.25rem;
}

.profile-card,
.profile-info-card {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 28, 44, .08);
}

.profile-card {
    padding: clamp(2rem, 3vw, 3rem);
}

.profile-card + .profile-card {
    margin-top: 0;
}

.profile-card h2,
.profile-info-card h3 {
    color: var(--navy);
    font-weight: 760;
    letter-spacing: -.02em;
}

.profile-card h2 {
    gap: .65rem;
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}

.profile-card h2 svg,
.profile-info-card h3 svg {
    color: #4e7f38;
}

.profile-card .profile-card-lead {
    margin-top: .9rem;
    color: #303741;
    font-size: 1rem;
    font-weight: 700;
}

.profile-card p {
    max-width: 72ch;
    margin-top: 1.25rem;
    color: #4e5660;
    font-size: 1rem;
    line-height: 1.75;
}

.profile-associations {
    margin-top: 1.35rem;
    gap: 0;
    border-top: 1px solid #e2e6e8;
}

.profile-associations p {
    gap: .7rem;
    border: 0;
    border-bottom: 1px solid #e2e6e8;
    border-radius: 0;
    background: transparent;
    padding: .95rem 0;
    color: #3d4650;
    font-size: .9rem;
    font-weight: 650;
}

.profile-associations p svg {
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: transparent;
    color: #4e7f38;
    padding: 0;
}

.profile-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 1rem;
}

.profile-info-card h3 {
    padding: 1.3rem 1.4rem;
    border-bottom-color: #e2e6e8;
    font-size: 1.15rem;
}

.profile-info-card dl div {
    padding: 1rem 1.4rem;
    border-bottom-color: #e8ebed;
}

.profile-info-card dt {
    color: #616a74;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.profile-info-card dt svg {
    color: #4e7f38;
}

.profile-info-card dd {
    margin-top: .35rem;
    color: #303741;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.5;
}

.profile-info-card dd a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: rgba(38, 33, 97, .25);
    text-underline-offset: 3px;
}

@media (max-width: 1000px) {
.profile-hero-card {
        grid-template-columns: minmax(300px, .42fr) minmax(0, .58fr);
    }
.profile-identity {
        padding-left: 2.5rem;
    }
.profile-content-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 820px) {
.profile-hero-card {
        grid-template-columns: 1fr;
    }
.profile-portrait {
        min-height: 440px;
    }
.profile-identity {
        padding: 2.25rem 0 1rem;
    }
.profile-identity h1 {
        max-width: 680px;
    }
.profile-content-grid {
        grid-template-columns: 1fr;
    }
.profile-sidebar {
        position: static;
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    }
}

@media (max-width: 640px) {
.profile-hero {
        padding: .75rem max(1rem, env(safe-area-inset-right)) 2.5rem max(1rem, env(safe-area-inset-left));
    }
.profile-hero-card {
        min-height: 0;
    }
.profile-portrait {
        min-height: 360px;
        border-radius: 6px;
    }
.profile-identity {
        padding-top: 1.8rem;
    }
.profile-pills {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }
.profile-identity h1 {
        font-size: clamp(2.6rem, 12vw, 3.65rem);
        line-height: .95;
    }
.profile-identity > p {
        font-size: .95rem;
    }
.profile-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
.profile-quick-actions .btn,
    .profile-quick-actions .btn-green {
        min-height: 48px;
        flex: initial;
    }
.profile-quick-actions .btn-green {
        grid-column: 1 / -1;
    }
.profile-meta-strip {
        grid-template-columns: 1fr;
        gap: .85rem;
    }
.profile-meta-strip > div + div {
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-top: .8rem;
    }
.profile-body {
        padding-top: 2.5rem;
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }
.profile-card {
        border-radius: 6px;
        padding: 1.5rem 1.25rem;
    }
.profile-card h2 {
        align-items: flex-start;
        font-size: 1.5rem;
    }
.profile-card p {
        font-size: .95rem;
    }
.profile-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
.profile-portrait:hover img {
        transform: scale(1.01);
    }
}

@media (prefers-reduced-motion: reduce) {
.profile-portrait img {
        transition: none;
    }
}

.profile-portrait {
    box-shadow: 18px 18px 0 rgba(111, 180, 63, .18);
}

.profile-institution {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .58);
    font-size: .72rem;
    font-weight: 650;
}

.profile-institution::before {
    width: 1.8rem;
    height: 2px;
    background: var(--green);
    content: "";
}

.profile-identity {
    position: relative;
    padding-left: clamp(3.5rem, 6vw, 6rem);
    animation: clinical-copy-in .7s .08s cubic-bezier(.22, 1, .36, 1) both;
}

.profile-identity::after {
    position: absolute;
    right: 0;
    bottom: .65rem;
    color: rgba(255, 255, 255, .07);
    content: "COLINAS";
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    letter-spacing: -.04em;
    pointer-events: none;
}

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

.profile-pills {
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.profile-card:hover,
.profile-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 8px rgba(20, 28, 44, .08);
}

.profile-card {
    position: relative;
}

.profile-card::before {
    position: absolute;
    top: 0;
    left: clamp(2rem, 3vw, 3rem);
    width: 4.5rem;
    height: 2px;
    background: var(--green);
    content: "";
}

@media (max-width: 820px) {
.profile-portrait {
        box-shadow: 10px 10px 0 rgba(111, 180, 63, .16);
    }
.profile-identity {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
.profile-portrait {
        box-shadow: 7px 7px 0 rgba(111, 180, 63, .16);
    }
.profile-identity::after {
        display: none;
    }
}

@media (hover: none) {
.profile-card:hover,
    .profile-info-card:hover {
        transform: none;
        box-shadow: 0 1px 2px rgba(20, 28, 44, .08);
    }
}

.profile-hero {
    padding-bottom: 2.5rem;
}

.profile-hero-card,
.profile-portrait {
    min-height: 520px;
}

.profile-identity {
    padding-top: 1.4rem;
    padding-bottom: .4rem;
}

.profile-identity h1 {
    font-size: clamp(3.1rem, 4.6vw, 5rem);
}

.profile-identity > p {
    margin-top: 1.1rem;
}

.profile-quick-actions {
    margin-top: 1.25rem;
}

.profile-meta-strip {
    margin-top: 1.5rem;
    padding-top: 1rem;
    gap: .85rem 1.25rem;
}

.profile-body {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

.profile-content-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
    gap: 1.25rem;
}

.profile-narrative {
    gap: 1rem;
}

.profile-card {
    padding: clamp(1.75rem, 2.5vw, 2.25rem);
}

.profile-card::before {
    left: clamp(1.75rem, 2.5vw, 2.25rem);
}

.profile-card p {
    margin-top: 1rem;
}

.profile-sidebar {
    top: 92px;
}

.profile-info-card h3 {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.profile-info-card dl div {
    padding-top: .85rem;
    padding-bottom: .85rem;
}

@media (max-width: 1000px) {
.profile-content-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 820px) {
.profile-hero-card,
    .profile-portrait {
        min-height: 0;
    }
.profile-portrait {
        height: clamp(360px, 60vw, 460px);
    }
.profile-content-grid {
        grid-template-columns: 1fr;
    }
.profile-sidebar {
        display: block;
    }
}

@media (max-width: 640px) {
.profile-hero {
        padding-bottom: 2rem;
    }
.profile-portrait {
        height: clamp(310px, 92vw, 380px);
    }
.profile-identity {
        padding-top: 1.5rem;
    }
.profile-identity h1 {
        font-size: clamp(2.4rem, 11vw, 3.35rem);
    }
.profile-body {
        padding-top: 2rem;
        padding-bottom: 2.75rem;
    }
}

.profile-hero-card,
.profile-portrait {
    min-height: clamp(440px, 62svh, 520px);
}

.profile-identity h1 {
    font-size: clamp(2.8rem, min(4.6vw, 8.2svh), 5rem);
}

@media (min-width: 821px) and (max-height: 820px) {
.profile-hero-card,
    .profile-portrait {
        min-height: 430px;
    }
.profile-identity {
        padding-top: 1rem;
    }
.profile-identity h1 {
        font-size: clamp(2.65rem, min(4.3vw, 7.8svh), 4.25rem);
    }
.profile-identity > p,
    .profile-quick-actions,
    .profile-meta-strip {
        margin-top: 1rem;
    }
}

@media (min-width: 821px) and (max-height: 620px) {
.profile-hero-card,
    .profile-portrait {
        min-height: 390px;
    }
}

.profile-hero-card {
    align-items: stretch;
    min-width: 0;
}

.profile-hero-card > *,
.profile-identity,
.profile-meta-strip > div,
.profile-meta-strip > div > div {
    min-width: 0;
}

.profile-portrait img {
    position: absolute;
    inset: 0;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.profile-portrait:hover img {
    transform: none;
}

.profile-portrait::after {
    height: 20%;
    background: linear-gradient(180deg, transparent, rgba(17, 15, 55, .38));
}

.profile-portrait-badge {
    left: 1rem;
    bottom: 1rem;
    border-radius: 4px;
    background: rgba(29, 25, 87, .9);
    padding: .5rem .7rem;
    color: #fff;
}

.profile-identity h1,
.profile-identity > p,
.profile-meta-strip strong,
.profile-meta-strip a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (min-width: 821px) {
.profile-hero-card {
        min-height: 0;
        grid-template-columns: clamp(300px, min(31vw, 44svh), 400px) minmax(0, 1fr);
        gap: clamp(2.5rem, 5vw, 5rem);
    }
.profile-portrait {
        align-self: center;
        aspect-ratio: 2 / 3;
        height: auto;
        min-height: 0;
        background: #eef1f3;
    }
.profile-identity {
        padding-left: 0;
    }
}

@media (min-width: 821px) and (max-height: 820px) {
.profile-institution {
        margin-bottom: .65rem;
    }
.profile-pills {
        padding-bottom: .65rem;
    }
.profile-identity h1 {
        margin-top: .7rem;
    }
.profile-meta-strip {
        padding-top: .8rem;
        gap: .7rem 1rem;
    }
}

@media (min-width: 821px) and (max-height: 620px) {
.profile-hero-card {
        grid-template-columns: clamp(240px, min(28vw, 40svh), 300px) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 3.5rem);
    }
}

@media (max-width: 820px) {
.profile-hero-card {
        grid-template-columns: minmax(0, 1fr);
    }
.profile-portrait {
        width: min(100%, 400px);
        min-height: 0;
        height: auto;
        aspect-ratio: 2 / 3;
        justify-self: center;
        background: #eef1f3;
    }
.profile-identity {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
.profile-hero {
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }
.profile-identity h1 {
        font-size: clamp(2.15rem, 10.5vw, 3rem);
        line-height: .96;
    }
.profile-quick-actions {
        grid-template-columns: minmax(0, 1fr);
    }
.profile-quick-actions .btn,
    .profile-quick-actions .btn-green {
        grid-column: 1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
.profile-identity {
        padding-top: 1.35rem;
    }
.profile-identity h1 {
        font-size: clamp(2rem, 10vw, 2.35rem);
    }
.profile-identity > p {
        font-size: .9rem;
        line-height: 1.55;
    }
}
