/* Shared Portal 01 navigation, loaded after page-specific styles. */
.p01-site-header{position:sticky!important;top:0;z-index:120;width:100%;min-height:0;background:#050d19!important;border-bottom:1px solid #16435a!important;transition:transform .2s ease,box-shadow .2s ease;will-change:transform}
.p01-site-header.is-hidden{transform:translateY(-105%)!important}
.p01-site-header .p01-site-nav{width:min(1296px,92%);min-height:82px;height:82px;display:flex;align-items:center;gap:clamp(12px,2vw,28px);margin:0 auto;padding:0}
.p01-site-header .p01-brand{display:block;flex:0 0 174px;min-width:0;line-height:0}
.p01-site-header .p01-brand img{display:block;width:174px;height:auto;max-width:100%;object-fit:contain}
.p01-site-header .p01-links{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2.35vw,34px);margin:0 auto;min-width:0}
.p01-site-header .p01-links a{color:#e6eef8;font-size:14px;font-weight:550;line-height:1.2;text-decoration:none;white-space:nowrap}
.p01-site-header .p01-links a:hover,.p01-site-header .p01-links a:focus-visible{color:#4bdafa}
.p01-site-header .p01-actions{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin:0}
.p01-site-header .p01-login{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 12px;border:1px solid #315072;border-radius:11px;background:transparent;color:#dce8f5;font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}
.p01-site-header .p01-start{display:inline-flex;align-items:center;justify-content:center;min-width:166px;min-height:46px;padding:0 18px;border:1px solid #00c8f4;border-radius:13px;background:transparent;color:#fff;font-size:14px;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap;box-shadow:none}
.p01-site-header .p01-menu-btn{display:none}
.p01-site-header.is-compact{box-shadow:0 8px 26px rgba(0,0,0,.28)}
.p01-site-header.is-compact .p01-site-nav{min-height:62px;height:62px}
.p01-site-header.is-compact .p01-brand{flex-basis:145px}
.p01-site-header.is-compact .p01-brand img{width:145px}
.p01-site-header.is-compact .p01-start{min-height:40px}
.p01-site-header.is-compact .p01-login{display:none}
.p01-site-header.is-compact .p01-links{gap:clamp(12px,1.9vw,26px)}
.p01-site-header a:focus-visible,.p01-site-header button:focus-visible{outline:2px solid #51dcfb;outline-offset:3px}
html{scroll-padding-top:96px}
main [id],section[id]{scroll-margin-top:96px}
@media(max-width:1120px) and (min-width:981px){
  .p01-site-header .p01-site-nav{width:96%;gap:12px}
  .p01-site-header .p01-brand{flex-basis:145px}
  .p01-site-header .p01-brand img{width:145px}
  .p01-site-header .p01-links{gap:clamp(10px,1.45vw,16px)}
  .p01-site-header .p01-links a{font-size:12.5px}
  .p01-site-header .p01-start{min-width:145px;padding-inline:12px;font-size:12px}
}
@media(max-width:980px){
  .p01-site-header{min-height:72px}
  .p01-site-header .p01-site-nav{width:calc(100% - 40px);height:72px;min-height:72px;gap:12px}
  .p01-site-header .p01-brand{flex:0 1 174px;max-width:calc(100% - 92px)}
  .p01-site-header .p01-brand img{width:174px;max-width:100%}
  .p01-site-header .p01-menu-btn{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;min-width:64px;height:42px;margin-left:auto;padding:0 13px;border:1px solid #23617a;border-radius:10px;background:#091726;color:#f5fbff;font-family:inherit;font-size:14px;font-weight:700;line-height:1;cursor:pointer}
  .p01-site-header .p01-links,.p01-site-header .p01-actions{display:none}
  .p01-site-header .p01-site-nav.open{height:auto;min-height:72px;flex-wrap:wrap;align-content:flex-start;padding-bottom:14px;background:#050d19}
  .p01-site-header .p01-site-nav.open .p01-links{display:flex;order:3;width:100%;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:8px 0 0;background:#050d19}
  .p01-site-header .p01-site-nav.open .p01-links a{display:flex;align-items:center;min-height:48px;padding:10px 6px;border-top:1px solid #19364d;color:#f2f7fc;font-size:16px;font-weight:650;white-space:normal}
  .p01-site-header .p01-site-nav.open .p01-actions{display:flex;order:4;width:100%;padding:12px 0 0;background:#050d19}
  .p01-site-header .p01-site-nav.open .p01-actions .p01-login{display:none!important}
  .p01-site-header .p01-site-nav.open .p01-start{width:100%;min-height:50px;background:#10263a}
  .p01-site-header.is-compact:not(.is-menu-open){min-height:58px}
  .p01-site-header.is-compact:not(.is-menu-open) .p01-site-nav{height:58px;min-height:58px}
  .p01-site-header.is-compact:not(.is-menu-open) .p01-brand{flex-basis:142px}
  .p01-site-header.is-compact:not(.is-menu-open) .p01-brand img{width:142px}
  .p01-site-header.is-menu-open{transform:none!important;box-shadow:0 12px 28px rgba(0,0,0,.42)}
  .p01-site-header.is-menu-open .p01-site-nav{background:#050d19}
}
@media(prefers-reduced-motion:reduce){.p01-site-header{transition:none;will-change:auto}}

/* Retain the approved homepage header proportions and CTA arrow. */
@media(min-width:1101px){
  .portal-home .p01-site-header{height:110px!important}
  .portal-home .p01-site-header .p01-site-nav{width:min(1296px,90%);height:100%;min-height:0;gap:0}
  .portal-home .p01-site-header .p01-brand{flex:0 0 190px}
  .portal-home .p01-site-header .p01-brand img{width:190px!important}
  .portal-home .p01-site-header .p01-links{margin:0 auto;gap:clamp(26px,4.1vw,60px)}
  .portal-home .p01-site-header .p01-links a{font-size:14px;font-weight:500;color:#dfe8f4}
  .portal-home .p01-site-header .p01-actions{flex:0 0 169px;justify-content:flex-end}
  .portal-home .p01-site-header .p01-start{width:169px;min-width:169px;height:50px;min-height:50px;padding:0 16px 0 18px;border-radius:15px;justify-content:space-between;font-size:14px;font-weight:650}
  .portal-home .p01-site-header .p01-start span{color:#11d8ff;font-size:21px;font-weight:400}
}
@media(min-width:981px) and (max-width:1100px){
  .portal-home .p01-site-header .p01-site-nav{width:92%;gap:0}
  .portal-home .p01-site-header .p01-brand{flex-basis:165px}
  .portal-home .p01-site-header .p01-brand img{width:165px!important}
  .portal-home .p01-site-header .p01-links{gap:clamp(15px,2.7vw,30px)}
}
@media(max-width:980px){
  .portal-home .p01-site-header{height:82px!important;min-height:82px}
  .portal-home .p01-site-header .p01-site-nav{width:calc(100% - 40px);height:82px;min-height:82px;gap:0}
  .portal-home .p01-site-header .p01-brand{flex:0 0 145px;max-width:calc(100% - 60px)}
  .portal-home .p01-site-header .p01-brand img{width:145px!important;max-width:100%!important}
  .portal-home .p01-site-header .p01-menu-btn{display:inline-flex!important;width:auto;min-width:64px;height:42px;flex:0 0 auto;padding:0 13px;flex-direction:row;gap:0}
  .portal-home .p01-site-header .p01-start{width:100%;min-width:0}
  .portal-home .p01-site-header.is-compact:not(.is-menu-open){height:58px!important;min-height:58px}
  .portal-home .p01-site-header.is-compact:not(.is-menu-open) .p01-site-nav{height:58px;min-height:58px}
  .portal-home .p01-site-header.is-menu-open{height:auto!important;min-height:82px}
  .portal-home .p01-site-header.is-menu-open .p01-site-nav{height:auto;min-height:82px;padding-bottom:14px}
}

/* Keep the existing sticky header attached to the viewport scrollport.
   The global hidden overflow created a separate scroll container on html/body. */
html:has(body .p01-site-header),body:has(.p01-site-header){overflow-x:clip!important}
@media(min-width:981px){
  .portal-home .p01-site-header.is-compact:not(.is-menu-open){height:62px!important;min-height:62px}
  .portal-home .p01-site-header.is-compact .p01-site-nav{height:62px!important;min-height:62px}
  .portal-home .p01-site-header.is-compact .p01-brand{flex-basis:145px}
  .portal-home .p01-site-header.is-compact .p01-brand img{width:145px!important}
  .portal-home .p01-site-header.is-compact .p01-start{height:40px;min-height:40px}
}

/* Centre the desktop header CTA; leave the mobile menu version unchanged. */
@media(min-width:981px){
  .portal-home .p01-site-header .p01-start{justify-content:center;gap:0;padding-inline:18px}
  .portal-home .p01-site-header .p01-start span{display:none}
}
