/* Country steel trade statistics — /info/steel-statistics/{country}
   (resources/views/info-stats-country.php). Builds on tools-pages.css (the
   Info pages' cards, tables and scroller); only what this page adds is here. */

/* ── Header card ── */
.st-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.st-title{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 320px}
.st-title h2{margin:0;overflow-wrap:anywhere}
.st-title .flag{flex:none;width:40px;height:30px;border-radius:4px;overflow:hidden;
  box-shadow:0 0 0 1px var(--line)}
.st-title .flag img{width:100%;height:100%;object-fit:cover;display:block}

/* The Imports / Exports tabs are links in the shared .seg2 shell. */
.st-flows a{display:inline-flex;align-items:center;border-radius:999px;padding:0 14px;min-height:36px;
  font-size:13px;font-weight:700;color:var(--mute);text-decoration:none;white-space:nowrap}
.st-flows a:hover{background:var(--bg)}
.st-flows a[aria-current="page"]{background:var(--accent-10);color:var(--accent-ink)}
.st-flows a:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--accent)}

.st-periods{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:1 1 100%;min-width:0}
.st-periods .pill-opt{text-decoration:none}
.st-lbl{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);margin-right:4px}
.tp-card p.st-meta{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0;flex:1 1 100%;font-size:13.5px;color:var(--mute)}
.st-meta b{color:var(--ink);font-weight:600}

/* ── Key figures ── */
.st-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.st-kpi{display:flex;flex-direction:column;gap:4px;min-width:0;padding:16px 18px;background:#fff;
  border:1px solid var(--tp-edge);border-radius:14px}
.st-kpi .k{font-size:12.5px;font-weight:700;color:var(--mute);text-transform:uppercase;letter-spacing:.05em}
.st-kpi .v{font-size:24px;line-height:1.2;color:var(--navy,#0F1F4A);overflow-wrap:anywhere}
.st-kpi .v.st-name{font-size:18px}
.st-kpi .s{font-size:13px;color:var(--mute)}
.st-kpi .num{font-variant-numeric:tabular-nums}
.st-page .up{color:var(--sell,#15803D)}
.st-page .dn{color:var(--red,#DC2626)}

/* ── Charts ── */
.st-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.st-chart{min-width:0}
.st-chart h2{margin-bottom:4px}
.st-chart .tp-note{margin:0 0 8px}
.st-box{width:100%;height:320px;min-width:0}
.st-box-tall{height:380px}
.st-pick{max-width:360px;margin:6px 0 4px}
.st-box-ring{height:240px}
.tp-card ul.st-legend{list-style:none;margin:10px 0 0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:4px 16px}
.st-legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto auto;gap:8px;align-items:center;
  font-size:13.5px;color:#334155;padding:3px 0}
.st-legend .sw{width:12px;height:12px;border-radius:3px}
.st-legend .p{font-weight:700;color:var(--navy,#0F1F4A)}
.st-legend .t{color:var(--mute);font-size:12.5px}
.st-legend .num{font-variant-numeric:tabular-nums;white-space:nowrap}

/* ── The table ── */
.st-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 12px}
.st-dl{display:inline-flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.st-tbl{min-width:max-content}
.st-tbl th,.st-tbl td{padding:8px 10px}
.st-tbl .st-tot{font-weight:700;color:var(--navy,#0F1F4A)}
.st-tbl tfoot th,.st-tbl tfoot td{font-weight:700;background:#F3F6FB;border-top:2px solid var(--line);border-bottom:0}
/* The category column stays put while the months scroll under it. */
.st-tbl .st-cat{position:sticky;left:0;z-index:var(--z-content);background:#fff;min-width:200px;max-width:280px;
  white-space:normal;box-shadow:1px 0 0 var(--line)}
.st-tbl thead .st-cat{background:#F3F6FB}
.st-tbl tbody tr:nth-child(even) .st-cat{background:#FAFBFD}
.st-tbl tfoot .st-cat{background:#F3F6FB}
.st-tbl .st-cat .n{display:block;font-weight:600;color:var(--ink)}
.st-tbl .st-cat small{display:block;font-weight:400;font-size:12px;color:var(--mute)}
.st-tbl thead .st-cat small{display:inline;margin-left:4px}
/* The previous year's columns: there, but only when asked for. */
.st-tbl .st-prev{display:none}
.st-tbl.show-prev .st-prev{display:table-cell}

@media (max-width:1023px){
  .st-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .st-charts{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  .st-kpis{gap:10px}
  .st-kpi{padding:12px 14px}
  .st-kpi .v{font-size:20px}
  .st-kpi .v.st-name{font-size:16px}
  .st-box{height:280px}
  .st-box-tall{height:360px}
  .st-dl{margin-left:0}
  .st-tbl .st-cat{min-width:140px;max-width:170px}
  .st-tbl .st-cat .n{font-size:13px}
}
