/* ===== Top announcement bar ===== */
.bp-header-shell {
  position: relative;
  z-index: 1060;
}

.bp-topbar,
.bp-navbar {
  --bp-header-topbar-height: 2.5rem;
  --bp-header-navbar-height: 5rem;
}

.bp-topbar {
  background:
    linear-gradient(to right, rgba(var(--bp-primary-rgb), 0.20), rgba(var(--bp-primary-rgb), 0.12), rgba(var(--bp-accent-rgb), 0.15));
  border-bottom: 1px solid rgba(var(--bp-primary-rgb), 0.28);
  min-height: var(--bp-header-topbar-height);
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  color: var(--bp-foreground);
  z-index: 1060;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.bp-topbar.is-hidden {
  display: none;
}

.bp-topbar .container {
  min-height: calc(var(--bp-header-topbar-height) - 0.25rem);
}

.bp-topbar__msg {
  flex: 1;
  text-align: center;
  line-height: 1.2;
}

.bp-topbar__cta {
  color: var(--bp-white);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bp-topbar__cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.bp-topbar__close {
  background: none;
  border: none;
  color: var(--bp-muted);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s;
}

.bp-topbar__close:hover {
  color: var(--bp-foreground);
}

/* Shift navbar down when top bar is visible */
.bp-navbar {
  position: relative;
  z-index: 1050;
}

/* Keep the announcement readable on small screens */
@media (max-width: 767.98px) {
  .bp-topbar {
    padding: 0.5rem 0;
  }

  .bp-topbar .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .bp-topbar__msg {
    flex: 0 0 100%;
    order: 1;
    text-align: center;
  }

  .bp-topbar__cta {
    order: 2;
  }

  .bp-topbar__close {
    order: 3;
  }
}

