/* Slim top bar on frosted glass, each link in its own liquid-glass pill. Desktop widths only; phones keep the menu button. */
@media (min-width:1024px){
 body.site-v2.corporate-site{padding-top:64px}
 body.site-v2.corporate-site .v2-header{
  height:64px;padding-top:8px;padding-bottom:8px;
  background:rgba(255,255,255,.66);
  -webkit-backdrop-filter:blur(20px) saturate(1.6);backdrop-filter:blur(20px) saturate(1.6);
  border-bottom:1px solid rgba(15,95,200,.08);
 }
 body.site-v2.corporate-site .v2-header .brand-logo{width:auto;height:56px}
 body.site-v2.corporate-site .v2-nav{gap:8px}
 body.site-v2.corporate-site .v2-nav>a:not(.nav-consult){
  position:relative;padding:6px 16px;border-radius:999px;color:var(--brand);text-decoration:none;
  background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,255,255,.34));
  border:1px solid rgba(255,255,255,.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(15,95,200,.06),0 4px 14px rgba(15,95,200,.08);
  -webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);
  transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s cubic-bezier(.22,1,.36,1),background-color .35s,color .35s;
 }
 /* A soft highlight that follows the top edge, the "liquid" sheen on the glass. */
 body.site-v2.corporate-site .v2-nav>a:not(.nav-consult)::before{
  content:"";position:absolute;inset:1px 10% auto;height:45%;border-radius:999px;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,0));opacity:.7;
 }
 body.site-v2.corporate-site .v2-nav>a:not(.nav-consult):hover{
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(15,95,200,.08),0 8px 22px rgba(15,95,200,.14);
 }
 body.site-v2.corporate-site .v2-nav>a:not(.nav-consult):active{transform:scale(.97)}
 body.site-v2.corporate-site .v2-nav>a[aria-current]:not(.nav-consult){
  color:#fff;text-decoration:none;
  background:linear-gradient(180deg,rgba(26,84,140,.92),rgba(15,95,200,.92));
  border-color:rgba(255,255,255,.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 18px rgba(15,95,200,.24);
 }
 body.site-v2.corporate-site .v2-nav>a[aria-current]:not(.nav-consult)::before{opacity:.25}
 body.site-v2.corporate-site .v2-nav .nav-consult{min-height:40px;padding:8px 18px;border-radius:999px}
}

/* Page changes: the old page lifts away and the new one rises in; the top bar stays put. Browsers without
   cross-document view transitions simply load the page as before. */
@view-transition{navigation:auto}
.site-v2 .v2-header{view-transition-name:site-header}
::view-transition-old(root){animation:page-out .32s cubic-bezier(.4,0,1,1) both}
::view-transition-new(root){animation:page-in .6s cubic-bezier(.22,1,.36,1) both}
@keyframes page-out{to{opacity:0;transform:translateY(-16px) scale(.99)}}
@keyframes page-in{from{opacity:0;transform:translateY(24px) scale(.99)}}
@media (prefers-reduced-motion:reduce){
 ::view-transition-old(root),::view-transition-new(root){animation:none}
}

/* Centred navigation with motion (desktop): links sit in the middle of the bar, a blue pill glides to the
   link under the pointer and settles back on the current page, and a thin wave in the brand colours drifts
   along the bottom edge. Phones keep the menu button. Reduced motion: pill jumps, wave stays still. */
@media (min-width:1024px){
 body.site-v2.corporate-site .v2-header{position:fixed;display:flex;align-items:center}
 body.site-v2.corporate-site .v2-header .v2-nav{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6px;pointer-events:none;background:none;border:0;box-shadow:none}
 body.site-v2.corporate-site .v2-header .v2-nav>*{pointer-events:auto}
 body.site-v2.corporate-site .v2-header .v2-nav .nav-consult{position:absolute;right:var(--corporate-pad,32px);top:50%;transform:translateY(-50%)}
 body.site-v2.corporate-site .v2-nav.has-ink>a:not(.nav-consult),
 body.site-v2.corporate-site .v2-nav.has-ink>a[aria-current]:not(.nav-consult){position:relative;z-index:1;background:transparent;border-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--ink-navy);transition:color .3s}
 body.site-v2.corporate-site .v2-nav.has-ink>a:not(.nav-consult)::before{display:none}
 body.site-v2.corporate-site .v2-nav.has-ink>a.is-inked{color:#fff}
 body.site-v2.corporate-site .v2-nav.has-ink>a:not(.nav-consult):hover{transform:none}
 .nav-ink{position:absolute;left:0;top:50%;height:38px;width:0;margin-top:-19px;border-radius:999px;pointer-events:none;z-index:0;
  background:linear-gradient(135deg,#186EDE,var(--brand) 60%,var(--brand-strong));box-shadow:0 6px 18px rgba(15,95,200,.32),inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform .45s cubic-bezier(.34,1.3,.64,1),width .45s cubic-bezier(.34,1.3,.64,1),opacity .25s}
}
@media (min-width:1024px) and (prefers-reduced-motion:reduce){
 .nav-ink{transition:none}
}

/* Opening-tab edge: replaces the drifting wave. The bar's bottom line rises around the current link,
   the raised part is frosted glass, and the link inside it reads in the brand blue. */
@media (min-width:1024px){
 body.site-v2.corporate-site .v2-header.has-edge{border-bottom-color:transparent}
 body.site-v2.corporate-site .v2-header.has-edge::after{content:none;display:none}
 .nav-edge{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:0}
 .nav-edge-fill{fill:rgba(255,255,255,.62);filter:drop-shadow(0 -2px 6px rgba(15,95,200,.12))}
 body.site-v2.corporate-site .v2-header .v2-nav{z-index:1}
 .nav-ink{height:38px;margin-top:-17px;background:linear-gradient(180deg,rgba(255,255,255,.85),rgba(234,242,254,.55));
  border:1px solid rgba(255,255,255,.95);box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(15,95,200,.08),0 6px 16px rgba(15,95,200,.14);
  -webkit-backdrop-filter:blur(14px) saturate(1.6);backdrop-filter:blur(14px) saturate(1.6);transition:opacity .25s}
 body.site-v2.corporate-site .v2-nav.has-ink>a.is-inked{color:var(--brand);font-weight:800}
}

/* No outline: the raised tab reads as a soft 3D surface lifted out of the bar (owner feedback). */
@media (min-width:1024px){
 .nav-edge-line{display:none}
 .nav-edge-fill{fill:url(#navTabSurface);filter:drop-shadow(0 -3px 6px rgba(15,95,200,.10)) drop-shadow(0 6px 10px rgba(15,95,200,.14))}
 body.site-v2.corporate-site .v2-header.has-edge{border-bottom:0;box-shadow:0 8px 24px -18px rgba(11,27,51,.35)}
}

/* Right side of the bar: customer login (quiet pill) next to the consult button. In the phone drawer they stack. */
.site-v2 .v2-nav .nav-login{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 16px;border-radius:999px;
 color:var(--brand);font-weight:700;text-decoration:none;white-space:nowrap;border:1px solid rgba(15,95,200,.28);background:rgba(255,255,255,.7)}
.site-v2 .v2-nav .nav-login:hover{background:#fff;border-color:var(--brand)}
.site-v2 .v2-nav .nav-login:focus-visible{outline:3px solid rgba(15,95,200,.45);outline-offset:2px}
@media (min-width:1024px){
 body.site-v2.corporate-site .v2-header .v2-nav .nav-actions{position:absolute;right:var(--corporate-pad,32px);top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:10px}
 body.site-v2.corporate-site .v2-header .v2-nav .nav-actions .nav-consult{position:static;transform:none}
}
/* 1024-1279: centred links plus both buttons do not fit. Links start after the logo, login shrinks to its icon. */
@media (min-width:1024px) and (max-width:1279.98px){
 body.site-v2.corporate-site .v2-header .v2-nav{justify-content:flex-start;padding-left:260px;gap:2px}
 body.site-v2.corporate-site .v2-nav>a:not(.nav-consult){padding-left:8px;padding-right:8px}
 .site-v2 .v2-nav .nav-login{width:40px;padding:0}
 .site-v2 .v2-nav .nav-login-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
/* Above 1100 the header padding grows and the logo ends near 260px. */
@media (min-width:1101px) and (max-width:1279.98px){
 body.site-v2.corporate-site .v2-header .v2-nav{padding-left:312px}
}
/* Wide bar: text only, the icon would push the button into the centred links at 1280. */
@media (min-width:1280px){.site-v2 .v2-nav .nav-login svg{display:none}}
@media (max-width:1023.98px){
 .site-v2 .v2-nav .nav-actions{display:grid;gap:12px;margin-top:20px}
 .site-v2 .v2-nav .nav-actions .nav-consult{margin-top:0}
 .site-v2 .v2-nav .nav-login{min-height:48px;font-size:16px}
}

/* The tab edge is desktop-only; on smaller screens it must not take space in the header row. */
@media (max-width:1023.98px){.nav-edge,.nav-ink{display:none!important}}
/* 1440-1919: the brand line with its tagline is ~300px wide and ran into the centred links.
   Push the links right of the brand and let login shrink to its icon so the buttons keep their room. */
@media (min-width:1440px) and (max-width:1919.98px){
 body.site-v2.corporate-site .v2-header .v2-nav{padding-left:150px}
 .site-v2 .v2-nav .nav-login{width:40px;padding:0}
 .site-v2 .v2-nav .nav-login svg{display:inline}
 .site-v2 .v2-nav .nav-login-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* The pill under the current or pointed-at link is lit all round and raised, like a button (owner picked this from five demos). */
@media (min-width:1024px){
 .nav-ink{height:40px;margin-top:-20px;background:linear-gradient(180deg,#fff,#E4EEFD);border-color:#fff;
  box-shadow:inset 0 1px 0 #fff,inset 0 -2px 0 rgba(15,95,200,.18),0 0 0 1px rgba(26,116,232,.3),0 0 16px 3px rgba(26,116,232,.42),0 8px 16px rgba(15,95,200,.22)}
 /* the pill stands alone: the raised tab behind it is gone and the bar gets its plain bottom line back */
 .nav-edge{display:none}
 body.site-v2.corporate-site .v2-header.has-edge{border-bottom:1px solid rgba(15,95,200,.1)}
}
