/* Strature GPS phase 1 hub pages (sitebuild/hubs/; SPEC §3.1 P1-P9). The base every hub kind shares; each kind's own
   file (hub-risk.css, hub-strait.css, hub-goods.css, hub-country.css, hub-home.css) belongs to its work package.
   Site tokens only (site.css :root). Phone first (W-115): one column at 375 px, nothing wider than the screen, tap
   targets at least 44 px; wider screens only add room. Copied into www/ only with site.config.json phase1.hubs on. */

/* P1: the breadcrumb row (site.css .gn-crumb) with the page type at its right */
.hb-crumb .wrap{display:flex;align-items:center;gap:12px;justify-content:space-between}
.hb-crumb ol{flex:1 1 auto;min-width:0}
.hb-type{flex:0 0 auto;font-family:var(--sans);font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--graphite);border:1px solid var(--hair);padding:2px 8px}

/* P2: the H1 and the one approved line */
.hb-top{padding:20px 0 12px}
.hb-top h1{font-size:30px;line-height:1.15;max-width:24ch}
.hb-take{margin-top:10px;max-width:var(--measure)}

/* P4: the status strip, at most four chips */
.hb-status{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.hb-chip{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:6px;min-height:32px;padding:5px 10px;max-width:100%;
  font-family:var(--sans);font-size:13px;line-height:1.35;background:var(--knockout);border:1px solid var(--hair)}
.hb-ck{color:var(--graphite);font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.hb-cv{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.hb-fc{border-color:var(--navy)}
.hb-fc a.hb-cv{text-decoration:none}
.hb-fc a.hb-cv:hover{text-decoration:underline}
.hb-near{flex-basis:100%;font-weight:400;font-size:12px;color:var(--graphite)}
/* the owner's dated note under a forecast box (item_notes.json, WS-387) */
.hb-dated{margin-top:8px;overflow-wrap:anywhere}
.hb-dated time{font-weight:600}

/* P5: the actions; P6: the layer switch */
.hb-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:14px;font-family:var(--sans);font-size:14px}
.hb-act{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;font:600 14px/1.2 var(--sans);color:var(--ink);
  background:none;border:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.hb-st{color:var(--graphite);font-size:13px}
.hb-st input{width:100%;max-width:100%;font:13px var(--mono);padding:6px}
.hb-layers{display:flex;margin-top:14px;border:1px solid var(--navy);width:max-content;max-width:100%}
.hb-lb{min-height:44px;padding:0 14px;font:600 14px/1.2 var(--sans);background:var(--knockout);color:var(--navy);border:0}
.hb-lb + .hb-lb{border-left:1px solid var(--navy)}
.hb-lb[aria-pressed="true"]{background:var(--navy);color:var(--white)}

/* the short layer's blocks, the analyst layer's folds */
.hb-blk{padding:24px 0}
.hb-blk h2{font-size:22px;line-height:1.25;margin-bottom:10px}
.hb-analyst{padding:24px 0}
.hb-fold{border-top:1px solid var(--hair)}
.hb-fold:last-child{border-bottom:1px solid var(--hair)}
.hb-fs{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;cursor:pointer;list-style:none}
.hb-fs::-webkit-details-marker{display:none}
.hb-fs::marker{content:""}
.hb-fs::after{content:"\25B8";font-family:var(--sans);font-size:14px;color:var(--graphite)}
.hb-fold[open] > .hb-fs::after{content:"\25BE"}
.hb-fh{font-size:18px;line-height:1.3;margin:0}
.hb-fb{padding:4px 0 18px;max-width:var(--measure)}
.hb-list{display:grid;gap:4px}
.hb-list a{display:inline-block;padding:8px 0}

/* P7: a figure and its source mark; amber for 2023 or older (L15) */
.hb-fig{white-space:nowrap}
.hb-rc{margin-left:2px;font-family:var(--sans);font-size:11px;vertical-align:super;line-height:0;color:var(--graphite);text-decoration:none}
.hb-old{color:#8A5A10;border-bottom:1px dashed #8A5A10}
.hb-oldk{font-size:11.5px;color:#8A5A10}
.hb-srcl{display:grid;gap:6px;padding:0;list-style:none}
.hb-srcl li{overflow-wrap:anywhere}

/* P8, P9: cite, notes and limits */
.hb-cite{margin-top:14px}
.hb-legal{padding:20px 0 28px}
.hb-ll{display:grid;gap:6px;padding:0;list-style:none;max-width:var(--measure)}
.hb-nofc,.hb-sl{max-width:var(--measure)}

@media (min-width:768px){
  .hb-top{padding:28px 0 16px}
  .hb-top h1{font-size:40px}
  .hb-blk{padding:32px 0}
}

@media print{
  .hb-layers,.hb-acts,.hb-fs::after{display:none!important}
  .hb-chip{border-color:#000}
}
