/* v2517: complete independent desktop/mobile navigation - highest priority rules */
@media(min-width:1181px){
html body header.nav{position:sticky!important;top:0!important;z-index:9000!important;background:#fff!important}
html body header.nav .nav-inner{width:min(1200px,calc(100% - 40px))!important;max-width:1200px!important;margin:0 auto!important;padding:12px 0!important;display:grid!important;grid-template-columns:160px minmax(0,1fr) auto!important;gap:18px!important;align-items:center!important}
html body header.nav .nav-inner>a:first-child{width:160px!important;min-width:0!important}html body header.nav .logo{width:160px!important;max-width:100%!important}
html body header.nav nav.links{display:flex!important;position:static!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:clamp(8px,0.8vw,15px)!important;padding:0!important;margin:0!important;width:auto!important;min-width:0!important;background:none!important;box-shadow:none!important;border:0!important;transform:none!important;overflow:visible!important}
html body header.nav nav.links>a,html body header.nav nav.links>.location-nav{font-size:clamp(12px,0.85vw,14px)!important;line-height:1.3!important;font-weight:750!important;display:inline-flex!important;align-items:center!important;padding:0!important;margin:0!important;flex:0 0 auto!important;white-space:nowrap!important;gap:0!important}
html body header.nav nav.links svg,html body header.nav nav.links .mobile-nav-icon{display:none!important;width:0!important;height:0!important}
html body header.nav .nav-action{display:flex!important;gap:9px!important;flex-shrink:0!important;align-items:center!important}html body header.nav .nav-action select.lang{display:block!important}html body header.nav .nav-action .cta{display:inline-flex!important;padding:11px 21px!important}
html body header.nav .nav-action button.hamb{display:none!important}
html body .ts17-lang,html body .ts17-screen,html body .ts17-overlay{display:none!important}
}
@media(max-width:1180px){
html body{padding-top:0!important}
html body header.nav{position:sticky!important;top:0!important;z-index:100000!important;isolation:isolate!important;transform:none!important;background:#fff!important}
html body header.nav .nav-inner{width:calc(100% - 28px)!important;max-width:100%!important;margin:0 auto!important;padding:10px 0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
html body header.nav .logo{width:clamp(120px,34vw,167px)!important}
html body header.nav nav.links{display:none!important}html body header.nav .nav-action select.lang,html body header.nav .nav-action .cta{display:none!important}
html body header.nav .nav-action{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}
html body header.nav .nav-action button.hamb{display:flex!important;align-items:center!important;justify-content:center!important;width:47px!important;height:47px!important;min-width:47px!important;border:1.5px solid #d7e2f2!important;border-radius:14px!important;background:#fff!important;color:#16244b!important;padding:11px!important;z-index:100002!important;font-size:0!important}
html body header.nav .nav-action button.hamb svg{display:block!important;width:23px!important;height:23px!important}
html body .ts17-lang{display:block!important;position:relative!important}
html body .ts17-lang>button{display:flex;gap:7px;align-items:center;justify-content:center;border:1.5px solid #d7e2f2;background:white;border-radius:14px;height:47px;padding:0 12px;color:#17244a;font-weight:750;font-size:16px}
html body .ts17-lang svg{width:19px;height:19px}
html body .ts17-lang-options{position:absolute;top:calc(100% + 9px);right:0;width:min(275px,calc(100vw - 25px));padding:9px;background:white;border:1px solid #d7e2f2;border-radius:16px;box-shadow:0 20px 42px #15234b33;display:none;z-index:100003}
html body .ts17-lang.open .ts17-lang-options{display:block}
html body .ts17-lang-options a{display:flex;justify-content:space-between;align-items:center;padding:12px;color:#17244a;font-size:16px;border-radius:10px;text-decoration:none}
html body .ts17-lang-options a[aria-current=page]{background:#edf2ff;color:#3645b1}
html body .ts17-overlay{position:fixed!important;inset:0!important;background:#101e4266!important;z-index:99997!important;display:none!important}
html body .ts17-overlay.open{display:block!important}
html body .ts17-screen{position:fixed!important;display:none!important;top:var(--ts17-top,80px)!important;left:14px!important;right:14px!important;bottom:auto!important;max-height:var(--ts17-max,calc(100dvh - 94px))!important;overflow-y:auto!important;overscroll-behavior:contain!important;z-index:99999!important;background:#fff!important;border:1px solid #d7e2f2!important;border-radius:20px!important;box-shadow:0 22px 60px #12204a47!important;padding:12px!important;white-space:normal!important;transform:none!important}
html body .ts17-screen.open{display:block!important}
html body .ts17-nav-item,html body .ts17-locations-toggle{width:100%;box-sizing:border-box;display:flex;align-items:center;gap:13px;min-height:48px;padding:10px 12px;text-align:left;color:#17244a;font-size:16px;line-height:1.35;font-weight:750;text-decoration:none;background:none;border:0;border-radius:10px}
html body .ts17-nav-item svg,html body .ts17-locations-toggle svg{display:block!important;width:22px!important;height:22px!important;min-width:22px!important;flex:0 0 22px!important;color:#4253ba!important;stroke:#4253ba!important}
html body .ts17-locations-toggle .ts17-caret{margin-left:auto;color:#4253ba}
html body .ts17-location-list{display:none;padding:5px;background:#f2f5fc;border:1px solid #dfe7f5;border-radius:12px;margin:2px 0 8px 34px}
html body .ts17-location-list.open{display:grid;gap:2px}
html body .ts17-location-list a{display:block;padding:10px;color:#17244a;font-size:15px;text-decoration:none;border-radius:7px}
html body .ts17-nav-item[aria-current=page]{background:#edf2ff;color:#3545a6}
html body.ts17-locked{overflow:hidden!important}
}
@media(max-width:380px){html body .ts17-screen{left:8px!important;right:8px!important}html body .ts17-lang>button{padding:0 8px;font-size:14px}}
/* iOS-safe fixed mobile toolbar: never scrolls outside visual viewport */
@media(max-width:1180px){
html body header.nav{position:fixed!important;inset:0 0 auto 0!important;width:100%!important;z-index:100000!important;transform:none!important}
html body{padding-top:var(--ts17-header-space,74px)!important}
}

/* Production navigation sizing - single definitive override after base styles */
@media(min-width:1181px){
 html body header.nav .nav-inner{width:min(1200px,calc(100% - 48px))!important;max-width:1200px!important;box-sizing:border-box!important;padding:12px 26px!important;grid-template-columns:180px minmax(0,1fr) 238px!important;gap:14px!important}
 html body header.nav .nav-inner>a:first-child,html body header.nav .nav-inner>a:first-child img.logo{width:180px!important;max-width:180px!important}
 html body header.nav nav.links{gap:clamp(12px,1vw,18px)!important;justify-content:center!important}
 html body header.nav nav.links>a,html body header.nav nav.links>.location-nav{font-size:14px!important;font-weight:700!important;letter-spacing:0!important}
 html body header.nav .nav-action{width:238px!important;justify-content:flex-end!important;gap:10px!important}
 html body header.nav .nav-action select.lang{height:43px!important;width:93px!important;max-width:93px!important;font-size:14px!important;border-radius:14px!important;padding:7px 22px 7px 10px!important}
 html body header.nav .nav-action .cta{height:43px!important;min-height:43px!important;padding:9px 15px!important;font-size:14px!important;font-weight:750!important}
}
@media(max-width:1180px){
 html body header.nav .nav-inner{width:calc(100% - 32px)!important;max-width:1200px!important;padding:10px 0!important}
 html body header.nav .logo{width:clamp(137px,37vw,170px)!important}
}
@media(max-width:400px){html body header.nav .logo{width:138px!important}}

/* V2.6.1: single authoritative desktop Locations dropdown, no inline row leakage */
@media(min-width:1181px){
 html body header.nav nav.links>.location-nav{position:relative!important;display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;min-width:0!important;width:auto!important}
 html body header.nav nav.links>.location-nav>.location-toggle{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;border:0!important;background:none!important;font:inherit!important;color:inherit!important;cursor:pointer!important;padding:0!important}
 html body header.nav nav.links>.location-nav>.location-submenu{display:none!important;position:absolute!important;top:calc(100% + 16px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:230px!important;min-width:230px!important;max-width:230px!important;box-sizing:border-box!important;z-index:99999!important;background:#fff!important;border:1px solid #dde6f7!important;border-radius:14px!important;box-shadow:0 16px 36px #15244d33!important;padding:8px!important;white-space:normal!important;flex:none!important;}
 html body header.nav nav.links>.location-nav.is-open>.location-submenu{display:grid!important;grid-template-columns:1fr!important;gap:2px!important}
 html body header.nav nav.links>.location-nav>.location-submenu>a{display:block!important;width:auto!important;margin:0!important;padding:10px 12px!important;white-space:normal!important;font-size:14px!important;line-height:1.4!important;color:#17244a!important;font-weight:600!important;text-decoration:none!important;border-radius:8px!important}
 html body header.nav nav.links>.location-nav>.location-submenu>a:hover{background:#f0f4ff!important}
 html body header.nav nav.links>.location-nav svg{display:none!important}
 html body header.nav nav.links>.location-nav .location-caret{display:inline-block!important;font-size:14px!important}
}
