/* ============================================================
   Announcement bar — slim dark strip; height drives --announcement-offset via JS
   ============================================================ */

#announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1010;
  box-sizing: border-box;
  /* Slim strip — height from content + padding */
  padding: 2px 0;
  min-height: 0;
  height: auto;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(15, 23, 42, 0.78) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

#announcement-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 180% at 50% 0%, rgba(59, 130, 246, 0.06), transparent 55%);
}

.announcement-bar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  max-width: 100%;
  margin: 0 auto;
}

.announcement-bar__quote {
  margin: 0;
  width: 100%;
  max-width: min(920px, 100%);
  text-align: center;
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.28;
  color: rgba(248, 250, 252, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.18s ease;
}

.announcement-bar__quote--fade {
  opacity: 0;
}

/* Tablet / mobile: keep strip short — one line ellipsis */
@media (max-width: 768px) {
  #announcement-bar {
    padding: 2px 0;
  }
  .announcement-bar__inner {
    padding: 0 0.5rem;
  }
  .announcement-bar__quote {
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    max-height: none;
  }
}

@media (max-width: 400px) {
  .announcement-bar__quote {
    font-size: 0.62rem;
    letter-spacing: 0.01em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar__quote {
    transition: none;
  }
}
