/* ==========================================================
   MANUAIS E DOCUMENTOS — LCC-UFMG / CENAPAD-MG
   Visual institucional simples, alinhado à página Equipe
   ========================================================== */

.lcc-documents-page {
    --lcc-navy: #071d41;
    --lcc-blue: #1351b4;
    --lcc-blue-dark: #0c326f;
    --lcc-text: #243447;
    --lcc-muted: #596b7d;
    --lcc-border: #cbd5e1;
    --lcc-header: #f1f5f9;
    --lcc-white: #ffffff;

    width: 100%;
    max-width: 1200px;
    min-height: 50vh;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
    color: var(--lcc-text);
    background: var(--lcc-white);
}

.lcc-documents-page *,
.lcc-documents-page *::before,
.lcc-documents-page *::after {
    box-sizing: border-box;
}

/* Cabeçalho */

.lcc-documents-page .lcc-team-header {
    margin-bottom: 2rem;
}

.lcc-documents-page .lcc-team-header h1 {
    margin: 0;
    color: var(--lcc-navy);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.lcc-documents-page .lcc-team-header p {
    max-width: 780px;
    margin: 1rem 0 0;
    color: var(--lcc-text);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Seção */

.lcc-documents-page .lcc-team-section {
    margin-top: 1.75rem;
}

.lcc-documents-page .lcc-team-section h2 {
    margin: 0;
    color: var(--lcc-navy);
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.lcc-documents-page .lcc-team-title-line {
    width: 30px;
    height: 2px;
    margin: 1.6rem 0 1rem;
    background: var(--lcc-blue);
}

.lcc-documents-page .lcc-team-section > p {
    max-width: 860px;
    margin: 0 0 1rem;
    color: var(--lcc-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* Tabela */

.lcc-documents-page .lcc-team-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--lcc-border);
    border-radius: 5px;
    background: var(--lcc-white);
    -webkit-overflow-scrolling: touch;
}

.lcc-documents-page .lcc-team-table-wrapper:focus-visible {
    outline: 3px solid rgba(19, 81, 180, 0.35);
    outline-offset: 3px;
}

.lcc-documents-page .lcc-documents-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    color: var(--lcc-text);
    background: var(--lcc-white);
    font-size: 0.95rem;
}

.lcc-documents-page .lcc-documents-table th,
.lcc-documents-page .lcc-documents-table td {
    padding: 0.85rem;
    border-right: 1px solid var(--lcc-border);
    border-bottom: 1px solid var(--lcc-border);
    text-align: left;
    vertical-align: middle;
}

.lcc-documents-page .lcc-documents-table th:last-child,
.lcc-documents-page .lcc-documents-table td:last-child {
    border-right: 0;
}

.lcc-documents-page .lcc-documents-table tbody tr:last-child td {
    border-bottom: 0;
}

.lcc-documents-page .lcc-documents-table thead th {
    color: var(--lcc-navy);
    background: var(--lcc-header);
    font-weight: 700;
}

.lcc-documents-page .lcc-documents-table tbody tr {
    transition: background-color 150ms ease;
}

.lcc-documents-page .lcc-documents-table tbody tr:hover {
    background: #f8fafc;
}

.lcc-documents-page .lcc-documents-table th:first-child,
.lcc-documents-page .lcc-documents-table td:first-child {
    width: 42%;
}

.lcc-documents-page .lcc-documents-table th:nth-child(2),
.lcc-documents-page .lcc-documents-table td:nth-child(2) {
    width: 23%;
}

.lcc-documents-page .lcc-documents-table th:nth-child(3),
.lcc-documents-page .lcc-documents-table td:nth-child(3) {
    width: 15%;
}

.lcc-documents-page .lcc-documents-table th:last-child,
.lcc-documents-page .lcc-documents-table td:last-child {
    width: 20%;
}

/* Link de acesso */

.lcc-documents-page .lcc-documents-table a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    color: var(--lcc-white);
    background: var(--lcc-blue);
    border: 1px solid var(--lcc-blue);
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.lcc-documents-page .lcc-documents-table a:hover {
    color: var(--lcc-white);
    background: var(--lcc-blue-dark);
    border-color: var(--lcc-blue-dark);
    text-decoration: none;
}

.lcc-documents-page .lcc-documents-table a:focus-visible {
    outline: 3px solid rgba(19, 81, 180, 0.35);
    outline-offset: 3px;
}

/* Texto disponível apenas para leitores de tela */

.lcc-documents-page .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Responsividade */

@media (max-width: 768px) {
    .lcc-documents-page {
        padding: 2rem 1rem 3rem;
    }

    .lcc-documents-page .lcc-team-header {
        margin-bottom: 1.75rem;
    }

    .lcc-documents-page .lcc-team-header p,
    .lcc-documents-page .lcc-team-section > p {
        font-size: 1rem;
    }

    .lcc-documents-page .lcc-documents-table th,
    .lcc-documents-page .lcc-documents-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .lcc-documents-page {
        padding-right: 0.9rem;
        padding-left: 0.9rem;
    }

    .lcc-documents-page .lcc-team-title-line {
        margin-top: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lcc-documents-page .lcc-documents-table tbody tr,
    .lcc-documents-page .lcc-documents-table a {
        transition: none;
    }
}
