/* Chart containers */
.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

@media (max-width: 640px) {
    .chart-container {
        height: 260px;
    }
}

/* Category cards entrance animation */
.category-card {
    opacity: 0;
    animation: cardSlideUp 0.5s ease-out forwards;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat card hover */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Table tabular numbers */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* AI Insight Prose */
.ai-insight-prose {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #475569;
}

.ai-insight-prose h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.ai-insight-prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
    letter-spacing: -0.015em;
}

.ai-insight-prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #334155;
}

.ai-insight-prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.ai-insight-prose ul,
.ai-insight-prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.ai-insight-prose li {
    margin-bottom: 0.375rem;
    line-height: 1.7;
}

.ai-insight-prose li::marker {
    color: #94a3b8;
}

.ai-insight-prose strong {
    color: #1e293b;
    font-weight: 600;
}

.ai-insight-prose em {
    color: #64748b;
    font-style: italic;
}

.ai-insight-prose a {
    color: #0ea5e9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ai-insight-prose a:hover {
    color: #0284c7;
}

.ai-insight-prose blockquote {
    border-left: 3px solid #e2e8f0;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #64748b;
    font-style: italic;
}

.ai-insight-prose code {
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #334155;
}

.ai-insight-prose hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}
