/* ==========================================================
   PÁGINA SOFTWARE
   LCC-UFMG / CENAPAD-MG

   Padrão visual: página Equipe
   ========================================================== */


/* ==========================================================
   1. VARIÁVEIS E ESTRUTURA
   ========================================================== */

.lcc-software-page {
    --software-primary: #1351b4;
    --software-primary-dark: #0b2d5c;

    --software-text: #26364d;
    --software-text-secondary: #46566d;

    --software-white: #ffffff;
    --software-table-header: #f6f9ff;

    --software-border: #d1dbea;
    --software-border-row: #c9ced6;

    box-sizing: border-box;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 32px 24px 64px;

    color: var(--software-text);
    background: var(--software-white);

    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
}

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

.lcc-software-page > * {
    min-width: 0;
}


/* ==========================================================
   2. CABEÇALHO
   ========================================================== */

.lcc-software-header {
    margin: 0 0 32px;
    padding: 0;
}

.lcc-software-page-title {
    margin: 0 0 16px;
    padding: 0;

    color: var(--software-primary-dark);

    font-size: clamp(28px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.lcc-software-page-description {
    max-width: 960px;

    margin: 0;
    padding: 0;

    color: var(--software-text-secondary);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* ==========================================================
   3. SEÇÕES
   ========================================================== */

.lcc-software-section {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0 0 36px;
    padding: 0;
}

.lcc-software-section:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   4. TÍTULOS DAS SEÇÕES
   ========================================================== */

.lcc-software-section-title {
    margin: 0;
    padding: 0;

    color: var(--software-primary-dark);

    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;

    overflow-wrap: anywhere;
}


/* Linha azul abaixo dos títulos */

.lcc-software-title-line {
    display: block;

    width: 29px;
    height: 2px;

    margin: 27px 0 16px;
    padding: 0;

    background-color: var(--software-primary);
    border: 0;
}


/* ==========================================================
   5. SUBTÍTULOS
   ========================================================== */

.lcc-software-subtitle {
    margin: 22px 0 12px;
    padding: 0;

    color: var(--software-primary-dark);

    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.lcc-software-subtitle:first-child {
    margin-top: 0;
}


/* ==========================================================
   6. TEXTOS E DESCRIÇÕES
   ========================================================== */

.lcc-software-description,
.lcc-software-richtext {
    width: 100%;
    min-width: 0;

    margin: 0;

    color: var(--software-text-secondary);

    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;

    overflow-wrap: anywhere;
}

.lcc-software-description p,
.lcc-software-richtext p {
    margin: 0 0 14px;
    padding: 0;
}

.lcc-software-description p:last-child,
.lcc-software-richtext p:last-child {
    margin-bottom: 0;
}


/* Listas geradas pelo editor Wagtail */

.lcc-software-richtext ul,
.lcc-software-richtext ol {
    margin: 12px 0 18px;
    padding-left: 24px;
}

.lcc-software-richtext li {
    margin-bottom: 7px;
    padding-left: 2px;
}

.lcc-software-richtext li:last-child {
    margin-bottom: 0;
}


/* Destaques */

.lcc-software-richtext strong,
.lcc-software-description strong {
    color: var(--software-primary-dark);
    font-weight: 700;
}


/* Links */

.lcc-software-richtext a,
.lcc-software-description a {
    color: var(--software-primary);

    text-decoration: underline;
    text-underline-offset: 3px;

    overflow-wrap: anywhere;
}

.lcc-software-richtext a:hover,
.lcc-software-description a:hover {
    color: var(--software-primary-dark);
}


/* ==========================================================
   7. TABELAS — PADRÃO DA PÁGINA EQUIPE
   ========================================================== */

.lcc-software-table-wrapper {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 14px 0 0;
    padding: 0;

    overflow-x: auto;
    overflow-y: hidden;

    background: var(--software-white);

    border: 1px solid var(--software-border);
    border-radius: 5px;

    -webkit-overflow-scrolling: touch;
}


/* Estrutura */

.lcc-software-table {
    width: 100%;

    margin: 0;

    border: 0;
    border-collapse: separate;
    border-spacing: 0;

    background: var(--software-white);

    color: var(--software-text);

    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;

    table-layout: fixed;
}


/* Cabeçalho */

.lcc-software-table thead {
    background: var(--software-table-header);
}

.lcc-software-table thead th {
    padding: 12px 13px;

    color: #202f42;
    background: var(--software-table-header);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;

    text-align: left;
    vertical-align: middle;

    border: 0;
    border-bottom: 1px solid var(--software-border);

    overflow-wrap: anywhere;
}


/* Células */

.lcc-software-table tbody td,
.lcc-software-table tbody th {
    padding: 12px 13px;

    color: var(--software-text);
    background: var(--software-white);

    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;

    text-align: left;
    vertical-align: middle;

    border: 0;
    border-bottom: 1px solid var(--software-border-row);

    overflow-wrap: anywhere;
}


/* Divisão vertical */

.lcc-software-table tr > * + * {
    border-left: 1px solid var(--software-border);
}


/* Remover borda da última linha */

.lcc-software-table tbody tr:last-child > * {
    border-bottom: 0;
}


/* Primeira coluna */

.lcc-software-table tr > *:first-child {
    width: 40%;
}


/* Segunda coluna */

.lcc-software-table tr > *:nth-child(2) {
    width: 60%;
}


/* Cabeçalhos de linha */

.lcc-software-table tbody th[scope="row"] {
    font-weight: 500;
}


/* Sem cores alternadas ou efeitos */

.lcc-software-table tbody tr,
.lcc-software-table tbody tr:nth-child(even),
.lcc-software-table tbody tr:hover {
    background: var(--software-white);
}


/* ==========================================================
   8. COMPILADORES E CÓDIGOS
   ========================================================== */

.lcc-software-page code {
    color: var(--software-primary-dark);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.9em;

    overflow-wrap: anywhere;
}


/* Lista de compiladores GNU e Intel */

.lcc-software-code-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* Etiquetas discretas */

.lcc-software-code-list code {
    display: inline-block;

    max-width: 100%;

    margin: 0;
    padding: 4px 8px;

    color: var(--software-primary-dark);
    background: #f4f7fc;

    border: 1px solid var(--software-border);
    border-radius: 4px;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


/* ==========================================================
   9. TABELAS GNU E INTEL
   ========================================================== */

.lcc-software-subtitle + .lcc-software-table-wrapper {
    margin-top: 12px;
}


/* Espaçamento entre as duas tabelas */

.lcc-software-table-wrapper + .lcc-software-subtitle {
    margin-top: 30px;
}


/* ==========================================================
   10. DOCUMENTAÇÃO
   ========================================================== */

.lcc-software-documentation-path {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 12px 0 0;
    padding: 12px 14px;

    color: var(--software-primary-dark);
    background: var(--software-table-header);

    border: 1px solid var(--software-border);
    border-radius: 5px;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.lcc-software-documentation-path code {
    display: block;

    padding: 0;

    color: inherit;
    background: transparent;

    font-size: 14px;
    line-height: 1.6;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* ==========================================================
   11. SOLICITAÇÃO DE SOFTWARE
   ========================================================== */

.lcc-software-request {
    margin-top: 36px;
}


/* Área do botão */

.lcc-software-request-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px;

    margin-top: 22px;
}


/* Botão institucional */

.lcc-software-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 44px;
    max-width: 100%;

    margin: 0;
    padding: 10px 18px;

    color: #ffffff;
    background: var(--software-primary);

    border: 1px solid var(--software-primary);
    border-radius: 4px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 150ms ease,
        border-color 150ms ease;

    overflow-wrap: anywhere;
}


/* Hover */

.lcc-software-request-button:hover {
    color: #ffffff;
    background: var(--software-primary-dark);

    border-color: var(--software-primary-dark);

    text-decoration: none;
}


/* Ícone */

.lcc-software-request-button i {
    display: inline-flex;
    align-items: center;

    font-size: 15px;
    line-height: 1;

    color: inherit;
}


/* ==========================================================
   12. ACESSIBILIDADE
   ========================================================== */

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

.lcc-software-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;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* Foco de navegação */

.lcc-software-page a:focus-visible,
.lcc-software-table-wrapper:focus-visible {
    outline: 3px solid var(--software-primary);
    outline-offset: 3px;
}


/* ==========================================================
   13. RESPONSIVIDADE — TABLETS
   ========================================================== */

@media (max-width: 991px) {

    .lcc-software-page {
        padding: 28px 20px 56px;
    }

    .lcc-software-header {
        margin-bottom: 30px;
    }

    .lcc-software-section {
        margin-bottom: 34px;
    }

    .lcc-software-page-title {
        font-size: 30px;
    }

    .lcc-software-section-title {
        font-size: 22px;
    }

}


/* ==========================================================
   14. RESPONSIVIDADE — CELULARES
   Referência: página Equipe
   ========================================================== */

@media (max-width: 600px) {

    /* Container */

    .lcc-software-page {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;
        padding: 28px 16px 50px;
    }


    /* Cabeçalho */

    .lcc-software-header {
        margin-bottom: 32px;
    }

    .lcc-software-page-title {
        margin-bottom: 17px;

        font-size: 30px;
        font-weight: 700;
        line-height: 1.25;
    }

    .lcc-software-page-description {
        max-width: 100%;

        font-size: 16px;
        line-height: 1.6;
    }


    /* Seções */

    .lcc-software-section {
        margin: 0 0 32px;
        padding: 0;
    }

    .lcc-software-section:last-child {
        margin-bottom: 0;
    }


    /* Títulos */

    .lcc-software-section-title {
        font-size: 21px;
        font-weight: 700;
        line-height: 1.35;
    }


    /* Traço azul */

    .lcc-software-title-line {
        width: 29px;
        height: 2px;

        margin: 27px 0 16px;
    }


    /* Subtítulos */

    .lcc-software-subtitle {
        margin: 22px 0 12px;

        font-size: 17px;
        line-height: 1.4;
    }


    /* Textos */

    .lcc-software-description,
    .lcc-software-richtext {
        font-size: 16px;
        line-height: 1.6;
    }

    .lcc-software-description p,
    .lcc-software-richtext p {
        margin-bottom: 12px;
    }


    /* Tabelas */

    .lcc-software-table-wrapper {
        width: 100%;
        max-width: 100%;

        margin-top: 14px;

        border-radius: 5px;

        overflow-x: auto;
    }

    .lcc-software-table {
        width: 100%;
        font-size: 14px;

        table-layout: fixed;
    }

    .lcc-software-table thead th {
        padding: 12px 13px;

        font-size: 14px;
        font-weight: 700;

        line-height: 1.4;
    }

    .lcc-software-table tbody td,
    .lcc-software-table tbody th {
        padding: 12px 13px;

        font-size: 14px;
        line-height: 1.4;

        overflow-wrap: anywhere;
    }


    /* Proporções das colunas */

    .lcc-software-table tr > *:first-child {
        width: 40%;
    }

    .lcc-software-table tr > *:nth-child(2) {
        width: 60%;
    }


    /* Compiladores */

    .lcc-software-code-list {
        gap: 6px;
    }

    .lcc-software-code-list code {
        padding: 4px 6px;

        font-size: 12px;
    }


    /* Documentação */

    .lcc-software-documentation-path {
        padding: 12px;

        font-size: 13px;
    }


    /* Botão */

    .lcc-software-request-actions {
        margin-top: 20px;
    }

    .lcc-software-request-button {
        width: 100%;
        min-height: 46px;

        padding: 12px 16px;

        font-size: 15px;
    }

}


/* ==========================================================
   15. TELAS MUITO PEQUENAS
   ========================================================== */

@media (max-width: 360px) {

    .lcc-software-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .lcc-software-page-title {
        font-size: 27px;
    }

    .lcc-software-section-title {
        font-size: 19px;
    }

    .lcc-software-table thead th,
    .lcc-software-table tbody td,
    .lcc-software-table tbody th {
        padding: 10px 9px;

        font-size: 13px;
    }

    .lcc-software-code-list code {
        font-size: 11px;
    }

}


/* ==========================================================
   16. MOVIMENTO REDUZIDO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .lcc-software-page *,
    .lcc-software-page *::before,
    .lcc-software-page *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}


/* ==========================================================
   17. CONTRASTE ELEVADO
   ========================================================== */

@media (prefers-contrast: more) {

    .lcc-software-page {
        --software-text: #111827;
        --software-text-secondary: #263238;

        --software-border: #64748b;
        --software-border-row: #64748b;
    }

    .lcc-software-table-wrapper,
    .lcc-software-documentation-path {
        border-width: 2px;
    }

    .lcc-software-request-button {
        border-width: 2px;
    }

}