/* NeuralWorks canonical navigation component — v3.14.16
   Loaded last on every page. New nwIntel* classes isolate the current component
   from retired v3.14.x dropdown implementations. */

/* Desktop Intelligence / ClaimChecks */
@media (min-width:801px){
  header.nwCanonicalHeader .links{
    display:flex!important;
    align-items:center!important;
  }
  header.nwCanonicalHeader .links>.nwIntelDesktop{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    align-self:stretch!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
  }
  header.nwCanonicalHeader .nwIntelDesktopLink{
    display:flex!important;
    align-items:center!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
    position:relative!important;
    z-index:2!important;
  }

  /* The menu begins below the Intelligence hit area, never on top of it. */
  header.nwCanonicalHeader .nwIntelDesktopMenu{
    display:block!important;
    position:absolute!important;
    left:50%!important;
    top:calc(100% + 12px)!important;
    transform:translate(-50%,6px)!important;
    width:max-content!important;
    min-width:154px!important;
    margin:0!important;
    padding:7px!important;
    z-index:500!important;
    border:1px solid rgba(91,197,255,.24)!important;
    border-radius:12px!important;
    background:linear-gradient(145deg,rgba(6,14,28,.80),rgba(7,7,25,.74))!important;
    box-shadow:0 18px 46px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.025)!important;
    backdrop-filter:blur(18px) saturate(1.15)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.15)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease!important;
  }

  /* Invisible hover bridge across the deliberate visual gap. */
  header.nwCanonicalHeader .nwIntelDesktopMenu:before{
    content:""!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:-14px!important;
    height:14px!important;
    background:transparent!important;
  }
  header.nwCanonicalHeader .nwIntelDesktopMenu a{
    display:block!important;
    width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:11px 14px!important;
    border:1px solid transparent!important;
    border-radius:8px!important;
    background:rgba(16,35,58,.20)!important;
    color:#b9c9da!important;
    font-size:9px!important;
    line-height:1.15!important;
    letter-spacing:.12em!important;
    white-space:nowrap!important;
    text-align:left!important;
  }
  header.nwCanonicalHeader .nwIntelDesktopMenu a:hover,
  header.nwCanonicalHeader .nwIntelDesktopMenu a:focus{
    color:#79e5ff!important;
    border-color:rgba(91,197,255,.14)!important;
    background:rgba(48,151,214,.11)!important;
    outline:none!important;
  }
  header.nwCanonicalHeader .nwIntelDesktop:hover>.nwIntelDesktopMenu,
  header.nwCanonicalHeader .nwIntelDesktop:focus-within>.nwIntelDesktopMenu{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translate(-50%,0)!important;
  }
}

/* Mobile Intelligence row / independent submenu control */
@media (max-width:800px){
  header.nwCanonicalHeader .nwIntelMobile{
    position:relative!important;
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  header.nwCanonicalHeader .nwIntelMobileLink{
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    min-height:46px!important;
    margin:0!important;
    padding:13px 62px 13px 14px!important;
    border:0!important;
    border-radius:10px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#b8c8da!important;
    text-align:left!important;
    font-size:11px!important;
    line-height:1.2!important;
    letter-spacing:.14em!important;
    white-space:normal!important;
  }
  header.nwCanonicalHeader .nwIntelMobileLink:hover,
  header.nwCanonicalHeader .nwIntelMobileLink:focus{
    color:#fff!important;
    background:rgba(55,143,255,.08)!important;
    outline:none!important;
  }

  /* Full browser-control reset prevents Safari/iOS native white button rendering. */
  header.nwCanonicalHeader button.nwIntelMobileToggle{
    -webkit-appearance:none!important;
    appearance:none!important;
    position:absolute!important;
    right:11px!important;
    top:7px!important;
    display:grid!important;
    place-items:center!important;
    box-sizing:border-box!important;
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(91,197,255,.14)!important;
    border-radius:10px!important;
    background:rgba(13,28,48,.22)!important;
    background-image:none!important;
    box-shadow:none!important;
    color:#69d7fa!important;
    font:400 14px/1 system-ui,-apple-system,sans-serif!important;
    letter-spacing:0!important;
    text-indent:0!important;
    cursor:pointer!important;
    z-index:3!important;
  }
  header.nwCanonicalHeader button.nwIntelMobileToggle:before{
    content:"+"!important;
    display:block!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:none!important;
    color:inherit!important;
    font:inherit!important;
    line-height:1!important;
  }
  header.nwCanonicalHeader .nwIntelMobile.expanded>button.nwIntelMobileToggle:before{
    content:"−"!important;
  }
  header.nwCanonicalHeader button.nwIntelMobileToggle:hover,
  header.nwCanonicalHeader button.nwIntelMobileToggle:focus{
    border-color:rgba(91,197,255,.30)!important;
    background:rgba(55,143,255,.09)!important;
    outline:none!important;
  }
  header.nwCanonicalHeader .nwIntelMobileChildren{
    display:none!important;
    margin:1px 0 4px 18px!important;
    padding:2px 0 3px 14px!important;
    border-left:1px solid rgba(69,199,244,.24)!important;
  }
  header.nwCanonicalHeader .nwIntelMobile.expanded>.nwIntelMobileChildren{
    display:block!important;
  }
  header.nwCanonicalHeader .nwIntelMobileChildren a{
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    margin:0!important;
    padding:9px 12px!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#69d7fa!important;
    font-size:9.5px!important;
    line-height:1.2!important;
    letter-spacing:.13em!important;
  }
  header.nwCanonicalHeader .nwIntelMobileChildren a:hover,
  header.nwCanonicalHeader .nwIntelMobileChildren a:focus{
    color:#fff!important;
    background:rgba(55,143,255,.07)!important;
    outline:none!important;
  }
}

/* v3.14.4 preview — Home-sized canonical desktop toolbar + softer page blend.
   Desktop only: mobile header/navigation remains unchanged. */
@media (min-width:901px){
  :root{--nw-desktop-axis:min(1440px,calc(100% - 72px));}
  body header.nwCanonicalHeader{
    position:relative!important;
    width:var(--nw-desktop-axis)!important;
    max-width:1440px!important;
    height:84px!important;
    margin:0 auto!important;
    padding:0!important;
    gap:24px!important;
    display:flex!important;
    align-items:center!important;
    border-bottom:1px solid rgba(120,190,255,.035)!important;
    background:linear-gradient(180deg,rgba(2,3,10,.94) 0%,rgba(2,3,10,.78) 58%,rgba(2,3,10,.24) 100%)!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
  }
  header.nwCanonicalHeader .brand{gap:14px!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important}
  header.nwCanonicalHeader .brand img{width:54px!important;height:54px!important;border-radius:12px!important}
  header.nwCanonicalHeader .brand b{font:600 20px Inter,system-ui,sans-serif!important;letter-spacing:.24em!important;line-height:1.05!important}
  header.nwCanonicalHeader .brand small{margin-top:5px!important;font-size:8px!important;letter-spacing:.22em!important}
  header.nwCanonicalHeader .links{gap:38px!important;margin-left:auto!important;flex:0 1 auto!important}
  header.nwCanonicalHeader .links a{font-size:12px!important;letter-spacing:.12em!important}
  header.nwCanonicalHeader .homeNavActions{gap:10px!important;margin-left:auto!important;flex:0 0 auto!important}
  header.nwCanonicalHeader .homeNavActions .pill{min-height:0!important;padding:13px 22px!important;font-size:11px!important;letter-spacing:.12em!important}
}

/* v3.18.5 production — mobile Intelligence discovery pulse, isolated from canonical !important skin */
@keyframes nwIntelHaloPulse3185{
  0%,100%{opacity:.16;transform:scale(.82)}
  50%{opacity:.88;transform:scale(1.08)}
}
@keyframes nwIntelGlyphPulse3185{
  0%,100%{opacity:.68;transform:scale(.94);text-shadow:0 0 2px rgba(105,215,250,.25)}
  50%{opacity:1;transform:scale(1.07);text-shadow:0 0 6px rgba(105,235,255,.92),0 0 11px rgba(83,123,255,.68),0 0 16px rgba(151,77,255,.42)}
}
@media (max-width:800px){
  /* Neutralise the earlier button-skin animation; preserve the canonical control itself. */
  header.nwCanonicalHeader .mobileNavPanel.open button.nwIntelMobileToggle{
    animation:none!important;
    overflow:visible!important;
    isolation:isolate!important;
  }
  /* Independent halo layer: only animates properties not pinned by the canonical skin. */
  header.nwCanonicalHeader .mobileNavPanel.open button.nwIntelMobileToggle::after{
    content:"";
    position:absolute;
    inset:-3px;
    z-index:-1;
    pointer-events:none;
    border-radius:12px;
    border:1px solid rgba(92,220,255,.62);
    background:radial-gradient(circle at 50% 50%,rgba(88,231,255,.16) 0%,rgba(83,123,255,.10) 46%,rgba(151,77,255,.04) 66%,transparent 76%);
    box-shadow:0 0 6px rgba(88,231,255,.56),0 0 12px rgba(83,123,255,.30),0 0 18px rgba(151,77,255,.15);
    transform-origin:center;
    will-change:transform,opacity;
    animation:nwIntelHaloPulse3185 1.75s cubic-bezier(.45,0,.55,1) infinite!important;
  }
  /* The glyph itself pulses with opacity/scale; its canonical colour remains untouched. */
  header.nwCanonicalHeader .mobileNavPanel.open button.nwIntelMobileToggle::before{
    transform-origin:center!important;
    will-change:transform,opacity;
    animation:nwIntelGlyphPulse3185 1.75s cubic-bezier(.45,0,.55,1) infinite!important;
  }
}
@media (max-width:800px) and (prefers-reduced-motion:reduce){
  header.nwCanonicalHeader .mobileNavPanel.open button.nwIntelMobileToggle::after{
    animation:none!important;
    opacity:.72;
    transform:scale(1.04);
  }
  header.nwCanonicalHeader .mobileNavPanel.open button.nwIntelMobileToggle::before{
    animation:none!important;
    opacity:1;
    transform:none!important;
  }
}

/* v3.19.2 preview — canonical carousel visuals available on every page, including home */
:root{--nw-carousel-border:rgba(86,224,255,.9);--nw-carousel-glow:rgba(62,205,255,.30);--nw-carousel-purple:rgba(139,91,255,.18)}
.carousel-active-tile,.agentWorkCard.is-active,.prompt.is-active,.ccMobileAnalysisRail>.ccSection.is-active,.isCarouselActive{
  border-color:var(--nw-carousel-border)!important;
  box-shadow:inset 0 0 0 1px rgba(126,237,255,.18),0 0 18px var(--nw-carousel-glow),0 0 38px var(--nw-carousel-purple)!important;
}
.agentWorkDots,.carouselIndicators,.ccAnalysisIndicators,.invCarouselPagination,.isCarouselDots,.nwCarouselDots,.whatsNewPager{
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.agentWorkDots button,.carouselIndicators button,.ccAnalysisIndicators button,.invCarouselPagination button,.invCarouselPagination span,.isCarouselDots button,.nwCarouselDots button,.whatsNewPager button{
  appearance:none!important;-webkit-appearance:none!important;border:0!important;padding:0!important;margin:0!important;
  width:7px!important;height:7px!important;border-radius:999px!important;cursor:pointer!important;
  background:rgba(133,207,255,.28)!important;box-shadow:none!important;
  transform:none!important;transition:width .24s ease,background .24s ease,box-shadow .24s ease!important;
}
.agentWorkDots button.active,.carouselIndicators button.is-active,.ccAnalysisIndicators button.is-active,.invCarouselPagination button.is-active,.invCarouselPagination span.is-active,.isCarouselDots button.active,.nwCarouselDots button.is-active,.whatsNewPager button.active{
  width:24px!important;height:7px!important;border-radius:999px!important;
  background:linear-gradient(90deg,#55ddff,#8d55ff)!important;
  box-shadow:0 0 12px rgba(78,220,255,.38)!important;
}
.nwCarouselDots{margin:10px 0 4px}
@media (hover:hover) and (pointer:fine){
  .nwDragCarousel{cursor:grab!important;user-select:none;-webkit-user-select:none}
  .nwDragCarousel.nwDragging{cursor:grabbing!important;scroll-snap-type:none!important}
  .nwDragCarousel.nwDragging *{pointer-events:none!important}
}
@media(prefers-reduced-motion:reduce){.carousel-active-tile,.agentWorkCard,.prompt,.ccMobileAnalysisRail>.ccSection{transition:none!important}}

/* v3.19.3 preview — canonical carousel navigation: < dots > */
.nwCanonicalCarouselNav{display:flex;align-items:center;justify-content:center;gap:11px;margin:11px 0 5px;min-height:38px}
.nwCanonicalCarouselNav[hidden]{display:none!important}
.nwCanonicalCarouselNav .agentWorkDots,.nwCanonicalCarouselNav .carouselIndicators,.nwCanonicalCarouselNav .ccAnalysisIndicators,.nwCanonicalCarouselNav .invCarouselPagination,.nwCanonicalCarouselNav .nwCarouselDots{margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}
.nwCarouselArrow{appearance:none;-webkit-appearance:none;position:relative;width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(89,218,255,.34);border-radius:50%;background:linear-gradient(145deg,rgba(9,27,49,.86),rgba(9,8,29,.82));color:#a9efff;font:500 24px/1 Arial,sans-serif;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 0 14px rgba(55,216,255,.10);transition:opacity .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.nwCarouselArrow:hover:not(:disabled){border-color:rgba(89,226,255,.72);box-shadow:0 0 18px rgba(55,216,255,.30),0 0 30px rgba(126,81,255,.12);transform:scale(1.04)}
.nwCarouselArrow:disabled{opacity:.24;cursor:default;box-shadow:none}
.nwCarouselArrow.nwDiscoveryPulse:not(:disabled){animation:nwCanonicalCarouselDiscovery 1.8s ease-in-out 3}
.nwCarouselArrow.nwDiscoveryPulse:not(:disabled)::after{content:"";position:absolute;inset:-4px;border:1px solid rgba(78,219,255,.48);border-radius:50%;opacity:0;animation:nwCanonicalCarouselHalo 1.8s ease-in-out 3;pointer-events:none}
@keyframes nwCanonicalCarouselDiscovery{0%,100%{transform:translateX(0);box-shadow:0 0 0 rgba(55,216,255,0)}45%{transform:translateX(5px) scale(1.07);box-shadow:0 0 20px rgba(55,216,255,.42)}}
@keyframes nwCanonicalCarouselHalo{0%,100%{transform:scale(.94);opacity:0}45%{transform:scale(1.09);opacity:.68}}
@media(prefers-reduced-motion:reduce){.nwCarouselArrow.nwDiscoveryPulse,.nwCarouselArrow.nwDiscoveryPulse::after{animation:none!important}}
