@charset "UTF-8";
        :root {
            --earth: #1a1208;
            --lime: #27ae60;
            --muted: #a89070;
            --cream: #fdf6e3;
            --card-bg: rgba(255,255,255,0.95);
            --shadow: 0 6px 30px rgba(26,18,8,0.08);
            --saffron: #f59e0b;

            --page-px: clamp(1rem, 4vw, 2rem);
        }

        body {
            font-family: 'DM Sans', sans-serif;
            background: radial-gradient(circle at top, #fffaf0, var(--cream));
            margin: 0;
        }

        .page {
            max-width: 1200px;
            margin: auto;
            padding: 2rem var(--page-px);
        }

        /* HEADER */
        .title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.4rem, 4vw, 2.1rem);
            margin: 0;
            line-height: 1.25;
        }

        .seo-summary { color: var(--text, inherit); opacity: .85; line-height: 1.55; margin: .4rem 0 .2rem; font-size: .92rem; }
        .subtitle {
            color: var(--muted);
            font-size: 0.9rem;
        }

        .back {
            display: inline-block;
            margin-bottom: 1rem;
            text-decoration: none;
            color: var(--lime);
            font-weight: 600;
            transition: 0.2s;
        }

        .back:hover {
            transform: translateX(-4px);
        }

        /* BREADCRUMBS  Home › State › District › Market › Commodity
           wraps onto more lines on small screens; very long names get "…" */
        .crumbs { margin: 0 0 1rem; font-size: 0.88rem; }
        .crumbs ol {
            list-style: none; margin: 0; padding: 0;
            display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.15rem;
        }
        .crumbs li { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
        .crumbs li + li::before {
            content: "›"; color: var(--muted); margin: 0 0.4rem; font-size: 1.05em; flex-shrink: 0;
        }
        .crumbs a, .crumbs [aria-current] {
            display: inline-block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            padding: 0.3rem 0.1rem; line-height: 1.3;
        }
        .crumbs a {
            color: var(--lime); font-weight: 600; text-decoration: none;
            border-radius: 4px;
        }
        .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
        .crumbs a:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
        .crumbs .crumb-home::before { content: "🏠 "; }
        .crumbs [aria-current] { color: var(--earth); font-weight: 600; }
        @media (max-width: 480px) {
            .crumbs { font-size: 0.82rem; }
            .crumbs a, .crumbs [aria-current] { max-width: 16ch; padding: 0.45rem 0.1rem; }   /* bigger tap targets */
            .crumbs li + li::before { margin: 0 0.3rem; }
        }

        /* SUMMARY */
        .card-date { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
        .trend-flat { color: var(--muted); }
        .trend-small { font-size: 0.8em; font-weight: 500; }
        .value.trend-none { font-size: 1rem; line-height: 1.4; padding-top: 0.25rem; }
        .summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }

        .card {
            background: linear-gradient(145deg, #ffffff, #f3ead7);
            border-radius: 16px;
            padding: 1rem;
            box-shadow:
                6px 6px 14px rgba(0,0,0,0.12),
                -4px -4px 10px rgba(255,255,255,0.7);
            transition: 0.25s;
        }

        .card:hover {
            transform: translateY(-4px) scale(1.02);
        }

        .label {
            font-size: 0.7rem;
            color: var(--muted);
            text-transform: uppercase;
        }

        .value {
            font-size: clamp(1.1rem, 2.5vw, 1.4rem);
            font-weight: 700;
        }

        .green { color: #27ae60; }
        .red { color: #c0392b; }

        /* CHART */
        .chart-box {
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(10px);
            border-radius: 18px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        }

        .chart-wrapper {
            width: 100%;
        }

        .chart-inner {
            min-width: 100%;
        }

        canvas {
              width: 100% !important;
              height: 260px !important; /* better for mobile */
        }

        .empty-chart {
            text-align: center;
            color: var(--muted);
            padding: 2rem;
        }

        /* TABLE */
        .table-wrapper {
            overflow-x: auto;
        }

        table {
            width: 100%;
            min-width: 700px;
            border-collapse: collapse;
            border-radius: 16px;
            overflow: hidden;
            background: white;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        }

        th, td {
            padding: 0.7rem;
            font-size: 0.8rem;
            text-align: left;
        }

        th {
            background: linear-gradient(145deg, #f5efe0, #e8dec7);
        }

        tr:nth-child(even) {
            background: #faf7ef;
        }

        tr:hover {
            background: #f1e7d3;
        }

        /* MOBILE IMPROVEMENTS */
        @media(max-width: 768px) {
            canvas {
                height: 220px !important;
            }

            .card {
                padding: 0.9rem;
            }
        }

        @media(max-width: 500px) {
            .subtitle {
                font-size: 0.8rem;
            }
        }

                /* MOBILE CARDS */
        .mobile-cards {
            display: none;
            margin-top: 1rem;
            gap: 0.8rem;
        }

        .price-card {
            background: linear-gradient(145deg, #ffffff, #f3ead7);
            border-radius: 14px;
            padding: 0.9rem;
            box-shadow: 0 6px 18px rgba(0,0,0,0.1);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            margin-bottom: 0.5rem;
        }

        .market {
            font-weight: 600;
        }

        .date {
            color: #a89070;
        }

        .card-prices {
            display: flex;
            justify-content: space-between;
            margin: 0.6rem 0;
        }

        .card-prices .label {
            display: block;
            font-size: 0.65rem;
            color: #a89070;
        }

        .card-prices .value {
            font-weight: 700;
            font-size: 0.95rem;
        }

        .card-location {
            font-size: 0.7rem;
            color: #a89070;
        }
                @media(max-width: 600px) {
            .mobile-cards {
                display: flex;
                flex-direction: column;
            }

            .table-wrapper {
                display: none;
            }
        }

        @media(max-width: 600px) {
            #tableSection,
            button[onclick="toggleTable()"] {
                display: none;
            }
        }

        .location-info{
            margin-top:6px;
            font-size:clamp(11px, 2vw, 14px);
            color:#a89070;
            display:flex;
            flex-wrap:wrap;
            gap:6px;
            align-items:center;
        }

        /* news box on price pages */
        .news-box {
            background: var(--card-bg, #fff); border-radius: 16px; padding: 1.1rem 1.3rem;
            box-shadow: var(--shadow, 0 4px 18px rgba(0,0,0,.06)); margin: 2rem 0 0;
        }
        .news-box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
        .news-box-head h2 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin: 0; color: var(--earth); }
        .news-box-head a { font-size: .85rem; font-weight: 600; color: #1e7d45; text-decoration: none; white-space: nowrap; }
        .news-box ul { list-style: none; margin: 0; padding: 0; }
        .news-box li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid rgba(0,0,0,.07); }
        .news-box li:first-child { border-top: 0; }
        .news-box li a { color: var(--earth); font-weight: 600; text-decoration: none; line-height: 1.4; }
        .news-box li a:hover, .news-box li a:focus-visible { color: #1e7d45; text-decoration: underline; }
        .news-box-date { color: var(--muted); font-size: .8rem; white-space: nowrap; }
        @media (max-width: 599.98px) { .news-box li { flex-direction: column; gap: .15rem; } }
    
