/* Premium announcement ribbon — visuals only; message content remains editable in admin. */
.noticebar {
  --notice-deep: #0c302b;
  --notice-rich: #14604f;
  --notice-glow: #e3c994;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  font-size: 12px;
  color: #fff9ed;
  background: linear-gradient(110deg, var(--notice-deep) 0%, var(--notice-rich) 50%, var(--notice-deep) 100%);
  border-bottom: 1px solid rgba(239, 206, 146, .24);
  box-shadow: inset 0 -1px rgba(255, 255, 255, .045);
}
/* Preserve the intent of the announcement's selected color. */
.noticebar.notice-red {
  --notice-deep: #4a222a;
  --notice-rich: #883b4b;
  --notice-glow: #ffd7b8;
}
.noticebar.notice-yellow {
  --notice-deep: #553b1f;
  --notice-rich: #98702e;
  --notice-glow: #ffe7a6;
}
.noticebar.notice-blue {
  --notice-deep: #162c4c;
  --notice-rich: #2c5588;
  --notice-glow: #c0dbff;
}
.noticebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 13% 0%, rgba(255,255,255,.12), transparent 36%),
    radial-gradient(ellipse at 86% 110%, rgba(255,255,255,.08), transparent 30%);
}
/* An occasional, soft light sweep — no moving text or changes to layout height. */
.noticebar::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -50%;
  bottom: -50%;
  left: -34%;
  width: 27%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.17), transparent);
  transform: translate3d(0,0,0) skewX(-19deg);
  animation: notice-sheen 8s ease-in-out infinite;
}
.noticebar .noticebar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}
.noticebar-spark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--notice-glow);
  font: 17px/1 Georgia, serif;
  background: rgba(255,255,255,.085);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 0 15px rgba(255, 227, 171, .08);
  animation: notice-sparkle 3.4s ease-in-out infinite;
}
.noticebar-copy {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0;
  text-wrap: balance;
}
.noticebar .notice-link,
.noticebar .notice-link:hover,
.noticebar .notice-link:focus-visible { color: inherit; }
.noticebar .notice-link { text-decoration: none; }
.noticebar .noticebar-arrow {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-inline-start: 6px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  vertical-align: middle;
  transition: background .24s, transform .24s;
}
.noticebar .noticebar-arrow i { font-size: 11px; line-height: 1; }
.noticebar .notice-link:hover .noticebar-arrow,
.noticebar .notice-link:focus-visible .noticebar-arrow {
  background: rgba(255,255,255,.27);
  transform: translate(-2px,-2px);
}
.noticebar-dot {
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--notice-glow);
  box-shadow: 0 0 10px var(--notice-glow);
}
@keyframes notice-sheen {
  0%, 10% { transform: translate3d(0,0,0) skewX(-19deg); opacity: 0; }
  14% { opacity: .75; }
  43% { opacity: .75; }
  48%, 100% { transform: translate3d(540%,0,0) skewX(-19deg); opacity: 0; }
}
@keyframes notice-sparkle {
  0%, 100% { opacity: .7; transform: scale(.93); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (max-width: 575px) {
  .noticebar .noticebar-inner { gap: 8px; min-height: 42px; padding-block: 8px; }
  .noticebar-copy { font-size: 11px; line-height: 1.8; }
  .noticebar-spark { width: 20px; height: 20px; flex-basis: 20px; font-size: 14px; }
  .noticebar-dot { display: none; }
  .noticebar .noticebar-arrow { width: 19px; height: 19px; margin-inline-start: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .noticebar::after,
  .noticebar-spark { animation: none; }
  .noticebar .noticebar-arrow { transition: none; }
}
