/* Hyfive Health site chrome: header, mega menu, mobile menu, footer.
   Everything is scoped to #hf-header, #hf-drawer and #hf-footer so theme and page styles cannot collide. */

/* Hide Kadence's own header, mobile drawer and footer if they are ever printed. */
#masthead, #mobile-drawer, #colophon { display: none !important; }

/* ---------- tokens and resets ---------- */
#hf-header, #hf-drawer, #hf-footer {
  all: initial;
  --hf-ink: #032D41; --hf-logo: #065F87; --hf-mint: #22DEAA; --hf-mint-deep: #1BB388; --hf-mint-text: #0E7A5C;
  --hf-mint-tint: #CFF8EC; --hf-mint-line: #A9EFD9; --hf-blue: #2157DE; --hf-paper3: #E6EBEA; --hf-muted: #5D747F;
  --hf-white: #fff; --hf-ftr-bg: #EEF1F0; --hf-ftr-ink: #063A4F;
  --hf-f-display: "Ubuntu", system-ui, sans-serif; --hf-f-body: "Geist", system-ui, sans-serif; --hf-f-mono: "Geist Mono", ui-monospace, monospace;
  --hf-g: 20px; --hf-wrap: 1180px; --hf-h: 58px;
  display: block; box-sizing: border-box; font-family: var(--hf-f-body); font-size: 15px; line-height: 1.5; color: var(--hf-ink);
  -webkit-font-smoothing: antialiased; text-align: left;
}
@media (min-width: 768px) { #hf-header, #hf-drawer, #hf-footer { --hf-g: 28px; } }
@media (min-width: 1025px) { #hf-header, #hf-drawer, #hf-footer { --hf-h: 66px; } }

#hf-header :where(div,nav,ul,li,a,p,span,strong,small,b,i,button,header),
#hf-drawer :where(div,nav,ul,li,a,p,span,strong,small,b,i,button),
#hf-footer :where(div,nav,ul,li,a,p,span,strong,small,b,i,footer) { all: revert; box-sizing: border-box; }
#hf-header *, #hf-drawer *, #hf-footer * { box-sizing: border-box; }
#hf-header ul, #hf-drawer ul, #hf-footer ul { list-style: none; margin: 0; padding: 0; }
#hf-header a, #hf-drawer a, #hf-footer a { color: inherit; text-decoration: none; }
#hf-header button, #hf-drawer button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
#hf-header :focus-visible, #hf-drawer :focus-visible, #hf-footer :focus-visible { outline: 2px solid var(--hf-mint-deep); outline-offset: 2px; border-radius: 4px; }
#hf-header .hf-sr, #hf-drawer .hf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- lockup ---------- */
#hf-header .hf-lockup, #hf-drawer .hf-lockup, #hf-footer .hf-lockup { display: inline-flex; align-items: center; gap: calc(var(--hf-lk) * .41); white-space: nowrap; text-decoration: none; }
#hf-header .hf-lockup svg, #hf-drawer .hf-lockup svg, #hf-footer .hf-lockup svg { height: calc(var(--hf-lk) * 1.47); width: calc(var(--hf-lk) * 1.59); flex: none; display: block; }
#hf-header .hf-lockup span, #hf-drawer .hf-lockup span, #hf-footer .hf-lockup span { font-family: var(--hf-f-display); font-weight: 700; font-size: var(--hf-lk); letter-spacing: -.015em; line-height: 1; color: var(--hf-logo); }

/* ---------- button ---------- */
#hf-header .hf-btn, #hf-drawer .hf-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--hf-ink); color: var(--hf-white); font-family: var(--hf-f-body); font-weight: 500; font-size: 13px; line-height: 1.2; padding: 12px 22px; border-radius: 10px; white-space: nowrap; text-decoration: none; transition: background .15s; }
#hf-header .hf-btn:hover, #hf-drawer .hf-btn:hover { background: #0A4460; }
#hf-drawer .hf-btn--block { display: flex; width: 100%; margin-top: 12px; }

/* ---------- header ---------- */
#hf-header { position: sticky; top: 0; z-index: 1000; background: var(--hf-white); border-bottom: 1px solid var(--hf-paper3); }
@media (min-width: 783px) { .admin-bar #hf-header { top: 32px; } }
#hf-header .hf-hdr__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--hf-h); max-width: calc(var(--hf-wrap) + var(--hf-g) * 2); margin: 0 auto; padding: 0 var(--hf-g); }
#hf-header .hf-nav { display: none; height: 100%; }
#hf-header .hf-nav__list { display: flex; align-items: stretch; gap: 30px; height: 100%; }
#hf-header .hf-nav__item { display: flex; align-items: stretch; }
#hf-header .hf-nav__btn, #hf-header .hf-nav__link { position: relative; display: inline-flex; align-items: center; font-family: var(--hf-f-body); font-weight: 500; font-size: 15px; color: var(--hf-ink); white-space: nowrap; transition: color .15s; }
#hf-header .hf-nav__btn:hover, #hf-header .hf-nav__link:hover, #hf-header .hf-nav__link[aria-current="page"] { color: var(--hf-mint-text); }
#hf-header .hf-car { display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 8px; position: relative; top: -2px; transition: transform .15s; }
#hf-header .hf-nav__item.is-open .hf-nav__btn { color: var(--hf-mint-text); }
#hf-header .hf-nav__item.is-open .hf-car { transform: rotate(225deg); top: 1px; }
#hf-header .hf-nav__item.is-open .hf-nav__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--hf-mint-deep); }
#hf-header .hf-hdr__cta { display: none; }
#hf-header .hf-burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; }
#hf-header .hf-burger__bars { position: relative; width: 22px; height: 14px; border-top: 2px solid var(--hf-ink); border-bottom: 2px solid var(--hf-ink); }
#hf-header .hf-burger__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid var(--hf-ink); }
@media (min-width: 1025px) {
  #hf-header .hf-nav { display: block; }
  #hf-header .hf-hdr__cta { display: inline-flex; }
  #hf-header .hf-burger { display: none; }
}

/* ---------- mega panel ---------- */
#hf-header .hf-mega { position: absolute; top: 100%; left: var(--hf-g); right: var(--hf-g); margin-top: 1px; background: var(--hf-white); border: 1px solid var(--hf-paper3); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(3,45,65,.12); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s linear .15s; z-index: 1001; }
#hf-header .hf-mega--half { left: 50%; }
#hf-header .hf-nav__item.is-open > .hf-mega { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s, visibility 0s; }
#hf-header .hf-mega__grid { display: grid; grid-template-columns: repeat(var(--hf-cols, 2), minmax(0, 1fr)); }
#hf-header .hf-mega__col { padding: 26px 28px; }
#hf-header .hf-mega__col + .hf-mega__col { border-left: 1px solid var(--hf-paper3); }
#hf-header .hf-mega__h { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--hf-f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--hf-muted); }
#hf-header .hf-mi__a { display: flex; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 8px; color: var(--hf-ink); transition: background .12s; }
#hf-header .hf-mi--nodesc > .hf-mi__a { padding-top: 7px; padding-bottom: 7px; }
#hf-header .hf-mi__a:hover { background: var(--hf-paper3); }
#hf-header .hf-tick { flex: 0 0 3px; border-radius: 2px; align-self: stretch; background: var(--hf-mint-deep); }
#hf-header .hf-mi--well .hf-tick { background: var(--hf-blue); }
#hf-header .hf-mi--neu .hf-tick { background: var(--hf-muted); opacity: .45; }
#hf-header .hf-mi__t strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.4; }
#hf-header .hf-mi__t small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--hf-muted); }
#hf-header .hf-sub { margin: 0 0 4px; }
#hf-header .hf-sub__a { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 27px; margin: 0 -12px; font-size: 14px; color: var(--hf-ink); border-radius: 8px; }
#hf-header .hf-sub__a::before { content: ""; width: 10px; height: 1px; background: var(--hf-muted); opacity: .6; }
#hf-header .hf-sub__a:hover { background: var(--hf-paper3); }
#hf-header .hf-pbar { display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: var(--hf-mint-tint); border-radius: 0 0 12px 12px; color: var(--hf-ink); }
#hf-header .hf-pbar__t strong { display: block; font-weight: 600; font-size: 15px; }
#hf-header .hf-pbar__t small { display: block; font-size: 13.5px; color: var(--hf-muted); }
#hf-header .hf-pbar__cta { margin-left: auto; font-weight: 600; font-size: 14px; color: var(--hf-mint-text); white-space: nowrap; }
#hf-header .hf-pbar:hover .hf-pbar__cta { text-decoration: underline; text-underline-offset: 3px; }

/* shared bits */
#hf-header .hf-dot, #hf-drawer .hf-dot, #hf-footer .hf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--hf-mint-deep); }
#hf-header .hf-dot--well, #hf-drawer .hf-dot--well, #hf-footer .hf-dot--well { background: var(--hf-blue); }
#hf-header .hf-chip, #hf-drawer .hf-chip, #hf-footer .hf-chip { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--hf-white); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(3,45,65,.08); }
#hf-header .hf-chip svg, #hf-drawer .hf-chip svg, #hf-footer .hf-chip svg { width: 28px; height: 28px; display: block; }
#hf-header .hf-draft, #hf-drawer .hf-draft, #hf-footer .hf-draft { outline: 1px dashed #b5651d; outline-offset: -1px; opacity: .7; }

/* ---------- mobile drawer ---------- */
#hf-drawer { position: fixed; inset: 0; z-index: 100000; background: rgba(3,45,65,.45); }
#hf-drawer[hidden] { display: none; }
#hf-drawer .hf-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--hf-white); overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 28px; transform: translateX(16px); opacity: 0; transition: transform .18s, opacity .18s; }
#hf-drawer.is-open .hf-drawer__panel { transform: none; opacity: 1; }
#hf-drawer .hf-drawer__top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 58px; margin: 0 -18px; padding: 0 18px; background: var(--hf-white); border-bottom: 1px solid var(--hf-paper3); }
#hf-drawer .hf-drawer__close { width: 40px; height: 40px; margin-right: -8px; font-size: 26px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
#hf-drawer .hf-dacc, #hf-drawer .hf-drow { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hf-paper3); font-weight: 600; font-size: 16px; color: var(--hf-ink); text-align: left; }
#hf-drawer .hf-dacc i { font-style: normal; font-weight: 400; color: var(--hf-muted); }
#hf-drawer .hf-dacc i::before { content: "+"; }
#hf-drawer .hf-dacc[aria-expanded="true"] i::before { content: "\2212"; }
#hf-drawer .hf-dacc__panel { padding: 4px 0 10px 12px; border-bottom: 1px solid var(--hf-paper3); }
#hf-drawer .hf-dacc__panel[hidden] { display: none; }
#hf-drawer .hf-dacc__h { margin: 10px 0 4px; font-family: var(--hf-f-mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--hf-muted); }
#hf-drawer .hf-dlink { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 14.5px; color: var(--hf-ink); }
#hf-drawer .hf-dlink .hf-dot { width: 7px; height: 7px; }
#hf-drawer .hf-dlink--sub { padding-left: 17px; font-size: 13.5px; color: var(--hf-muted); }
#hf-drawer .hf-dpbar { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--hf-mint-tint); border: 1px solid var(--hf-mint-line); color: var(--hf-ink); }
#hf-drawer .hf-dpbar .hf-chip { flex-basis: 40px; width: 40px; height: 40px; }
#hf-drawer .hf-dpbar .hf-chip svg { width: 24px; height: 24px; }
#hf-drawer .hf-dpbar strong { display: block; font-size: 15px; font-weight: 600; }
#hf-drawer .hf-dpbar small { display: block; font-size: 13px; color: var(--hf-mint-text); font-weight: 500; }
#hf-drawer .hf-dpbar b { margin-left: auto; color: var(--hf-mint-text); font-size: 18px; }
html.hf-lock, html.hf-lock body { overflow: hidden; }

/* ---------- footer ---------- */
#hf-footer { background: var(--hf-ftr-bg); color: var(--hf-ftr-ink); border-top: 1px solid #E4E9E8; }
#hf-footer .hf-ftr__in { max-width: calc(var(--hf-wrap) + var(--hf-g) * 2); margin: 0 auto; padding: 48px var(--hf-g) 24px; }
#hf-footer .hf-ftr__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
#hf-footer .hf-ftr__brand { grid-column: 1 / -1; }
@media (min-width: 861px) {
  #hf-footer .hf-ftr__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  #hf-footer .hf-ftr__brand { grid-column: auto; }
}
#hf-footer .hf-ftr__desc { margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: var(--hf-ftr-ink); }
#hf-footer .hf-nowrap { white-space: nowrap; }
#hf-footer .hf-fpcard { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; width: fit-content; max-width: 100%; padding: 12px 22px 12px 14px; border-radius: 14px; background: var(--hf-mint-tint); border: 1px solid var(--hf-mint-line); color: var(--hf-ink); }
#hf-footer .hf-fpcard .hf-chip { flex-basis: 34px; width: 34px; height: 34px; }
#hf-footer .hf-fpcard .hf-chip svg { width: 21px; height: 21px; }
#hf-footer .hf-fpcard strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
#hf-footer .hf-fpcard small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--hf-mint-text); }
@media (min-width: 861px) { #hf-footer .hf-fpcard strong { white-space: nowrap; } }
#hf-footer .hf-ftr__h { margin: 0 0 12px; font-family: var(--hf-f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--hf-ftr-ink); }
#hf-footer .hf-ftr__sub { display: flex; align-items: center; gap: 7px; margin: 14px 0 4px; font-family: var(--hf-f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--hf-muted); }
#hf-footer .hf-ftr__h + .hf-ftr__sub { margin-top: 0; }
#hf-footer .hf-ftr__sub .hf-dot { width: 7px; height: 7px; }
#hf-footer .hf-ftr__a { display: block; padding: 4px 0; font-size: 14px; color: var(--hf-ftr-ink); }
#hf-footer .hf-ftr__a:hover, #hf-footer .hf-ftr__la:hover { color: var(--hf-mint-text); text-decoration: underline; text-underline-offset: 3px; }
#hf-footer .hf-ftr__ai { margin: 28px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--hf-ftr-ink); }
#hf-footer .hf-ftr__ai a { color: var(--hf-mint-text); text-decoration: underline; text-underline-offset: 2px; }
#hf-footer .hf-ftr__bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 16px; border-top: 1px solid #DCE3E2; font-family: var(--hf-f-mono); font-size: 11px; color: var(--hf-ftr-ink); }
#hf-footer .hf-ftr__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
#hf-footer .hf-ftr__la { color: var(--hf-ftr-ink); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  #hf-header *, #hf-drawer * { transition: none !important; }
}
