/* keyvex.com/trade, light style (2026-11-24, third design). Built from the News v2 page's own pieces so the two read
   as one site (Derek: "it just doesn't match the new style we have, the news / landing pages"): the "Top Stories"
   heading with its short green bar, the rounded hero card, white sidebar boxes with an icon and a segmented toggle,
   pill chips, and News's colours, radii and shadows (marketing/site/light/site/pages.css, the .kvn-* rules). The
   values are copied, not imported: pages.css is scoped to the -v2 proxy's html.sp2l. If News changes its look, change
   this file with it.
   History: design 1 (gradient-word headline, kicker, stat tiles) "looks too AI"; design 2 (newspaper rules and type)
   did not match the rest of the site. Loaded after landing.css + landing-site.css (fonts, light header, footer,
   Connect dialog). Scoped to body.tr2l, because landing.css carries bare h1/h2/p rules sized for the home page.

   Chart colours (dataviz palette checker, light mode, 2026-11-24):
     exports #3d781c (green), imports #1f5fbf (blue): CVD dE 25.6, normal 26.5, both >= 3:1.
     balance: deficit red #c62828, surplus green #2e7d32, gray near zero (Derek's call: red is bad for the U.S., green
     is good). Red against green is hard for red-green colour blind readers (protan dE 4.7 for a similar pair), so every
     balance colour also comes with the word "Deficit"/"Surplus" or a minus sign: legend, labels, lists, tooltip, table. */
.tr2l{--ink:#141f17;--soft:#4f5a49;--mute:#5f6a58;--green2:#2f6b25;--card:#fbfbf6;--bd:#e1e6d8;--bd2:#e9ede2;
  --exp:#3d781c;--imp:#1f5fbf;--sur:#2e7d32;--def:#c62828;--nodata:#eef0e9;--landc:#eef0e9}
body.tr2l{overflow-x:hidden;overflow-x:clip}
.tr2l .header{z-index:50;position:relative;isolation:isolate;background:var(--paper)}
.tr2l .header::before,.tr2l .header::after{content:"";position:absolute;z-index:-1;left:0;right:0;pointer-events:none;clip-path:inset(0 -100vmax)}
.tr2l .header::before{top:0;bottom:0;background:var(--paper);box-shadow:0 0 0 100vmax var(--paper)}
.tr2l .header::after{bottom:-1px;height:1px;background:var(--line);box-shadow:0 0 0 100vmax var(--line)}
.tr2l .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tr2l .tr-wrap{max-width:1500px;margin:0 auto;padding:30px 28px 0}

/* ── "U.S. Trade": the News "Top Stories" heading, green bar under it, date on the right ── */
.tr2l .tr-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:8px 0 18px}
.tr2l .tr-title{position:relative;margin:0;padding-bottom:10px;font:700 30px/1.1 'Keyvex Display',Inter,Arial,sans-serif;letter-spacing:-.025em;color:var(--ink)}
.tr2l .tr-title::after{content:"";position:absolute;left:0;bottom:0;width:52px;height:4px;border-radius:2px;background:var(--green2)}
.tr2l .tr-date{padding-bottom:10px;font-size:15px;color:var(--mute)}

/* ── Main column and the News sidebar (320px beside it on wide screens) ── */
.tr2l .tr-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}
.tr2l .tr-mainc{min-width:0}
.tr2l .tr-side{display:flex;flex-direction:column;gap:20px}
@media (min-height:760px){.tr2l .tr-side{position:sticky;top:20px}}

/* ── The hero card: News's carousel card, holding the map ── */
.tr2l .tr-hero{position:relative;padding:28px 30px 22px;border-radius:20px;border:1px solid #e3e8da;
  background:linear-gradient(115deg,#ffffff 0%,#fbfcf8 45%,#f2f5ec 100%);
  box-shadow:0 1px 0 #fff inset,0 18px 40px -16px rgba(46,66,36,.30),0 2px 6px rgba(46,66,36,.08)}
.tr2l .tr-hero-txt{display:flex;flex-direction:column;gap:12px;max-width:760px}
.tr2l .tr-meta{display:flex;align-items:center;gap:10px;font-size:15px;color:#4c5746;white-space:nowrap}
.tr2l .tr-sep{width:1px;height:18px;background:#c9d2bf;margin:0 4px}
.tr2l .tr-chip{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#2f6b25}
/* labels are the word in its color, no pill, like every v2 category label (Derek 2026-11-28) */
.tr2l .tr-chip-solid{color:#2f6b25}
.tr2l .tr-chip-def{color:#a12424}
.tr2l .tr-chip-sur{color:#2f6b25}
.tr2l .tr-chip-shift{color:#1f5fa3}
.tr2l .tr-head{margin:0;font:800 clamp(26px,2.6vw,38px)/1.1 Inter,Arial,sans-serif;letter-spacing:-.03em;color:#0f1a12;text-wrap:balance}
.tr2l .tr-dek{margin:0;font-size:16px;line-height:1.55;color:#3e4a39;text-wrap:pretty}
/* News's section pills */
.tr2l .tr-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 6px}
.tr2l .tr-tabs button{padding:7px 16px;border-radius:999px;border:1px solid #d6ddcc;background:#fbfbf6;color:#2c3727;font:500 14px Inter,Arial,sans-serif;cursor:pointer}
.tr2l .tr-tabs button:hover{border-color:#a9bb98;color:#17241b}
.tr2l .tr-tabs button.on{background:#2f6b25;border-color:#2f6b25;color:#fff}
.tr2l .tr-tabs button:focus-visible{outline:2px solid #2f6b25;outline-offset:2px}
.tr2l .tr-mapframe{margin:8px -10px 0}
.tr2l .tr-map{display:block;width:100%;height:auto}
.tr2l .tr-map .land{fill:var(--landc);stroke:#fff;stroke-width:.45}
.tr2l .tr-map .cty{stroke:#fff;stroke-width:.45;transition:fill .25s;cursor:pointer}
.tr2l .tr-map .cty:hover,.tr2l .tr-map .cty.hot{stroke:#141f17;stroke-width:1}
/* partners too small for a shape: a dot at their label point (Hong Kong, Singapore...) */
.tr2l .tr-map .dot{stroke:#fff;stroke-width:.7;cursor:pointer}
.tr2l .tr-map .dot:hover,.tr2l .tr-map .dot.hot{stroke:#141f17;stroke-width:1.1}
.tr2l .tr-map .us{fill:#2b322b;stroke:#fff;stroke-width:.45}
.tr2l .tr-map .arc{fill:none;stroke-linecap:round;opacity:.55;pointer-events:none;transition:opacity .2s}
.tr2l .tr-map.dim .arc{opacity:.12}
.tr2l .tr-map .arc.hot{opacity:.95}
.tr2l .tr-map .hub{fill:#fff;stroke:#141f17;stroke-width:1.3}
.tr2l .tr-map .usl{font:700 11px Inter,Arial,sans-serif;fill:#fff;pointer-events:none}
.tr2l .tr-map .ann{cursor:pointer}
.tr2l .tr-map .ann rect{fill:#fff;stroke:#dfe5d5;stroke-width:.7;filter:drop-shadow(0 3px 5px rgba(46,66,36,.18))}
.tr2l .tr-map .ann.hot rect{stroke:#2f6b25;stroke-width:1.2}
.tr2l .tr-map .ann .an{font:600 9.5px Inter,Arial,sans-serif;fill:#141f17}
.tr2l .tr-map .ann .av{font:800 10.5px Inter,Arial,sans-serif;fill:#141f17}
.tr2l .tr-map .lead{stroke:#141f17;stroke-width:.6;fill:none;opacity:.45}
.tr2l .tr-map .pin{fill:#141f17}
.tr2l .tr-legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px 28px;margin-top:6px;font-size:12.5px;color:var(--soft)}
.tr2l .tr-legend .grp{display:inline-flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
.tr2l .tr-legend .sw{display:inline-flex;align-items:center;gap:6px}
.tr2l .tr-legend .sw i{width:16px;height:10px;border-radius:3px;display:inline-block}
.tr2l .tr-legend .sw i.nodata{background:var(--nodata);box-shadow:inset 0 0 0 1px #d3d7cb}
.tr2l .tr-legend .sw i.dotkey{width:8px;height:8px;border-radius:50%;background:#8a9282;box-shadow:0 0 0 1.5px #fff,0 0 0 2.5px #c9cfc0}
.tr2l .tr-legend .ln i{width:22px;height:0;border-top-style:solid;display:inline-block;vertical-align:middle;margin-right:6px;border-radius:2px}
.tr2l .tr-grad{display:grid;gap:5px;width:360px;max-width:100%}
.tr2l .tr-grad i{display:block;height:9px;border-radius:5px}
.tr2l .tr-grad .ends{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--soft);font-weight:600}

/* ── Section headings below the hero: News's "Latest News" style ── */
.tr2l .tr-sechead{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:40px 0 18px}
.tr2l .tr-sechead h2{position:relative;margin:0;padding-bottom:10px;font:700 26px/1.1 'Keyvex Display',Inter,Arial,sans-serif;letter-spacing:-.025em;color:var(--ink)}
.tr2l .tr-sechead h2::after{content:"";position:absolute;left:0;bottom:0;width:52px;height:4px;border-radius:2px;background:var(--green2)}

/* ── What stands out: News's story cards, without photos ── */
.tr2l .tr-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.tr2l .tr-card{display:flex;flex-direction:column;gap:10px;padding:16px 18px 20px;border-radius:14px;background:var(--card);border:1px solid var(--bd);
  box-shadow:0 1px 2px rgba(46,66,36,.06),0 10px 24px -14px rgba(46,66,36,.3)}
.tr2l .tr-card .tr-meta{font-size:13px;color:var(--mute);gap:8px}
.tr2l .tr-card .tr-chip{font-size:11.5px}
.tr2l .tr-card .tr-sep{height:14px;margin:0}
.tr2l .tr-card-flag{width:22px;height:16px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 .5px #0002}
.tr2l .tr-card h3{margin:0;font:700 17px/1.25 Inter,Arial,sans-serif;letter-spacing:-.015em;color:var(--ink)}
.tr2l .tr-card p{margin:0;font-size:13.5px;line-height:1.5;color:#55604f}
.tr2l .tr-card .big{font:800 26px/1 Inter,Arial,sans-serif;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.tr2l .tr-card .big.def{color:#a61b1b}.tr2l .tr-card .big.sur{color:#2a6e2e}

/* ── Boxes: News's sidebar box ── */
.tr2l .tr-grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:20px}
.tr2l .tr-sechead+.tr-grid2{margin-top:0}
.tr2l .tr-box{padding:20px 20px 16px;border-radius:18px;background:linear-gradient(160deg,#ffffff,#f8faf3);border:1px solid var(--bd);
  box-shadow:0 1px 0 #fff inset,0 12px 28px -16px rgba(46,66,36,.3),0 1px 3px rgba(46,66,36,.07)}
.tr2l .tr-box-h{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.tr2l .tr-box-h svg{width:24px;height:24px;color:var(--green2);flex:none}
.tr2l .tr-box-h h3{margin:0;font:700 20px/1.2 Inter,Arial,sans-serif;letter-spacing:-.02em;color:var(--ink)}
.tr2l .tr-box-d{margin-left:auto;font-size:13.5px;color:var(--mute);white-space:nowrap}
.tr2l .tr-box-sub{margin:-6px 0 12px;font-size:13.5px;color:var(--mute)}
.tr2l .tr-box-note{margin:10px 6px 0;font-size:11.5px;line-height:1.45;color:#7a8473}
.tr2l .tr-seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin-bottom:10px;border-radius:10px;background:#eef2e7}
.tr2l .tr-seg button{height:32px;border:0;border-radius:8px;background:none;font:600 13.5px/1 Inter,Arial,sans-serif;color:#55604f;cursor:pointer}
.tr2l .tr-seg button[aria-pressed="true"]{background:#fff;color:#1d3a18;box-shadow:0 1px 3px rgba(46,66,36,.15)}
.tr2l .tr-seg button:focus-visible{outline:2px solid #2f6b25;outline-offset:2px}

/* Top Partners: News's Top Movers list, a flag where the logo goes */
.tr2l .tr-mv{list-style:none;margin:0;padding:0}
.tr2l .tr-mv li+li{border-top:1px solid var(--bd2)}
.tr2l .tr-mv li{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 6px;border-radius:8px;font-size:15px;color:var(--ink);cursor:default}
.tr2l .tr-mv li:hover,.tr2l .tr-mv li.hot{background:#f1f5ea}
.tr2l .tr-mv-flag{width:32px;height:24px;border-radius:5px;object-fit:cover;box-shadow:0 0 0 .5px #0002}
.tr2l .tr-mv-flag.none{background:var(--bd2)}
.tr2l .tr-mv-n{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr2l .tr-mv-v{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
.tr2l .tr-mv.def .tr-mv-v{color:#b3372c}.tr2l .tr-mv.sur .tr-mv-v{color:#2f7a2a}

/* At a glance */
.tr2l .tr-glance{display:grid;margin:0}
.tr2l .tr-glance div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:10px 6px;border-top:1px solid var(--bd2)}
.tr2l .tr-glance div:first-child{border-top:0}
.tr2l .tr-glance dt{font-size:14px;color:var(--soft)}
.tr2l .tr-glance dd{margin:0;font:800 17px/1.2 Inter,Arial,sans-serif;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.tr2l .tr-glance small{grid-column:1/3;font-size:12.5px;color:var(--mute)}
/* a change in one neutral ink: green and red already mean surplus and deficit on this page */
.tr2l .tr-glance .chg{color:#2c3727;font-weight:700}

/* Category bars and blocs */
.tr2l .tr-bars{display:grid;gap:12px;margin-top:4px}
.tr2l .tr-barrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:baseline}
.tr2l .tr-barrow .nm{font-size:14px;color:var(--ink)}
.tr2l .tr-barrow .v{font-size:14px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.tr2l .tr-barrow .v small{font-weight:400;color:var(--mute);margin-left:6px}
.tr2l .tr-barrow .track{grid-column:1/3;height:8px;border-radius:4px;background:#eef2e7;overflow:hidden}
.tr2l .tr-barrow .track i{display:block;height:100%;border-radius:4px}
.tr2l .tr-blocs{display:grid}
.tr2l .tr-bloc{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 6px;border-top:1px solid var(--bd2)}
.tr2l .tr-bloc:first-child{border-top:0}
.tr2l .tr-bloc h4{margin:0;font:700 15px Inter,Arial,sans-serif;color:var(--ink)}
.tr2l .tr-bloc .tot{font:800 17px Inter,Arial,sans-serif;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.tr2l .tr-bloc p{grid-column:1/3;margin:0;font-size:13px;line-height:1.55;color:var(--soft)}
.tr2l .tr-bloc p b{font-weight:600;color:var(--ink)}

/* SVG charts */
.tr2l .tr-chart{position:relative;width:100%}
.tr2l .tr-chart svg{display:block;width:100%;height:auto;overflow:visible}
.tr2l .tr-chart .grid line{stroke:#e6e9df;stroke-width:1}
.tr2l .tr-chart .axis text,.tr2l .tr-chart text.axis{font:11px Inter,Arial,sans-serif;fill:#75806e}
.tr2l .tr-chart .zero{stroke:#9aa391;stroke-width:1}
.tr2l .tr-chart .bar-def{fill:var(--def)}
.tr2l .tr-chart .bar-sur{fill:var(--sur)}
.tr2l .tr-chart .bar-ytd{opacity:.4}
.tr2l .tr-chart .vlab{font:700 11px Inter,Arial,sans-serif;fill:#141f17}
.tr2l .tr-chart .ln{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.tr2l .tr-chart .ln-exp{stroke:var(--exp)}.tr2l .tr-chart .ln-imp{stroke:var(--imp)}
.tr2l .tr-chart .end{font:700 11px Inter,Arial,sans-serif}
.tr2l .tr-chart .cross{stroke:#141f17;stroke-width:1;stroke-dasharray:3 3}
.tr2l .tr-chart .hit{fill:transparent;cursor:crosshair}
.tr2l .k-exp{color:#2c5a14;font-weight:600}.tr2l .k-imp{color:#1a4ea0;font-weight:600}

/* Table, in a box */
.tr2l .tr-search{display:flex;align-items:center;gap:8px;height:40px;padding:0 14px;border:1px solid #cfd8c4;border-radius:999px;background:#fff;
  box-shadow:inset 0 1px 2px rgba(46,66,36,.06);margin-bottom:6px}
.tr2l .tr-search:focus-within{border-color:#4f8a3a;box-shadow:0 0 0 3px rgba(79,138,58,.18)}
.tr2l .tr-search svg{width:16px;height:16px;color:#7a8473;flex:none}
.tr2l .tr-search input{border:0;outline:0;background:transparent;font:14px Inter,Arial,sans-serif;color:var(--ink);width:220px}
.tr2l .tr-tablebox{padding:8px 14px 14px}
.tr2l .tr-tablewrap{overflow-x:auto}
.tr2l .tr-table{width:100%;border-collapse:collapse;font-size:14px;color:var(--ink)}
.tr2l .tr-table th{font-size:12px;font-weight:600;color:var(--mute);text-align:left;padding:12px 10px;border-bottom:1px solid var(--bd);white-space:nowrap}
.tr2l .tr-table th button{all:unset;cursor:pointer}
.tr2l .tr-table th button:focus-visible{outline:2px solid #2f6b25;outline-offset:2px}
.tr2l .tr-table th button[aria-sort]::after{content:" \25BE"}
.tr2l .tr-table th button[aria-sort="ascending"]::after{content:" \25B4"}
.tr2l .tr-table td{padding:10px;border-bottom:1px solid var(--bd2);white-space:nowrap}
.tr2l .tr-table tbody tr:last-child td{border-bottom:0}
.tr2l .tr-table td .tr-flag{display:inline-block;width:20px;height:15px;border-radius:3px;margin-right:10px;vertical-align:-3px;object-fit:cover;box-shadow:0 0 0 .5px #0002}
.tr2l .tr-table td .tr-flag.none{background:var(--bd2)}
.tr2l .tr-table td:nth-child(2){font-weight:600}
.tr2l .tr-table .num{text-align:right;font-variant-numeric:tabular-nums}
.tr2l .tr-table td.num:first-child{color:var(--mute)}
.tr2l .tr-table tbody tr:hover{background:#f1f5ea}
.tr2l .tr-table .def{color:#b3372c;font-weight:600}.tr2l .tr-table .sur{color:#2f7a2a;font-weight:600}
.tr2l .tr-empty{text-align:center;color:var(--mute);padding:30px}
.tr2l .tr-more{display:flex;align-items:center;gap:10px;margin:14px auto 4px;height:42px;padding:0 20px;border:0;border-radius:8px;font:600 15px Inter,Arial,sans-serif;
  color:#fff;cursor:pointer;background:linear-gradient(180deg,#2f7a2a,#235d20);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 6px 14px -6px rgba(36,95,33,.6)}
.tr2l .tr-more:hover{background:linear-gradient(180deg,#2a6f26,#1f531c)}

/* Notes */
.tr2l .tr-notes{margin:40px 0 0;padding-bottom:70px}
.tr2l .tr-notes h2{margin:0 0 8px;font:700 18px Inter,Arial,sans-serif;letter-spacing:-.01em;color:var(--ink)}
.tr2l .tr-notes p{max-width:900px;font-size:14px;line-height:1.7;color:var(--soft);margin:8px 0 0}
.tr2l .tr-notes a{color:#2f6b25;text-decoration:underline;text-underline-offset:2px}

/* Tooltip: News's light card */
.tr-tip{position:fixed;z-index:80;pointer-events:none;min-width:210px;max-width:280px;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid #e1e6d8;
  box-shadow:0 12px 28px -12px rgba(46,66,36,.4);font:13px/1.45 Inter,Arial,sans-serif;color:#141f17}
.tr-tip b{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:6px}
.tr-tip b img{width:22px;height:16px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 .5px #0002}
.tr-tip .row{display:flex;justify-content:space-between;gap:14px}
.tr-tip .row span{color:#5f6a58}
.tr-tip .row em{font-style:normal;font-weight:700;font-variant-numeric:tabular-nums}
.tr-tip .row i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;vertical-align:middle}
.tr-tip small{display:block;margin-top:6px;color:#75806e}

@media (max-width:1359px){
  .tr2l .tr-wrap{max-width:1240px}
  /* One column: the sidebar boxes come right after the map card, not after the whole page. The main column's
     children join the layout's own flow (display:contents) so the sidebar can sit between them. */
  .tr2l .tr-layout{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .tr2l .tr-mainc{display:contents}
  .tr2l .tr-hero{order:1}
  .tr2l .tr-side{order:2;position:static;display:grid;grid-template-columns:1fr 1fr;margin-top:20px}
  .tr2l .tr-mainc>:not(.tr-hero){order:3}
  .tr2l .tr-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .tr2l .tr-side,.tr2l .tr-grid2{grid-template-columns:1fr}
  .tr2l .tr-hero{padding:20px 18px 16px}
}
@media (max-width:560px){
  .tr2l .tr-wrap{padding:22px 14px 0}
  .tr2l .tr-meta{flex-wrap:wrap;white-space:normal}
  .tr2l .tr-cards{grid-template-columns:1fr}
  .tr2l .tr-mapframe{margin:6px -8px 0}
  /* at phone width the map is ~340px across and its labels would be 4px type: the lists carry the same names */
  .tr2l .tr-map .ann,.tr2l .tr-map .lead,.tr2l .tr-map .pin{display:none}
  .tr2l .tr-search,.tr2l .tr-search input{width:100%}
  .tr2l .tr-sechead{align-items:flex-start;flex-direction:column}
}
