/* ════════════════════════════════════════════════════════════════════════
   THE HUB'S PRODUCT MASTHEAD (2026-11-28, John)

   One masthead for the pages a product names: BuildingPulse's dashboard
   (buildingpulse_dashboard.html) and a building's BuildingLabs page
   (portal_location_labs.html). John, 2026-11-28: the BuildingLabs logo
   "shouldn't be on a tile card, and should match the size of the
   BuildingPulse logo on the BuildingPulse dashboard."

   Round 10 (2026-11-25) gave BuildingPulse the masthead every Hub page
   opens with: the trail, the wordmark with the building UNDER it, one
   action on the right, and a hairline under it all. These rules were
   bp-dashboard.css's alone; they live here now, under one name, and both
   pages wear them, so one rule sets both wordmarks' size and the two
   cannot drift. BuildingPulse's dashboard does not load the Hub's shell
   sheet (it carries its own copy of the Hub's tokens), which is why this
   is a sheet of its own rather than a section of fmc-portal-shell.css.

   Geometry and type only. Each page colours its own product word
   (Pulse red, Labs purple) and supplies its own tokens (--p-line,
   --p-ink-2, --p-glass and the rest), which both pages define.

     .hub-mast        the block: 6 2 18, the hairline under it
     .hub-mast-head   the row: the lockup on the left, the action right
     .hub-mast-left   the lockup: the wordmark over the building
     .hub-mast-word   the wordmark: 30px, 24px under 560px
     .hub-mast-fac    the building, 6px under it at 13px 650
     .hub-mast-act    the one action: a quiet glass pill with its label,
                      a 40px glass circle on a phone
   ════════════════════════════════════════════════════════════════════════ */
.hub-mast {
  display: block;
  padding: 6px 2px 18px;
  margin-bottom: 4px;
  border-bottom: 0.5px solid var(--p-line);
}
.hub-mast .hub-crumb { margin: 0 0 14px; }
.hub-mast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.hub-mast-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.hub-mast .hub-mast-word {
  margin: 0;
  font-family: var(--font, 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}
/* The building, under the mark (round 10, John: "include the location
   name underneath the BuildingPulse logo"). Wraps rather than shrinks. */
.hub-mast .hub-mast-fac {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--p-ink-2);
  overflow-wrap: anywhere;
}
.hub-mast-act {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 14px;
  border-radius: 999px;
  border: 0.5px solid var(--p-glass-border);
  background: var(--p-glass);
  color: var(--p-ink-2);
  font-family: var(--font, 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
  font-size: 12.5px; font-weight: 650; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 14px -10px rgba(14,42,82,0.3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, background-color .15s ease, transform .12s ease;
}
.hub-mast-act[hidden] { display: none; }
.hub-mast-act svg { width: 15px; height: 15px; flex: 0 0 auto; display: block; }
.hub-mast-act:hover { color: var(--p-teal-deep); background: var(--p-glass-strong, var(--p-glass)); }
.hub-mast-act:active { transform: scale(0.98); }
.hub-mast-act:focus-visible { outline: 2px solid var(--p-teal-bright, #007D71); outline-offset: 2px; }
html[data-hub-theme="dark"] body.portal-light.hub-theme-surface .hub-mast-act {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 6px 14px -10px rgba(0,0,0,0.6);
}
html[data-hub-theme="dark"] body.portal-light.hub-theme-surface .hub-mast-act:hover {
  background: rgba(255,255,255,0.11);
  color: var(--p-teal-deep);
}
@media (prefers-reduced-motion: reduce) {
  .hub-mast-act { transition: none; }
}
@media (max-width: 768px) {
  .hub-mast { padding: 4px 2px 15px; margin-bottom: 6px; }
  .hub-mast .hub-crumb { margin-bottom: 12px; }
  .hub-mast .hub-mast-fac { margin-top: 5px; }
}
@media (max-width: 560px) {
  /* A round icon button on a phone; the label stays for screen readers
     in the button's own name. */
  .hub-mast .hub-mast-word { font-size: 24px; }
  .hub-mast-act { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .hub-mast-act svg { width: 17px; height: 17px; }
  .hub-mast-act-lbl { display: none; }
}
