/* Only mobile primary navigation; does not replace Elementor or WordPress menus. */
@media(max-width:900px){
.spi-stage2 .s2-header .s2-header-inner{gap:10px!important}
.spi-stage2 .s2-header .s2-header-inner>.elementor-widget-shortcode{flex-shrink:0}
.spi-stage2 .s2-header .s2-nav{position:relative;flex-shrink:0}
.spi-stage2 .s2-header .s2-menu-toggle{display:flex!important;align-items:center;justify-content:center;gap:9px;min-height:48px;min-width:100px;padding:10px 13px!important;background:#0b1f3f!important;color:#fff!important;border:1px solid #0b1f3f!important;border-radius:6px;font-size:16px!important;line-height:1.25;font-weight:700!important;white-space:nowrap;box-shadow:none}
.spi-stage2 .s2-header .s2-menu-toggle span{font-size:21px;line-height:1}
.spi-stage2 .s2-header .s2-menu-toggle[aria-expanded="true"]{background:#1877f2!important;border-color:#1877f2!important}
.spi-stage2 .s2-header .s2-menu-toggle:focus-visible,.spi-stage2 .s2-header .s2-subtoggle:focus-visible,.spi-stage2 .s2-header .s2-menu a:focus-visible{outline:2px solid #1877f2;outline-offset:2px}
.spi-stage2 .s2-header .s2-menu{box-sizing:border-box;position:absolute;right:0;left:auto;top:calc(100% + 10px);width:min(440px,calc(100vw - 36px));min-width:0!important;max-width:calc(100vw - 36px);max-height:min(66vh,540px);max-height:min(66dvh,540px);padding:8px 12px 12px!important;border:1px solid #dce4ee;border-radius:8px;background:#fff;box-shadow:0 16px 36px #0b1f3f28;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;z-index:1001}
.spi-stage2 .s2-header .s2-menu>li{margin:0!important;padding:0!important;border-bottom:1px solid #e1e8f0}
.spi-stage2 .s2-header .s2-menu>li:last-child{border-bottom:none}
.spi-stage2 .s2-header .s2-menu>li>a{display:flex;align-items:center;min-height:50px;box-sizing:border-box;padding:11px 9px!important;font-weight:750!important;font-size:16px!important;line-height:1.35;color:#0b1f3f!important;white-space:normal}
.spi-stage2 .s2-header .s2-menu>li.menu-item-has-children>a{padding-right:55px!important}
.spi-stage2 .s2-header .s2-menu>li.s2-open>a{color:#125bb5!important}
.spi-stage2 .s2-header .s2-menu .s2-subtoggle{display:grid!important;place-items:center;box-sizing:border-box;position:absolute;right:0;top:3px;width:44px;height:44px;padding:0!important;border:1px solid #dce4ee;background:#fff;color:#1767c8;font-size:22px!important;line-height:1;border-radius:5px;box-shadow:none}
.spi-stage2 .s2-header .s2-menu .s2-subtoggle[aria-expanded="true"]{background:#1877f2!important;color:white!important;border-color:#1877f2!important}
.spi-stage2 .s2-header .s2-menu .sub-menu{position:static!important;box-sizing:border-box;min-width:0!important;max-width:none!important;max-height:none!important;overflow:visible!important;margin:0 0 9px 8px!important;padding:5px 8px 5px 10px!important;background:#edf4fc!important;border:0!important;border-left:3px solid #1877f2!important;border-radius:0 5px 5px 0!important;box-shadow:none!important}
.spi-stage2 .s2-header .s2-menu .sub-menu li{border:0!important;margin:0!important;padding:0!important}
.spi-stage2 .s2-header .s2-menu .sub-menu li+li{border-top:1px solid #dbe5f2!important}
.spi-stage2 .s2-header .s2-menu .sub-menu a{display:block;box-sizing:border-box;min-height:44px;padding:11px 5px!important;font-size:14px!important;line-height:1.45;font-weight:500!important;color:#304a68!important;white-space:normal!important;overflow-wrap:anywhere;text-decoration:none}
.spi-stage2 .s2-header .s2-menu .sub-menu a[aria-current="page"],.spi-stage2 .s2-header .s2-menu .sub-menu li.current-menu-item>a{color:#125bb5!important;font-weight:700!important}
.spi-stage2 .s2-header .s2-menu li:not(.s2-open)>.sub-menu{display:none!important}
.spi-stage2 .s2-header .s2-menu li.s2-open>.sub-menu{display:block!important}
}
@media(max-width:360px){.spi-stage2 .s2-header .s2-menu-toggle{min-width:88px;padding:9px!important;font-size:15px!important}.spi-stage2 .s2-header .s2-photo img{max-width:calc(100vw - 146px)!important}}

/* Mobile logo proportion: preserve original artwork and desktop/footer sizes. */
@media(max-width:900px){
.spi-stage2 .s2-header .spi44-logo img{width:clamp(150px,49vw,200px)!important;max-width:calc(100vw - 154px)!important;height:auto!important;object-fit:contain}
}

/* Sticky global header: apply to the outer template, not the inner Elementor row. */
body.spi-stage2:not(.elementor-editor-active):not(.elementor-editor-preview):not(.spi-editing-layout) > :is(.elementor:has(.s2-header), .elementor-location-header:has(.s2-header), #header:has(.s2-header), .spi-site-header),
body.spi-stage2:not(.elementor-editor-active):not(.elementor-editor-preview):not(.spi-editing-layout) .spi434-sticky-shell {
  position:sticky!important;top:var(--spi434-admin-offset,0px)!important;z-index:1200!important;overflow:visible!important;
  box-shadow:0 3px 12px rgba(11,31,63,.08);
}
html.spi434-sticky-active {scroll-padding-top:calc(var(--spi434-header-height,90px) + var(--spi434-admin-offset,0px) + 12px);}
body.spi-stage2 .v26-stack-list {--v26-top:calc(var(--spi434-header-height,90px) + var(--spi434-admin-offset,0px) + 12px);}
@media(max-width:900px){
  .spi-stage2 .s2-header .s2-menu{max-height:min(66dvh,540px,calc(100dvh - var(--spi434-header-height,90px) - var(--spi434-admin-offset,0px) - 24px));}
}
