/* HEADER_N8N_STABLE_V1_START
   Keep the floating navigation layout-stable while the announcement is shown
   only at the absolute top of the document.
   ========================================================================== */

.site-header__announcement-slot {
  position: fixed;
  z-index: 1202;
  top: 8px;
  left: 50%;
  width: min(1360px, calc(100% - 28px));
  height: 42px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .22s ease, transform .28s cubic-bezier(.2, .72, .2, 1);
}

.site-header__announcement-slot.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-header__announcement-slot .site-header__announcement {
  width: 100%;
  max-height: none;
  opacity: 1;
  transform: none;
}

/* Navigation position is independent from announcement height. */
.site-header-glass,
.site-header-glass.is-scrolled {
  top: 10px;
  gap: 0;
  margin-top: 6px;
}

/* Only at the real top do we make room for the visible announcement. */
body:not(.nav-open) .site-header-glass:not(.is-scrolled) {
  top: 58px;
}

/* Old collapse rules must not resize the external announcement anymore. */
.site-header-glass.is-scrolled .site-header__announcement {
  max-height: none;
  border-width: 1px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 760px) {
  .site-header__announcement-slot {
    top: 6px;
    width: calc(100% - 12px);
    height: 38px;
  }

  .site-header-glass,
  .site-header-glass.is-scrolled {
    top: 6px;
  }

  body:not(.nav-open) .site-header-glass:not(.is-scrolled) {
    top: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__announcement-slot,
  .site-header-glass {
    transition: none !important;
  }
}
/* HEADER_N8N_STABLE_V1_END */
