:root {
    --color-text: #1f2933;
    --color-muted: #52606d;
    --color-accent: #1f4e79;
    --color-border: #d9e2ec;
    --color-bg: #f5f7fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    color: var(--color-accent);
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.site-header .inner,
main,
.site-footer .inner {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.site-title {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    text-decoration: underline;
}

main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

h1 {
    margin-top: 0;
    font-size: 1.75rem;
    line-height: 1.25;
}

.building {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 1.5rem;
    border-radius: 4px;
}

dl.details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 1.5rem;
    margin: 0;
}

dl.details dt {
    color: var(--color-muted);
}

dl.details dd {
    margin: 0;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer .inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-nav {
    flex-wrap: wrap;
    align-items: baseline;
}

.site-nav form {
    margin: 0;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--color-accent);
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

.page-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.card {
    margin: 0 0 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.card .meta {
    margin: 0 0 0.75rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.body-text {
    white-space: pre-line;
}

.form {
    display: grid;
    gap: 1rem;
    max-width: 28rem;
}

.field {
    display: grid;
    gap: 0.25rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid #9fb3c8;
    border-radius: 4px;
    font: inherit;
    background: #fff;
}

.check {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.button {
    display: inline-block;
    justify-self: start;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 4px;
    background: var(--color-accent);
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.button.danger {
    background: #a12626;
}

.danger-zone {
    margin-top: 2rem;
}

.message {
    margin: 0 0 1rem;
    padding: 0.6rem 0.9rem;
    border-radius: 4px;
}

.message.error,
.validation-message {
    color: #8a1c1c;
}

.message.error {
    background: #fdeeee;
}

.message.success {
    background: #e8f5ec;
    color: #1d5c34;
}

ul.validation-errors {
    margin: 0;
    padding-left: 1.2rem;
}

.table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    background: #fff;
}

.table th,
.table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.file-list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.file-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.file-list .meta {
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.inline-form {
    display: inline;
}

.badge {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.badge-reported {
    background: #fdeeee;
    color: #8a1c1c;
}

.badge-progress {
    background: #fff4d6;
    color: #7a5600;
}

.badge-resolved {
    background: #e8f5ec;
    color: #1d5c34;
}

.photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.photos img {
    display: block;
    max-width: 14rem;
    max-height: 12rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}
