/* Food Price Index, Sourcing Calendar and Food Safety Alerts.
   Shares the Market Insights page shell; these rules cover only the new figures. */
.fd-section{padding-top:28px}
.fd-section>.mi-region-heading{margin-bottom:20px}

/* Index chart */
.fd-index-chart{padding:30px 36px 26px;background:#f5f8fa;border-radius:8px;margin:32px 0 24px}
.fd-index-chart h3{font-size:var(--text-24);font-weight:400;text-wrap:balance}
.fd-index-chart figcaption p{font-size:var(--text-16);margin-top:6px}
.fd-legend{display:flex;flex-wrap:wrap;gap:8px 22px;list-style:none;margin:20px 0 0;padding:0;font-size:var(--text-14);color:#33546c}
.fd-legend li{display:flex;align-items:center;gap:8px}
.fd-legend span{width:20px;height:3px;border-radius:2px;background:var(--fd-color)}
.fd-plot{position:relative;margin-top:14px}
.fd-plot svg{display:block;width:100%;height:auto;overflow:visible}
.fd-plot svg:focus-visible{outline:2px solid #0768cc;outline-offset:6px;border-radius:4px}
.fd-grid{stroke:#dbe3e9;stroke-width:1}
.fd-base{stroke:#8299ac;stroke-dasharray:4 4}
.fd-tick{stroke:#b9c8d4}
.fd-axis{font:var(--text-12) var(--font-body);fill:#4f667a}
.fd-line{fill:none;stroke:var(--fd-color);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.fd-food,.fd-key-food{--fd-color:#0868cc}
.fd-oils,.fd-key-oils{--fd-color:#1f7f8f}
.fd-grains,.fd-key-grains{--fd-color:#173c5b}
.fd-other,.fd-key-other{--fd-color:#9a6a12}
.fd-line.fd-food{stroke-width:3.2}
.fd-cursor line{stroke:#123a59;stroke-width:1;stroke-dasharray:3 3}
.fd-cursor circle{fill:#fff;stroke:var(--fd-color);stroke-width:2.5}
.fd-jump a[hidden]{display:none}
.fd-readout{min-height:1.8em;margin-top:12px;font-size:var(--text-16);color:#33546c}
.fd-readout b{font-weight:600;color:#10284b;margin-right:12px}
.fd-readout span{display:inline-flex;align-items:center;gap:6px;margin-right:14px;white-space:nowrap}
.fd-readout i{width:8px;height:8px;border-radius:50%;background:var(--fd-color)}
.fd-history{margin-top:8px}
.fd-history .mi-table-scroll{margin-top:12px}
.mi-shell .fd-latest th[scope=row]{white-space:normal;min-width:240px}
.mi-shell .fd-latest td small{display:block;font-size:var(--text-12);color:#617287}

/* Sourcing calendar */
.fd-calendar-tools{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 32px;margin:8px 0 18px}
.fd-filter{display:flex;flex-wrap:wrap;gap:8px}
.fd-filter button{padding:9px 20px;border:1px solid #dbe3e9;border-radius:30px;background:#fff;color:#38526b;font-size:var(--text-14);transition:border-color .2s,background-color .2s,color .2s}
.fd-filter button:hover{border-color:#0868cc}
.fd-filter button[aria-pressed=true]{color:#fff;background:#123a59;border-color:#123a59}
.fd-stage-key{display:flex;flex-wrap:wrap;gap:8px 20px;list-style:none;margin:0;padding:0;font-size:var(--text-14);color:#33546c}
.fd-stage-key li{display:flex;align-items:center;gap:8px}
.fd-stage-key span{width:22px;height:12px;border-radius:3px;background:var(--fd-stage)}
.fd-plant{--fd-stage:#2a8f9c}
.fd-grow{--fd-stage:#bcd0e1}
.fd-harvest{--fd-stage:#0868cc}
.fd-jump{display:flex;flex-wrap:wrap;gap:6px 20px;padding:14px 0;border-top:1px solid #dbe3e9;font-size:var(--text-14)}
.fd-jump a{color:#0868cc;text-decoration:underline;text-decoration-color:#0868cc55;text-underline-offset:4px}
.fd-jump a:hover{text-decoration-color:currentColor}
.fd-country{border-top:1px solid #dbe3e9;padding:26px 0 14px;scroll-margin-top:130px}
.fd-country-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px}
.fd-country-heading h3{font-size:var(--text-24);font-weight:400}
.fd-country-heading a{font-size:var(--text-14);color:#0868cc}
.fd-country-heading a:hover{text-decoration:underline;text-underline-offset:4px}
.fd-months,.fd-crop{display:grid;grid-template-columns:minmax(180px,250px) minmax(0,1fr);column-gap:28px;align-items:center}
.fd-months{margin-top:16px;font-size:var(--text-12);color:#4f667a}
.fd-months>div{display:grid;grid-template-columns:repeat(12,1fr)}
.fd-months>div>span{padding-left:6px}
.fd-months>div>span[data-now]{color:#b4400e;font-weight:600}
.fd-crops{list-style:none;margin:6px 0 0;padding:0}
.fd-crop{padding:11px 0;border-bottom:1px solid #eef3f7}
.fd-crop[hidden]{display:none}
.fd-crop h4{font-size:var(--text-16);font-weight:500;margin:0;line-height:1.4}
.fd-crop-name p{font-size:var(--text-12);line-height:1.5;color:#5d7287}
.fd-track{position:relative;height:24px;border-radius:4px;background:linear-gradient(90deg,#dfe7ee 1px,transparent 1px) 0 0/calc(100% / 12) 100%,#f5f8fa}
.fd-track[data-now]::after{content:'';position:absolute;top:-4px;bottom:-4px;left:var(--fd-now);width:2px;background:#b4400e;border-radius:1px}
.fd-stage>span{position:absolute;top:4px;bottom:4px;border-radius:3px;background:var(--fd-stage)}
.fd-now-note{font-size:var(--text-12);color:#b4400e;margin:-6px 0 14px}
.fd-country[hidden]{display:none}

/* Food safety alerts */
.fd-subhead{font-size:var(--text-24);font-weight:400;margin-top:8px}
.fd-alerts-wrap{margin:14px 0 44px}
.fd-total{font-size:var(--text-16);line-height:1.7;max-width:760px;color:#33546c;margin-top:10px}
.fd-total strong{font-weight:600;color:#10284b}
.fd-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 56px}
.mi-shell .fd-alerts th[scope=row]{white-space:normal;min-width:320px;font-weight:400}
.mi-shell .fd-alerts td{text-align:left;vertical-align:top}
.mi-shell .fd-alerts th[scope=row] a{color:#0868cc;text-decoration:underline;text-decoration-color:#0868cc55;text-underline-offset:3px}
.mi-shell .fd-alerts th[scope=row] a:hover{text-decoration-color:currentColor}
.mi-shell .fd-alerts thead th{text-align:left}

@media(max-width:1000px){
.fd-pair{grid-template-columns:1fr}
}
@media(max-width:650px){
.fd-index-chart{padding:22px 14px 18px}
.fd-index-chart h3,.fd-subhead{font-size:var(--text-18)}
.fd-axis{font-size:var(--text-18)}
.fd-months,.fd-crop{grid-template-columns:1fr;row-gap:8px}
.fd-months>span{display:none}
.fd-months>div>span{padding-left:2px;font-size:var(--text-12)}
.fd-country-heading{flex-wrap:wrap}
.fd-filter button{padding:8px 15px;font-size:var(--text-14)}
}
@media(prefers-reduced-motion:reduce){
.fd-filter button{transition:none}
}
@media print{
.fd-filter,.fd-jump{display:none!important}
.fd-country,.fd-index-chart{break-inside:avoid}
}
