.announcement-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.62);
}

.announcement-modal-backdrop.is-visible {
    display: flex;
}

.announcement-modal-card {
    width: min(620px, 100%);
    max-height: 88vh;
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    color: #212529;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.dark-theme .announcement-modal-card {
    background: #1f2328;
    color: #f8f9fa;
}

.announcement-modal-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
}

.announcement-modal-body {
    padding: 1.25rem;
}

.announcement-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.announcement-mobile-button {
    display: none;
    align-items: center;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
}

.announcement-mobile-button.is-visible:not(.announcement-mobile-button-bar) {
    display: none !important;
}

.announcement-mobile-button-bar.is-visible {
    display: inline-flex;
}

.announcement-mobile-button-bar {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: none;
    flex: 0 0 auto;
}

.announcement-mobile-button-bar .announcement-mobile-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.announcement-mobile-button-bar i {
    font-size: 1rem;
}

.community-announcements {
    margin-bottom: 1rem;
}

.community-announcement-card {
    display: flex;
    gap: .9rem;
    padding: 1rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.dark-theme .community-announcement-card {
    background: #242832;
}

.community-announcement-card + .community-announcement-card {
    margin-top: .75rem;
}

.community-announcement-card img {
    width: 96px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .announcement-mobile-button {
        display: none !important;
    }
}
