.vb-header{position:sticky;top:0;z-index:100;background:color-mix(in srgb,var(--vb-surface) 94%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--vb-border)}.admin-bar .vb-header{top:32px}.vb-header__inner{display:flex;align-items:center;gap:1.25rem;min-height:86px}.vb-brand{display:flex;flex-direction:column;text-decoration:none;color:var(--vb-text);margin-right:auto}.vb-brand__name{font-family:var(--vb-heading-font,ui-serif),Georgia,serif;font-size:1.35rem;font-weight:800;line-height:1.1}.vb-brand__tagline{font-size:.72rem;color:var(--vb-muted);margin-top:.18rem}.vb-nav__list{display:flex;align-items:center;gap:1.1rem;list-style:none;margin:0;padding:0}.vb-nav__list a,.vb-nav-group__toggle{text-decoration:none;color:var(--vb-text);font:inherit;font-weight:650;font-size:.94rem}.vb-nav-group__toggle{display:inline-flex;align-items:center;border:0;background:transparent;padding:0;cursor:pointer}.vb-nav-group__toggle:focus-visible{outline:2px solid var(--vb-primary);outline-offset:4px;border-radius:3px}.vb-header__actions{display:flex;align-items:center;gap:.8rem}.vb-header__phone{text-decoration:none;font-weight:700;white-space:nowrap}.vb-nav-toggle{display:none;background:none;border:1px solid var(--vb-border);border-radius:8px;font-size:1.3rem;padding:.4rem .55rem}.vb-nav .sub-menu{position:absolute;list-style:none;background:#fff;border:1px solid var(--vb-border);box-shadow:var(--vb-shadow);border-radius:10px;padding:.5rem;min-width:220px;margin:.5rem 0 0;display:none}.vb-nav li{position:relative}.vb-nav li:hover>.sub-menu,.vb-nav li:focus-within>.sub-menu{display:block}.vb-nav .sub-menu a{display:block;padding:.55rem .7rem}@media(max-width:1400px){.vb-header__actions .vb-header__phone{display:none}.vb-nav-toggle{display:block;order:3}.vb-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--vb-border);padding:1rem}.vb-nav.is-open{display:block}.vb-nav__list{display:block}.vb-nav__list>li>a,.vb-nav__list>li>.vb-nav-group__toggle{display:flex;width:100%;padding:.65rem;text-align:left}.vb-nav .sub-menu{position:static;display:block;border:0;box-shadow:none;margin:0 0 .4rem 1rem;padding:0}.vb-header__actions{margin-left:0}.vb-header__actions .vb-button{display:none}}@media(max-width:782px){.admin-bar .vb-header{top:46px}}
.vb-brand__logo{display:block;max-width:245px;max-height:64px;width:auto;height:auto;margin-bottom:.2rem}.vb-brand:has(.vb-brand__logo) .vb-brand__name,.vb-brand:has(.vb-brand__logo) .vb-brand__tagline{display:none}

/* VeterinaryBuilt 0.5 header variants */
.vb-header-static .vb-header{position:relative;top:auto}.vb-header--classic{}body.vb-header--centered .vb-header__inner{display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"nav brand actions";min-height:96px}body.vb-header--centered .vb-brand{grid-area:brand;margin:0;text-align:center;align-items:center}body.vb-header--centered .vb-nav{grid-area:nav;justify-self:start}body.vb-header--centered .vb-header__actions{grid-area:actions;justify-self:end}body.vb-header--compact .vb-header__inner{min-height:64px;gap:.9rem}body.vb-header--compact .vb-brand__logo{max-height:42px}body.vb-header--compact .vb-nav__list{gap:.8rem}body.vb-header--compact .vb-nav__list a{font-size:.9rem}@media(max-width:1400px){body.vb-header--centered .vb-header__inner{display:flex;min-height:78px}body.vb-header--centered .vb-brand{margin-right:auto;align-items:flex-start;text-align:left}}

/* Navigation Intelligence — preserve the shared TB/VB interaction skeleton while using VB tokens. */
.vb-nav__mobile-cta{display:none}.vb-nav a.vb-nav-external::after{content:"↗";font-size:.72em;margin-left:.28em;opacity:.7}.vb-nav .sub-menu{max-width:min(320px,calc(100vw - 2rem))}.vb-nav .sub-menu a{white-space:normal;line-height:1.35}
@media(max-width:1400px){.vb-nav__mobile-cta{display:block;margin-top:.8rem;padding-top:.9rem;border-top:1px solid var(--vb-border)}.vb-nav__mobile-cta .vb-action-wrap,.vb-nav__mobile-cta .vb-button{display:flex;width:100%}.vb-nav__mobile-cta .vb-button{justify-content:center}.vb-nav .sub-menu{max-width:none}}

/* QA 0.7.7: TB-style predictable dropdown interaction. The submenu hit area touches
   the parent item so pointer travel never crosses a dead hover gap. */
@media(min-width:1401px){
  .vb-nav .menu-item-has-children>a,.vb-nav .vb-nav-group>a{display:inline-flex;align-items:center;gap:.3rem}
  .vb-nav .menu-item-has-children>a::after,.vb-nav .vb-nav-group>a::after{content:"⌄";font-size:.78em;line-height:1;opacity:.65;transform:translateY(-.05em)}
  .vb-nav .sub-menu{top:100%;left:0;margin:0;padding:.55rem;display:block;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease,visibility .12s ease}
  .vb-nav li:hover>.sub-menu,.vb-nav li:focus-within>.sub-menu,.vb-nav li.is-open>.sub-menu{opacity:1;visibility:visible;pointer-events:auto}
  .vb-nav .sub-menu::before{content:"";position:absolute;left:0;right:0;top:-2px;height:2px}
  .vb-nav .vb-nav-group>a[href="#"]{cursor:pointer}
}
@media(max-width:1400px){
  .vb-nav .menu-item-has-children>.sub-menu,.vb-nav .vb-nav-group>.sub-menu{display:none}
  .vb-nav .menu-item-has-children.is-open>.sub-menu,.vb-nav .vb-nav-group.is-open>.sub-menu{display:block}
  .vb-nav .menu-item-has-children>a,.vb-nav .vb-nav-group>a{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
  .vb-nav .menu-item-has-children>a::after,.vb-nav .vb-nav-group>a::after{content:"+";font-weight:800;opacity:.65}
  .vb-nav .menu-item-has-children.is-open>a::after,.vb-nav .vb-nav-group.is-open>a::after{content:"−"}
}

/* 0.8.3 — primary brand mark should read as a logo, not a favicon-sized ornament. */
@media(min-width:1401px){.vb-brand__logo{max-width:min(250px,18vw);max-height:66px}.vb-header__inner{min-height:88px}}
@media(max-width:1400px){.vb-brand__logo{max-width:210px;max-height:56px}}


/* 0.9.15 — accessible adaptive desktop navigation: preserve readable type, compress layout first, then collapse. */
@media(min-width:1401px){
  .vb-header__inner{width:min(calc(100% - 2rem),1440px);gap:clamp(.6rem,.8vw,1rem)}
  .vb-brand{flex:0 1 auto;min-width:0}
  .vb-brand__logo{max-width:clamp(200px,14vw,250px)}
  .vb-nav{min-width:0}
  .vb-nav__list{flex-wrap:nowrap;gap:clamp(.48rem,.52vw,.82rem)}
  .vb-nav__list>li{flex:0 0 auto}
  .vb-nav__list>li>a,.vb-nav__list>li>.vb-nav-group__toggle{white-space:nowrap;font-size:clamp(1rem,calc(.6rem + .4vw),1.075rem);line-height:1.25}
  .vb-header__actions{flex:0 0 auto;gap:.6rem}
  .vb-header__actions .vb-button--small{font-size:.94rem;padding:.66rem .9rem}
  .vb-header__phone{width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid var(--vb-border);border-radius:999px;color:var(--vb-primary-dark);background:var(--vb-surface);text-decoration:none}
  .vb-header__phone:hover,.vb-header__phone:focus-visible{border-color:var(--vb-primary);background:color-mix(in srgb,var(--vb-primary) 7%,var(--vb-surface))}
  .vb-header__phone-icon{width:17px;height:17px}
  .vb-header__phone-label{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  body.vb-header--compact .vb-nav__list{gap:.5rem}
  body.vb-header--compact .vb-nav__list>li>a,body.vb-header--compact .vb-nav__list>li>.vb-nav-group__toggle{font-size:clamp(1rem,calc(.6rem + .4vw),1.075rem)}
}
@media(max-width:1400px){
  .vb-header__actions .vb-header__phone{display:none}
  .vb-nav-toggle{display:block;order:3}
  .vb-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--vb-border);padding:1rem}
  .vb-nav.is-open{display:block}
  .vb-nav__list{display:block}
  .vb-nav__list>li>a,.vb-nav__list>li>.vb-nav-group__toggle{display:flex;width:100%;padding:.72rem .65rem;text-align:left;white-space:normal;font-size:1rem}
  .vb-nav .sub-menu{position:static;border:0;box-shadow:none;margin:0 0 .4rem 1rem;padding:0}
  .vb-header__actions{margin-left:0}
  .vb-header__actions .vb-button{display:none}
  body.vb-header--centered .vb-header__inner{display:flex;min-height:78px}
  body.vb-header--centered .vb-brand{margin-right:auto;align-items:flex-start;text-align:left}
}


/* 0.9.16 — calmer desktop navigation: readable type without the compressed/bold-button effect. */
@media(min-width:1401px){
  .vb-header__inner{width:min(calc(100% - 3rem),1480px);gap:clamp(.85rem,1vw,1.25rem)}
  .vb-brand__logo{max-width:clamp(195px,13vw,235px)}
  .vb-nav__list{gap:clamp(.72rem,.72vw,1rem)}
  .vb-nav__list>li>a,.vb-nav__list>li>.vb-nav-group__toggle{font-size:clamp(1rem,calc(.94rem + .1vw),1.0625rem);font-weight:600;letter-spacing:-.006em;line-height:1.3}
  body.vb-header--compact .vb-nav__list{gap:.72rem}
  body.vb-header--compact .vb-nav__list>li>a,body.vb-header--compact .vb-nav__list>li>.vb-nav-group__toggle{font-size:1rem;font-weight:600}
  .vb-header__actions .vb-button--small{font-size:.92rem;font-weight:700;padding:.64rem .86rem}
}

/* 0.9.24 — TherapyBuilt-derived desktop navigation polish.
   Preserve VB routing/dropdown logic while adopting TB's calmer hit areas,
   active-state treatment, spacing, and menu surfaces. */
@media(min-width:1401px){
  .vb-header{
    box-shadow:0 1px 4px color-mix(in srgb,var(--vb-text) 7%,transparent);
  }
  .vb-header__inner{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"brand nav actions";
    align-items:center;
    min-height:82px;
    width:min(calc(100% - 3rem),1480px);
    gap:clamp(.8rem,1.1vw,1.35rem);
  }
  .vb-brand{
    grid-area:brand;
    margin-right:0;
    min-width:0;
    padding-right:clamp(.25rem,.7vw,.75rem);
  }
  .vb-brand__logo{max-width:clamp(195px,13vw,235px);max-height:64px}
  .vb-nav{
    grid-area:nav;
    display:flex;
    align-items:center;
    justify-self:start;
    min-width:0;
  }
  .vb-nav__list{
    gap:2px;
    min-width:0;
  }
  .vb-nav__list>li>a,
  .vb-nav__list>li>.vb-nav-group__toggle{
    display:inline-flex;
    align-items:center;
    min-height:38px;
    padding:.46rem .62rem;
    border-radius:var(--vb-radius-button,9px);
    color:var(--vb-text);
    font-size:clamp(.925rem,calc(.9rem + .05vw),.975rem);
    font-weight:550;
    letter-spacing:-.004em;
    line-height:1.2;
    white-space:nowrap;
    transition:color .14s ease,background-color .14s ease,box-shadow .14s ease;
  }
  .vb-nav__list>li>a:hover,
  .vb-nav__list>li>a:focus-visible,
  .vb-nav__list>li>.vb-nav-group__toggle:hover,
  .vb-nav__list>li>.vb-nav-group__toggle:focus-visible{
    color:var(--vb-primary-dark);
    background:color-mix(in srgb,var(--vb-primary) 8%,var(--vb-surface));
    text-decoration:none;
    outline:none;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--vb-primary) 8%,transparent);
  }
  .vb-nav__list>li>a[aria-current="page"],
  .vb-nav__list>li.current-menu-item>a,
  .vb-nav__list>li.current_page_item>a,
  .vb-nav__list>li.current-menu-ancestor>a,
  .vb-nav__list>li.current_page_ancestor>a,
  .vb-nav__list>li.current-menu-item>.vb-nav-group__toggle,
  .vb-nav__list>li.current-menu-ancestor>.vb-nav-group__toggle{
    color:var(--vb-primary-dark);
    font-weight:650;
    background:color-mix(in srgb,var(--vb-primary-light) 68%,var(--vb-surface));
  }
  .vb-header__actions{
    grid-area:actions;
    justify-self:end;
    padding-left:.2rem;
  }
  .vb-nav .sub-menu{
    margin:0;
    padding:.42rem;
    min-width:210px;
    background:color-mix(in srgb,var(--vb-surface) 96%,transparent);
    border:1px solid color-mix(in srgb,var(--vb-border) 84%,transparent);
    border-radius:var(--vb-radius-card,14px);
    box-shadow:0 14px 36px color-mix(in srgb,var(--vb-text) 12%,transparent);
    backdrop-filter:blur(14px) saturate(1.05);
    -webkit-backdrop-filter:blur(14px) saturate(1.05);
  }
  .vb-nav .sub-menu a{
    padding:.55rem .68rem;
    border-radius:calc(var(--vb-radius-button,9px) - 2px);
    font-size:.9rem;
    font-weight:520;
    line-height:1.3;
    transition:color .12s ease,background-color .12s ease;
  }
  .vb-nav .sub-menu a:hover,
  .vb-nav .sub-menu a:focus-visible{
    color:var(--vb-primary-dark);
    background:color-mix(in srgb,var(--vb-primary) 8%,var(--vb-surface));
    text-decoration:none;
    outline:none;
  }
  .vb-nav .sub-menu .current-menu-item>a,
  .vb-nav .sub-menu .current_page_item>a{
    color:var(--vb-primary-dark);
    font-weight:650;
    background:color-mix(in srgb,var(--vb-primary-light) 58%,var(--vb-surface));
  }
}

