.market-linkage{margin:22px 0;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink)}.ml-heading h2{font-size:23px;margin:5px 0 8px}.ml-heading p,.ml-chart-card p,.ml-foot{color:var(--muted);font-size:11px;line-height:1.8}.ml-eyebrow{letter-spacing:.12em;font-size:10px!important;color:var(--brand)!important}.ml-controls{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.ml-controls button{min-height:38px;border:1px solid var(--line);border-radius:8px;padding:8px 11px;background:var(--surface-2);color:var(--muted);font-size:12px}.ml-controls button[aria-pressed="true"]{color:var(--brand);border-color:var(--brand);background:var(--brand-50)}.ml-toolbar{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.ml-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.ml-metrics article{background:var(--surface-2);padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0}.ml-metrics span,.ml-metrics p{color:var(--muted);font-size:10px;line-height:1.8}.ml-metrics strong{display:block;font-size:21px;margin:8px 0;font-variant-numeric:tabular-nums}.ml-metrics small{font-size:10px;font-weight:400}.ml-metrics b{font-size:13px}.ml-chart-card{border:1px solid var(--line);border-radius:11px;padding:16px;margin-top:16px;min-width:0}.ml-chart-card h3{font-size:15px;margin-bottom:6px}.ml-chart{height:310px;width:100%;margin-top:12px}.ml-foot{margin:16px 0 10px}.ml-link{font-size:12px;color:var(--brand)}@media(max-width:600px){.market-linkage{padding:16px 14px;margin:0 0 18px}.ml-heading h2{font-size:21px}.ml-metrics{grid-template-columns:1fr;gap:8px}.ml-metrics article{display:grid;grid-template-columns:1fr auto;align-items:center;padding:12px}.ml-metrics strong{font-size:19px;margin:0;text-align:right}.ml-metrics p{grid-column:1/-1}.ml-toolbar{display:block}.ml-controls{gap:6px}.ml-controls button{min-height:40px;padding:8px 10px;font-size:11px}.ml-chart-card{padding:12px}.ml-chart{height:280px}}
.ml-relative strong{font-size:18px}.ml-chart-card>p{margin:8px 0}.ml-details{margin-top:18px;font-size:12px}.ml-table-wrap{overflow:auto;max-height:420px;margin-top:12px}.ml-table-wrap table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:11px}.ml-table-wrap th,.ml-table-wrap td{padding:10px;border-bottom:1px solid var(--line);text-align:right}.ml-table-wrap th:first-child,.ml-table-wrap td:first-child{text-align:left}.ml-table-wrap th{position:sticky;top:0;background:var(--surface-2)}

.b3-cattle { padding: 16px; border: 1px solid var(--line, #ddd); border-radius: 14px; }
.b3-cattle svg { display: block; width: 100%; max-width: 540px; }
.b3-cattle table { width: 100%; border-collapse: collapse; text-align: left; font-size: .85rem; }
.b3-cattle th, .b3-cattle td { padding: 8px 4px; border-bottom: 1px solid var(--line, #ddd); }
.b3-cattle p { font-size: .85rem; }

html[data-mobile-tab]:not([data-mobile-tab="market"]) #b3Cattle { display: none; }
#b3Cattle { min-width: 0; }
#b3Cattle .b3-quote-panel { min-width: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
#b3Cattle svg { max-width: 640px; margin: auto; color: var(--accent, #3275c5); }
#b3Cattle .b3-grid line { stroke: var(--line); }
#b3Cattle .b3-grid text { fill: var(--muted); }
#b3Cattle table { display: table; width: 100%; min-width: 0; table-layout: fixed; margin: 0; }
#b3Cattle th, #b3Cattle td { position: static; padding: 8px; white-space: normal; font-variant-numeric: tabular-nums; }
#b3Cattle th:first-child { width: 44%; }
#b3Cattle th:not(:first-child), #b3Cattle td:not(:first-child) { text-align: right; }
#b3Cattle td small { display: block; color: var(--muted); }
#b3Cattle tr:last-child td { border-bottom: 0; }
#b3Cattle select { max-width: 100%; }

html[data-mobile-tab]:not([data-mobile-tab="market"]) #beefExports { display: none; }
#beefExports select { max-width: 100%; }
#beefExports table { display: table; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: clamp(10px, 2.7vw, 13px); }
#beefExports :is(th, td) { position: static; padding: 7px 3px; text-align: right; white-space: normal; border-bottom: 1px solid var(--line); }
#beefExports tr > :first-child { width: 32%; text-align: left; }
#beefExports p { font-size: 12px; }
.beef-bar { display: flex; margin-top: 4px; height: 4px; border-radius: 2px; overflow: hidden; }
.beef-bar i:first-child { background: #2877c7; }
.beef-bar i:last-child { background: #8ea4b9; }

.beef-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0; }
.beef-summary article { padding:14px 10px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2,#f0f5ef); min-width:0; }
.beef-summary span,.beef-summary small { display:block; font-size:11px; color:var(--muted); }
.beef-summary strong { display:block; font-size:clamp(18px,3vw,25px); font-variant-numeric:tabular-nums; line-height:1.6; }
.beef-export-chart { width:100%; height:330px; }
@media(max-width:600px) {
  .beef-summary { grid-template-columns:1fr; gap:7px; }
  .beef-summary article { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
  .beef-summary small { grid-column:1/-1; }
  .beef-export-chart { height:290px; }
}
