/* =========================================
   EDITAL DO PROCESSO SELETIVO - BIT Empresa Júnior
   Estilo complementar ao CSS geral do site
   ========================================= */


/* =========================================
   1. Apresentação
   Mesmo padrão visual da introdução de Sobre
   ========================================= */

.ed-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
    background: transparent;
}

.ed-hero-conteudo {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.ed-hero-conteudo .bloco-titulo {
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center;
}

.ed-introducao {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: center;
}


/* =========================================
   2. Layout do edital (índice + conteúdo)
   ========================================= */

.ed-edital {
    position: relative;
    padding-top: clamp(40px, 6vw, 72px);
    background: transparent;
}

.ed-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}


/* =========================================
   3. Índice
   ========================================= */

.ed-indice {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100svh - var(--header-height) - 48px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--line-blue);
    border-radius: var(--radius);
    background: var(--surface-blue);
    box-sizing: border-box;
}

.ed-etiqueta {
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #60B9F5;
}

.ed-indice ol {
    margin: 0;
    padding-left: 1.4em;
}

.ed-indice li {
    padding-block: 3px;
    font-size: 0.93rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.ed-indice li::marker {
    font-weight: 600;
    color: var(--blue-light);
}

.ed-indice a {
    color: var(--text-muted);
}

.ed-indice a:hover {
    color: var(--text);
}


/* =========================================
   4. Seções do edital
   ========================================= */

.ed-conteudo {
    width: 100%;
    min-width: 0;
}

.ed-secao {
    padding-block: clamp(24px, 4vw, 40px);
    border-top: 1px solid var(--line-blue);
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.ed-secao:first-child {
    padding-top: 0;
    border-top: 0;
}

.ed-secao h2 {
    margin-bottom: 18px;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 700;
    color: var(--text);
}

.ed-secao p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

.ed-secao p + p,
.ed-secao p + ul,
.ed-secao ul + p {
    margin-top: 16px;
}

.ed-secao p strong {
    color: var(--text);
    font-weight: 600;
}

.ed-secao ul {
    margin: 0;
    padding-left: 1.4em;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

.ed-secao li {
    padding-left: 0.3em;
}

.ed-secao li + li {
    margin-top: 10px;
}

.ed-secao li::marker {
    color: var(--blue-light);
}

.ed-subitem {
    padding-left: clamp(16px, 3vw, 32px);
}

.ed-secao a {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================
   5. Destaque final
   Mesmo padrão da citação de Sobre
   ========================================= */

.ed-destaque {
    margin: 28px 0 0;
    padding: 28px 32px;
    border: 1px solid var(--line-blue);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    background: var(--surface-blue);
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.85;
}


/* =========================================
   6. Tabela do cronograma
   ========================================= */

.ed-tabela-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line-blue);
    border-radius: var(--radius);
    background: var(--surface-blue);
}

.ed-tabela {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.97rem;
    line-height: 1.5;
}

.ed-tabela th,
.ed-tabela td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line-blue);
}

.ed-tabela th {
    font-weight: 700;
    color: var(--blue-light);
    background-color: color-mix(in srgb, var(--navy-dark) 55%, transparent);
    white-space: nowrap;
}

.ed-tabela td {
    color: var(--text-muted);
}

.ed-tabela td:first-child {
    color: var(--text);
    font-weight: 600;
}

.ed-tabela tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================
   7. Responsividade: tablets
   ========================================= */

@media (max-width: 899px) {
    .ed-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ed-indice {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}


/* =========================================
   8. Responsividade: tablets e celulares
   ========================================= */

@media (max-width: 768px) {
    .ed-hero {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    /* Mesmo alinhamento de Sobre em telas menores */
    .ed-hero-conteudo {
        text-align: left;
    }

    .ed-hero-conteudo .bloco-titulo {
        margin-bottom: 16px;
        text-align: left;
    }

    .ed-introducao {
        margin: 0;
        text-align: left;
    }

    .ed-destaque {
        padding: 24px;
    }
}


/* =========================================
   9. Responsividade: celulares pequenos
   ========================================= */

@media (max-width: 480px) {
    .ed-hero {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .ed-indice {
        padding: 20px 18px;
    }

    .ed-secao p,
    .ed-secao ul {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .ed-destaque {
        padding: 22px 18px;
        font-size: 0.98rem;
    }
}