:root { color-scheme: dark light; --midnight: #0b1925; --navy: #122738; --ivory: #f6f1e7; --ink: #20303b; --gold: #e7c689; --line: #cec5b6; --serif: Georgia, 'Times New Roman', serif; --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #8c642b; outline-offset: 3px; }
.wrap { width: min(calc(100% - 2.5rem), 1100px); margin-inline: auto; }
.admin-header { background: var(--midnight); color: #eee; }
.header-row { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { font: 700 1.8rem var(--serif); letter-spacing: -.06em; text-decoration: none; }
.brand span { color: var(--gold); }
.header-row nav { display: flex; align-items: center; gap: 1.5rem; }
.header-row nav form { margin: 0; }
.header-row a:not(.brand), .header-row button { font-size: .85rem; }
.header-row button { border: 0; background: none; color: var(--gold); cursor: pointer; padding: .4rem; }
main { padding-block: 4rem 6rem; }
.eyebrow { color: #795825; font-size: .7rem; font-weight: 700; letter-spacing: .18em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); margin: .7rem 0 1rem; }
h2 { font-size: 2rem; margin: 0 0 1.5rem; }
.intro { max-width: 700px; color: #47535c; line-height: 1.7; margin-bottom: 2rem; }
.panel { background: #fffdf8; border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.5rem); margin-top: 1.5rem; }
.event-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 700; }
.optional { color: #68747b; font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid #8b969a; border-radius: 0; background: white; color: var(--ink); padding: .75rem; min-height: 47px; }
textarea { resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 1.3rem; align-items: center; margin-top: .7rem; }
button.primary { background: var(--midnight); border: 1px solid var(--midnight); color: white; min-height: 48px; padding: .75rem 1.4rem; font-weight: 700; cursor: pointer; }
button.primary:hover { background: var(--navy); }
.message { padding: 1rem 1.2rem; line-height: 1.5; }
.error { background: #f8e9e5; border-left: 4px solid #b43d2b; }
.success { background: #e5f2e8; border-left: 4px solid #3d8051; }
.count { font: 400 1.1rem var(--sans); color: #68747b; }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.event-list li > div:first-child { display: flex; flex-direction: column; gap: .35rem; }
.event-list strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.event-list span { color: #59656d; font-size: .8rem; line-height: 1.5; }
.event-list .published { color: #2d7143; font-weight: 700; }
.event-list .draft { color: #8c642b; font-weight: 700; }
.list-actions { display: flex; align-items: center; gap: 1.2rem; flex: none; font-size: .85rem; }
.list-actions button { border: 0; background: none; color: #9b3325; cursor: pointer; padding: .4rem; text-decoration: underline; }
.login-wrap { max-width: 600px; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-form button { align-self: flex-start; }
@media (max-width: 680px) { .event-form { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .form-actions { grid-column: auto; } .event-list li { align-items: flex-start; flex-direction: column; } .header-row { min-height: 75px; } }

.image-fields { grid-column: 1 / -1; margin: .3rem 0 0; padding: 1.3rem; border: 1px solid var(--line); }
.image-fields legend { padding: 0 .4rem; font-size: .9rem; font-weight: 700; }
.image-choices { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin: .5rem 0 1rem; }
.image-choices label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }
.image-choices input { width: auto; min-height: 0; margin: 0; }
.image-detail { margin-top: 1rem; }
.image-detail[hidden] { display: none; }
.image-detail label { display: block; margin-bottom: .45rem; }
.field-help { color: #59656d; font-size: .78rem; line-height: 1.5; margin: .45rem 0 0; }
.current-image { max-width: 360px; margin-bottom: 1.2rem; }
.current-image img { width: 100%; max-height: 220px; display: block; object-fit: cover; border: 1px solid var(--line); }
.current-image p { color: #59656d; font-size: .78rem; margin: .4rem 0 0; }
@media (max-width: 680px) { .image-fields { grid-column: auto; } }

.field[hidden] { display: none; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.consent { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.5; }
.consent input { width: auto; min-height: 0; margin-top: .25rem; }
.public-form { max-width: 960px; }
.proposal-list { display: grid; gap: 1.3rem; }
.proposal-card { border-top: 1px solid var(--line); padding-top: 1.5rem; overflow-wrap: anywhere; }
.proposal-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.proposal-heading h3 { font: 400 1.5rem var(--serif); margin: 0; }
.proposal-card p { line-height: 1.6; font-size: .88rem; }
.proposal-card strong { font-weight: 700; }
.proposal-image { max-width: 400px; }
.proposal-image img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.proposal-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.4rem; }
.proposal-actions form { margin: 0; }
.proposal-actions button.secondary { min-height: 48px; padding: .75rem 1.2rem; border: 1px solid var(--midnight); background: transparent; color: var(--midnight); cursor: pointer; }
.notification { color: #59656d; }

#county-filter[hidden] { display: none; }
.full { grid-column: 1 / -1; }
button.secondary, a.secondary { min-height: 44px; padding: .65rem 1rem; background: transparent; border: 1px solid var(--ink); color: var(--ink); cursor: pointer; font: inherit; }
dialog { width: min(640px, 92vw); max-height: 90vh; overflow: auto; padding: 1.8rem; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); }
dialog::backdrop { background: #07131eb8; }
[data-preview-image] { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 1rem; }
[hidden] { display: none !important; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
.detail-grid dt { font-weight: 700; margin-bottom: .4rem; }
.detail-grid dd { margin: 0; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.status-badge { display: inline-block; padding: .35rem .6rem; border: 1px solid currentColor; font-weight: 700; }
.status-cancelled, .status-postponed { color: #9b3325; }
.event-full-image { display: block; max-width: 100%; max-height: 680px; object-fit: contain; margin: 2rem auto; }
.event-description { white-space: pre-line; line-height: 1.8; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-block: 1.5rem; }
.reference { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
@media (max-width: 680px) { .detail-grid { grid-template-columns: 1fr; } }
