/* Town of Walls Police Department */
body { margin: 0; background: #d9dee5; color: #222; font: 15px/1.55 Arial, Helvetica, sans-serif; }
a { color: #1a4a8a; }
a:visited { color: #553c86; }
a:hover { color: #0d2a52; }
:focus-visible { outline: 2px solid #c79a2e; outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: #1c355e; font-weight: bold; line-height: 1.25; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 5; }

.page { max-width: 1000px; margin: 0 auto; background: #fff; border-left: 1px solid #b9c1cc; border-right: 1px solid #b9c1cc; }

/* Top line */
.topline { background: #1c355e; color: #d7deea; font-size: 12px; padding: 4px 16px; }
.topline a, .topline a:visited { color: #fff; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid #ccd3dc; background: #fff; }
.site-header .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-header .brand img { width: 96px; height: 96px; object-fit: contain; }
.brand-name { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: bold; color: #1c355e; line-height: 1.1; }
.brand-sub { display: block; font-size: 14px; color: #555; margin-top: 4px; }
.header-phones { text-align: right; font-size: 13px; color: #444; line-height: 1.5; white-space: nowrap; }
.header-phones b { font-size: 17px; color: #1c355e; }
.header-phones .em b { color: #9b1c1c; }

/* Navigation */
.main-nav { background: #2a4a78; border-top: 3px solid #c79a2e; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav a, .main-nav a:visited { display: block; padding: 9px 16px; color: #fff; text-decoration: none; font-weight: bold; font-size: 14px; border-right: 1px solid #3f6194; }
.main-nav a:hover { background: #1c355e; text-decoration: underline; }
.main-nav a[aria-current="page"] { background: #1c355e; }

/* Columns */
.cols { display: flex; gap: 24px; padding: 20px 16px 28px; }
.content { flex: 1; min-width: 0; }
.sidebar { width: 240px; flex: none; }
.breadcrumb { font-size: 12px; color: #666; margin: 0 0 10px; }
.breadcrumb a, .breadcrumb a:visited { color: #666; }
.content h1 { font-size: 26px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid #c79a2e; }
.content h2 { font-size: 19px; margin: 24px 0 8px; }
.content h3 { font-size: 16px; margin: 18px 0 6px; }
.content p, .content li { max-width: 68ch; }

.side-box { border: 1px solid #b9c1cc; margin-bottom: 16px; font-size: 14px; }
.side-box h2 { margin: 0; padding: 6px 10px; font-size: 15px; background: #e6eaf0; border-bottom: 1px solid #b9c1cc; }
.side-box ul { margin: 0; padding: 8px 10px 8px 28px; }
.side-box li { margin: 3px 0; }
.side-box p { margin: 8px 10px; }

/* Home banner photo (optional) */
.banner { display: block; width: 100%; height: auto; border-bottom: 1px solid #ccd3dc; }

/* Tables and lists */
table.plain { border-collapse: collapse; width: 100%; margin: 8px 0 14px; font-size: 14px; }
table.plain th, table.plain td { border: 1px solid #b9c1cc; padding: 6px 9px; text-align: left; vertical-align: top; }
table.plain th { background: #e6eaf0; color: #1c355e; }
.info td:first-child { width: 170px; font-weight: bold; }

.chief { overflow: hidden; margin: 6px 0 10px; }
.chief .portrait { float: left; width: 130px; height: 160px; margin: 0 16px 8px 0; border: 1px solid #b9c1cc; background: #eef0f3; }

/* Form */
form.contact { max-width: 480px; }
form.contact p { margin: 0 0 12px; }
form.contact label { display: block; font-weight: bold; margin-bottom: 3px; }
form.contact input, form.contact select, form.contact textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 5px 6px; border: 1px solid #8a94a3; }
form.contact textarea { height: 140px; }
form.contact button { font: bold 14px Arial, sans-serif; padding: 6px 16px; background: #2a4a78; color: #fff; border: 1px solid #1c355e; cursor: pointer; }
form.contact button:hover { background: #1c355e; }
#form-status { font-weight: bold; }

/* Footer */
.site-footer { background: #1c355e; color: #d7deea; font-size: 13px; padding: 16px; text-align: center; border-top: 3px solid #c79a2e; }
.site-footer p { margin: 4px 0; }
.site-footer a, .site-footer a:visited { color: #fff; }

@media (max-width: 760px) {
  .cols { flex-direction: column; }
  .sidebar { width: auto; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .header-phones { text-align: left; }
  .site-header .brand img { width: 70px; height: 70px; }
  .brand-name { font-size: 22px; }
  .main-nav a { padding: 8px 12px; }
  .info td:first-child { width: auto; }
}
@media print { .topline, .main-nav, .sidebar { display: none; } .page { border: 0; } }
