/* RI-Tax-Rates.aspx — Below-the-fold styles extracted from inline critical CSS */

/* Prevent layer control overlap with info control on smaller screens */
@media only screen and (max-width: 768px) {
    .leaflet-top.leaflet-left {
        top: 0;
        left: 0;
        max-width: calc(100vw - 60px);
    }

    .info {
        max-width: calc(100vw - 220px);
        font-size: clamp(0.75rem, 2vw, 0.9rem);
    }

    .leaflet-control-layers {
        margin-top: 10px !important;
        font-size: clamp(0.75rem, 2vw, 0.85rem);
    }
}

@media only screen and (max-width: 480px) {
    .leaflet-top.leaflet-left {
        max-width: calc(100vw - 50px);
    }

    .info {
        max-width: calc(100vw - 180px);
        padding: 4px 6px;
        font-size: 0.75rem;
    }

    .leaflet-control-layers {
        font-size: 0.75rem;
    }
}

/* ===== Chart.js Diagram Styles ===== */
.data-visualizations {
    margin: 2rem 0;
}

.data-visualizations > p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.chart-container {
    margin: 3rem 0;
    padding: 2rem;
    border: 2px solid var(--border);
    border-radius: var(--standard-border-radius);
    background-color: var(--accent-bg);
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1.5rem;
}

.chart-description {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0.5rem 0 1.5rem 0;
}

.chart-wrapper {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--standard-border-radius);
    position: relative;
    height: 400px;
}

/* Make comparison chart taller for better municipality visibility */
.chart-container:last-of-type .chart-wrapper {
    height: 600px;
}

.chart-wrapper canvas {
    max-height: 400px;
}

.chart-container:last-of-type .chart-wrapper canvas {
    max-height: 600px;
}

@media only screen and (max-width: 768px) {
    .chart-container {
        padding: 1rem;
        margin: 2rem 0;
    }

    .chart-container h3 {
        font-size: 1.25rem;
    }

    .chart-wrapper {
        padding: 1rem;
        height: 300px;
    }

    .chart-container:last-of-type .chart-wrapper {
        height: 450px;
    }

    .chart-wrapper canvas {
        max-height: 300px;
    }

    .chart-container:last-of-type .chart-wrapper canvas {
        max-height: 450px;
    }

    .chart-description {
        font-size: 0.9rem;
    }
}
