
/* Glass pill: the actual .masthead-v81 remains the original semantic navigation. */
.masthead.masthead-v81{
 box-sizing:border-box;
 position:sticky;
 top:clamp(9px,1.25vw,18px);
 z-index:250;
 width:min(1250px,calc(100% - 42px));
 max-width:1250px;
 min-height:72px;
 margin-inline:auto;
 padding:10px 17px;
 border-radius:999px;
 border:1px solid rgba(220,241,255,.28);
 background:linear-gradient(125deg,rgba(48,80,108,.39),rgba(16,40,58,.61) 52%,rgba(39,71,93,.41))!important;
 box-shadow:0 10px 34px rgba(2,15,27,.23),inset 0 1px 0 rgba(245,251,255,.24),inset 0 -1px 0 rgba(6,16,29,.24);
 -webkit-backdrop-filter:blur(23px) saturate(170%);
 backdrop-filter:blur(23px) saturate(170%);
 transition:width .38s cubic-bezier(.2,.8,.2,1),
            padding .38s cubic-bezier(.2,.8,.2,1),
            min-height .38s cubic-bezier(.2,.8,.2,1),
            background .38s ease,box-shadow .38s ease,border-radius .38s ease;
 isolation:isolate;
}
.masthead.masthead-v81::before{
 content:"";
 position:absolute;
 inset:1px;
 pointer-events:none;
 border-radius:inherit;
 background:linear-gradient(160deg,rgba(255,255,255,.085),transparent 43%);
 z-index:-1;
}
.masthead.masthead-v81.nav-liquid-compact{
 width:min(1165px,calc(100% - 82px));
 min-height:64px;
 padding:7px 15px;
 border-radius:999px;
 background:linear-gradient(125deg,rgba(34,68,91,.63),rgba(8,32,51,.8) 60%,rgba(31,63,83,.63))!important;
 box-shadow:0 13px 34px rgba(2,14,29,.31),inset 0 1px 0 rgba(244,250,255,.25),inset 0 -1px 0 rgba(6,16,29,.22);
}
/* Existing logo, language switch, links and icons inherit their original styling. */
.masthead.masthead-v81.menu-open,
.masthead.masthead-v81.menu-open.nav-liquid-compact{
 border-radius:26px;
 background:linear-gradient(145deg,rgba(25,55,76,.91),rgba(11,36,54,.95))!important;
}
/* Tablet: a smaller contraction prevents the navigation overflowing on 768–1080px iPads. */
@media (min-width:701px) and (max-width:1080px){
 .masthead.masthead-v81{
  width:calc(100% - 28px);
  max-width:none;
  min-height:66px;
  padding:9px 13px;
  top:12px;
 }
 .masthead.masthead-v81.nav-liquid-compact{
  width:calc(100% - 46px);
  min-height:62px;
  padding:7px 12px;
 }
}
/* Keep the existing small-screen menu and comfortable hit targets. */
@media (max-width:700px){
 .masthead.masthead-v81{
  width:calc(100% - 18px);
  max-width:calc(100% - 18px);
  min-height:58px;
  padding:7px 9px;
  top:9px;
  border-radius:24px;
 }
 .masthead.masthead-v81.nav-liquid-compact{
  width:calc(100% - 26px);
  max-width:calc(100% - 26px);
  min-height:56px;
  padding:6px 9px;
  border-radius:21px;
 }
 .masthead.masthead-v81.menu-open,
 .masthead.masthead-v81.menu-open.nav-liquid-compact{
  width:calc(100% - 18px);
  max-width:calc(100% - 18px);
  border-radius:24px;
 }
}
/* Transparent-looking fallback if the browser lacks backdrop-filter support. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .masthead.masthead-v81{
  background:rgba(20,44,63,.93)!important;
 }
 .masthead.masthead-v81.nav-liquid-compact{
  background:rgba(14,37,56,.96)!important;
 }
}

/* iPad Safari fix: the expanding navigation must not animate a large
   blurred sticky surface. That combination can stall rendering/taps on
   iPadOS. The closed glass pill keeps its original look and animation. */
@media (max-width:1080px){
 .masthead.masthead-v81.menu-open,
 .masthead.masthead-v81.menu-open.nav-liquid-compact{
  position:sticky;
  z-index:5000;
  box-sizing:border-box;
  width:calc(100% - 28px);
  max-width:calc(100% - 28px);
  max-height:calc(100vh - 24px);
  max-height:calc(100dvh - 24px);
  min-height:0;
  height:auto;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  border-radius:24px;
  transform:none!important;
  transition:none!important;
  background:#132d40!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  box-shadow:0 12px 36px rgba(2,15,27,.36),inset 0 1px 0 rgba(245,251,255,.13);
 }
 .masthead.masthead-v81.menu-open::before{display:none}
 .masthead.masthead-v81.menu-open nav{
  position:static;
  display:grid;
  animation:none!important;
  transform:none!important;
  opacity:1;
  visibility:visible;
  overflow:visible;
 }
}
@media (max-width:700px){
 .masthead.masthead-v81.menu-open,
 .masthead.masthead-v81.menu-open.nav-liquid-compact{
  width:calc(100% - 18px);
  max-width:calc(100% - 18px);
 }
}
@media (prefers-reduced-motion:reduce){
 .masthead.masthead-v81{transition:none!important}
}
/* Animated compact identity: existing glass styling, just the portrait and name. */
.masthead.masthead-v81{
 transition:width .5s cubic-bezier(.22,1,.36,1),
            padding .5s cubic-bezier(.22,1,.36,1),
            min-height .5s cubic-bezier(.22,1,.36,1),
            background .32s ease,box-shadow .42s ease,border-radius .5s ease;
}
/* Fade the existing navigation away as the compact portrait fades in. */
.masthead.masthead-v81>.brand,
.masthead.masthead-v81>#main-navigation,
.masthead.masthead-v81>.nav-tools{
 transition:opacity .24s cubic-bezier(.22,1,.36,1),
            transform .36s cubic-bezier(.22,1,.36,1),
            visibility 0s linear .24s;
}
.masthead.masthead-v81>.nav-scroll-identity{
 appearance:none;-webkit-appearance:none;box-sizing:border-box;
 position:absolute;left:50%;top:50%;z-index:2;
 display:inline-flex;align-items:center;justify-content:center;gap:10px;
 width:max-content;max-width:calc(100% - 22px);padding:4px 9px;
 border:0;border-radius:999px;outline-offset:4px;
 background:transparent;color:#f3f8fa;white-space:nowrap;
 font-family:inherit;font-size:13px;font-weight:700;line-height:1.2;
 opacity:0;visibility:hidden;pointer-events:none;
 transform:translate(-50%,-44%) scale(.92);
 transition:opacity .32s cubic-bezier(.22,1,.36,1),
            transform .48s cubic-bezier(.22,1,.36,1),
            visibility 0s linear .32s;
}
.masthead.masthead-v81>.nav-scroll-identity img{
 width:34px;height:34px;flex:0 0 34px;border-radius:50%;object-fit:cover;
 border:1px solid rgba(238,250,255,.38);
 box-shadow:0 2px 10px rgba(0,0,0,.22);
}
.masthead.masthead-v81>.nav-scroll-identity span{
 display:inline-block;font-size:13px;letter-spacing:.01em;font-weight:750;
 overflow:hidden;text-overflow:ellipsis;
}
.masthead.masthead-v81.nav-liquid-compact:not(.menu-open){
 box-sizing:border-box;
 width:clamp(200px,21vw,240px);
 min-width:0;
 max-width:min(240px,calc(100% - 22px));
 min-height:54px;height:54px;padding:6px 12px;
 display:grid;place-items:center;
}
.masthead.masthead-v81.nav-liquid-compact:not(.menu-open)>:not(.nav-scroll-identity){
 position:absolute!important;pointer-events:none!important;
 visibility:hidden!important;opacity:0!important;
 transform:translate3d(0,-5px,0) scale(.985);
 max-height:0!important;max-width:0!important;overflow:hidden!important;
}
.masthead.masthead-v81.nav-liquid-compact:not(.menu-open)>.nav-scroll-identity{
 opacity:1;visibility:visible;pointer-events:auto;
 transform:translate(-50%,-50%) scale(1);transition-delay:0s;
}
.masthead.masthead-v81>.nav-scroll-identity:focus-visible{outline:2px solid #dcfc78}
@media(max-width:700px){
 .masthead.masthead-v81.nav-liquid-compact:not(.menu-open){
  width:min(222px,calc(100% - 28px));min-height:52px;height:52px;
  padding:5px 9px;border-radius:999px;
 }
 .masthead.masthead-v81>.nav-scroll-identity img{
  width:32px;height:32px;flex-basis:32px;
 }
 .masthead.masthead-v81>.nav-scroll-identity span{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .masthead.masthead-v81>.nav-scroll-identity,
 .masthead.masthead-v81>.brand,
 .masthead.masthead-v81>#main-navigation,
 .masthead.masthead-v81>.nav-tools{transition:none!important}
 .masthead.masthead-v81{transition:none!important}
}
