/* MS-IP-02A / MS-IP-02A.1 — Patricio Cuevas */

.ms-ip-profile-page .ms-ip-profile-hero{
    padding-bottom: 3.5rem;
}

.ms-ip-profile-page .ms-ip-profile-hero .section-heading{
    text-align: left;
}

.ms-ip-role{
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #c4b5fd;
    margin: 0.35rem 0 1rem;
}

.ms-ip-profile-page .ms-ip-profile-hero .hero-cta-wrap .btn{
    display: inline-block;
}
.ms-ip-badges{
    margin: 1.15rem 0 0;
}
.ms-ip-profile-hero .ms-platform-tag{
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

.ms-ip-media-slot[hidden],
.ms-ip-av-section[hidden]{
    display: none !important;
}

.ms-ip-media-slot:not([hidden]){
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 28rem;
    border-radius: 1rem;
    background: #eceaf3;
    overflow: hidden;
}

.ms-ip-media-slot:not([hidden]) img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ms-ip-diagram{
    background: #fff;
    border: 1px solid #eff2f7;
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: 0 3px 20px 0 rgba(0, 0, 0, 0.06);
}

.ms-ip-diagram figcaption{
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #202877;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.ms-ip-diagram-kicker{
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6730e3;
    margin-bottom: 0.35rem;
}

.ms-ip-diagram-flow{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 0.5rem;
}

.ms-ip-diagram-col{
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 9.5rem;
}

.ms-ip-node{
    background: #f8f9fc;
    border: 1px solid #e6e9f2;
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #353535;
    text-align: center;
    min-width: 8.5rem;
    line-height: 1.35;
}

.ms-ip-node--hub{
    background: #202877;
    border-color: #202877;
    color: #fff;
    min-width: 10rem;
}

.ms-ip-arrow{
    position: relative;
    width: 2.75rem;
    height: 0;
    border-top: 2px solid #6730e3;
    flex: 0 0 2.75rem;
}

.ms-ip-arrow:after{
    content: "";
    position: absolute;
    right: -1px;
    top: -6px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #6730e3;
}

.ms-ip-arrow[data-label]:before{
    content: attr(data-label);
    position: absolute;
    left: 50%;
    bottom: 0.45rem;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6730e3;
    white-space: nowrap;
}

.ms-ip-diagram-note{
    margin-top: 1.1rem;
    font-size: 0.95rem;
    color: #5b6573;
    line-height: 1.6;
}

.ms-ip-av-section .ms-ip-av-card{
    background: #fff;
    border: 1px solid #eff2f7;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 3px 20px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.ms-ip-av-thumbs{
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}
.ms-ip-av-card--featured .ms-ip-av-thumbs{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: none;
}
.ms-ip-av-thumb-item{
    margin: 0;
    min-width: 0;
}
.ms-ip-av-thumb-caption{
    font-size: 0.8rem;
    font-weight: 600;
    color: #202877;
    margin-top: 0.45rem;
}
.ms-ip-av-thumb{
    aspect-ratio: 16 / 9;
    border-radius: 0.65rem;
    background: #eceaf3;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.ms-ip-av-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.ms-ip-hero-photo{
    width: 100%;
}
.ms-ip-hero-photo picture,
.ms-ip-hero-photo img{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 1rem;
}
.ms-ip-hero-photo[hidden],
.ms-ip-media-slot.ms-ip-hero-photo[hidden]{
    display: none !important;
}
.ms-ip-av-thumb--ig{
    background: linear-gradient(135deg, #1f1538 0%, #202877 55%, #2d1f52 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.1rem;
    min-height: 0;
}
.ms-ip-ig-kicker{
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c4b5fd;
}
.ms-ip-ig-title{
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0.25rem 0 0.15rem;
}
.ms-ip-ig-platform{
    font-size: 0.85rem;
    opacity: 0.85;
}
.ms-ip-av-links{
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: auto;
}
.ms-ip-inline-evidence{
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}
.ms-ip-inline-link,
.ms-ip-av-link{
    font-weight: 600;
    color: #6730e3;
}

.ms-ip-av-cat{
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6730e3;
    margin-bottom: 0.35rem;
}

.ms-ip-av-desc{
    color: #5b6573;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.ms-ip-av-platform{
    font-size: 0.85rem;
    font-weight: 600;
    color: #202877;
    margin-bottom: 0.5rem;
}

.ms-ip-av-card[data-ms-ip-evidence]::after{
    content: none;
}

@media (max-width: 991px){
    .ms-ip-profile-page .ms-ip-profile-hero .section-heading{
        text-align: center;
    }
    .ms-ip-role{
        text-align: center;
    }
}

@media (max-width: 767px){
    .ms-ip-av-card--featured .ms-ip-av-thumbs{
        grid-template-columns: 1fr;
    }
    .ms-ip-diagram{
        padding: 1.2rem 1rem 1.1rem;
    }
    .ms-ip-diagram-flow{
        flex-direction: column;
    }
    .ms-ip-diagram-col{
        width: 100%;
        min-width: 0;
    }
    .ms-ip-node{
        min-width: 0;
        width: 100%;
    }
    .ms-ip-arrow{
        width: 0;
        height: 1.6rem;
        flex-basis: 1.6rem;
        border-top: 0;
        border-left: 2px solid #6730e3;
    }
    .ms-ip-arrow:after{
        top: auto;
        bottom: -1px;
        right: auto;
        left: -5px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid #6730e3;
        border-bottom: 0;
    }
    .ms-ip-arrow[data-label]:before{
        bottom: auto;
        left: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 575px){
    .ms-ip-profile-page .ms-ip-profile-hero .hero-cta-wrap .btn{
        display: block;
        width: 100%;
        max-width: 20rem;
        margin: 0.5rem auto !important;
    }
    .ms-ip-diagram figcaption{
        font-size: 1.05rem;
    }
}
