* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
}

.announcements-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 42px 20px;
}

.announcements-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.filter-panel {
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ded8cf;
    border-radius: 16px;
}

.filter-group + .filter-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ece7df;
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #777;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d8d1c8;
    border-radius: 999px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.filter-link:hover {
    border-color: #a9947d;
}

.filter-link.active {
    background: #222;
    border-color: #222;
    color: #fff;
}

.search-panel {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-input {
    width: 260px;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d8d1c8;
    border-radius: 999px;
    background: #fff;
    color: #2b2118;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #7a5c3e;
    box-shadow: 0 0 0 2px rgba(122, 92, 62, 0.12);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;

    border: 1px solid #ccc;
    background: #fff;
    color: #2b2118;
    text-decoration: none;

    padding: 0.55rem 0.85rem;
    border-radius: 999px;

    font: inherit;
    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;
}

.search-results-header {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #554333;
}

.search-results-header strong {
    color: #2b2118;
}

.search-results-count {
    color: #756553;
}

.results-summary {
    margin: 0 0 16px;
    color: #666;
    font-size: 0.92rem;
}

.results-summary strong {
    color: #222;
}

@media (max-width: 700px) {
    .search-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
        max-width: 100%;
    }
}

.announcement-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.announcement-card {
    overflow: hidden;
    padding: 22px;
    background: #fff;
    border: 1px solid #ded8cf;
    border-radius: 16px;
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 9px;
    margin-bottom: 16px;
    color: #777;
    font-size: 0.82rem;
}

.type-badge,
.source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.type-badge {
    background: #222;
    color: #fff;
}

.source-badge {
    background: #eee8df;
    color: #5c4937;
}

.announcement-image {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 7;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #eeeae4;
}

.announcement-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #8a847d;
    font-size: 0.9rem;
}

.announcement-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.announcement-card h2 a {
    color: #222;
    text-decoration: none;
}

.announcement-card h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.excerpt {
    margin: 12px 0 0;
}

.announcement-actions {
    margin-top: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 650;
}

.button-primary {
    background: #222;
    color: #fff;
}

.button-primary:hover {
    background: #3a3a3a;
}

.empty-state {
    padding: 42px 24px;
    background: #fff;
    border: 1px solid #ded8cf;
    border-radius: 16px;
    color: #666;
    text-align: center;
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    color: #777;
    font-size: 0.9rem;
}

.pagination div:last-child {
    text-align: right;
}

.pagination a {
    color: #7a5c3e;
    font-weight: 650;
    text-decoration: none;
}

.pagination a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .announcement-list {
        grid-template-columns: 1fr;
    }

    .announcements-shell {
        width: min(100% - 24px, 1100px);
        padding-top: 18px;
    }

    .announcement-card {
        padding: 16px;
    }

    .announcement-image {
        aspect-ratio: 16 / 9;
    }

    .pagination {
        grid-template-columns: 1fr 1fr;
    }

    .pagination > span {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }
}
