/* Births by Ethnicity page styles */

.births-header {
    text-align: center;
    margin-bottom: 2rem;
}

.births-header .title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.births-header .subtitle {
    color: var(--text-secondary, #aaa);
    font-size: 0.95rem;
}

/* Summary Card */
.births-summary-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.births-summary-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.births-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.births-stat {
    text-align: center;
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.births-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.births-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.births-stat.white-british .births-stat-value { color: #4a90d9; }
.births-stat.other-white .births-stat-value { color: #7bb3e0; }
.births-stat.asian .births-stat-value { color: #e67e22; }
.births-stat.black .births-stat-value { color: #e74c3c; }
.births-stat.mixed .births-stat-value { color: #9b59b6; }
.births-stat.other .births-stat-value { color: #1abc9c; }

/* Chart Sections */
.births-chart-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chart-toggles {
    display: flex;
    gap: 1rem;
}

.toggle-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary, #aaa);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.toggle-label input[type="radio"] {
    accent-color: var(--neon-yellow, #f1c40f);
}

.section-title {
    font-size: 1.1rem;
    margin: 0;
}

.section-note {
    font-size: 0.8rem;
    color: var(--text-secondary, #aaa);
    margin: 0.5rem 0 1rem;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.chart-container canvas {
    width: 100% !important;
}

/* Data Table */
.births-table-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

.births-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.births-table th,
.births-table td {
    padding: 0.5rem 0.6rem;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.births-table th {
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    background: var(--bg-primary, #1a1a2e);
}

.births-table th:first-child,
.births-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.births-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Sources */
.births-sources {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.births-sources h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.births-sources ul {
    margin: 0 0 0.8rem;
    padding-left: 1.2rem;
}

.births-sources li {
    margin-bottom: 0.3rem;
}

.births-sources a {
    color: var(--neon-yellow, #f1c40f);
}

.source-note {
    color: var(--text-secondary, #aaa);
    font-size: 0.8rem;
    margin: 0;
}

/* SEO content section */
.births-seo-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary, #ccc);
}

.births-seo-content h2 {
    font-size: 1.3rem;
    color: var(--text-primary, #eee);
    margin-bottom: 1rem;
}

.births-seo-content h3 {
    font-size: 1.05rem;
    color: var(--text-primary, #ddd);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.births-seo-content h4 {
    font-size: 0.95rem;
    color: var(--text-primary, #ddd);
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.births-seo-content p {
    margin-bottom: 0.8rem;
}

.births-seo-content ul {
    padding-left: 1.3rem;
    margin-bottom: 0.8rem;
}

.births-seo-content li {
    margin-bottom: 0.4rem;
}

.births-seo-content strong {
    color: var(--text-primary, #eee);
}

.projection-disclaimer {
    color: var(--text-secondary, #aaa);
    background: rgba(231, 76, 60, 0.06);
    border-left: 3px solid rgba(231, 76, 60, 0.4);
    padding: 0.5rem 0.8rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* White British vs Others summary */
.wb-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.wb-stat {
    text-align: center;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    min-width: 140px;
}

.wb-stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.wb-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wb-stat-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary, #888);
    margin-top: 0.2rem;
}

.wb-stat.highlight {
    border: 1px solid rgba(231, 76, 60, 0.4);
    background: rgba(231, 76, 60, 0.06);
}

.wb-stat.highlight .wb-stat-value {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 900px) {
    .births-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .births-header .title {
        font-size: 1.5rem;
    }

    .births-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-container {
        min-height: 300px;
    }

    .births-stat-value {
        font-size: 1.1rem;
    }
}
