/* HowiePulse Hub — Brian's text rule (Oct 2026): no tinted, cream or filled backgrounds behind text; status = green / yellow / red
   text only; no blue. Loaded last in index.html so it wins over hub-drill.css and hub-sections.css without changing their
   cache-buster lines (HRM's scheduling patches use those lines as context). The same edits are made in those files; this sheet only beats stale cached copies and can be dropped at their next cache-buster bump. */
.hd-page { background: #fff; }
.hd-table tbody tr:nth-child(even) td { background: transparent; }
.hd-table tbody tr td { border-bottom: 1px solid rgba(18,18,18,.12); }
.hd-table tfoot td { background: transparent; }
.hd-facet.on { background: #fff; color: var(--hh-charcoal, #121212); box-shadow: inset 0 -3px 0 var(--hh-yellow, #FFC700); }
.hs-tile { background: #fff; }
.cv2-map { background: #fff; }
.cv2-fun-b { background: transparent; box-shadow: inset 0 0 0 1px rgba(18,18,18,.25); }
td.cv2-nc { background: transparent; color: #5a5a5a; font-style: italic; }

/* ---- Phones (≤600px): compact header (hub-mobile.js). Desktop unchanged: .hm-only elements are hidden above 600px. ---- */
.hm-only { display: none !important; }
@media (max-width: 600px) {
  .hm-only { display: revert !important; }
  .hm-only[hidden] { display: none !important; }
  header { position: relative !important; z-index: auto !important; top: auto; flex-wrap: nowrap !important; gap: .5rem !important; padding: .4rem .6rem !important; align-items: center !important; box-shadow: none !important; }
  header .brand, header .brand.brand-link { width: auto !important; min-width: 0 !important; flex: 0 0 auto !important; gap: 0; }
  header .hp-logo { width: 44px !important; height: 44px !important; }
  .hm-bar { display: flex !important; flex: 1 1 auto; min-width: 0; align-items: center; gap: .4rem; justify-content: flex-end; }
  .hm-bar button { min-height: 44px; margin: 0; }
  .hm-sum { flex: 1 1 auto; min-width: 0; display: inline-flex !important; align-items: center; justify-content: space-between; gap: .35rem; background: #fff !important;
    color: var(--hh-charcoal, #121212); border: 2px solid var(--hh-charcoal, #121212); border-radius: 10px; padding: 0 .7rem; font-size: .8rem; font-weight: 800;
    letter-spacing: .03em; text-transform: uppercase; }
  .hm-sum-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-icon { flex: 0 0 44px; width: 44px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; background: #fff !important;
    color: var(--hh-charcoal, #121212); border: 2px solid var(--hh-charcoal, #121212); border-radius: 10px; }
  .hm-icon[hidden] { display: none !important; }
  .hm-bar button:hover, .hm-bar button:active { background: #fff !important; transform: none; }
  .hm-fdot { width: .75rem; height: .75rem; border-radius: 50%; background: #1b6e20; display: inline-block; flex: 0 0 auto; }
  .hm-fresh[data-state=warn] .hm-fdot, .hm-fresh-row.warn .hm-fdot { background: #FFC700; box-shadow: 0 0 0 1.5px #9a6700; }
  .hm-fresh[data-state=bad] .hm-fdot, .hm-fresh-row.bad .hm-fdot { background: #E4002B; }
  .hm-fresh-row.info .hm-fdot { background: #9e9e9e; }
  /* popovers: white cards under the header */
  .hm-pop { position: absolute; right: .6rem; top: calc(100% + 4px); z-index: 1001; width: min(320px, calc(100vw - 1.2rem)); background: #fff;
    border: 2px solid var(--hh-charcoal, #121212); border-radius: 12px; box-shadow: 4px 4px 0 var(--hh-charcoal, #121212); padding: .6rem .75rem; }
  .hm-pop-h { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5a5a5a; margin-bottom: .35rem; }
  .hm-fresh-row { display: flex; gap: .5rem; align-items: flex-start; padding: .35rem 0; font-size: .8rem; color: var(--hh-charcoal, #121212); }
  .hm-fresh-row + .hm-fresh-row { border-top: 1px solid rgba(18,18,18,.12); }
  .hm-fresh-row .hm-fdot { margin-top: .25rem; }
  .hm-fresh-row.ok b { color: #1b6e20; } .hm-fresh-row.warn b { color: #9a6700; } .hm-fresh-row.bad b { color: #b0001f; }
  .hm-fresh-row small { display: block; color: #5a5a5a; font-weight: 500; margin-top: .1rem; }
  /* filter bar -> bottom sheet */
  header #hubFilters { display: none !important; }
  body.hm-filters-open header #hubFilters { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1002; max-height: 85vh; overflow: auto;
    background: #fff; border-top: 3px solid var(--hh-charcoal, #121212); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 0 var(--hh-charcoal, #121212);
    padding: .5rem .85rem calc(.9rem + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: .7rem; }
  .hm-sheet-h { display: flex !important; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase; }
  .hm-sheet-h .hm-done { min-height: 44px; min-width: 88px; background: #fff; border: 2px solid var(--hh-charcoal, #121212); border-radius: 10px; font-weight: 800; }
  body.hm-filters-open .hub-filters .hf-presets button, body.hm-filters-open .hub-filters .hf-csv { min-height: 44px; }
  body.hm-filters-open .hub-filters input[type=date], body.hm-filters-open .hub-filters select { min-height: 44px; font-size: 1rem; }
  body.hm-filters-open .hub-filters .hf-fields { grid-template-columns: 1fr 1fr; }
  body.hm-filters-open .hub-filters .hf-csv { height: auto; grid-column: 1 / -1; }
  body.hm-filters-open .hub-filters .hf-fresh { justify-content: flex-start; }
  body.hm-filters-open .hub-filters .hf-presets button.active, body.hm-filters-open .hub-filters .hf-presets button[aria-pressed=true] {
    background: #fff !important; color: var(--hh-charcoal, #121212) !important; border-color: var(--hh-charcoal, #121212); box-shadow: inset 0 -4px 0 var(--hh-yellow, #FFC700); font-weight: 800; }
  .hm-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(18,18,18,.45); }
  /* account bar: not fixed; shown as a menu card from the header icon */
  #userBar:not([hidden]) { display: none !important; }
  body.hm-acct-open #userBar:not([hidden]) { display: flex !important; position: absolute !important; top: var(--hm-top, 64px) !important; right: .6rem; bottom: auto !important; left: auto; z-index: 1001;
    flex-direction: column; align-items: stretch; gap: .45rem; width: min(280px, calc(100vw - 1.2rem)); background: #fff !important; border: 2px solid var(--hh-charcoal, #121212);
    border-radius: 12px; box-shadow: 4px 4px 0 var(--hh-charcoal, #121212); padding: .7rem; }
  body.hm-acct-open #userBar .user-email { max-width: none; border: 0; padding: 0 0 .1rem; font-size: .8rem; }
  body.hm-acct-open #userBar .role-pill { align-self: flex-start; background: #fff; color: var(--hh-charcoal, #121212); border: 1.5px solid var(--hh-charcoal, #121212); }
  body.hm-acct-open #userBar button { min-height: 44px; width: 100%; justify-content: center; background: #fff; }
  body.hm-acct-open #userBar .link-btn { border: 2px solid var(--hh-charcoal, #121212); border-radius: 10px; text-decoration: none; }
  /* content: grid columns may shrink to the phone width; wide tables scroll inside their panel instead of widening the page */
  .grid-2 { grid-template-columns: minmax(0, 1fr) !important; }
  .grid-2 > * { min-width: 0; }
  .panel .tbl-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  /* section tab bar stays one horizontally scrollable row */
  .hub-tabs .ht-scroll { overflow-x: auto !important; overscroll-behavior-x: contain; }
  .hub-tabs .ht-tab { min-height: 44px; }
}
