/* Unified language control on all four public page types, directly before the logo. */
:is(header,.pigo-brand-header) .mypigo-brand-locale{display:inline-flex;align-items:center;gap:16px;flex:0 0 auto;min-width:0}
:is(header,.pigo-brand-header) .mypigo-language-picker{display:inline-flex;align-items:center;position:relative;flex:0 0 auto;flex-wrap:nowrap;margin:0;padding:0;gap:0;background:none;border:0;box-shadow:none;font:inherit}
:is(header,.pigo-brand-header) .mypigo-language-trigger{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:78px;height:36px;padding:6px 7px;border:1px solid transparent;border-radius:9px;background:transparent;color:#0b2c79;font:800 12px/1 Nunito,system-ui,sans-serif;cursor:pointer;box-shadow:none;white-space:nowrap}
:is(header,.pigo-brand-header) .mypigo-language-trigger:hover,:is(header,.pigo-brand-header) .mypigo-language-trigger[aria-expanded="true"]{background:#eef5ff;border-color:#dce8f8}
:is(header,.pigo-brand-header) .mypigo-language-trigger:focus-visible,:is(header,.pigo-brand-header) .mypigo-language-option:focus-visible{outline:3px solid #086ef0;outline-offset:2px}
:is(header,.pigo-brand-header) .mypigo-language-trigger svg{flex:0 0 auto}
:is(header,.pigo-brand-header) .mypigo-language-panel{box-sizing:border-box;position:absolute;top:calc(100% + 7px);left:0;z-index:120;width:228px;padding:6px;border:1px solid #dce8f8;border-radius:13px;background:#fff;box-shadow:0 14px 38px rgba(11,44,121,.15);font:600 13px/1.4 Nunito,system-ui,sans-serif}
:is(header,.pigo-brand-header) .mypigo-language-panel[hidden]{display:none!important}
:is(header,.pigo-brand-header) .mypigo-language-option{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:10px 11px;border-radius:8px;text-align:left;text-decoration:none!important;background:transparent;color:#0b2c79!important;font:700 13px/1.35 Nunito,system-ui,sans-serif;box-shadow:none}
:is(header,.pigo-brand-header) .mypigo-language-option:hover{background:#eff6ff}
:is(header,.pigo-brand-header) .mypigo-language-option.is-active{background:#eaf3ff;color:#075ac3!important}
:is(header,.pigo-brand-header) .mypigo-language-option-name{white-space:nowrap}
:is(header,.pigo-brand-header) .mypigo-language-option-note{font:600 10px/1.35 Nunito,system-ui,sans-serif;color:#5a718e}
:is(header,.pigo-brand-header) .mypigo-language-explainer{margin:5px 7px 4px;padding-top:8px;border-top:1px solid #e6edf7;color:#526b86;font:600 11px/1.45 Nunito,system-ui,sans-serif}
@media(max-width:700px){:is(header,.pigo-brand-header) .mypigo-brand-locale{gap:9px}:is(header,.pigo-brand-header) .mypigo-language-trigger{min-width:65px;padding:6px 4px;gap:4px}:is(header,.pigo-brand-header) .mypigo-language-panel{width:216px}}
@media(prefers-reduced-motion:reduce){:is(header,.pigo-brand-header) .mypigo-language-trigger{transition:none}}

/* Allow the existing CTA/navigation to take a second row on narrow screens. */
@media(max-width:650px){
 .site-header .nav-inner{flex-wrap:wrap;column-gap:8px;row-gap:5px}
 .site-header .nav-inner > .nav-button{margin-left:auto}
 header.nav .wrap{flex-wrap:wrap;column-gap:12px;row-gap:7px}
 header.nav .navlinks{margin-left:auto}
}

/* Shared site header. This overrides legacy page-specific header structure only. */
header.mypigo-public-header{box-sizing:border-box;display:block;width:100%;max-width:none;min-width:0;min-height:0;position:sticky;top:0;z-index:100;margin:0;padding:0;text-align:left;background:#fff;border-bottom:1px solid #e2eafa;box-shadow:0 3px 18px #143b6b09}
header.mypigo-public-header .mypigo-public-inner{box-sizing:border-box;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:clamp(10px,1.4vw,19px);min-height:80px;max-width:1220px;margin:0 auto;padding:10px 24px}
header.mypigo-public-header .mypigo-brand-locale{display:inline-flex;flex:0 0 auto;align-items:center;gap:12px;min-width:0}
header.mypigo-public-header .mypigo-brand-locale .mypigo-logo{flex:0 0 auto}
header.mypigo-public-header .mypigo-primary-nav{box-sizing:border-box;display:flex!important;flex:1 1 auto;min-width:0;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:clamp(9px,1.3vw,23px);margin:0;padding:0;border:0;background:transparent;box-shadow:none}
header.mypigo-public-header .mypigo-primary-nav a{display:inline-block;flex:0 0 auto;color:#0b2c79!important;background:none;text-decoration:none;font:900 13px/1.3 Nunito,system-ui,sans-serif;white-space:nowrap;padding:0;border:0;box-shadow:none}
header.mypigo-public-header .mypigo-primary-nav a:hover,header.mypigo-public-header .mypigo-primary-nav a[aria-current="page"]{color:#086ef0!important}
header.mypigo-public-header .mypigo-primary-nav .mypigo-header-cta{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 19px;border-radius:32px;color:#fff!important;background:linear-gradient(#309cff,#0060e8);box-shadow:0 4px 0 #0750ba,0 10px 25px #1471d12b;font:900 13px/1.2 Nunito,system-ui,sans-serif;text-align:center}
header.mypigo-public-header .mypigo-primary-nav .mypigo-header-cta:hover{color:#fff!important;filter:brightness(.97)}
header.mypigo-public-header .mypigo-header-pilot{flex:0 1 auto;color:#536b85;font:800 12px/1.3 Nunito,system-ui,sans-serif;max-width:160px}
header.mypigo-public-header .mypigo-menu-toggle{display:none;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;margin:0;padding:0;color:#0b2c79;background:#f1f7ff;border:1px solid #dceafa;border-radius:10px;box-shadow:none;cursor:pointer;font:700 23px/1 system-ui,sans-serif}
header.mypigo-public-header .mypigo-menu-toggle:focus-visible,header.mypigo-public-header .mypigo-primary-nav a:focus-visible{outline:3px solid #086ef0;outline-offset:3px}
@media(max-width:1150px){
 header.mypigo-public-header .mypigo-public-inner{position:relative;min-height:70px;padding:10px 18px;gap:10px}
 header.mypigo-public-header .mypigo-menu-toggle{display:inline-flex}
 header.mypigo-public-header .mypigo-primary-nav{display:none!important;position:absolute;top:100%;left:0;right:0;z-index:90;flex-direction:column;align-items:stretch;gap:0;max-height:min(75vh,560px);overflow-y:auto;padding:10px 18px 17px;background:#fff;border-bottom:1px solid #dceafa;box-shadow:0 12px 24px #0b2c791c}
 header.mypigo-public-header.is-menu-open .mypigo-primary-nav{display:flex!important}
 header.mypigo-public-header .mypigo-primary-nav a{display:block;width:100%;padding:12px 9px;font-size:14px}
 header.mypigo-public-header .mypigo-primary-nav .mypigo-header-cta{width:100%;margin-top:9px;padding:12px 20px}
 header.mypigo-public-header .mypigo-header-pilot{max-width:none;padding:12px 9px}
}
@media(max-width:400px){
 header.mypigo-public-header .mypigo-public-inner{padding:9px 12px;min-height:66px}
 header.mypigo-public-header .mypigo-brand-locale{gap:6px}
 header.mypigo-public-header .mypigo-brand-locale .mypigo-logo{font-size:29px!important}
 header.mypigo-public-header .mypigo-menu-toggle{flex-basis:36px;width:36px;height:36px}
}
