/* ==============================
   BASE LAYOUT & TIPOGRAFIA
   ============================== */
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
    margin: 16px;
    background: #fff;
    color: #111;
    padding-bottom: 45px;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto; /* centraliza conteúdo */
}

h1 {
    margin: 0;
}

h2, h3 {
    margin: 0 0 12px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==============================
   GRID GENÉRICO
   ============================== */
.grid {
    display: grid;
    gap: 12px; /* espaçamento entre elementos */
}

/* ==============================
   CARDS
   ============================== */
.card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    transform: translateY(-2px);
}

/* ==============================
   RESPONSIVIDADE BÁSICA
   ============================== */
@media (max-width: 768px) {
    body {
        margin: 8px; /* menos margem em telas menores */
    }
}

/* ==============================
   MENU DE LIGA (abas)
   ============================== */
.league-menu {
    margin: 20px 0;
    border-bottom: 2px solid #eee;
    background: #fafafa;
}

.league-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* scroll horizontal no mobile */
    -webkit-overflow-scrolling: touch; /* scroll suave em iOS */
}

.league-menu li {
    flex: 1 1 auto;
    text-align: center;
}

/* Links do menu */
.league-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease, border-bottom 0.2s ease, background 0.2s ease;
    border-bottom: 3px solid transparent; /* espaço reservado para highlight */
    white-space: nowrap; /* evita quebra de linha nas abas */
}

/* Hover */
.league-menu a:hover {
    color: #0066cc;
    background: #f0f8ff;
}

/* Aba ativa */
.league-menu a.active {
    color: #0066cc;
    border-bottom: 3px solid #0066cc;
    font-weight: 600;
}

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 768px) {
    .league-menu ul {
        justify-content: flex-start; /* itens alinhados à esquerda */
    }

    .league-menu li {
        flex: none; /* cada item mantém largura mínima */
    }

    .league-menu a {
        padding: 10px 14px;
        font-size: 0.9rem; /* texto menor para caber melhor */
    }
}

/* ==============================
   Assinatura SILE
   ============================== */
.site_footer {
    position: fixed;
    left: 0;
    right: 0;                /* garante que ocupe 100% sem quebrar */
    bottom: 0;
    background: #fff;
    padding: 10px 20px;
    z-index: 9999;
}

.site_signature {
    text-align: right;
    font-size: 13px;
    font-weight: 400;
}

.site_signature img {
    vertical-align: middle;
    max-height: 22px;
    object-fit: contain;
}