/* Monthly trade comparison on Food Trade Statistics: filters, four comparison charts and the
   coverage note. Series colours: three-year average, previous year, selected year. */
.monthly-trade{--mt-avg:#3b8fd4;--mt-prev:#173c5b;--mt-cur:#cf5f1d;padding:40px 0 36px;border-top:1px solid #dbe3e9;scroll-margin-top:130px}
.monthly-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 22px;padding:22px 24px;margin:0 0 18px;background:#f5f8fa;border-radius:10px}
.monthly-filters label{display:flex;flex-direction:column;gap:7px;font-size:var(--text-14);font-weight:500;color:#10284b}
.monthly-filters select{background:#fff;border:1px solid #c7d4e1;border-radius:8px;padding:11px 12px;font-size:var(--text-14)}
.monthly-filters select:disabled{color:#788594;background:#eef3f7}
.monthly-hint{grid-column:1/-1;font-size:var(--text-12);color:#5d7287}
.monthly-status{font-size:var(--text-14);line-height:1.7;color:#33546c;padding:12px 16px;border:1px solid #dce5eb;border-radius:8px;background:#fff;margin:0 0 24px}
.monthly-status[data-state=error]{color:#9b2c16;border-color:#efc7b9;background:#fdf6f3}
.monthly-result[aria-busy=true]{opacity:.55;transition:opacity .2s}
.monthly-title{font-size:var(--text-24);font-weight:400;margin:4px 0 6px;text-wrap:balance}
.monthly-subtitle{font-size:var(--text-14);margin-bottom:20px}
.monthly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.monthly-chart{background:#fff;border:1px solid #dce5eb;border-radius:10px;padding:22px 22px 16px;min-width:0}
.monthly-chart h4{font-size:var(--text-18);font-weight:500;line-height:1.35;margin:0}
.monthly-legend{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:12px 0 4px;padding:0;font-size:var(--text-12);color:#33546c}
.monthly-legend li{display:flex;align-items:center;gap:7px}
.monthly-legend span{width:14px;height:10px;border-radius:2px;background:var(--mt-color)}
.monthly-legend .is-line span{height:3px;width:18px}
.monthly-chart svg{display:block;width:100%;height:auto;overflow:visible;margin-top:8px}
.monthly-chart svg:focus-visible{outline:2px solid #0768cc;outline-offset:6px;border-radius:4px}
.mt-grid{stroke:#e3eaf0}
.mt-zero{stroke:#8299ac}
.mt-axis{font:var(--text-12) var(--font-body);fill:#4f667a}
.mt-axis-title{font:var(--text-12) var(--font-body);fill:#4f667a}
.mt-line{fill:none;stroke:var(--mt-color);stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.mt-dot{fill:#fff;stroke:var(--mt-color);stroke-width:2}
.mt-bar{fill:var(--mt-color)}
.mt-guide{stroke:#123a59;stroke-width:1;stroke-dasharray:3 3}
.mt-band{fill:#123a59;opacity:.05}
.mt-avg{--mt-color:var(--mt-avg)}
.mt-prev{--mt-color:var(--mt-prev)}
.mt-cur{--mt-color:var(--mt-cur)}
.monthly-readout{min-height:1.7em;margin-top:8px;font-size:var(--text-12);color:#33546c;line-height:1.7}
.monthly-readout b{font-weight:600;color:#10284b;margin-right:10px}
.monthly-readout span{display:inline-flex;align-items:center;gap:6px;margin-right:12px;white-space:nowrap}
.monthly-readout i{width:8px;height:8px;border-radius:50%;background:var(--mt-color)}
.monthly-coverage{font-size:var(--text-16);line-height:1.8;color:#33546c;max-width:900px;margin-top:18px}
.monthly-coverage+.monthly-coverage{margin-top:8px}
.monthly-table .mi-table-scroll{margin-top:12px}
.monthly-table{margin-top:16px}
.mi-shell .monthly-table td.mt-missing{color:#788594}

@media(max-width:1000px){
.monthly-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
.monthly-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
.monthly-filters{grid-template-columns:1fr 1fr;padding:16px;gap:12px 14px}
.monthly-filters select{padding:10px;font-size:var(--text-14)}
.monthly-chart{padding:16px 12px 12px}
.mt-axis,.mt-axis-title{font-size:var(--text-16)}
.monthly-title{font-size:var(--text-18)}
}
@media(prefers-reduced-motion:reduce){
.monthly-result[aria-busy=true]{transition:none}
}
@media print{
.monthly-filters{display:none}
.monthly-chart{break-inside:avoid}
}
