:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --paper: #fffdfa;
  --ink: #17211d;
  --muted: #5f6c66;
  --line: #d9ded2;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --coral: #d94f2b;
  --gold: #b98016;
  --green: #426b34;
  --shadow: 0 18px 48px rgba(23, 33, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.9), rgba(66, 107, 52, 0.76)),
    url("https://images.unsplash.com/photo-1537996194471-e657df975ab4?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
}

.quick-menu {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-menu a {
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 14px;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
  padding: 64px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
  color: currentColor;
  opacity: 0.76;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  max-width: 670px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-search {
  width: min(760px, 100%);
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 170px 112px;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

input,
select,
button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  font: inherit;
}

input,
select {
  width: 100%;
  background: #f4f6f0;
  color: var(--ink);
  padding: 0 14px;
}

button,
.card-link {
  background: var(--coral);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}

button:hover,
.quick-menu a:hover,
.pill:hover,
.card-link:hover,
.hero-panel a:hover {
  filter: brightness(0.96);
}

.hero-panel {
  display: flex;
  flex-wrap: wrap;
  align-content: end;
  gap: 10px;
}

.hero-panel a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
  text-decoration: none;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.band {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.category-grid,
.district-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card,
.district-card,
.result-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-card,
.district-card {
  min-height: 148px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card strong,
.district-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.category-card p,
.district-card p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.category-card .card-link,
.district-card .card-link {
  align-self: flex-start;
  min-height: 38px;
  background: var(--teal);
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
}

.district-card:nth-child(3n) .card-link,
.category-card:nth-child(3n) .card-link {
  background: var(--green);
}

.district-card:nth-child(4n) .card-link,
.category-card:nth-child(4n) .card-link {
  background: var(--gold);
}

.search-section {
  padding-top: 28px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
}

.results-section {
  padding-top: 32px;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 6px 12px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.results-list {
  display: grid;
  gap: 10px;
}

.result-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.result-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-title h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: #e6f3f1;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.result-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.open-link {
  text-decoration: none;
  background: var(--teal);
  color: #fff;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 800;
  white-space: nowrap;
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.seo-text {
  max-width: 880px;
  color: var(--muted);
}

.seo-text h2 {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .category-grid,
  .district-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
  }

  .quick-menu {
    padding: 10px 0 0;
  }

  .hero {
    padding-bottom: 56px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .band {
    padding-inline: 16px;
  }

  .section-head,
  .results-toolbar,
  .result-card {
    display: block;
  }

  .category-grid,
  .district-grid {
    grid-template-columns: 1fr;
  }

  .status {
    margin-top: 12px;
  }

  .open-link {
    margin-top: 14px;
    width: 100%;
  }
}
