* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: background 0.3s;
}

.links a:hover {
    background: rgba(255,255,255,0.3);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

h3 {
    color: #555;
    margin-bottom: 0.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dimension {
    padding: 1rem;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
}

.dimension h3 {
    font-size: 1rem;
    color: #667eea;
}

.dimension p {
    font-size: 0.9rem;
    color: #666;
}

.viz-item {
    margin-bottom: 2rem;
}

.viz-item img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.explanation {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.75rem;
    line-height: 1.6;
    padding: 0.75rem;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 4px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    padding: 1.5rem;
    border: 2px solid #667eea;
    border-radius: 8px;
}

.insight-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pagination-controls button {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.pagination-controls button:hover:not(:disabled) {
    background: #5568d3;
}

.pagination-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pagination-controls span {
    font-size: 0.9rem;
    color: #666;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }
}
