/* Site-wide fencing announcement banner — sits directly UNDER the nav and
   auto-hides on scroll down, returns on scroll up.
   The nav is a fixed, transparent floating bar (top:auto across breakpoints).
   We lock it to the viewport top so body padding can't move it, pin the
   banner just below the nav's real bottom edge (--nav-h, measured by JS so
   the desktop full-width bar and the mobile pill both work), and push page
   content down by --banner-h so the hero clears the banner. On scroll-down
   the banner slides up behind the nav and --banner-h collapses to 0 so the
   content closes the gap; scroll-up reverses it. */

.universal-navigation {
  top: 0; /* lock nav to viewport top; immune to body padding-top */
}

body.body-1 {
  padding-top: var(--banner-h, 0px);
  transition: padding-top 0.3s ease;
}

.announcement-banner {
  position: fixed;
  top: var(--nav-h, 0px);
  left: 0;
  right: 0;
  z-index: 8; /* above page content, below the nav so it tucks up behind it */
  background-color: var(--qa-green);
  color: var(--cream);
  font-family: Montserrat, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Slide fully above the viewport (past the nav) when hidden. */
.announcement-banner.is-hidden {
  transform: translateY(calc(-100% - var(--nav-h, 0px)));
}

.announcement-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

.announcement-banner-text {
  color: var(--cream);
}

.announcement-banner-text strong {
  font-weight: 600;
}

.announcement-banner-link {
  color: var(--cream);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.announcement-banner-link:hover {
  text-decoration: none;
}

@media screen and (max-width: 479px) {
  .announcement-banner-inner {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
}
