* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: #1a1a1a;
    background: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}
.site-banner {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
}
.site-nav {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}
.site-nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}
.site-nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    color: #666;
    font-size: 0.85rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #333; }

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}
.search-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.search-field select {
    min-width: 220px;
    padding: 0.4rem;
}
.search-field select[multiple] {
    height: 180px;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.results-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}
.results-list a {
    font-size: 1.05rem;
    color: #0b5fa5;
    text-decoration: none;
}
.results-list a:hover { text-decoration: underline; }
.results-meta {
    color: #666;
    font-size: 0.85rem;
}

.note-text { padding: 0.6rem 0; }
.error-text { color: #c0392b; }

form.stacked-form .field { margin-bottom: 1rem; }
form.stacked-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
form.stacked-form input,
form.stacked-form select,
form.stacked-form textarea {
    width: 100%;
    max-width: 500px;
    padding: 0.5rem;
    font-size: 1rem;
}
.optin-honeypot { position: absolute; left: -9999px; }

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
}
table.admin-table th { background: #f2f2f2; }
