/* Shared navigation owns only the application masthead, never agent branding. */
/* The complete map fits within the available viewport; auto height preserves its proportions.
   The navy overlay softens the artwork without making form content transparent. */
body.als-has-shared-nav {
  --als-map-top:110px;
  min-height:100vh;
  background-color:#070f23!important;
  background-image:
    linear-gradient(rgba(7,15,35,.48),rgba(7,15,35,.48)),
    url("als-global-connections-v1.png")!important;
  background-size:100% 100%,min(100%,calc((100vh - var(--als-map-top)) * 2.6326)) auto!important;
  background-position:center top,center var(--als-map-top)!important;
  background-repeat:no-repeat,no-repeat!important;
  background-attachment:fixed,fixed!important;
  background-blend-mode:normal,lighten;
}
@media(max-width:1120px) {
  body.als-has-shared-nav { --als-map-top:160px; }
}
@media(max-width:600px) {
  body.als-has-shared-nav { --als-map-top:230px; }
}
/* Phones: a fixed decorative layer stays visible while the workspace scrolls.
   Do not rely on mobile background-attachment:fixed. A local stacking context
   keeps the layer above the body's paint and behind every form/link. The phone
   view frames a taller part of the same map at its original proportions instead
   of shrinking it into a short strip hidden behind the cards. Desktop retains
   the complete-map fit. Include touch devices in landscape too. */
@media(max-width:600px), (hover:none) and (pointer:coarse) and (max-width:1120px) {
  body.als-has-shared-nav {
    isolation:isolate;
    background-image:none!important;
  }
  body.als-has-shared-nav::before {
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background-color:#070f23;
    background-image:
      linear-gradient(rgba(7,15,35,.48),rgba(7,15,35,.48)),
      url("als-global-connections-v1.png");
    background-size:100% 100%,cover;
    background-position:center top,center center;
    background-repeat:no-repeat,no-repeat;
    background-blend-mode:normal,lighten;
  }
}
/* Clear only outer page wrappers that contain an ALS workspace. Cards/inputs
   keep their opaque backgrounds; a theme shell cannot cover the map. */
body.als-has-shared-nav :is(#page,#content,#primary,.site-content,main.site-main,.page-content,.entry-content,.wp-block-post-content,.elementor-widget-container,.e-con,.e-con-inner):has(.als-op,.als-directory,.als-results,.als-profile,.als-memberships,[data-als-contracts],[data-als-messages],[data-als-referrals],[data-als-classifieds],.als-pp) { background:transparent!important; }
body.als-has-shared-nav:has(.als-unified-header) > :is(.als-brand-header,.als-rb-header,.als-pp-header,.als-msg-header,.als-ct-header,.als-bc-page-nav,.als-cf-header,.als-cf-skip),
body.als-has-shared-nav:has(.als-unified-header) :is(#site-header,#masthead,.site-header,.elementor-location-header) { display:none!important; }
body.als-has-shared-nav .als-unified-header,
body.als-has-shared-nav .als-unified-header * { box-sizing:border-box; }
body.als-has-shared-nav .als-unified-header {
  display:block; width:100%; margin:0; padding:0; background:#070f23;
  border:0; border-bottom:1px solid #2a3c54; color:#f4f7fc;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px; line-height:1.5;
}
body.als-has-shared-nav .als-unified-inner {
  width:100%; max-width:1424px; margin:0 auto; padding:16px clamp(16px,3vw,32px);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
body.als-has-shared-nav .als-unified-identity { display:flex; align-items:center; gap:20px; flex:0 1 auto; min-width:0; }
body.als-has-shared-nav .als-unified-brand {
  display:flex; align-items:center; gap:16px; flex:0 0 auto;
  color:#bed1e7!important; text-decoration:none!important; background:transparent!important;
  padding:0; margin:0; border:0; box-shadow:none; border-radius:0;
}
body.als-has-shared-nav .als-unified-logo { display:block; position:relative; width:100px; aspect-ratio:764/514; overflow:hidden; flex-shrink:0; }
body.als-has-shared-nav .als-unified-logo img {
  position:absolute; display:block; width:115.706806%; height:auto; max-width:none!important;
  max-height:none; left:-8.115183%; top:-1.361868%; margin:0; padding:0; border:0; border-radius:0; box-shadow:none;
}
body.als-has-shared-nav .als-unified-tagline { display:block; border-left:1px solid #2a3c54; padding-left:16px; font-size:12px; font-weight:400; line-height:1.7; color:#bed1e7; }
body.als-has-shared-nav .als-unified-staging { display:inline-block; color:#51d8cb; background:#14263e; border:1px solid #314761; border-radius:5px; padding:4px 8px; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
body.als-has-shared-nav .als-unified-nav { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px; margin:0; padding:0; border:0; min-width:0; }
body.als-has-shared-nav .als-unified-nav a,
body.als-has-shared-nav .als-unified-nav a:visited {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 12px;
  margin:0; border:1px solid transparent; border-radius:8px; background:transparent; color:#f4f7fc;
  font-family:inherit; font-size:14px; font-weight:600; line-height:1.5; letter-spacing:normal; text-transform:none;
  text-decoration:none!important; box-shadow:none; white-space:nowrap;
}
body.als-has-shared-nav .als-unified-nav a:hover,
body.als-has-shared-nav .als-unified-nav a:focus-visible { color:#fff; background:#1b304a; border-color:#51d8cb; }
body.als-has-shared-nav .als-unified-nav a[aria-current] { color:#51d8cb; background:#14263e; border-color:#36536e; text-decoration:underline!important; text-decoration-thickness:2px!important; text-underline-offset:6px; }
body.als-has-shared-nav .als-unified-header a:focus-visible { outline:3px solid #51d8cb; outline-offset:3px; }
body.als-has-shared-nav .als-unified-skip { position:absolute; top:12px; left:16px; z-index:100001; transform:translateY(-200%); padding:12px 18px; color:#071426; background:#fff; border-radius:6px; }
body.als-has-shared-nav .als-unified-skip:focus { transform:none; }
body.als-has-shared-nav #als-unified-main { height:0; margin:0; padding:0; }
@media(max-width:1120px) {
  body.als-has-shared-nav .als-unified-inner { flex-wrap:wrap; gap:10px; }
  body.als-has-shared-nav .als-unified-identity { width:100%; justify-content:space-between; }
  body.als-has-shared-nav .als-unified-nav { width:100%; justify-content:flex-start; }
}
@media(max-width:600px) {
  body.als-has-shared-nav .als-unified-inner { padding:12px 16px; }
  body.als-has-shared-nav .als-unified-logo { width:82px; }
  body.als-has-shared-nav .als-unified-brand { gap:12px; }
  body.als-has-shared-nav .als-unified-tagline { padding-left:12px; font-size:11px; }
  body.als-has-shared-nav .als-unified-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 8px; }
  body.als-has-shared-nav .als-unified-nav a { justify-content:flex-start; font-size:13px; padding:10px; }
}
@media(max-width:350px) {
  body.als-has-shared-nav .als-unified-tagline { display:none; }
}
