/* ════════════════════════════════════════════════════════════════════
   Announcement / notification banners (fixed at top of page)

   Single source of truth for the `.pa-portal-notification*` banner styling.
   Loaded from the shared concordcms base (custom_assets), so it applies to
   BOTH the authenticated portal (announcements_widget.html) and the public
   website (public_announcements_widget.html) — the public banner therefore
   matches the dashboard banner exactly. Previously these rules lived only in
   dashboard.css, which the public site never loads, leaving public banners
   unstyled.
   ════════════════════════════════════════════════════════════════════ */

/* ── Portal Notification Banners (fixed at top) ── */
.pa-portal-notifications-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

.pa-portal-notification {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.pa-portal-notifications-bar .pa-portal-notification:last-child {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.pa-portal-notification + .pa-portal-notification {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pa-portal-notification__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

/* Size the font glyph to match the previous 22px SVG inside the 44px circle.
   No colour here — the wrapper's inline `color` (the priority's icon_color)
   must win so each priority renders in its configured colour. */
.pa-portal-notification__icon .icon {
  font-size: 22px;
  line-height: 1;
}

.pa-portal-notification__text {
  flex: 1;
  min-width: 0;
}

.pa-portal-notification__text a {
  color: white;
  font-weight: 700;
  transition: color 0.3s ease;
}

.pa-portal-notification__text a:hover {
  color: #fec34f;
}

.pa-portal-notification__cta {
  flex-shrink: 0;
  padding: 10px 28px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  background-color: #F472B6;
  color: #fff;
  transition: opacity 0.15s ease;
}

.pa-portal-notification__cta:hover {
  opacity: 0.9;
  text-decoration: none;
  color: #fff;
}

.pa-portal-notification__dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  opacity: 0.7;
  padding: 0 8px;
}

.pa-portal-notification__dismiss:hover {
  opacity: 1;
}

/* Push page content down when notifications are visible */
.pa-portal-notifications-bar ~ .portal {
  margin-top: var(--pa-notification-bar-height, 0);
}

/* ── Announcement banners (share the notification banner look-and-feel) ── */
.pa-portal-notifications-bar .pa-portal-notification:last-of-type {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.pa-portal-notifications-bar .pa-portal-notification--announcement:last-of-type {
  /* Figma 2418-29033 — 24px bottom corner radius for announcements. */
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.pa-portal-notification--announcement .pa-portal-notification__body {
  font-weight: 700; /* Nunito-Bold body per Figma; rich-text spans keep their own weight */
}

.pa-portal-notification--announcement .pa-portal-notification__body p:last-child {
  margin-bottom: 0;
}

/* CTA / acknowledge pill — Electric Violet per Figma */
.pa-portal-notification__cta--announcement,
.pa-portal-notification__cta--acknowledge {
  background-color: #8B3DFF;
  color: #F9F9F9;
  border: none;
  cursor: pointer;
}

.pa-portal-notification__cta--announcement:hover,
.pa-portal-notification__cta--acknowledge:hover {
  color: #F9F9F9;
  opacity: 0.9;
}

.pa-portal-notification__cta--acknowledge:disabled {
  opacity: 0.6;
  cursor: default;
}

/* The dismiss × inherits the banner's contrasting text colour */
.pa-portal-notification--announcement .pa-portal-notification__dismiss {
  color: inherit;
}
