/* Generic section sub-navigation (shared by all hub pages) */
.polling-subnav, .section-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0dc;
}
.polling-subnav a, .section-subnav a {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
}
.polling-subnav a.is-active, .section-subnav a.is-active {
    background: #185fa5;
    color: #fff;
    font-weight: 600;
}

/* Generic featured stat panel (shared by all hub pages) */
.polling-featured-panel, .section-featured-panel {
    background: #fff;
    border: 2px solid #185fa5;
    border-radius: 12px;
    padding: 1.5rem;
}
.polling-stat-header, .section-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}
.polling-stat-title, .section-stat-title {
    font-size: 18px;
    font-weight: 600;
}
.polling-stat-updated, .section-stat-updated {
    font-size: 13px;
    color: #999;
}
.polling-stat-grid, .section-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 1.25rem;
}
.polling-stat-card, .section-stat-card {
    background: #f7f7f5;
    border-radius: 8px;
    padding: 1rem;
}
.polling-stat-label, .section-stat-label {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px;
}
.polling-stat-value, .section-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Generic card grid (shared by all hub pages) */
.polling-card-grid, .section-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.polling-card, .section-card {
    background: #fff;
    border: 1px solid #e0e0dc;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: block;
}
.polling-card h3, .section-card h3 {
    font-size: 15px;
    margin: 0 0 4px;
}
.polling-card p, .section-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Regional Analysis grid needs more columns since it holds 12 cards */
.region-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

/* Data page — dataset cards with CSV/XLSX/JSON download buttons */
.dataset-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.dataset-card {
    background: #fff;
    border: 1px solid #e0e0dc;
    border-radius: 12px;
    padding: 1.25rem;
}
.dataset-card h3 {
    font-size: 15px;
    margin: 0 0 4px;
}
.dataset-card p {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
}
.dataset-card-downloads {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dataset-card-downloads a {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #185fa5;
    color: #185fa5;
    text-decoration: none;
    font-weight: 600;
}
.dataset-card-downloads a:hover {
    background: #185fa5;
    color: #fff;
}
