/**
 * ONS Economic Charts - Styling
 * Matches kchadda.co.uk design language
 */

.ons-chart-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'DM Sans', sans-serif;
}

.ons-chart-wrapper {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ons-chart-wrapper canvas {
    display: block;
}

.ons-chart-loading {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 1rem;
    z-index: 10;
}

.ons-chart-meta {
    line-height: 1.6;
}

.ons-chart-meta p {
    margin: 0.5rem 0;
}

.ons-chart-meta a {
    color: #C4622D;
    text-decoration: none;
    border-bottom: 1px solid #C4622D;
    transition: color 0.2s ease;
}

.ons-chart-meta a:hover {
    color: #0C223F;
    border-bottom-color: #0C223F;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ons-chart-wrapper {
        padding: 1rem;
    }

    .ons-chart-wrapper canvas {
        max-height: 300px !important;
    }
}

/* Print styles */
@media print {
    .ons-chart-container {
        page-break-inside: avoid;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ons-chart-container * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
