.hub-header {
  --hub-ink: #054c7b;
  --hub-muted: #405363;
  --hub-accent: #007cbd;
  --hub-soft: #e9f5fb;
  width: calc(100% - 96px);
  max-width: 1344px;
  margin: 55px auto 0;
  padding: 24px 32px 12px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgb(5 76 123 / 7%);
  font: 500 14px/17px 'Roboto', sans-serif;
  color: #054c7b;
}
.hub-header__top { gap: 24px; }
.hub-header__brand { gap: 24px; min-width: 0; }
.hub-header__logo { display: block; object-fit: contain; }
.hub-header__divider { width: 1px; height: 40px; flex-shrink: 0; background: #c8dde9; }
.hub-header__title { font-size: 22px; line-height: 27px; font-weight: 700; }
.hub-header__portal {
  flex-shrink: 0;
  padding: 13px 23px;
  border: 1px solid #007cbd;
  border-radius: 28px;
  color: #054c7b;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}
.hub-header__nav { margin-top: 20px; }
.hub-header__links { gap: 12px; }
.hub-header__links .nav-item { flex: 1 1 0; }
.hub-header__links .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 14px 8px;
  border-radius: 28px;
  color: var(--hub-muted);
  text-align: center;
}
.hub-header__links .nav-link[aria-current="location"] {
  background: #e9f5fb;
  color: #054c7b;
  font-weight: 700;
}
.hub-header__links .nav-link:hover,
.hub-header__portal:hover { background: #e9f5fb; color: #054c7b; }
.hub-header a:focus-visible,
.hub-header button:focus-visible { outline: 3px solid var(--hub-accent); outline-offset: 3px; }
.hub-header__toggle { display: none; }
@media (max-width: 991.98px) {
  .hub-header { width: calc(100% - 32px); margin-top: 16px; padding: 20px; }
  .hub-header__top { flex-wrap: wrap; }
  .hub-header__brand { flex-wrap: wrap; gap: 12px; }
  .hub-header__logo { width: 216px; height: auto; }
  .hub-header__divider { display: none; }
  .hub-header__title { flex-basis: 100%; font-size: 20px; }
  .hub-header__toggle {
    display: block; width: 100%; margin-top: 16px;
    border: 1px solid var(--hub-accent); color: var(--hub-ink); font: inherit;
  }
  .hub-header__nav { display: none; margin-top: 12px; }
  .hub-header__nav.is-open { display: block; }
  .hub-header__links { flex-direction: column; gap: 4px; }
}

/* Anchor offset: increase --hub-scroll-offset if a sticky header is added later. */
#digital-hub-home,#digital-newsroom,#provider-toolkits,#training-events,#media-center{scroll-margin-top:var(--hub-scroll-offset,24px)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Downward hover/focus popover. Top padding bridges the pointer gap. */
.hub-header__portal-wrap{position:relative;flex-shrink:0}
.hub-header__portal-panel{position:absolute;top:100%;right:0;z-index:1080;width:min(320px,calc(100vw - 48px));padding-top:12px}
.hub-header__portal-panel[hidden]{display:none!important}
.hub-header__portal-bubble{position:relative;padding:20px;border:1px solid #c8dde9;border-radius:16px;background:#fff;color:#054c7b;font:400 14px/1.6 'Roboto',sans-serif}
.hub-header__portal-bubble::before{content:'';position:absolute;top:-7px;right:30px;width:12px;height:12px;transform:rotate(45deg);border-top:1px solid #c8dde9;border-left:1px solid #c8dde9;background:#fff}
.hub-header__portal-bubble p{margin:8px 0 0;color:#405363}
.hub-header__portal-panel:not([hidden]) .hub-header__portal-bubble{animation:hub-portal-drop 160ms ease-out}
@keyframes hub-portal-drop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.hub-header__portal-panel .hub-header__portal-bubble{animation:none!important}}


.hub-header__links .nav-link[aria-current="page"] {
    background: var(--hub-soft);
    color: var(--hub-ink);
    font-weight: 700;
}

@media (min-width: 992px) {

    #hub-primary-nav.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }

    .hub-header__toggle {
        display: none;
    }

}
