/* The public pages share one sticky header. Only the Home carousel paints
 * behind it, leaving every hero, anchor and drawer in normal flow. */
html:not(:has(#cybInitialRouteStyle)) body.cyb1000 > main > #page-home.active {
  overflow-x: clip;
  overflow-y: visible;
}

html:not(:has(#cybInitialRouteStyle)) body.cyb1000 #page-home.active > .v20-hero {
  overflow: visible !important;
  isolation: isolate !important;
  --cyb-photo-header-inset: -146px;
}

html:not(:has(#cybInitialRouteStyle)) body.cyb1000 #page-home.active > .v20-hero > :is(
  .cyb382-hero-layer, .v20-hero-overlay, .cyb-hero-natural-blend
) {
  top: var(--cyb-photo-header-inset) !important;
}

/* Match the first carousel image before its two live layers are initialized. */
html:not(:has(#cybInitialRouteStyle)) body.cyb1000 #page-home.active >
.v20-hero:not(:has(> .cyb382-hero-layer.is-active))::before {
  content: "";
  position: absolute;
  inset: var(--cyb-photo-header-inset) 0 0;
  z-index: 0;
  pointer-events: none;
  background: var(--v20-hero-image) center 50% / cover no-repeat;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] {
  isolation: isolate;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  --cyb-header-text: #f3f8ff;
  --cyb-header-muted: #d3e6f8;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]::before,
html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

html:not(:has(#cybInitialRouteStyle)) body.cyb1000:has(> main > #page-home.active)
#cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]::before {
  bottom: -72px;
  background: linear-gradient(180deg,
    rgba(7, 29, 53, .84),
    rgba(11, 37, 65, .73) 18%,
    rgba(16, 42, 67, .62) 38%,
    rgba(14, 41, 69, .61) 65%,
    rgba(14, 41, 69, .38) 79%,
    rgba(14, 41, 69, 0));
  transition: opacity 180ms ease-out;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]::after {
  opacity: 1;
  background: #0c2945;
  box-shadow: 0 5px 18px #031b3026;
  transition: opacity 180ms ease-out;
}

html:not(:has(#cybInitialRouteStyle)) body.cyb1000:has(> main > #page-home.active)
#cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork][data-cyb-home-header-scrolled]::before {
  opacity: 0;
}

html:not(:has(#cybInitialRouteStyle)) body.cyb1000:has(> main > #page-home.active)
#cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]:not([data-cyb-home-header-scrolled])::after {
  opacity: 0;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] > :is(.c162-utility, .c162-main) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-art {
  display: none !important;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-logo > img {
  content: url("/assets/cybertel-logo-on-navy.webp");
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-search {
  isolation: isolate;
  border-radius: 999px !important;
  border-color: #a0c6eb69 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Blur only the pill. A filter on the form itself would anchor fixed flyouts
 * to the search field instead of the viewport. */
html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-search::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: rgba(11, 36, 61, .62);
  backdrop-filter: blur(14px);
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-search:focus-within {
  border-color: #b8dfff !important;
  box-shadow: 0 0 0 2px #84bbf15c !important;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-search > :is(input, .c162-dept, .c162-submit) {
  color: var(--cyb-header-text) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-search > input::placeholder {
  color: var(--cyb-header-muted);
  opacity: 1;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-search > .c162-dept {
  border-radius: 999px 0 0 999px !important;
  border-right-color: #c4dff938 !important;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-dept > svg {
  color: inherit;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-search > .c162-submit {
  border-radius: 0 999px 999px 0 !important;
}

html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-search > :is(.c162-submit, .c162-dept):hover {
  background: #b8ddff20 !important;
}

@media (min-width: 1200px) {
  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] > .c162-navigation,
  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] > .c162-navigation > .c162-nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] {
    --cyb-header-rail: min(1648px, calc(100% - clamp(48px, 5.5vw, 112px)));
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]
  :is(.c162-utility > .c162-utility-inner, .c162-main > .c162-main-inner, .c162-navigation > .c162-nav) {
    width: var(--cyb-header-rail) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-utility-inner {
    flex-wrap: wrap;
    row-gap: 3px;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] :is(.c162-contacts, .c162-utilities) {
    flex-wrap: wrap;
    row-gap: 3px;
    max-width: 100%;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-utilities {
    justify-content: flex-end;
    margin-inline-start: auto;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]
  .c162-main > .c162-main-inner {
    grid-template-columns: clamp(174px, 15vw, 235px) minmax(0, 1fr) clamp(146px, 12vw, 220px) !important;
    column-gap: clamp(18px, 2.3vw, 36px) !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-main .c162-location {
    justify-self: end;
    max-width: 100%;
  }

  /* Whole control groups share the width and wrap naturally for long labels.
   * Keep the existing DOM order, desktop hit targets and mobile drawer. */
  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]
  .c162-navigation > .c162-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 clamp(10px, 1.2vw, 22px);
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]
  .c162-navigation > .c162-nav > :is(.c162-primary, .c162-nav-actions) {
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
    column-gap: clamp(0px, .43vw, 10px);
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]
  .c162-navigation > .c162-nav > .c162-primary {
    margin-inline: 0 !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]
  .c162-navigation > .c162-nav > .c162-nav-actions {
    justify-content: flex-end;
    margin-inline-start: auto;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-main {
    overflow: visible !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-location :is(b, small, em) {
    color: var(--cyb-header-text) !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]
  :is(.c162-primary > a, #c162ProductsToggle)[aria-current="page"]::before {
    opacity: 0 !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]
  :is(.c162-primary > a, #c162ProductsToggle)[aria-current="page"]::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: auto 8px 6px;
    height: 2px;
    border-radius: 2px;
    background: #a8d2f9;
    pointer-events: none;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]
  .c162-primary > a[data-route="home"][aria-current="page"]::after {
    background: #ffc527;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-nav-actions > #c162Quote {
    border-radius: 999px !important;
    background: linear-gradient(180deg, #2164a1, #154878) !important;
    border-color: #b9dcff66 !important;
    box-shadow: none !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-nav-actions > #c162Quote:is(:hover, :focus-visible) {
    background: linear-gradient(180deg, #2873b6, #19558a) !important;
    border-color: #b9dcffb3 !important;
  }
}

@media (max-width: 1199px) {
  html:not(:has(#cybInitialRouteStyle)) body.cyb1000 #page-home.active > .v20-hero {
    --cyb-photo-header-inset: -106px;
  }

  html:not(:has(#cybInitialRouteStyle)) body.cyb1000 #page-home.active >
  .v20-hero:not(:has(> .cyb382-hero-layer.is-active))::before {
    background-position: 72% 50%;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-compact-tools > :is(a, button, details > summary) {
    color: var(--cyb-header-text) !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-compact-tools > :is(a, button):hover {
    background: #b8ddff20 !important;
  }

  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-compact-account img {
    content: url("/assets/navigation-compact-v3/account.svg");
  }
}

@media (max-width: 749px) {
  html:not(:has(#cybInitialRouteStyle)) body.cyb1000 #page-home.active > .v20-hero {
    --cyb-photo-header-inset: -138px;
  }
  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork] .c162-main-inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]::before,
  html body.cyb1000 > #cyb162Header.c162-header[data-navigation-standard][data-navigation-artwork]::after {
    transition: none;
  }
}


/* Home hero recovery: eliminate the third, static photograph once the
 * two managed slideshow layers initialize. Keep the original navy wash. */
html[data-system-finish] body.cyb1000 #page-home > .v20-hero.cyb-home-hero-single-photo {
  background-image:none!important;
  background-color:#082b4d!important;
  transition:none!important;
}
html[data-system-finish] body.cyb1000 #page-home > .v20-hero.cyb-home-hero-single-photo::before {
  background-image:none!important;
}
html[data-system-finish] body.cyb1000 #page-home > .v20-hero.cyb-home-hero-single-photo > .cyb382-hero-layer {
  transition:opacity 260ms cubic-bezier(.24,.72,.3,1)!important;
}
@media (prefers-reduced-motion:reduce){
  html[data-system-finish] body.cyb1000 #page-home > .v20-hero.cyb-home-hero-single-photo > .cyb382-hero-layer {transition:none!important;}
}

/* Keep the incoming opaque photograph above the outgoing one during the
   short transition so the Home hero never exposes its navy base. */
html[data-system-finish] body.cyb1000 #page-home > .v20-hero.cyb-home-hero-single-photo > .cyb382-hero-layer.is-entering {
  z-index:2!important;
}

/* The static first-paint photo must never bleed behind the initialized carousel.
   The two managed layers are the sole photographic source during rotation. */
html body.cyb1000 #page-home > .v20-hero.cyb-home-hero-single-photo {
  background-image: none !important;
}
html body.cyb1000 #page-home > .v20-hero.cyb-home-hero-single-photo::before {
  content: none !important;
  background-image: none !important;
}

/* CYB 2026-11-16 — Viewport-aligned Home hero; no residual side gutters.
   The previous width:100% was relative to a narrower page wrapper, so it
   preserved the two visible edge strips. A viewport break-out fixes the
   actual image extent instead of tinting or overscaling photographs. */

/* Home's old overflow-x:clip cut off the photograph exactly at the inner
   page boundary. Release that clip for Home only; root HTML still prevents
   horizontal document scrolling and the other pages remain unaffected. */
html[data-system-finish] body.cyb1000 > main#cyb1000-main:has(> #page-home.active),
html[data-system-finish] body.cyb1000 > main#cyb1000-main > #page-home.active {
  overflow: visible !important;
}
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero {
  position: relative !important;
  box-sizing: border-box !important;
  left: 50% !important;
  right: auto !important;
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: none !important;
  margin: 0 0 0 -50vw !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}
/* The image and one neutral overlay use the same viewport-aligned parent.
   Only the existing .v20-hero-inner stays content-width constrained. */
/* Both carousel photographs share exactly the same frame, including the
   existing extension beneath the transparent sticky masthead. */
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero > .cyb382-hero-layer {
  position: absolute !important;
  inset: var(--cyb-photo-header-inset, 0px) 0 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  opacity: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  will-change: opacity; /* Only two Home photo layers, compositor-safe crossfade. */
}
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero > .cyb382-hero-layer.is-active {
  opacity: 1 !important;
}
/* Incoming photos crossfade ABOVE outgoing photos, but stay BELOW the one
   neutral scrim. This eliminates bright-then-dark changes as classes switch. */
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero.cyb-home-hero-single-photo > .cyb382-hero-layer.is-entering {
  z-index: 1 !important;
}
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero > .v20-hero-overlay {
  position: absolute !important;
  inset: var(--cyb-photo-header-inset, 0px) 0 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
}
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero > .v20-hero-inner {
  position: relative !important;
  z-index: 3 !important;
}
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero > :is(
  .cyb-hero-playback, .v20-hero-arrows, .cyb-open-showroom
) {
  z-index: 4 !important;
}

/* Stable compositing across carousel handoff.
   The new image keeps its higher stacking position AFTER .is-entering is
   removed. Otherwise, when the old image is later in DOM order, it briefly
   reappears above the new image while opacity fades to zero (double flash).
   The Home shade remains above both images at z-index:2. */
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero.cyb-home-hero-single-photo > .cyb382-hero-layer.is-front {
  z-index: 1 !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* The carousel now mounts the SAME decoded <img> it preloaded, rather than
   starting a second CSS-background paint. Fixed geometry and object fit avoid
   late image dimensions, reflow and seams during full-bleed transitions. */
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero > .cyb382-hero-layer > img.cyb-home-frame-photo {
  position: absolute !important;
  display: block !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* The pre-decoded <img> is the sole photograph in each active slide.
   Prevent legacy background declarations from drawing a second image behind it. */
html[data-system-finish] body.cyb1000 #page-home.active > .v20-hero > .cyb382-hero-layer[data-cyb-decoded-paint="true"] {
  background-image: none !important;
}
