/* Strature GPS phase 1, the good hubs /gps/goods/<slug>/ and the Goods & Chokepoints index /gps/goods/
   (sitebuild/hubs/goods.py, goods_index.py; WP6). On top of pages-hub.css; site tokens only (site.css :root). Phone
   first (W-115): one column at 375 px, nothing wider than the screen (tables scroll inside their own box), tap targets
   at least 44 px. Copied into www/ only with site.config.json phase1.hubs on. */

.hg-sub{font-weight:400;color:var(--graphite);font-size:12.5px}
.hg-h3{font-size:17px;line-height:1.3;margin:18px 0 8px}
.hg-n{font-family:var(--sans);font-size:13px;color:var(--graphite);margin:0}
.hg-ns{font-family:var(--sans);font-size:12.5px;color:var(--graphite)}
.hg-fc .fl-forecasts{padding-top:10px}
.hg-fc .fl-forecasts h2{font-size:22px;line-height:1.25}

/* the first phone screen (W-115): the top block kept tight so the first card's heading shows */
.hb[data-hub-kind="good"] .hb-top,.hb[data-hub-kind="index"] .hb-top{padding-bottom:4px}
.hb[data-hub-kind="good"] .hb-status{gap:6px;margin-top:10px}
.hb[data-hub-kind="good"] .hb-chip{min-height:30px;padding:3px 8px;font-size:12.5px}
.hb[data-hub-kind="good"] .hb-near{font-size:11.5px}
.hb[data-hub-kind="good"] .hb-acts{margin-top:6px}
.hb[data-hub-kind="good"] .hb-layers{margin-top:6px}
/* the folded "Using this page" line takes the breadcrumb row's right end on a phone (howto.js): the type label yields */
.gn-crumb.ht-crumb .hb-type{display:none}

/* the EU (27) switch: a checkbox that shows the bloc's rows; no script (WS-232 (3)) */
.hg-eusw{position:absolute;opacity:0;width:1px;height:1px}
.hg-eul{display:inline-flex;align-items:center;gap:8px;min-height:44px;font:600 14px/1.2 var(--sans);color:var(--navy);
  cursor:pointer}
.hg-eul::before{content:"";width:18px;height:18px;border:1.5px solid var(--navy);background:var(--knockout)}
.hg-eusw:checked + .hg-eul::before{background:var(--navy);box-shadow:inset 0 0 0 3px var(--knockout)}
.hg-eusw:focus-visible + .hg-eul{outline:2px solid var(--navy);outline-offset:2px}
.hg-eu{display:none}
.hg-eusw:checked ~ * .hg-eu,.hg-eusw:checked ~ .hg-eu{display:revert}
.hg-in{display:block;font-family:var(--sans);font-size:12px;color:var(--graphite)}

/* G4 who buys, who sells; G5 straits; G9 concentration */
.hg-buy,.hg-sell-l,.hg-sv,.hg-conc,.hg-straits,.hg-flows,.hg-stages{display:grid;gap:0;margin:0;padding:0;list-style:none}
.hg-buy>li,.hg-sell-l>li,.hg-sv>li,.hg-conc>li,.hg-flows>li{padding:8px 0;border-bottom:1px solid var(--hair);
  font-family:var(--sans);font-size:15px;overflow-wrap:anywhere}
.hg-nm{font-weight:600}
.hg-nm a{display:inline-block;padding:4px 0}
.hg-sups{display:flex;flex-wrap:wrap;gap:2px 14px;margin:2px 0 0;padding:0;list-style:none;font-size:14px}
.hg-sup{color:var(--ink)}
.hg-more a{display:inline-block;padding:4px 0;font-size:13px}
.hg-sell{display:inline-block;margin-left:6px;padding:1px 7px;border:1px solid var(--navy);font-family:var(--sans);
  font-size:12px;font-weight:600;color:var(--navy)}
.hg-straits>li{border-top:1px solid var(--hair);padding:2px 0 8px}
.hg-straits .hg-h3{margin-top:10px}
.hg-sv>li{font-size:14px}

/* G6 who runs short first (a still: days as on file, no script) */
.hg-clock{margin:8px 0 6px}
.hg-lead{font-family:var(--sans);font-size:15px;font-weight:600;margin-bottom:6px}
.hg-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
.hg-list li{padding:10px 0;border-bottom:1px solid var(--hair)}
.hg-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;font-family:var(--sans)}
.hg-row .hg-nm{flex:1 1 9em;min-width:0;font-size:15px}
.hg-at{flex:0 0 auto;white-space:nowrap}
.hg-k{font-size:13px;color:var(--graphite)}
.hg-day{font-size:17px;font-weight:700;color:var(--ink)}
.hg-lane{display:block;width:100%;max-width:420px;height:14px;margin:6px 0 4px}
.hg-track{fill:var(--hair)}
.hg-clo{fill:var(--graphite);opacity:.55}
.hg-short{fill:#B2401F}
.hg-late{fill:#8A5A10;opacity:.75}
.hg-tick{fill:var(--ink)}
.hg-b{font-family:var(--sans);font-size:12.5px;color:var(--graphite);margin:0}
.hg-more-d summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font:600 14px/1.3 var(--sans);
  color:var(--navy)}
.hg-case{margin-top:0}

/* G10 the value-chain stages */
.hg-st{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:9px 0;border-bottom:1px solid var(--hair);
  font-family:var(--sans);font-size:15px}
.hg-stn{flex:1 1 10em;min-width:0;font-weight:600}
.hg-stv{flex:1 1 100%;font-size:14px;overflow-wrap:anywhere}
.hg-sub-st{padding-left:14px;font-size:14px}
.hg-sub-st .hg-stn{font-weight:500}
.hg-stp{border-bottom:0;padding-bottom:0}
.hg-band{font-size:11.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;padding:1px 6px;
  border:1px solid var(--graphite);color:var(--graphite)}
.hg-g{font-weight:600}

/* G8 the ledger and the concentration table: scroll inside their own box, never the page */
.hg-tw{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:6px 0 10px;border:1px solid var(--hair)}
.hg-tab{border-collapse:collapse;min-width:640px;font-family:var(--sans);font-size:13.5px}
.hg-tab caption{text-align:left;padding:8px}
.hg-tab th,.hg-tab td{padding:6px 8px;border-top:1px solid var(--hair);text-align:left;vertical-align:top}
.hg-tab thead th{font-size:12.5px;color:var(--graphite)}

/* the index: cards, the A to Z, related views */
.hg-cards{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.hg-card{border:1px solid var(--hair);padding:10px 12px;background:var(--knockout)}
.hg-kh{font-size:17px;line-height:1.3;margin:0 0 4px}
.hg-kh a{display:inline-block;padding:4px 0}
.hg-near{margin:4px 0 0}
.hg-prep{margin-top:10px}
.hg-az li a,.hg-rel li a,.hg-briefs li a{display:inline-block;padding:6px 0}
.hg-scns{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.hg-scn{border-top:1px solid var(--hair);padding-top:6px}

@media (min-width:900px){
  .hg-buy{grid-template-columns:1fr 1fr;column-gap:28px}
  .hg-straits{grid-template-columns:1fr 1fr;column-gap:28px}
  .hg-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media print{
  .hg-eusw,.hg-eul{display:none}
  .hg-eu{display:revert}
  .hg-tw{overflow:visible;border:0}
}
/* WS-784: on phones the 'Supply balance' h2 repeats the S-1 exhibit line; it stays for screen readers only, so the
   S-1 title (the first card's headline) sits on the first 375x667 screen (G8 first-card rule, W-115) */
@media (max-width:767px){#h-supply{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  #supply{padding-top:0}#supply .sv > .plate:first-of-type{padding-top:10px}}
