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

#sp-main {
    padding: 40px 0 60px;
}

.sp-section-gap {
    margin-bottom: 24px;
}

/* ---- Selo de colocação ---- */
.sp-selo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.sp-selo i { font-size: 14px; line-height: 1; }
.sp-selo--ouro   { background: #c69c21; }
.sp-selo--prata  { background: #989da4; }
.sp-selo--bronze { background: #a96a3c; }

/* ---- Card Campeão (1º lugar) ---- */
.sp-champion-card {
    background: #ecf1f6;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sp-champion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sp-meta-linha {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #707070;
    margin: 0;
    white-space: nowrap;
}

.sp-champion-titulo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 34px;
    color: #5a738d;
    margin: 0;
}

/* ---- Grupos de pessoas (autores / coautores / orientadores) ---- */
.sp-grupos-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.sp-grupo {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-grupo-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.6px;
    color: #707070;
    margin: 0;
}

.sp-grupo-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-pessoa {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-pessoa-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.sp-pessoa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-pessoa-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sp-pessoa-nome {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.sp-pessoa-inst {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #707070;
    margin: 0;
    line-height: 1.3;
}

/* ---- Resumo do trabalho (clamp + fade + botão) ---- */
.sp-resumo-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.sp-resumo-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.6px;
    color: #707070;
    margin: 0;
}

.sp-resumo-clamp {
    position: relative;
    max-height: 128px;
    overflow: hidden;
    width: 100%;
}

.sp-resumo-clamp--sm {
    max-height: 78px;
}

.sp-resumo-clamp.is-expanded {
    max-height: none;
}

.sp-resumo-text,
.sp-resumo-text p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #000;
    margin: 0 0 0.75em;
}
.sp-resumo-text p:last-child { margin-bottom: 0; }

.sp-resumo-clamp--sm .sp-resumo-text,
.sp-resumo-clamp--sm .sp-resumo-text p {
    font-size: 14px;
    line-height: 20px;
}

.sp-resumo-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    pointer-events: none;
}
.sp-resumo-fade--azul   { background: linear-gradient(to bottom, rgba(236,241,246,0) 0%, #ecf1f6 100%); }
.sp-resumo-fade--branco { background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%); }

.sp-resumo-clamp.is-expanded .sp-resumo-fade { display: none; }

/* ---- Row 2º / 3º lugar ---- */
.sp-secundarios-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.sp-card-secundario {
    flex: 1 1 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid #ecf1f6;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.sp-secundario-titulo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 25px;
    color: #000;
    margin: 0;
}

.sp-secundario-autor {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-secundario-nome {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    margin: 0;
}

.sp-secundario-inst {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #707070;
    margin: 0;
}

/* ---- Outros vencedores ---- */
.sp-outros-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sp-outros-tab {
    width: 274px;
    height: 66px;
    background: #5a738d;
    color: #fff;
    border: 1px solid #cbd8e5;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.32px;
}

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

/* ---- Responsivo ---- */
@media (max-width: 991px) {
    .sp-champion-card { padding: 24px; gap: 20px; }
    .sp-champion-titulo { font-size: 22px; line-height: 28px; }
    .sp-secundarios-row { flex-direction: column; }
    .sp-outros-header { flex-wrap: wrap; }
    .sp-outros-tab { width: auto; padding: 0 24px; }
}

@media (max-width: 767px) {
    #sp-main { padding: 30px 0 40px; }
    .sp-champion-header { flex-direction: column; align-items: flex-start; }
    .sp-grupos-row { flex-direction: column; gap: 20px; }
}

/* Ajustes específicos para notebooks (1366x768): nenhum ajuste necessário —
   entre 1200px e 1399px o .container do Bootstrap trava em 1140px; o card
   campeão (padding 32px) sobra ~1076px de conteúdo, e os 3 grupos de
   pessoas (autores/coautores/orientadores) cabem com folga mesmo lado a
   lado (3 × 260px + 2 × 32px de gap = 844px). Verificado numa viewport
   1366×768. */
