/* ============================================================
   G9 Notices — notices.css  v2.0
   ============================================================ */

.g9nt-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  z-index: 9000;
  position: relative;
  text-align: center;
  /* Default: scrolls with page — no special positioning */
}

/*
 * Fixed mode — JS in notices.js sets:
 *   bar.style.position = 'fixed'
 *   bar.style.top      = computedOffset + 'px'
 *   bar.style.left     = '0'
 *   bar.style.right    = '0'
 * and adds a spacer <div> of matching height before the bar so
 * page content is pushed down correctly.
 */
.g9nt-bar--fixed {
  position: fixed;
  top: 0;        /* overridden by JS once header height is known */
  left: 0;
  right: 0;
  z-index: 9100; /* above theme header */
}

/* Spacer injected by JS to prevent content jumping under a fixed bar */
.g9nt-spacer {
  display: block;
}

/* Type colours */
.g9nt-bar--info    { background: #1a4a8b; color: #fff; }
.g9nt-bar--success { background: #1a6b3c; color: #fff; }
.g9nt-bar--warning { background: #b87400; color: #fff; }
.g9nt-bar--event   { background: #3d3000; color: #ffd75e; border-bottom: 2px solid #c9a84c; }

.g9nt-msg { flex: 1; max-width: 860px; }

.g9nt-cta {
  color: inherit;
  font-weight: 700;
  margin-left: 10px;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.g9nt-cta:hover { opacity: 0.82; }

.g9nt-dismiss {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: inherit;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}
.g9nt-dismiss:hover { background: rgba(255,255,255,0.3); }

.g9nt-bar[hidden] { display: none !important; }

/* Stack multiple notices */
.g9nt-bar + .g9nt-bar { border-top: 1px solid rgba(0,0,0,0.08); }
