@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;600;700;800&display=swap");

:root {
  --ink: #1b1b1b;
  --muted: #565c65;
  --border: #dfe1e2;
  --surface: #ffffff;
  --blue: #005ea8;
  --blue-dark: #1a4480;
  --navy: #112f4e;
  --red: #cf172b;
  --gold: #fdb81e;
  --green: #2e7044;
  --focus: #2491ff;
  --shadow: 0 12px 30px rgba(17, 47, 78, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-family: "Source Sans 3", "Source Sans Pro Web", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.5;
}

body {
  margin: 0;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(17, 47, 78, 0.72);
  backdrop-filter: blur(2px);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.page-loader.is-complete {
  opacity: 0;
  visibility: hidden;
}

.page-loader-panel {
  width: min(440px, calc(100% - 40px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.page-loader-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-loader-panel strong {
  display: block;
  margin-bottom: 16px;
  font-size: 24px;
}

.page-loader-bar {
  height: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #dfe1e2;
}

.page-loader-bar span {
  display: block;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  transition: width 0.32s ease;
}

.page-loader:not(.is-complete) .page-loader-bar span {
  animation: loader-pulse 1.05s ease-in-out infinite;
}

.page-loader-panel [data-loader-count] {
  color: var(--muted);
  font-size: 15px;
}

.page-loader.is-failed .page-loader-bar span {
  background: var(--red);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 42px));
  margin: 0 auto;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  clip: auto;
  z-index: 20;
  padding: 10px 14px;
  background: #ffffff;
  border: 3px solid var(--focus);
}

.official-banner {
  background: #eeeeee;
  border-bottom: 0;
  font-size: 14px;
}

.banner-inner {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.banner-copy,
.banner-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-links {
  gap: 28px;
}

.banner-links a {
  font-weight: 700;
  font-size: 14px;
}

.official-banner button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-weight: 700;
}

.agency-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.agency-inner {
  min-height: 154px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.agency-home {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  text-decoration: none;
}

.agency-logo {
  width: 139px;
  height: 80px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.agency-name {
  max-width: 560px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.site-search {
  display: flex;
  align-items: stretch;
  width: min(390px, 36vw);
}

.site-search input {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #1b1b1b;
  border-right: 0;
  border-radius: 0;
  color: var(--ink);
}

.site-search button {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #1b1b1b;
  background: #1b1b1b;
  color: #ffffff;
  font-weight: 700;
}

.site-search button:hover,
.site-search button:focus {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.field input,
.field select {
  border: 1px solid #d0d7de;
  border-radius: 4px;
}

.primary-nav {
  background: #ffffff;
  border-bottom: 0;
  box-shadow: none;
  position: relative;
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
  min-height: 76px;
  border-top: 1px solid #b8b8b8;
}

.nav-item {
  position: relative;
  flex: 0 0 auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 0 18px;
  border-top: 4px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.nav-link span {
  font-size: 13px;
  transform: rotate(180deg);
}

.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link {
  border-top-color: #1b1b1b;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 0 0 1px #dfe1e2;
}

.mega-panel {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  min-width: 280px;
  padding: 18px 18px 16px;
  background: #ffffff;
  border: 1px solid #dfe1e2;
  box-shadow: var(--shadow);
}

.nav-item-wide .mega-panel {
  min-width: 560px;
  right: 0;
  left: auto;
}

.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel {
  display: block;
}

.mega-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #dfe1e2;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
}

.mega-panel a:hover,
.mega-panel a:focus {
  color: var(--blue-dark);
  text-decoration: underline;
}

.mega-panel .mega-feature {
  font-weight: 800;
}

.mega-panel a:last-child,
.mega-columns div a:last-child {
  border-bottom: 0;
}

.mega-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.content-title {
  margin: 30px auto 0;
  padding: 58px 48px 54px;
  width: min(1180px, calc(100% - 42px));
  background:
    linear-gradient(90deg, rgba(0, 95, 158, 0.95), rgba(0, 101, 171, 0.86)),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.18) 0 84px, transparent 86px),
    linear-gradient(135deg, rgba(255,255,255,0.08) 0 14%, transparent 14% 100%);
  color: #ffffff;
  border-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #d5ebfb;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.database-section {
  padding: 34px 0 84px;
}

.database-section > .container {
  border-top: 4px solid var(--blue);
  padding-top: 18px;
}

.app-view-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
}

.app-view-tabs button {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-left: 0;
  background: #ffffff;
  color: #3d4551;
  font-size: 14px;
  font-weight: 600;
}

.app-view-tabs button:first-child {
  border-left: 1px solid var(--border);
  border-radius: 4px 0 0 4px;
}

.app-view-tabs button:last-child {
  border-radius: 0 4px 4px 0;
}

.app-view-tabs .is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.search-card,
.results-controls,
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
}

.search-card {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.section-heading,
.results-heading,
.table-footer,
.subscribe-inner,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.results-heading h2 {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.section-heading p,
.results-heading p,
.results-controls p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-heading span {
  flex: 0 0 auto;
  color: #3d4551;
  font-size: 15px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
legend {
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-color: #d0d7de;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
}

.field input:focus,
.field select:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--blue);
}

.field-wide {
  margin-top: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.clear-button,
.table-footer button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.clear-button {
  width: 100%;
  margin-top: 14px;
  background: var(--navy);
}

.clear-button:hover,
.clear-button:focus {
  background: var(--blue);
}

.results-heading {
  margin-top: 28px;
  padding: 0;
  border: 0;
}

.results-heading strong {
  color: var(--blue-dark);
}

.results-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
}

.results-actions strong {
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
}

.export-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.export-link:hover,
.export-link:focus {
  color: var(--blue-dark);
  text-decoration: underline;
}

.export-link:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  text-decoration: none;
}

.export-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.results-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 0.95fr);
  gap: 16px;
  margin-top: 14px;
  padding: 12px 14px;
  align-items: center;
}

.sort-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}

fieldset {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.table-wrap {
  margin-top: 18px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #ffffff;
  color: #334155;
  font-weight: 800;
}

tbody tr:hover,
.clickable-row:focus {
  background: #f7f9fa;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:focus {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.badge.issued {
  color: #3d2372;
  background: #eee5ff;
}

.badge.pending {
  color: #6f3f00;
  background: #fff2d2;
}

.badge.closed {
  color: #6b1f1a;
  background: #fbe8e7;
}

.badge.suspended {
  color: #ffffff;
  background: #4d1727;
}

.record-link {
  display: inline;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clickable-row:hover .record-link,
.clickable-row:focus .record-link {
  color: var(--blue-dark);
}

.account-cell {
  font-weight: 700;
}

.table-footer {
  margin-top: 12px;
  padding-top: 0;
}

.map-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-top: 18px;
}

.map-helper {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  background: #f7f9fa;
  color: #3d4551;
  font-size: 14px;
  font-weight: 700;
}

.map-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e5edf3;
}

.leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.quiet-base-map {
  opacity: 0.72;
  filter: grayscale(1) saturate(0.08) contrast(0.95) brightness(0.58);
}

.leaflet-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--marker-color, var(--blue));
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.leaflet-marker.is-map-highlighted {
  background: #112f4e !important;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow:
    0 0 0 4px #2491ff,
    0 0 0 8px rgba(17, 47, 78, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.42);
  transform: scale(1.42);
}

.map-tooltip {
  color: var(--ink);
  font-family: "Noto Sans", Arial, sans-serif;
}

.map-popup {
  min-width: 220px;
}

.map-popup p,
.map-popup-more {
  margin: 4px 0 8px;
  color: var(--muted);
}

.map-popup-list {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
}

.map-popup-list button {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--blue);
  text-align: left;
  font-weight: 700;
}

.map-blank {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 500;
  width: min(520px, calc(100% - 40px));
  padding: 24px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
}

.map-blank h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.map-blank p {
  margin: 0;
  color: var(--muted);
}

.map-marker-layer {
  position: absolute;
  inset: 24px 22px 24px;
  z-index: 4;
}

.map-marker {
  position: absolute;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--marker-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.map-marker:hover,
.map-marker:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.map-legend {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 36px);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.legend-marker {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--marker-color);
}

.map-results {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.map-results h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.map-results p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.map-location-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
}

.map-state-group,
.map-city-group {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
}

.map-state-group > summary,
.map-city-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  font-weight: 700;
}

.map-state-group > summary {
  background: #f6f8fa;
}

.map-city-group {
  margin: 8px;
}

.map-city-group > summary {
  background: #005ea8;
  color: #ffffff;
  font-size: 13px;
}

.map-city-group[open] > summary {
  background: #1a4480;
}

.map-city-group > summary:hover,
.map-city-group > summary:focus {
  background: #1a4480;
  outline: 2px solid #2491ff;
  outline-offset: -2px;
}

.map-state-group summary span:last-child,
.map-state-group summary span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 500;
}

.map-city-group summary span:last-child {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.map-business-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.map-business-list button {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.map-business-list button:first-child {
  border-top: 0;
}

.map-business-list button:hover,
.map-business-list button:focus,
.map-popup-list button:hover,
.map-popup-list button:focus {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.map-business-list strong,
.map-business-list span {
  font-size: 13px;
}

.map-business-list span {
  flex: 0 0 auto;
  color: var(--muted);
}

.table-footer span {
  color: var(--muted);
  font-size: 14px;
}

.table-footer button {
  min-width: 220px;
  background: #005ea8;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #8d9297;
}

.pagination button:hover,
.pagination button:focus {
  border-color: var(--blue);
  color: var(--blue);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination [data-export] {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 30px 24px;
  background: rgba(31, 41, 55, 0.5);
}

.modal-overlay[hidden] {
  display: none;
}

.detail-modal {
  width: min(900px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  max-width: 760px;
  margin: 0 0 6px;
  color: #1b1b1b;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.14;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.modal-close {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
  background: #f7f9fa;
  border-color: var(--red);
  color: var(--red);
}

.detail-grid {
  display: grid;
  gap: 10px;
  padding: 22px 30px 30px;
}

.qr-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid #c7d6ea;
  border-radius: 8px;
  background: #f8fafc;
}

.qr-panel h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.qr-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.qr-panel img {
  width: 104px;
  height: 104px;
  display: block;
  padding: 6px;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  background: #ffffff;
}

.qr-panel button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: #ffffff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.qr-panel button:hover,
.qr-panel button:focus {
  background: var(--blue);
  color: #ffffff;
}

.detail-section {
  overflow: hidden;
  border: 1px solid #c7d6ea;
  border-radius: 8px;
  background: #ffffff;
}

.detail-section h3 {
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid #c7d6ea;
  background: transparent;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-section dl {
  margin: 0;
}

.detail-section dl div {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  padding: 11px 22px;
  border-bottom: 0;
}

.detail-section dl div:last-child {
  border-bottom: 0;
}

.detail-section dt {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.detail-section dd {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
}

.download-pdf-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.download-pdf-button:hover,
.download-pdf-button:focus {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.download-pdf-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.subscribe-band {
  display: none;
}

.subscribe-band p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}

.subscribe-band a {
  padding: 12px 18px;
  background: var(--red);
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
}

.agency-footer {
  padding: 68px 0 54px;
  background: #1b1b1b;
  color: #ffffff;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 42px;
  border-bottom: 1px solid #3d4551;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo-row img {
  width: 112px;
  height: auto;
  object-fit: contain;
}

.footer-logo-row h2 {
  max-width: 470px;
  margin: 0;
  font-size: 26px;
  line-height: 1.14;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #696969;
  color: #ffffff;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus {
  background: var(--red);
  transform: translateY(-1px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.footer-grid {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 1.1fr 1fr;
  gap: 54px;
  padding: 42px 0 48px;
  border-bottom: 1px solid #3d4551;
}

.agency-footer h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
}

.agency-footer p {
  margin-bottom: 8px;
  color: #d0d0d0;
  font-size: 14px;
}

.agency-footer nav {
  display: grid;
  gap: 8px;
}

.agency-footer a {
  color: #d0d0d0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.agency-footer a:hover {
  text-decoration: underline;
}

.maryland-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 42px;
}

.maryland-footer img {
  width: 148px;
  height: auto;
  display: block;
}

.maryland-footer span {
  color: #d0d0d0;
  font-size: 14px;
}

@media (max-width: 860px) {
  .agency-inner,
  .header-actions,
  .section-heading,
  .results-heading,
  .table-footer,
  .subscribe-inner,
  .footer-brand,
  .footer-grid,
  .maryland-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .agency-inner {
    min-height: auto;
    padding: 28px 0;
  }

  .agency-name {
    font-size: 22px;
  }

  .content-title {
    margin-top: 28px;
    padding: 36px 24px;
  }

  .site-search {
    width: 100%;
  }

  .site-search button {
    padding: 0 18px;
  }

  .nav-inner {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    padding: 10px 0;
    overflow: visible;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    min-height: 48px;
    padding: 0;
    border-top: 0;
    border-bottom: 1px solid #dfe1e2;
  }

  .nav-item:hover .nav-link,
  .nav-item:focus-within .nav-link {
    box-shadow: none;
  }

  .mega-panel,
  .nav-item-wide .mega-panel {
    position: static;
    display: block;
    min-width: 0;
    width: 100%;
    padding: 0 0 14px 18px;
    border: 0;
    box-shadow: none;
  }

  .mega-panel a {
    padding: 10px 0;
    font-size: 15px;
  }

  .mega-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .filter-grid,
  .results-controls,
  .sort-controls,
  .map-view,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .results-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .table-footer button {
    width: 100%;
  }

  .pagination {
    width: 100%;
    justify-content: stretch;
  }

  .pagination button,
  .pagination [data-export] {
    width: 100%;
  }

  .detail-section dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .qr-panel {
    grid-template-columns: 1fr;
  }

  .qr-panel img {
    width: 132px;
    height: 132px;
  }
}

@keyframes loader-pulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.22);
  }
  100% {
    filter: brightness(1);
  }
}
