:root {
    --brand: #8b2959;
    --brand-dark: #651d41;
    --ink: #303238;
    --muted: #535b59;
    --background: #f4f7f6;
    --border: #798580;
    --link: #0042ae;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif; font-size: 1.125rem; line-height: 1.6; }
a { color: var(--link); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #0042ae; outline-offset: 4px; }
main:focus { outline: none; }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 10000; background: white; padding: 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { background: white; border-top: 6px solid var(--brand); border-bottom: 1px solid #d8dedb; }
.header-inner { max-width: 1280px; margin: auto; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.brand-mark { background: var(--brand); color: white; width: 3rem; height: 3.5rem; display: grid; place-items: center; border-radius: 0 0 1rem 1rem; }
.brand-subtitle { display: block; font-size: .95rem; font-weight: 400; margin-top: .35rem; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .65rem; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
nav a:hover, nav a[aria-current] { border-color: var(--brand); color: var(--brand-dark); }
main { max-width: 1280px; margin: 0 auto; padding: 2.75rem 2rem 4rem; }
h1, h2, h3 { line-height: 1.2; font-weight: 650; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .4rem 0 1rem; letter-spacing: -.025em; }
h2 { font-size: 1.5rem; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; }
p { margin: .65rem 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--brand-dark); font-size: .85rem; font-weight: 700; }
.intro { max-width: 48rem; font-size: 1.25rem; }
.hero { margin-bottom: 2rem; }
.button, button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .7rem 1.3rem; border: 2px solid var(--brand); background: var(--brand); color: white; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; border-radius: .2rem; }
.button:hover, button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: white; }
.secondary { color: var(--brand-dark); background: white; }
button:disabled { cursor: wait; opacity: .7; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin: 1.5rem 0 .5rem; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.panel, fieldset { background: white; padding: 1.5rem; border: 1px solid #d8dedb; border-radius: .25rem; min-width: 0; margin: 0 0 1.5rem; }
.map-panel { padding: 0; overflow: hidden; }
.map-heading { padding: 1.5rem 1.5rem 0; }
#map { width: 100%; height: 32rem; background: #e5ece8; }
.map-help { padding: 1.2rem 1.5rem; }
.map-help p:last-child { margin-bottom: 0; }
.map-help button { width: 100%; }
.map-notice { margin: 0 0 1rem; color: var(--muted); }
.hint { color: var(--muted); font-size: 1rem; }
.status-list { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; list-style: none; padding: 0; font-size: .95rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; }
.status::before { content: ""; width: 1rem; height: 1.5rem; flex: 0 0 1rem; background: center / contain no-repeat; }
.status.pending::before { background-image: url('img/pending.png'); }
.status.open::before { background-image: url('img/open.png'); }
.status.close::before { background-image: url('img/close.png'); }
.filter-form { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; margin: 1.5rem 0; }
.filter-form > div { flex: 1 1 12rem; }
.case-list { list-style: none; padding: 0; margin: 0; }
.case-list li { padding: 1.2rem 0; border-top: 1px solid #d8dedb; }
.case-list h3 { margin: .4rem 0; }
.case-list p { margin: .25rem 0; }
.case-list time { color: var(--muted); font-size: .95rem; }
.case-details dt { font-weight: 700; margin-top: 1rem; }
.case-details dd { margin: .25rem 0; overflow-wrap: anywhere; white-space: pre-line; }
img { max-width: 100%; height: auto; }
legend { font-size: 1.25rem; font-weight: 650; padding: 0 .4rem; }
label { display: block; font-weight: 650; margin-bottom: .4rem; }
input, select, textarea { width: 100%; min-height: 48px; padding: .7rem; border: 1px solid var(--border); border-radius: .15rem; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 10rem; resize: vertical; }
.field { margin-bottom: 1.3rem; }
.field:last-child { margin-bottom: 0; }
.coordinates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.error { display: block; color: #9c1826; font-weight: 600; margin-top: .35rem; }
[aria-invalid="true"] { border: 2px solid #9c1826; }
.error-summary { border: 2px solid #9c1826; background: #fff5f5; padding: 1.5rem; margin-bottom: 2rem; }
.error-summary a { color: #8a1020; }
.error-summary li { margin-bottom: .5rem; }
.receipt { max-width: 48rem; padding: clamp(1.5rem, 5vw, 3rem); background: white; border-top: 6px solid #297044; margin: 1rem auto; }
.receipt-symbol { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #e4f2e8; color: #235f39; font-size: 2rem; margin-bottom: 1.5rem; }
.site-footer { background: var(--brand); color: white; padding: 2rem max(2rem, calc((100vw - 1216px) / 2)); display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer a { color: white; display: block; padding: .5rem 0; }
.site-footer :focus-visible { outline-color: white; }
.site-footer strong { font-size: 1.3rem; }
[hidden] { display: none !important; }
@media (max-width: 850px) {
    .header-inner { align-items: start; flex-direction: column; gap: 1rem; }
    .map-layout { grid-template-columns: 1fr; }
    #map { height: 23rem; }
}
@media (max-width: 480px) {
    body { font-size: 1rem; }
    .header-inner { padding: 1rem; }
    main { padding: 1.5rem 1rem 2rem; }
    nav { gap: .25rem; }
    nav a { padding: .5rem; }
    .panel, fieldset { padding: 1rem; }
    .map-panel { padding: 0; }
    .coordinates { grid-template-columns: 1fr; }
    .intro { font-size: 1.125rem; }
    .actions > *, .filter-form button { width: 100%; }
    .site-footer { padding: 1.5rem; }
}
