/* Scoped to announcement dialog: does not alter other overlays or site cards. */
#announcementCard { max-width:min(42rem,calc(100vw - 24px)); max-height:calc(100dvh - 24px); }
#announcementCard.has-image { width:640px; overflow:hidden; }
#announcementCard.has-image > .p-6 { display:flex; flex-direction:column; max-height:calc(100dvh - 24px); padding:20px; }
#announcementCard.has-image #popupBody { overflow:auto; min-height:0; overscroll-behavior:contain; }
#announcementCard.has-image #popupHeaderBar { flex-shrink:0; margin-bottom:12px; }
#announcementCard.has-image #popupTitle { font-size:1.25rem; line-height:1.4; }
#popupImage { display:block; width:100%; height:auto; max-height:55dvh; object-fit:contain; margin:0 auto 12px; }
#popupImage[hidden], #popupImageError[hidden] { display:none; }
#popupImageError { padding:12px; background:#fff4df; color:#713f12; }
#popupActions { flex-shrink:0; padding-top:12px; display:flex; gap:8px; background:white; }
#popupActions button { min-height:44px; }
#popupCloseBtn { min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
#popupLinkBtn { background:#15803d; color:white; }
#popupConfirmBtn { background:#2563eb; color:white; }
#announcementCard button:focus-visible { outline:3px solid #f59e0b; outline-offset:2px; }
@media(max-width:480px) {
 #announcementCard.has-image > .p-6 { padding:14px; }
 #popupActions { flex-wrap:wrap; }
 #popupLinkBtn { flex-basis:100%; order:-1; padding:12px 10px; }
 #popupConfirmBtn { width:100%; padding:8px; }
 #popupImage { max-height:48dvh; }
 #announcementCard #popupTitle { font-size:1.1rem; }
 #popupBadge { display:none; }
 #popupContent { margin-bottom:12px; font-size:14px; }
}
