/* ============================================================
   MIÚDOS A VOTOS — Folha de Estilos Principal
   Design: Festivo, escolar, apelativo para crianças e dados
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: #fdf8f0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(59,130,246,0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(139,92,246,0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245,158,11,0.04) 0%, transparent 60%);
    min-height: 100vh;
    color: #1e293b;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: #0055b8;
    padding: 10px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,85,184,0.3);
}

.topbar-logo {
    height: 34px;
    max-width: 120px;
    object-fit: contain;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #0055b8 0%, #1e3a8a 55%, #312e81 100%);
    padding: 36px 32px 56px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: 25%;
    width: 340px; height: 340px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

/* Badge INL centrado no topo */
.hero-badge-row {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

/* Grid principal: logo | título | filtro */
.hero-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Esquerda: logo RBE */
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.rbe-logo-img {
    height: 50px;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
    margin-bottom: 8px;
}

/* Centro: título + subtítulo */
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Direita: filtro */
.hero-filter-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* Coluna direita: filtro em cima, urna em baixo */
/* Título + ícone lado a lado */
.hero-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.hero-book-icon {
    font-size: 44px;
    animation: float 3.5s ease-in-out infinite;
    line-height: 1;
    flex-shrink: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-6deg); }
    50%       { transform: translateY(-10px) rotate(6deg); }
}

/* Urna + stat bubbles */
/* Urna inline no título */
.hero-urna-icon {
    flex-shrink: 0;
    opacity: 0.88;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Badge "Iniciativa Nacional" */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    color: #bfdbfe;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 12px;
}

/* Título principal */
.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 42px;
    color: #ffffff;
    line-height: 1.05;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    color: #93c5fd;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 28px;
}

/* Filtro de ano dentro do hero */
.hero-filter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 16px;
    padding: 10px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-filter-label {
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.hero-filter select {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-filter select:focus {
    background: rgba(255,255,255,0.28);
}

.hero-filter select option {
    background: #1e3a8a;
    color: white;
    font-weight: 700;
}

/* Coluna direita: filtro + botão empilhados */
.hero-filter-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

/* Botão Revelar vencedores 2026 */
.reveal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.3px;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.3);
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #422006;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(251,191,36,0.35);
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251,191,36,0.45);
}

.reveal-btn:active { transform: scale(0.97); }

/* Estado revelado: passa a discreto */
.reveal-btn.revealed {
    background: rgba(255,255,255,0.15);
    color: #d1fae5;
    border-color: rgba(255,255,255,0.3);
    box-shadow: none;
}

.reveal-btn.revealed:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: none;
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    position: relative;
    z-index: 2;
    margin-top: -28px;
}

/* ============================================================
   KPI CARDS
   ============================================================ */
/* ============================================================
   BANNER STORYTELLING
   ============================================================ */
.storytelling-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 60%, #10b981 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(30,58,138,0.18);
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.storytelling-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 50%, rgba(255,255,255,0.15), transparent 50%);
    pointer-events: none;
}

.storytelling-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30,58,138,0.28);
    text-decoration: none;
    color: white;
}

.storytelling-banner:hover .sb-arrow {
    transform: translateX(6px);
}

.sb-icon {
    font-size: 38px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.sb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.sb-title {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.sb-subtitle {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.88;
}

.sb-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.sb-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-weight: 900;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: white;
    border-radius: 20px;
    padding: 22px 18px 18px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Barra colorida no topo de cada KPI */
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
}

.kpi-votes::before  { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.kpi-schools::before { background: linear-gradient(90deg, #10b981, #34d399); }
.kpi-abs::before    { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.kpi-winner::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.kpi-icon {
    font-size: 30px;
    margin-bottom: 8px;
    display: block;
}

.kpi-label {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    margin-bottom: 6px;
}

.kpi-value {
    font-family: 'Fredoka One', cursive;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 4px;
}

.kpi-votes  .kpi-value { color: #2563eb; }
.kpi-schools .kpi-value { color: #059669; }
.kpi-abs    .kpi-value { color: #d97706; }
.kpi-winner .kpi-value {
    color: #7c3aed;
    font-size: 17px;
    line-height: 1.3;
}

.kpi-hint {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

/* Estrelas decorativas no card do vencedor */
.kpi-stars {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-top: 6px;
    font-size: 12px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 22px;
    color: #1e293b;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ============================================================
   GLASS / WHITE CARDS
   ============================================================ */
.card {
    background: white;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.11);
}

.card-label {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 16px;
}

/* Mantendo compatibilidade com o nome anterior */
.glass-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s, transform 0.25s;
}

.glass-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.11);
    transform: translateY(-3px);
}

/* ============================================================
   GRÁFICOS
   ============================================================ */
.chart-container { position: relative; }

/* Nota COVID */
.covid-note {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
    font-weight: 600;
}

/* ============================================================
   PÓDIO — DESTAQUES
   ============================================================ */
.podium-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.podium-card {
    background: white;
    border-radius: 20px;
    padding: 18px 14px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.podium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.11);
}

.podium-ciclo-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #64748b;
    margin-bottom: 14px;
}

/* Badge de ciclo na tabela */
.badge-ciclo {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.badge-1ciclo  { background: #dbeafe; color: #1e40af; }
.badge-2ciclo  { background: #d1fae5; color: #065f46; }
.badge-3ciclo  { background: #ede9fe; color: #5b21b6; }
.badge-sec     { background: #fef3c7; color: #92400e; }

/* ============================================================
   TABELA DE VENCEDORES
   ============================================================ */
.table-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
}

.table-toolbar-title {
    font-family: 'Fredoka One', cursive;
    font-size: 17px;
    color: #1e293b;
}

.table-search {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    outline: none;
    width: 220px;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.table-search:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

table.winners-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.winners-table thead th {
    background: #f8fafc;
    padding: 11px 18px;
    text-align: left;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

table.winners-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #f8fafc;
    color: #334155;
    font-weight: 700;
    vertical-align: middle;
}

table.winners-table tbody tr:last-child td { border-bottom: none; }

table.winners-table tbody tr:hover td {
    background: #fdf8f0;
}

/* Linha de cabeçalho do ano */
.tr-year-header { background: #f1f5f9; }

/* Linha global "Todos os Anos" */
.tr-global-header { background: #ede9fe; }
.tr-global-header .td-podio-count { color: #6d28d9; }

.td-year-group {
    padding: 10px 18px !important;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    vertical-align: middle;
}

.year-tag {
    display: inline-block;
    background: #2563eb;
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-right: 10px;
    vertical-align: middle;
    font-weight: 400;
}

.global-tag {
    background: #7c3aed;
    font-weight: 400;
}

.td-podio-count {
    padding: 10px 18px !important;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #7c3aed;
    white-space: nowrap;
    max-width: 120px;
}

/* Linhas dos ciclos */
.tr-ciclo-row td { padding: 10px 18px !important; }

.td-book { color: #1e40af !important; font-weight: 800 !important; }
.td-pct  { color: #059669 !important; font-weight: 900 !important; text-align: right; }
.td-num  { color: #334155 !important; font-weight: 700 !important; text-align: right; }

/* Info pódio inline no livro — só visível em mobile */
.td-book-podio-mobile {
    display: none;
    font-size: 10px;
    font-weight: 700;
    color: #7c3aed;
    margin-top: 2px;
}

.podio-vezes {
    background: #ede9fe;
    color: #5b21b6;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 10px;
}

/* Botão exportar Excel */
.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #16a34a;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.btn-export:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.btn-export:active {
    transform: scale(0.97);
}

/* ============================================================
   FOOTER
   ============================================================ */
.page-footer strong {
    color: #f59e0b;
    font-weight: 900;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   CHARTS GRID (evolução + donut)
   ============================================================ */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

/* Toolbar actions */
.table-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .kpi-grid      { grid-template-columns: repeat(2, 1fr); }
    .podium-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    /* Hero */
    .hero-main       { grid-template-columns: 1fr; }
    .hero-logo       { justify-content: center; }
    .hero-filter-col { justify-content: center; }
    .hero-title      { font-size: 26px; }
    .hero-filter-stack { width: 100%; }
    .reveal-btn      { width: 100%; }

    /* KPIs */
    .kpi-grid        { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Section titles — menor para não quebrar linha */
    .section-title   { font-size: 14px; }

    /* Banner storytelling — empilhar em mobile */
    .storytelling-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; text-align: left; }
    .sb-cta              { align-self: stretch; justify-content: center; }
    .sb-title            { font-size: 16px; }
    .sb-subtitle         { font-size: 12px; }
    .sb-icon             { font-size: 32px; }

    /* Pódio */
    .podium-grid     { grid-template-columns: 1fr; }

    /* Section header — empilhar título e toggle */
    .section-header  { flex-wrap: wrap; gap: 6px; }
    .podium-toggle   { margin-left: 0; width: 100%; justify-content: flex-start; }

    /* Gráficos */
    .charts-grid     { grid-template-columns: 1fr; }

    /* Esconder nota COVID do JS em mobile (substituída pela nota HTML) */
    #covid-note      { display: none; }

    /* Nota COVID — entre os dois gráficos */
    .covid-note      { margin: 0 0 8px; }

    /* Conteúdo */
    .page-content    { padding: 0 12px 32px; }

    /* Toolbar da tabela */
    .table-toolbar        { flex-direction: column; align-items: flex-start; gap: 10px; }
    .table-toolbar-actions { width: 100%; flex-wrap: wrap; }
    .table-search         { flex: 1; min-width: 120px; }
    .btn-table-toggle     { flex: 1; justify-content: center; }
    .btn-export           { flex: 1; justify-content: center; }

    /* Tabela */
    .winners-table               { font-size: 11px; }
    .winners-table thead th      { padding: 8px 8px; }
    .tr-ciclo-row td             { padding: 8px 8px !important; }
    .td-year-group               { padding: 8px 8px !important; }
    .td-podio-count              { padding: 8px 8px !important; }

    /* Esconder coluna pódio em mobile */
    .winners-table thead th:last-child,
    .tr-ciclo-row td:last-child,
    .tr-year-header td:last-child,
    .tr-global-header td:last-child { display: none; }

    /* Mostrar info pódio inline no livro */
    .td-book-podio-mobile { display: block; }

    /* Ajustes gerais */
    .td-year-group { font-size: 10px; }
    .year-tag      { font-size: 9px; padding: 1px 6px; margin-right: 4px; }
}

/* ============================================================
   PÓDIO TOGGLE
   ============================================================ */
.podium-toggle {
    display: flex;
    gap: 6px;
    margin-left: auto;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
}

.toggle-btn {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: all 0.2s;
    white-space: nowrap;
}

.toggle-btn:hover {
    background: rgba(16,185,129,0.1);
    color: #059669;
}

.toggle-active {
    background: white;
    color: #059669;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ============================================================
   BOTÃO VER MAIS TABELA
   ============================================================ */
.btn-table-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-table-toggle:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
    color: #2563eb;
}

/* ============================================================
   FONTE PORDATA
   ============================================================ */
.fonte-text {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    text-align: left;
    padding: 8px 4px 0;
    font-style: italic;
}

.fonte-text a {
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fonte-text a:hover {
    color: #2563eb;
}

/* ============================================================
   RODAPÉ — 3 COLUNAS (Contactos · Legal · Copyright)
   ============================================================ */
.page-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 36px 32px 24px;
    margin-top: 24px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.footer-grid {
    max-width: 1152px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-col p {
    margin: 0 0 6px;
}

.footer-heading {
    font-family: 'Nunito', sans-serif;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

.footer-entity {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 14px;
}

.footer-address {
    color: #94a3b8;
    font-size: 12.5px;
}

.footer-email {
    margin-top: 10px;
}

.footer-email a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dotted rgba(251, 191, 36, 0.4);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-email a:hover {
    color: #fde68a;
    border-bottom-color: #fde68a;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
    color: #fbbf24;
    transform: translateX(3px);
}

.footer-links a::before {
    content: "›";
    color: #f59e0b;
    margin-right: 8px;
    font-weight: 900;
}

.footer-copy {
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
}

.footer-copy-small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

/* Mobile: empilhar as 3 colunas */
@media (max-width: 768px) {
    .page-footer {
        padding: 28px 20px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-heading {
        font-size: 12px;
    }
}

/* Nota COVID mobile — só aparece em mobile entre os dois gráficos */
.covid-note-mobile {
    display: none;
}

@media (max-width: 640px) {
    .covid-note-mobile {
        display: block;
        font-size: 10px;
        color: #64748b;
        font-style: italic;
        font-weight: 400;
        padding: 16px 0 16px;
        line-height: 1.5;
    }
}

@media (max-width: 640px) {
    .topbar-logo {
        height: 24px;
        max-width: 80px;
    }
}