/* Fontes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0 0;
    background: #FAFBFC;
    color: #1E293B;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header fixo */
header {
    position: sticky;
    top: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    z-index: 1000;
}

/* Nav container */
.nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* Espaço entre logo e links */
}

.nav-logo {
    font-weight: 700;
    font-size: 1.6rem;
    color: #2563EB; /* azul moderno */
    text-decoration: none;
    user-select: none;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;

    flex-shrink: 1; /* Permite encolher um pouco o logo se precisar */
    min-width: 0; /* Evita overflow */
}

.nav-logo:hover,
.nav-logo:focus-visible {
    color: #1D4ED8;
    outline: none;
}

/* Links de navegação */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    overflow-x: visible; /* inicialmente sem scroll */
}

.nav-links a {
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;

    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-width: max-content;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #2563EB;
    border-color: #2563EB;
    outline: none;
}

/* Main - Conteúdo */
main {
    flex-grow: 1;
    max-width: 900px;
    margin: 6rem auto 4rem auto;
    padding: 0;
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #F1F5F9;
    color: #64748B;
    font-size: 0.9rem;
    user-select: none;
    border-top: 1px solid #E2E8F0;
    margin-top: auto;
}

/* Responsividade */
@media (max-width: 640px) {
    .nav-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-links {
        gap: 1.25rem;
        overflow-x: auto; /* scroll horizontal para menu no mobile */
        -webkit-overflow-scrolling: touch;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 0.6rem 1rem;
    text-align: left;
}

th {
    background-color: #f9f9f9;
}

footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #555;
}

.footer-main {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap; /* opcional, quebra em telas pequenas */
    justify-content: center;
}

.footer-links a {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
    margin-left: 1rem;
}

.footer-links a:first-child {
    margin-left: 0;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
    outline-offset: 2px;
}

