/* ============================================================
   SINGLE PRÊMIO ABRAFATI — Estilos
   ============================================================ */

#sp-main {
    padding: 77px 0 90px;
    position: relative;
    overflow: hidden;
}

/* ---- Paints ---- */
.sp-paint-left,
.sp-paint-right {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.sp-paint-left {
    left: -74px;
    top: 462px; /* Figma: paint top=838, section start=376 → 462px */
    transform: rotate(180deg) scaleY(-1);
}
.sp-paint-right {
    right: -100px;
    top: 500px;
    transform: rotate(180deg);
}
.sp-paint-left img { width: 324px; display: block; }
.sp-paint-right img { width: 341px; display: block; }

/* ---- Grid de colocações ---- */
.sp-places-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 60px;
}
.sp-place-col--full {
    flex: 0 0 100%;
}
.sp-place-col--half {
    flex: 0 0 calc(50% - 12.5px);
    max-width: calc(50% - 12.5px);
}

/* ---- Cabeçalho da colocação ("1º Lugar") ---- */
.sp-place-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #66589e;
    letter-spacing: -0.32px;
    line-height: 1.88;
    margin: 0 0 8px;
}

/* ---- Card da colocação ---- */
.sp-place-card {
    background: rgba(236, 241, 246, 0.4);
    border-radius: 0 20px 20px 20px;
    padding: 22px 23px 24px;
}

/* ---- Seção título do trabalho ---- */
.sp-work-section {
    margin-bottom: 4px;
}
.sp-work-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #66589e;
    letter-spacing: -0.32px;
    margin: 0 0 9px;
}
.sp-work-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #707070;
    letter-spacing: -0.32px;
    line-height: 1.44;
    margin: 0;
}

/* ---- Seção de pessoas (autores / coautores / orientadores) ---- */
.sp-people-section {
    margin-top: 20px;
}
.sp-people-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #66589e;
    letter-spacing: -0.32px;
    margin: 0 0 9px;
}
.sp-people-list {
    background: #ecf1f6;
    border-radius: 0 20px 20px 20px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.sp-person-card {
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    flex: 0 0 100%;
    min-height: 105px;
}
.sp-person-photo-wrap {
    width: 105px;
    flex-shrink: 0;
    overflow: hidden;
}
.sp-person-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    min-height: 105px;
}
.sp-person-photo-blank {
    width: 100%;
    height: 100%;
    min-height: 105px;
    background: #d9d9d9;
}
.sp-person-info {
    padding: 14px 14px 14px 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.sp-person-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #66589e;
    letter-spacing: -0.32px;
    margin: 0 0 4px;
    line-height: 1.3;
}
.sp-person-inst {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #707070;
    letter-spacing: -0.32px;
    margin: 0;
    line-height: 1.4;
}

/* ---- Seção resumo ---- */
.sp-resumo-section {
    margin-top: 20px;
}
.sp-resumo-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #66589e;
    letter-spacing: -0.32px;
    margin: 0 0 9px;
}
.sp-resumo-box {
    background: #ecf1f6;
    border-radius: 0 20px 20px 20px;
    padding: 16px 20px;
}
.sp-resumo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #707070;
    letter-spacing: -0.32px;
    line-height: 1.6;
    margin: 0;
}
.sp-resumo-text p {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    margin-bottom: 0.75em;
}
.sp-resumo-text p:last-child { margin-bottom: 0; }

/* ---- Mensagem "sem vencedor" ---- */
.sp-no-winner {
    background: rgba(236, 241, 246, 0.4);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 60px;
}
.sp-no-winner p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #66589e;
    letter-spacing: -0.32px;
    margin: 0;
}

/* ---- Botão "Voltar para galeria" ---- */
.sp-back-wrap {
    text-align: center;
}
.sp-back-btn {
    display: inline-block;
    border: 2px solid #66589e;
    border-radius: 50px;
    padding: 14px 48px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #66589e;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.sp-back-btn:hover {
    background: #66589e;
    color: #ffffff;
    text-decoration: none;
}

/* ---- Responsivo ---- */
@media (max-width: 991px) {
    .sp-place-col--half {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .sp-place-heading { font-size: 20px; }
    .sp-work-label,
    .sp-people-label,
    .sp-resumo-label { font-size: 16px; }
    .sp-work-title  { font-size: 15px; }
    .sp-person-name { font-size: 15px; }
}

@media (max-width: 767px) {
    #sp-main { padding: 50px 0 60px; }
    .sp-person-photo-wrap { width: 80px; }
    .sp-person-photo,
    .sp-person-photo-blank { min-height: 80px; }
    .sp-person-card { min-height: 80px; }
    .sp-person-info { padding: 10px 12px; }
    .sp-person-name { font-size: 14px; }
    .sp-person-inst { font-size: 13px; }
    .sp-places-row  { gap: 16px; }
    .sp-back-btn    { padding: 12px 32px; }
}
