/* News popup (plan 170): typography of the sanitized body and the open animation. */
.announcement-body {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.announcement-body > * + * { margin-top: 0.75rem; }
.announcement-body h2 { color: #111827; font-size: 1.125rem; font-weight: 600; line-height: 1.4; margin-top: 1.25rem; }
.announcement-body h3 { color: #111827; font-size: 1rem; font-weight: 600; line-height: 1.4; margin-top: 1rem; }
.announcement-body > :first-child { margin-top: 0; }
.announcement-body strong, .announcement-body b { color: #111827; font-weight: 600; }
.announcement-body em, .announcement-body i { font-style: italic; }
.announcement-body u { text-decoration: underline; }
.announcement-body a { color: #047857; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.announcement-body a:hover { color: #065f46; }
.announcement-body ul, .announcement-body ol { padding-left: 1.25rem; }
.announcement-body ul { list-style: disc; }
.announcement-body ol { list-style: decimal; }
.announcement-body li + li { margin-top: 0.25rem; }
.announcement-body li::marker { color: #10b981; }
.announcement-body img { border-radius: 0.75rem; height: auto; max-width: 100%; }

.announcement-popup .announcement-backdrop { animation: announcement-fade-in 200ms ease-out; }
.announcement-popup .announcement-card { animation: announcement-pop-in 260ms cubic-bezier(0.16, 1, 0.3, 1); }
.announcement-popup.is-closing { opacity: 0; transition: opacity 150ms ease-in; }

@keyframes announcement-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes announcement-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-popup .announcement-backdrop,
  .announcement-popup .announcement-card { animation: none; }
}
