:root {
  --announcement-height: auto;
}

/* Banner container */
#announcement-banner {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  /* accounts for notch / iOS top bar */
  left: 0;
  width: 100%;
  max-width: 980px;
  background: linear-gradient(90deg, #9c0000, #e53935);
  color: #ffffff;
  z-index: 10000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  padding-top: 10px;
  /* optional extra space for smaller devices */
}


/* Inner layout */
.announcement-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  /* REQUIRED 30px top & bottom */
  text-align: center;
}

/* Text */
.announcement-text {
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 500;
}

.announcement-text strong {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
}

.announcement-date {
  font-weight: 800;
  font-size: 1.5rem;
}

/* Buttons container */
.announcement-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* CTA button */
.announcement-cta {
  background: #ffffff;
  color: #9c0000;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 6px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcement-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

/* Dismiss button */
.announcement-close {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  font-size: 1rem;
  padding: 6px 22px;
  border-radius: 999px;
  cursor: pointer;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile tuning */
@media (max-width: 600px) {
  .announcement-text {
    font-size: 1.4rem;
  }

  .announcement-text strong {
    font-size: 1.9rem;
  }
}

#announcement-toggle {
  position: fixed;
  /* fixed to viewport */
  top: env(safe-area-inset-top, 0px);
  /* accounts for notch / iOS top bar */
  /* stick to top */
  right: 0;
  /* stick to right */
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  /* white text like banner */
  cursor: pointer;
  z-index: 20001;
  /* above banner & wrapper */
  display: none;
  /* hidden by default */
  padding: 6px 12px;
  border-bottom-left-radius: 8px;
  background: linear-gradient(90deg, #9c0000, #e53935);
  /* same as banner */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  user-select: none;
  line-height: 1;
  transition: background 0.2s ease;
}

#announcement-toggle:hover {
  background: linear-gradient(90deg, #b00020, #e53935);
}