:root {
  --max: 1180px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Fira Sans", Arial, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

a { color: var(--hawk-red); }
.skip-link {
  position: absolute;
  top: .75rem;
  left: 1rem;
  z-index: 10;
  padding: .5rem .75rem;
  color: #fff;
  background: var(--hawk-red);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.topline { height: 5px; background: var(--dark-grey); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  min-height: 74px;
  margin: 0 auto;
  padding: .65rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; color: #3b3d40; text-decoration: none; }
.brand-logo { display: block; width: 82px; height: auto; }
.brand-text { display: grid; gap: 1px; min-width: 0; }
.brand-text strong { font-size: .95rem; line-height: 1.2; }
.brand-text span { color: var(--muted); font-size: .82rem; }
.site-nav { display: flex; gap: 1.25rem; font-size: .9rem; font-weight: 700; }
.site-nav a { color: #3b3d40; text-decoration: none; }
.site-nav a:hover { color: var(--hawk-red); }
.site-nav a[aria-current="page"] { color: var(--hawk-red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35rem; }

.page-title {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #c5c5c2;
}
.page-title::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(49, 51, 54, .14) 0, rgba(49, 51, 54, .14) 1px, transparent 1px, transparent 10px);
}
.page-title-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 1.45rem 1.25rem 1.55rem; }
.page-title h1 { width: fit-content; max-width: 800px; margin: 0; padding: .12em .25em; color: #3b3d40; background: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; text-transform: uppercase; }
.page-title p:last-child { width: fit-content; margin: .35rem 0 0; padding: .12rem .35rem; color: #444; background: #fff; }
.eyebrow { width: fit-content; margin: 0 0 .3rem; padding: .08rem .35rem; color: #444; background: #fff; font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.page-title-compact .page-title-inner { padding-top: 2.5rem; padding-bottom: 2.6rem; }
.page-title-compact h1 { font-size: 2.15rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3.5rem; }
.search-section { margin-bottom: 1rem; padding: 1.25rem; background: #f6f6f4; border: 1px solid var(--line); border-top: 5px solid var(--dark-grey); }
.search-grid { display: grid; grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(10rem, 1fr)) auto; gap: 1rem; align-items: end; }
.form-group { display: grid; gap: .35rem; }
.form-group label { color: #3b3d40; font-size: .92rem; font-weight: 800; }
.form-group input, .form-group select { width: 100%; min-height: 46px; height: 46px; padding: .55rem .7rem; background: #fff; border: 1px solid #b8b8b8; border-radius: 0; }
.form-group select {
  appearance: none;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #3b3d40 50%),
    linear-gradient(135deg, #3b3d40 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 20px,
    calc(100% - 12px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}
.form-group input:focus, .form-group select:focus { border-color: var(--hawk-red); outline: 2px solid rgba(201, 0, 25, .18); }
.button-group { display: flex; gap: .6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55rem .8rem; border: 1px solid var(--dark-grey); border-radius: 0; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-search { color: #fff; background: var(--dark-grey); }
.btn-search:hover { background: #25282a; }
.btn-reset { color: var(--ink); background: #fff; border-color: #aaa; }
.btn-reset:hover { background: #e8e8e6; }
.active-filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: -.25rem 0 1rem; padding: .65rem .8rem; background: #fff; border: 1px solid var(--line); font-size: .8rem; }
.active-filter-bar strong { color: #3b3d40; }
.active-filter-bar a { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .45rem; color: var(--ink); background: var(--soft); border: 1px solid #bbb; text-decoration: none; }
.active-filter-bar a:hover { border-color: var(--hawk-red); }
.active-filter-bar a span { color: var(--hawk-red); font-size: 1rem; line-height: 1; }
.active-filter-bar .clear-filters { padding-inline: .2rem; color: var(--hawk-red); background: transparent; border: 0; font-weight: 700; text-decoration: underline; }

.stats { display: flex; gap: 0; margin-bottom: 1rem; border: 1px solid var(--line); background: #fff; }
.stat-item { display: flex; align-items: baseline; gap: .45rem; flex: 1; padding: .65rem 1rem; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-number { color: var(--hawk-red); font-size: 1.35rem; font-weight: 800; }
.stat-label { color: var(--muted); font-size: .82rem; }

.facilities-section { border-top: 4px solid var(--dark-grey); }
.facilities-list { display: grid; }
.facility-item { padding: 1.15rem 1rem; border-bottom: 1px solid var(--line); border-left: 5px solid var(--mid); }
.facility-item:hover { background: #f7f7f5; }
.facility-header { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 1rem; margin-bottom: .75rem; }
.facility-name { margin: 0; color: #292b2d; font-size: 1.08rem; line-height: 1.3; }
.facility-tags { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .35rem; }
.facility-type,
.facility-state { padding: .28rem .5rem; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.facility-type { color: #fff; background: var(--dark-grey); }
.facility-state { color: #3b3d40; background: var(--soft); border: 1px solid var(--line); }
.facility-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.5rem; color: var(--muted); font-size: .88rem; }
.detail-item { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .5rem; }
.detail-label { color: #3b3d40; font-weight: 700; }
.detail-value { min-width: 0; overflow-wrap: anywhere; }
.detail-value a { text-decoration: none; }
.detail-value a:hover { text-decoration: underline; }
.map-detail-link { display: inline-block; margin-top: .75rem; font-size: .84rem; font-weight: 700; text-decoration: none; }
.map-detail-link:hover { text-decoration: underline; }
.list-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; border-top: 1px solid var(--line); }
.list-pagination a { min-width: 5rem; padding: .45rem .7rem; color: var(--ink); background: #fff; border: 1px solid #aaa; font-weight: 700; text-align: center; text-decoration: none; }
.list-pagination a:hover { background: var(--soft); }
.list-pagination span { color: var(--muted); font-size: .86rem; }
.no-results { padding: 3rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.no-results h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.no-results p { margin: 0; color: var(--muted); }

.legal-content {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.legal-content section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin: 0 0 .8rem; color: var(--header-text); }
.legal-content p { margin: 0 0 .75rem; }
.legal-content p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .button-group { align-self: end; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 66px; padding: .5rem .75rem; }
  .brand-logo { width: 68px; }
  .brand-text strong { max-width: 180px; font-size: .82rem; }
  .site-nav a:last-child { display: none; }
  .page-title-inner { padding: 1.1rem .75rem 1.2rem; }
  .eyebrow { display: none; }
  .container { padding: 1rem .75rem 2.5rem; }
  .search-grid { grid-template-columns: 1fr; }
  .button-group .btn { flex: 1; }
  .stats { align-items: stretch; }
  .stat-item { align-items: center; flex-direction: column; gap: 0; padding: .55rem .35rem; text-align: center; }
  .facility-header { grid-template-columns: 1fr; gap: .5rem; }
  .facility-tags { justify-content: flex-start; }
  .facility-type,
  .facility-state { white-space: normal; }
  .facility-details { grid-template-columns: 1fr; }
  .detail-item { grid-template-columns: 5.5rem minmax(0, 1fr); }
}

@media print {
  @page { margin: 15mm; }

  body { color: #000; font-size: 10.5pt; }

  .topline,
  .site-header,
  .search-section,
  .active-filter-bar,
  .site-footer,
  .map-detail-link { display: none !important; }

  .page-title { border: 0; }
  .page-title::after { display: none; }
  .page-title-inner,
  .container { max-width: none; padding: 0; }
  .page-title-inner { margin-bottom: 8mm; }
  .page-title h1 { max-width: none; padding: 0; font-size: 20pt; }
  .page-title p,
  .eyebrow { padding-inline: 0; }

  .stats { margin-bottom: 7mm; break-inside: avoid; }
  .facilities-section { border-top-color: #555; }
  .facility-item { break-inside: avoid; padding: 5mm 2mm; border-left: 0; }
  .facility-item:hover { background: transparent; }
  .facility-type { color: #000; background: transparent; border: 1px solid #777; }
  .detail-value a { color: #000; }
}
