:root {
  --bg: #f9faf7;
  --surface: #ffffff;
  --ink: #24382f;
  --muted: #5e6b64;
  --line: #dfe6e0;
  --accent: #2d4a3e;
  --accent-ink: #ffffff;
  --focus: #3d5a6c;
  --max: 76rem;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Playfair Display", "Iowan Old Style", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.05rem;
}
a { color: var(--accent); }
a:hover { color: var(--focus); }
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav { display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--accent); font-size: 0.95rem; font-weight: 600; }
.nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 0.35rem;
  font-weight: 600;
}
.site-main { flex: 1; padding-block: 1.75rem 3.25rem; }
.site-footer {
  background: #1c2421;
  color: #e7ece8;
  padding-block: 2rem;
  margin-top: auto;
}
.site-footer a { color: #d5e4dc; text-decoration: none; }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
}
.footer-brand { font-family: var(--display); font-size: 1.1rem; margin: 0 0 0.4rem; }
.footer-nav { display: grid; gap: 0.35rem; }
.muted { color: var(--muted); }
.site-footer .muted { color: #b7c3bc; }

.crumbs { font-size: 0.9rem; margin-bottom: 1.25rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs-sep { margin-inline: 0.4rem; }

h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.4rem; }

.lead { font-size: 1.12rem; max-width: 42rem; }
.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.75rem;
}
.grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 40rem) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

button.card {
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
button.card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.65rem;
}
.home-hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
@media (min-width: 56rem) {
  .home-hero { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
}
.home-hero-copy h1 { max-width: 20ch; }
.home-hero-copy .lead { margin: 0 0 1.15rem; }
.home-hero-copy .btn { border-radius: 0.35rem; padding: 0.7rem 1.15rem; }
.home-hero-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.55rem;
}
.home-finder-form { margin-bottom: 0.5rem; }
.home-finder-bar {
  display: grid;
  gap: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(45, 74, 62, 0.07);
}
@media (min-width: 64rem) {
  .home-finder-bar {
    grid-template-columns: minmax(16rem, 1.35fr) 1fr 1.15fr auto;
    align-items: end;
  }
  .home-finder-intro { align-self: center; }
}
.home-finder-intro {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.home-finder-pin {
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #e7eee9;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.home-finder-pin .task-icon { width: 1.2rem; height: 1.2rem; margin: 0; }
.home-finder-intro h2 {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
}
.home-finder-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.home-finder-bar label { min-width: 0; }
.home-finder-bar button[type="submit"] {
  white-space: nowrap;
  min-height: 2.55rem;
  padding-inline: 1.1rem;
  border-radius: 0.35rem;
}
.home-tasks-heading {
  text-align: center;
  margin: 2.15rem 0 1rem;
  font-size: 1.4rem;
}
.task-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 32rem) {
  .task-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 54rem) {
  .task-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 72rem) {
  .task-grid { grid-template-columns: repeat(7, 1fr); }
}
.task-card {
  min-height: 12.5rem;
  padding: 1.05rem 0.9rem 1.15rem;
  border-radius: 0.45rem;
}
.task-icon {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.task-card h3 {
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.task-card p { font-size: 0.84rem; line-height: 1.4; }

.btn, button[type="submit"]:not(.card) {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 0.35rem;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover, button[type="submit"]:not(.card):hover { background: var(--focus); color: #fff; }

form.stack { display: grid; gap: 0.75rem; max-width: 36rem; }
label { font-size: 0.9rem; font-weight: 650; display: grid; gap: 0.3rem; }
.input, .textarea, select {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: #fff;
  width: 100%;
}
.help { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.errorlist { color: #8b2e2e; font-size: 0.9rem; margin: 0; padding-left: 1.1rem; }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 0.9rem; }

.listing {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 1rem 1.05rem;
  margin-bottom: 0.75rem;
}
.listing.featured { border-color: #9bb5a8; box-shadow: 0 8px 20px rgba(45, 74, 62, 0.07); }
.badge-featured {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  letter-spacing: 0.06em;
}
.listing h3 a { color: inherit; text-decoration: none; }
.listing h3 a:hover { color: var(--accent); }
.btn-secondary {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: #e7eee9; color: var(--accent) !important; }
.provider-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.2rem 1.2rem 1.3rem;
  margin: 1.75rem 0;
}
.page-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem 1.2rem;
  margin: 0 0 1.75rem;
}
.page-cta h2 { margin: 0 0 0.4rem; }
.page-cta p { margin: 0 0 0.85rem; color: var(--muted); max-width: 42rem; }
.page-cta .btn { margin-top: 0.15rem; }
.listing .text-link {
  margin-left: 0.85rem;
  font-size: 0.95rem;
}
.listing .disclosure {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-right: 0.35rem;
  color: var(--muted);
}
.stats { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); padding: 1rem; border-radius: 0.35rem; }
.stat b { display: block; font-size: 1.6rem; font-family: var(--display); }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.95rem; }
table.data th, table.data td { text-align: left; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--line); }
.county-list { columns: 2; }
@media (min-width: 50rem) { .county-list { columns: 3; } }
.county-list li { break-inside: avoid; margin-bottom: 0.25rem; }
.empty { color: var(--muted); font-style: italic; }
.honeypot { position: absolute; left: -9999px; }
