:root {
    --ink: #073675;
    --muted: #073675;
    --line: #cbd3da;
    --panel: #ffffff;
    --page: #e1ebfa;
    --county: #e4e8eb;
    --county-hover: #b7c9d7;
    --active: #073675;
    --active-hover: #e71e28;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Open Sans", sans-serif; color: var(--ink); background: var(--page); }
body.modal-open { overflow: hidden; }
a {color: var(--active-hover);}
.page-shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; }
.page-header { margin-bottom: 20px; }
h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-header p { margin: 0; color: var(--muted); }
.map-panel { background: var(--panel); border: 1px solid var(--line);  padding: 18px; }
.map-key { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: .95rem; }
.map-key span { width: 18px; height: 18px; border-radius: 3px; background: var(--active); }
#map-wrap { width: 100%; }
.texas-map { width: 100%; height: auto; display: block; }
.texas-map .texas-county { fill: var(--county); transition: fill .15s ease; }
.texas-map .texas-county.has-data { fill: var(--active); cursor: pointer; }
.texas-map .texas-county.has-data:hover,
.texas-map .texas-county.has-data:focus { fill: var(--active-hover); outline: none; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 28, .72); }
.modal-dialog { position: relative; z-index: 1; width: min(760px, 100%); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 16px 50px rgba(0,0,0,.3); }
.modal-dialog h2 { margin: 0 40px 20px 0; }
.modal-close { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.person-card {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.person-details {
    width: 100%;
    min-width: 0;
}
.person-card:first-child { border-top: 0; padding-top: 0; }
.person-card h3 { margin: 0 0 6px; }
.person-details { min-width: 0; }
.person-title,
.person-agency {
    margin: 5px 0;
}
.person-title { font-weight: 700; }
.person-agency { color: var(--muted); }
.person-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
}
.admin-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.button { display: inline-block; border: 0; border-radius: 6px; padding: 10px 15px; background: var(--active); color: white; text-decoration: none; cursor: pointer; font: inherit; }
.button.secondary { background: #65717b; }
.button.danger { background: #a52d2d; }
.admin-card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #aeb8c0; border-radius: 6px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.notice { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; background: #e6f3e9; border: 1px solid #acd0b5; }
.error { background: #f9e8e8; border-color: #d8aaaa; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f4f6f7; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }
.login-card { width: min(440px, calc(100% - 32px)); margin: 80px auto; }
@media (max-width: 700px) {
@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .modal-dialog { padding: 22px 18px; }
	}
   .form-grid { grid-template-columns: 1fr; }
    .modal-dialog { padding: 22px 18px; }
}
