.news-card {
    height: auto !important;
    min-width: 0;
    padding: 0 !important;
    cursor: default !important;
    overflow: visible !important;
}

.news-card:hover {
    transform: none !important;
}

.news-card__open {
    appearance: none;
    width: 100%;
    min-width: 0;
    padding: 18px 18px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.news-card__open:focus-visible,
.news-action-btn:focus-visible,
.news-card__stats button:focus-visible {
    outline: 3px solid rgba(47, 128, 237, 0.28);
    outline-offset: 2px;
}

.news-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
    margin-bottom: 8px;
}

.news-card__badges:empty {
    display: none;
}

.news-card__pin,
.news-card__priority {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.news-card__pin {
    background: #FEE2E2;
    color: #DC2626;
}

.news-card__priority.is-high {
    background: #FFF7ED;
    color: #C2410C;
}

.news-card__priority.is-urgent {
    background: #DC2626;
    color: #FFFFFF;
}

.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.news-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-card .announce-title {
    margin-top: 9px;
    line-height: 1.35;
}

.news-card .announce-desc {
    min-width: 0;
    line-height: 1.5;
}

.news-card__more {
    color: var(--brand-primary);
    font-weight: 800;
}

.news-card__media {
    min-width: 0;
    padding: 0 14px;
}

.news-card__media:empty {
    display: none;
}

.news-card__media .post-images-grid,
.news-card__media .announcement-media {
    margin-top: 4px !important;
    border-radius: 8px !important;
}

.news-card__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 10px;
    padding: 7px 18px;
    color: #6B7280;
    font-size: 0.78rem;
}

.news-card__stats button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 3px 0;
}

.news-card__stats button:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.news-reaction-summary {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.news-reaction-summary__icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: -4px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    background: #FFFFFF;
    font-size: 0.82rem;
    line-height: 1;
}

.news-reaction-summary__icon:first-child {
    margin-left: 0;
}

.news-reaction-summary > span:last-child {
    margin-left: 5px;
}

.news-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    min-height: 45px;
    padding: 4px 10px 8px;
    border-top: 1px solid #F1F3F5;
}

.news-actions:has(.news-action-group:only-child),
.news-actions:has(> .news-action-btn:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.news-action-group {
    position: relative;
    min-width: 0;
}

.news-action-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 36px;
    padding: 7px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #5F6570;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
}

.news-action-btn:hover,
.news-action-btn.is-active {
    background: #F4F7FA;
    color: #2F80ED;
}

.news-reaction-picker {
    position: absolute;
    z-index: 16;
    left: 0;
    bottom: calc(100% + 7px);
    display: flex;
    align-items: flex-end;
    gap: 2px;
    max-width: min(92vw, 430px);
    padding: 8px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.news-action-group:hover .news-reaction-picker,
.news-action-group:focus-within .news-reaction-picker,
.news-action-group.is-picker-open .news-reaction-picker {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.news-reaction-choice {
    appearance: none;
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 48px;
    padding: 3px 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: #5F6570;
}

.news-reaction-choice > span {
    display: block;
    font-size: 1.65rem;
    line-height: 1;
    transition: transform 120ms ease;
}

.news-reaction-choice small {
    font-size: 0.6rem;
    white-space: nowrap;
}

.news-reaction-choice:hover > span,
.news-reaction-choice.is-selected > span {
    transform: translateY(-3px) scale(1.16);
}

.news-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 36px 18px;
    color: #6B7280;
    text-align: center;
}

.news-empty > i {
    font-size: 1.8rem;
    color: #9CA3AF;
}

.news-empty strong {
    color: #111827;
}

.news-empty button {
    padding: 8px 14px;
    border: 0;
    border-radius: 6px;
    background: var(--brand-primary);
    color: #FFFFFF;
    cursor: pointer;
    font-weight: 700;
}

.news-empty.is-error {
    border: 1px solid #FECACA;
    border-radius: 8px;
    background: #FFF8F7;
}

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 180ms ease;
}

.news-modal__dialog {
    display: flex;
    flex-direction: column;
    width: min(94vw, 860px);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.news-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #EEF0F3;
}

.news-modal__header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-modal__eyebrow,
.news-modal__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 0.78rem;
    font-weight: 700;
}

.news-modal__eyebrow {
    color: var(--brand-primary);
}

.news-modal__close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #F3F4F6;
    color: #4B5563;
    cursor: pointer;
    font-size: 1rem;
}

.news-modal__scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px;
}

.news-modal__title {
    margin: 0 0 12px;
    color: #111827;
    font-size: 1.4rem;
    line-height: 1.35;
}

.news-modal__content {
    color: #374151;
    font-size: 0.96rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.news-modal__media {
    min-width: 0;
    margin-top: 16px;
}

.news-modal__media:empty {
    display: none;
}

.news-modal__stats {
    margin-top: 12px;
    padding-inline: 0;
    border-bottom: 1px solid #EEF0F3;
}

.news-modal__actions .news-actions {
    padding-inline: 0;
}

.news-comments {
    margin-top: 18px;
    border-top: 1px solid #EEF0F3;
    padding-top: 18px;
}

.news-comments__heading h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #111827;
    font-size: 1rem;
}

.news-comments__list {
    display: grid;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.news-comment {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
}

.news-comment__avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: #F1F5F9;
    color: #475569;
    font-weight: 800;
}

.news-comment__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-comment__body {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #F6F7F9;
}

.news-comment__body > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-comment__body strong {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-comment__body time {
    margin-left: auto;
    color: #8A919E;
    font-size: 0.68rem;
    white-space: nowrap;
}

.news-comment__body button {
    border: 0;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
}

.news-comment__body p {
    margin: 5px 0 0;
    color: #374151;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.news-comments__empty,
.news-comments__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 72px;
    color: #7B8190;
    text-align: center;
}

.news-comments__empty.is-error {
    color: #B91C1C;
}

.news-comment-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 14px;
}

.news-comment-composer textarea {
    width: 100%;
    min-height: 46px;
    max-height: 130px;
    resize: vertical;
    padding: 11px 13px;
    border: 1px solid #DDE2E8;
    border-radius: 8px;
    font: inherit;
}

.news-comment-composer textarea:focus {
    border-color: #2F80ED;
    outline: 3px solid rgba(47, 128, 237, 0.12);
}

.news-comment-composer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 88px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #FFFFFF;
    cursor: pointer;
    font-weight: 800;
}

.news-comment-composer button:disabled {
    cursor: wait;
    opacity: 0.58;
}

@media (max-width: 768px) {
    .news-card {
        margin-bottom: 14px;
    }

    .news-card__open {
        padding: 16px 15px 9px;
    }

    .news-card__media {
        padding-inline: 0;
    }

    .news-card__media .post-images-grid,
    .news-card__media .announcement-media {
        border-radius: 0 !important;
    }

    .news-card__stats {
        padding-inline: 15px;
    }

    .news-action-group:hover .news-reaction-picker {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }

    .news-action-group.is-picker-open .news-reaction-picker,
    .news-action-group:focus-within .news-reaction-picker {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .news-reaction-picker {
        left: -4px;
        gap: 0;
        max-width: calc(100vw - 34px);
        overflow-x: auto;
        padding: 7px;
    }

    .news-reaction-choice {
        min-width: 43px;
    }

    .news-reaction-choice > span {
        font-size: 1.45rem;
    }

    .news-modal {
        align-items: flex-end;
        padding: 0;
    }

    .news-modal__dialog {
        width: 100%;
        max-height: 94dvh;
        border-radius: 8px 8px 0 0;
    }

    .news-modal__header {
        padding: 13px 15px;
    }

    .news-modal__scroll {
        padding: 17px 15px calc(18px + env(safe-area-inset-bottom));
    }

    .news-modal__title {
        font-size: 1.2rem;
    }

    .news-comments__list {
        max-height: 38vh;
    }

    .news-comment-composer {
        grid-template-columns: minmax(0, 1fr) 48px;
    }

    .news-comment-composer button {
        min-width: 48px;
        padding: 0;
    }

    .news-comment-composer button span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-modal,
    .news-reaction-picker,
    .news-reaction-choice > span {
        transition: none;
    }
}
