/* Same interaction model as homepage evidence cards; scoped to Trade Flow Monitor. */
#trade-summary .tfm-basis{display:block;font-size:10px;font-weight:600;line-height:1.35;color:#557480;margin:2px 0 5px}
.tfm-basis-bridge{margin:0 0 19px;padding:11px 15px;border:1px solid #d9e3e7;border-top:0;background:#f4f8f9;color:#48636e;font-size:11px;line-height:1.5}
.tfm-basis-bridge strong{color:#244653}
.tfm-basis-bridge a{color:#23657a;text-underline-offset:2px}
@media(max-width:620px){.tfm-basis-bridge{padding:12px;font-size:11px}}
#trade-summary .tfm-interactive{margin-top:12px;position:relative;min-width:0}
#trade-summary .tfm-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
#trade-summary .tfm-controls label{font-size:11px;font-weight:650;color:#527280}
#trade-summary .tfm-controls select{width:120px;min-height:34px;padding:5px 9px;border-radius:7px;border:1px solid #c1d3da;background:#f7fafb;color:#1f4655;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
#trade-summary .tfm-custom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:2px 0 10px}
#trade-summary .tfm-custom[hidden]{display:none}
#trade-summary .tfm-custom label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:10px;color:#527280}
#trade-summary .tfm-custom input{box-sizing:border-box;width:100%;min-width:0;min-height:35px;padding:5px 6px;background:white;border:1px solid #c1d3da;border-radius:7px;color:#143f50;font:inherit;font-size:11px}
#trade-summary .tfm-plot{position:relative;margin:5px 0 3px}
#trade-summary .tfm-plot svg{display:block;width:100%;height:64px;cursor:crosshair;touch-action:pan-y}
#trade-summary .tfm-plot svg .tfm-line{stroke:#347e95;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round;fill:none}
#trade-summary .tfm-plot svg .tfm-zero{stroke:#a6b9bf;stroke-width:1;stroke-dasharray:3 4}
#trade-summary .tfm-plot svg .tfm-alone{fill:#fff;stroke:#347e95;stroke-width:1.7}
#trade-summary .tfm-plot svg .tfm-marker{fill:#173f50;stroke:#fff;stroke-width:1.5}
#trade-summary .tfm-tooltip{position:absolute;z-index:5;top:-69px;transform:translateX(-50%);padding:9px 11px;border-radius:8px;min-width:174px;max-width:calc(100% - 12px);background:#102f3e;color:white;box-shadow:0 7px 22px #19394933;pointer-events:none;font-variant-numeric:tabular-nums}
#trade-summary .tfm-tooltip[hidden]{display:none}
#trade-summary .tfm-tooltip strong,#trade-summary .tfm-tooltip span{display:block;white-space:nowrap;line-height:1.45}
#trade-summary .tfm-tooltip strong{font-size:11px}
#trade-summary .tfm-tooltip span{font-size:10px;color:#dbe7ea}
#trade-summary .tfm-interactive figcaption{min-height:16px}
#trade-summary .tfm-inspection{font-size:10px;color:#5d7b88;margin-top:5px;min-height:26px;line-height:1.35;font-variant-numeric:tabular-nums}
#trade-summary .tfm-controls select:focus-visible,#trade-summary .tfm-custom input:focus-visible,#trade-summary .tfm-plot svg:focus-visible{outline:2px solid #277d94;outline-offset:3px}
@media(max-width:700px){#trade-summary .tfm-plot svg{height:56px}#trade-summary .tfm-tooltip{top:-65px}}
@media(prefers-reduced-motion:reduce){#trade-summary .tfm-plot svg,#trade-summary .tfm-controls select{transition:none}}
/* Source-backed headline month navigation; scoped to the three Trade Flow cards. */
#trade-summary .tfm-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:9px;min-width:0}
#trade-summary .tfm-head .eyebrow{margin:0;white-space:nowrap}
#trade-summary .tfm-period-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px;margin-left:auto;max-width:100%}
#trade-summary .tfm-period-controls button,#trade-summary .tfm-period-controls select{box-sizing:border-box;height:28px;border:1px solid #c1d3da;border-radius:6px;background:#f7fafb;color:#1f4655;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}
#trade-summary .tfm-period-controls select{padding:2px 4px;min-width:0}
#trade-summary .tfm-period-controls select:nth-of-type(1){width:65px}
#trade-summary .tfm-period-controls select:nth-of-type(2){width:69px}
#trade-summary .tfm-period-controls .tfm-latest{padding:0 7px}
#trade-summary .tfm-period-controls .tfm-step{width:26px;padding:0;font-size:17px;line-height:1}
#trade-summary .tfm-period-controls button:disabled{cursor:default;opacity:.45}
#trade-summary .tfm-period-controls button:focus-visible,#trade-summary .tfm-period-controls select:focus-visible{outline:2px solid #277d94;outline-offset:2px}
