.public-notices { max-width: 760px; margin: 10px auto; padding: 0 9px 18px; font: 12px Arial, sans-serif; color: #222; box-sizing: border-box; }
.public-notices h1 { color: #c22; text-align: center; font-size: 20px; margin: 8px 0 11px; }
.public-notices a { color: #00c; text-decoration: underline; }
.notices-filter { border: 0; padding: 0; background: transparent; margin: 10px 0 18px; display: block; }
.notices-search-field { display: block; margin: 0 0 8px; }
.notices-search-field input { width: 165px; height: 28px; }
.notices-filter-panel { border: 1px solid #aaa; border-radius: 5px; padding: 7px; background: #fafafa; }
.notices-filter-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.notices-filter-top label { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.notices-filter-top select, .notices-filter-top button { height: 26px; padding: 2px 5px; }
.notices-filter-bottom { border-top: 1px dashed #ccc; margin-top: 6px; padding-top: 6px; }
.notices-filter-bottom input { width: 100%; height: 26px; }
.public-notices input, .public-notices select, .public-notices textarea, .public-notices button { font: inherit; color: #222; padding: 3px 6px; border: 1px solid #999; border-radius: 2px; background: #fff; box-sizing: border-box; max-width: 100%; }
.public-notices button { background: linear-gradient(#fff, #ddd); cursor: pointer; }
.public-notices button:disabled { opacity: .6; cursor: wait; }
.notices-date { color: #555; font-size: 16px; border-bottom: 1px solid #999; margin: 17px 0 5px; padding-bottom: 3px; }
.notices-row { display: flex; gap: 5px; margin: 0; padding: 5px 2px; border-bottom: 1px dashed #ddd; align-items: center; }
.notices-row > span { color: #aaa; }
.notices-row > a { font-size: 13px; font-weight: bold; overflow-wrap: anywhere; }
.notices-row > a:first-of-type { flex: 0 1 auto; min-width: 0; }
.notice-preview-open { flex: 0 0 auto; width: 24px; height: 24px; padding: 2px!important; border: 0!important; background: transparent!important; color: #888!important; }
.notice-preview-open svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice-preview-open:hover, .notice-preview-open:focus-visible { color: #c22!important; }
.notice-preview-dialog { width: min(560px, calc(100% - 24px)); max-width: 560px; max-height: min(78vh, 720px); padding: 0; border: 1px solid #ccc; border-radius: 14px; color: #222; box-shadow: 0 8px 32px #0004; overflow: auto; }
.notice-preview-dialog[open] { animation: notice-preview-in .16s ease-out; }
.notice-preview-dialog::backdrop { background: #0007; }
.notice-preview-card > header { position: sticky; top: 0; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #ddd; background: #fff; }
.notice-preview-card > header h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.notice-preview-close { flex: 0 0 auto; border: 0!important; background: transparent!important; font-size: 25px!important; line-height: 1!important; color: #777!important; padding: 0 2px!important; }
.notice-preview-meta, .notice-preview-contact { margin: 14px 18px; line-height: 1.45; }
.notice-preview-meta { padding-bottom: 12px; border-bottom: 1px dashed #ddd; }
.notice-preview-card .notice-content { margin: 12px 18px; }
.notice-preview-card .notice-photos { margin: 12px 18px; }
.notice-preview-card footer { display: flex; justify-content: center; padding: 14px; border-top: 1px solid #eee; }
.notice-preview-card footer a { display: inline-block; padding: 8px 24px; border: 1px solid #999; border-radius: 3px; background: linear-gradient(#fff, #ddd); color: #222; text-decoration: none; }
@keyframes notice-preview-in { from { opacity: .7; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.notices-pagination { margin: 14px 0; }
.notices-footer-links { margin: 18px 0 6px; font-size: 11px; text-align: center; }
.community-location-filters { display: grid; gap: 8px; margin-top: 9px; }
.community-location-group { min-width: 0; }
.community-location-heading { display: flex; align-items: center; gap: 5px; margin: 0 0 4px; }
.community-location-heading button { padding: 2px 6px!important; font-size: 11px!important; }
.community-location-options { max-height: 205px; overflow-y: auto; border: 1px solid #aaa; background: #fff; padding: 4px 6px; }
.community-location-options[hidden] { display: none; }
.community-location-options label { display: flex; align-items: center; gap: 5px; min-height: 20px; }
.community-location-options input[type="checkbox"] { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; padding: 0; }
.community-location-options small { color: #888; font-size: 11px; }
.notice-form { max-width: 560px; margin: auto; }
.notice-form > label, .notice-form-row label { display: block; margin-bottom: 9px; }
.notice-form label input, .notice-form textarea { display: block; width: 100%; margin-top: 5px; }
.notice-form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.notice-form textarea { resize: vertical; }
.notice-form .notice-text-label textarea { min-height: 205px; margin: 10px 0 14px; }
.notice-place-row { justify-content: space-between; gap: 12px; }
.notice-place-row label { flex: 1; min-width: 0; }
.notice-place-row input, .notice-place-row select { width: 100%; display: block; margin-top: 3px; }
.notice-location-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.notice-location-row select { width: 100%; min-width: 0; padding: 3px; }
.notice-photo-hint { color: #888; font-size: 11px; margin: 8px 0 15px; }
.notice-photo-fields { max-width: 450px; margin: auto; }
.notice-photo-fields label { display: flex; align-items: center; gap: 6px; margin: 5px 0; white-space: nowrap; }
.notice-form .notice-photo-fields input { display: inline-block; flex: 1; min-width: 0; width: auto; margin: 0; border: 0; padding: 0; background: transparent; }
.notice-save-row { text-align: center; margin: 8px 0 14px; }
.notice-save-row button { min-width: 125px; }
.notice-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.notice-content { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; line-height: 1.4; }
.notice-photos { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0; }
.notice-photos img { max-width: 180px; max-height: 230px; object-fit: contain; }
.notice-card { padding: 8px 0; border-bottom: 1px solid #aaa; }
.public-notices [role="status"] { color: #b40000; }
@media(max-width: 480px) { .public-notices { padding: 0 7px 16px; } .public-notices h1 { font-size: 18px; margin: 7px 0 9px; } .notices-search-field input { width: 155px; } .notices-filter-top { column-gap: 5px; row-gap: 5px; } .notices-filter-top label, .notices-filter-top select, .notices-filter-top button { font-size: 11px; } .notices-filter-top select, .notices-filter-top button { padding-left: 4px; padding-right: 4px; } .notices-filter button { min-height: 25px; } .notices-date { font-size: 15px; margin-top: 14px; } .notices-row > a { font-size: 12px; } .community-location-options { max-height: 180px; font-size: 11px; } .community-location-options small { font-size: 10px; } .notice-photos img { max-width: 100%; } .notice-preview-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 68vh; margin: 0; border-radius: 14px 14px 0 0; border-bottom: 0; font: 12px Arial,sans-serif; } .notice-preview-card > header { padding: 10px 13px; } .notice-preview-card > header h2 { font-size: 16px; } .notice-preview-meta, .notice-preview-contact { margin: 10px 13px; } .notice-preview-card .notice-content, .notice-preview-card .notice-photos { margin: 9px 13px; } }
