:root {
  --bg: #f7f3ec;
  --bg-soft: #fbf8f2;
  --surface: #fffdf9;
  --surface-2: #f1ebe1;
  --surface-3: #e7dfd2;

  --text: #201913;
  --text-soft: #5e5145;
  --text-faint: #76685b;

  --heading: #1d1712;

  --soil-dark: #3f2d20;
  --soil: #624633;
  --soil-mid: #87624a;
  --soil-light: #b89072;

  --grass-dark: #365126;
  --grass: #4f7337;
  --grass-light: #7eaa57;

  --clay: #b35c2f;
  --clay-light: #d97d4a;

  --pipe: #226781;
  --pipe-soft: #d9ecf2;

  --line: #d6cbbb;
  --line-strong: #c8b9a3;

  --success: #476a34;
  --warning: #9b5629;

  --shadow-sm: 0 2px 6px rgba(40, 25, 14, 0.04);
  --shadow-md: 0 12px 28px rgba(40, 25, 14, 0.08);
  --shadow-lg: 0 22px 48px rgba(40, 25, 14, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --container: 1120px;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(126, 170, 87, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(179, 92, 47, 0.06), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--grass-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

a:hover,
a:focus {
  color: var(--soil-dark);
}

:focus-visible {
  outline: 3px solid rgba(79, 115, 55, 0.22);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 999;
  padding: 0.8rem 1rem;
  background: var(--soil-dark);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 203, 187, 0.85);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  color: var(--grass);
  font-size: 1.05rem;
}

.brand-text {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--soil-dark);
}

/* Hero */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-inner {
  padding-top: 2.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 390px);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  padding: 1rem 0;
}

.eyebrow,
.section-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--clay);
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 60ch;
  margin: 1.2rem 0 0;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.92rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.button-primary {
  background: var(--soil-dark);
  color: #fff;
  border: 1px solid var(--soil-dark);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--soil);
  color: #fff;
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--soil-dark);
  border: 1px solid var(--line-strong);
}

.button-secondary:hover,
.button-secondary:focus {
  background: #fff;
  color: var(--soil-dark);
  border-color: var(--soil-light);
  transform: translateY(-1px);
}

.hero-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 52ch;
  display: grid;
  gap: 0.7rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grass);
}

.hero-diagram-card {
  background:
    linear-gradient(180deg, rgba(63, 45, 32, 0.98), rgba(73, 52, 37, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem 1.25rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero-diagram-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 170, 87, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 170, 87, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.diagram-title {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-diagram {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.diagram-note {
  position: relative;
  z-index: 1;
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.65;
}

.diagram-note strong {
  color: #fff;
}

.d-house,
.d-tank,
.d-dbox {
  fill: none;
}

.d-house {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}

.d-tank {
  stroke: rgba(126, 170, 87, 0.95);
  stroke-width: 1.8;
}

.d-dbox {
  stroke: rgba(217, 125, 74, 0.95);
  stroke-width: 1.4;
}

.d-pipe-solid {
  stroke: rgba(81, 170, 208, 0.95);
  stroke-width: 3;
}

.d-pipe-dash {
  stroke: rgba(81, 170, 208, 0.7);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

.d-label,
.d-label-green,
.d-label-orange,
.d-label-soft {
  font-family: var(--font-body);
}

.d-label {
  font-size: 12px;
  fill: rgba(255, 255, 255, 0.76);
}

.d-label-green {
  font-size: 12px;
  fill: rgba(126, 170, 87, 1);
  font-weight: 700;
}

.d-label-orange {
  font-size: 9px;
  fill: rgba(217, 125, 74, 1);
  font-weight: 700;
}

.d-label-soft {
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.52);
}

.d-search-zone {
  fill: rgba(126, 170, 87, 0.08);
  stroke: rgba(126, 170, 87, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.d-clue {
  fill: rgba(217, 125, 74, 0.95);
}

.d-line-zone {
  fill: rgba(81, 170, 208, 0.08);
  stroke: rgba(81, 170, 208, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.d-field-zone {
  fill: rgba(126, 170, 87, 0.08);
  stroke: rgba(126, 170, 87, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.d-record-box {
  fill: rgba(126, 170, 87, 0.08);
  stroke: rgba(126, 170, 87, 0.7);
  stroke-width: 1.5;
}

.d-record-box-soft {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.2;
}

.d-record-zone {
  fill: rgba(81, 170, 208, 0.08);
  stroke: rgba(81, 170, 208, 0.38);
  stroke-width: 1.3;
  stroke-dasharray: 6 5;
}

/* Summary strip */

.summary-strip {
  padding: 0 0 1.3rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.summary-item {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.summary-item h2 {
  margin: 0 0 0.45rem;
  color: var(--soil-dark);
  font-size: 1rem;
  line-height: 1.25;
}

.summary-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-tinted {
  background: linear-gradient(180deg, #f2ebe0 0%, #f8f4ec 100%);
  border-top: 1px solid rgba(214, 203, 187, 0.75);
  border-bottom: 1px solid rgba(214, 203, 187, 0.75);
}

.section-soft {
  background: linear-gradient(180deg, #fbf8f1 0%, #f3eee4 100%);
  border-top: 1px solid rgba(214, 203, 187, 0.75);
  border-bottom: 1px solid rgba(214, 203, 187, 0.75);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading-left {
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  margin: 0;
  max-width: 16ch;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 62ch;
  margin: 0.95rem 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Step cards */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: var(--soil-dark);
  color: var(--grass-light);
  font-weight: 800;
  font-size: 1rem;
}

.step-card h3 {
  margin: 0 0 0.6rem;
  color: var(--soil-dark);
  font-size: 1.1rem;
  line-height: 1.3;
}

.step-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* Target cards */

.target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.target-card {
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.target-card h3 {
  margin: 0 0 0.5rem;
  color: var(--soil-dark);
  font-size: 1.12rem;
  line-height: 1.25;
}

.target-card p {
  margin: 0 0 0.9rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.target-card a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 115, 55, 0.28);
  padding-bottom: 2px;
}

/* Method cards */

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.method-card {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-top: 4px solid var(--soil-light);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.method-tag {
  margin: 0 0 0.55rem;
  color: var(--clay);
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.method-card h3 {
  margin: 0 0 0.55rem;
  color: var(--soil-dark);
  font-size: 1.08rem;
}

.method-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Records */

.records-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.records-copy p {
  max-width: 60ch;
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.records-box {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.records-box h3 {
  margin: 0 0 0.8rem;
  color: var(--soil-dark);
  font-size: 1.05rem;
}

.records-box ul {
  margin: 0;
  padding-left: 1.15rem;
}

.records-box li {
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 115, 55, 0.3);
  padding-bottom: 2px;
}

/* Search tool */

.search-tool {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr) auto;
  gap: 14px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.field label {
  color: var(--soil-dark);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(200, 185, 163, 0.95);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(40, 25, 14, 0.03);
}

.field input::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field select:focus {
  border-color: var(--grass);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 115, 55, 0.14);
}

.field-button {
  align-self: stretch;
}

.btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--soil-dark);
  border-radius: 12px;
  background: var(--soil-dark);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-search:hover,
.btn-search:focus {
  background: var(--soil);
  border-color: var(--soil);
  color: #fff;
  transform: translateY(-1px);
}

.search-result {
  margin-top: 1rem;
}

.state-result {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-left: 5px solid var(--grass);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1rem 1rem 1rem 1.05rem;
  box-shadow: var(--shadow-sm);
}

.state-result h3 {
  margin: 0 0 0.5rem;
  color: var(--soil-dark);
  font-size: 1.08rem;
  line-height: 1.25;
}

.state-result p {
  margin: 0 0 0.7rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.state-result p:last-child {
  margin-bottom: 0;
}

.state-result a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 115, 55, 0.3);
  padding-bottom: 2px;
}

/* Dynamic state results */

.results-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: -0.4rem 0 1.2rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.state-card {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.state-card:hover,
.state-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(135, 98, 74, 0.65);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.7rem;
}

.state-name {
  color: var(--soil-dark);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.state-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(79, 115, 55, 0.12);
  color: var(--grass-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agency-name {
  margin-bottom: 0.9rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.search-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.tag-address {
  background: rgba(79, 115, 55, 0.12);
  color: var(--grass-dark);
}

.tag-county {
  background: rgba(179, 92, 47, 0.12);
  color: var(--clay);
}

.tag-owner {
  background: rgba(34, 103, 129, 0.12);
  color: var(--pipe);
}

.tag-parcel {
  background: rgba(135, 98, 74, 0.14);
  color: var(--soil-dark);
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--soil-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.visit-btn:hover,
.visit-btn:focus {
  background: var(--bg-soft);
  border-color: var(--soil-light);
  color: var(--soil-dark);
  transform: translateY(-1px);
}

.no-results {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.no-results h3 {
  margin: 0 0 0.45rem;
  color: var(--soil-dark);
  font-size: 1.08rem;
}

.no-results p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Notices */

.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.notice-card {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-left: 5px solid var(--warning);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.notice-card h3 {
  margin: 0 0 0.6rem;
  color: var(--soil-dark);
  font-size: 1.05rem;
}

.notice-card p,
.notice-card li {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.notice-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

/* FAQ */

.faq-shell {
  max-width: 900px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: var(--soil-dark);
  font-weight: 700;
  font-size: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0;
  padding: 0 1.1rem 1.05rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* State feeder */

.section-feeder {
  background: linear-gradient(180deg, #f4eee5 0%, #fbf8f2 100%);
  border-top: 1px solid rgba(214, 203, 187, 0.78);
  border-bottom: 1px solid rgba(214, 203, 187, 0.78);
}

.feeder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feeder-card {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.feeder-tag {
  margin: 0 0 0.55rem;
  color: var(--clay);
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.feeder-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--soil-dark);
}

.feeder-card h3 a {
  color: inherit;
  text-decoration: none;
}

.feeder-card h3 a:hover,
.feeder-card h3 a:focus {
  color: var(--soil);
}

.feeder-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.feeder-note-box {
  margin-top: 1.25rem;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.feeder-note-box p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.94rem;
}

/* State bridge legacy */

.state-bridge {
  background: linear-gradient(180deg, #f0ece5 0%, #f6f2ea 100%);
  border-top: 1px solid rgba(214, 203, 187, 0.85);
}

.state-bridge-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.state-bridge-copy h2 {
  max-width: 14ch;
}

.state-bridge-copy p {
  max-width: 58ch;
  margin: 0.8rem 0 0;
  color: var(--text-soft);
}

.state-bridge-panel {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.state-bridge-panel h3 {
  margin: 0 0 0.7rem;
  color: var(--soil-dark);
  font-size: 1.05rem;
}

.state-bridge-panel ul {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
}

.state-bridge-panel li {
  color: var(--text-soft);
  margin-bottom: 0.55rem;
}

.bridge-note {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* Error page */

.error-hero {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.error-shell {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.error-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
  text-align: left;
}

.error-card {
  background: #ffffff;
  border: 1px solid rgba(28, 58, 44, 0.08);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 18px 45px rgba(28, 58, 44, 0.06);
}

.error-card h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}

.clean-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-links li + li {
  margin-top: 0.65rem;
}

/* Footer */

.site-footer {
  background: var(--soil-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.3rem 0 1.5rem;
}

.footer-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}

.footer-copy {
  max-width: 56ch;
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-legal p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.58);
}

/* Responsive */

@media (max-width: 1040px) {
  .hero-grid,
  .records-layout,
  .state-bridge-shell,
  .summary-grid,
  .step-grid,
  .target-grid,
  .method-grid,
  .notice-grid,
  .feeder-grid,
  .states-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-diagram-card {
    grid-column: span 2;
  }

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

  .field-button {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .error-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 1rem), var(--container));
  }

  .header-shell {
    min-height: 64px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 2rem 0 1.6rem;
  }

  .hero-grid,
  .summary-grid,
  .step-grid,
  .target-grid,
  .method-grid,
  .records-layout,
  .notice-grid,
  .state-bridge-shell,
  .feeder-grid,
  .states-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

  .footer-shell,
  .footer-legal {
    flex-direction: column;
  }

  .hero h1,
  .section-heading h2,
  .state-bridge-copy h2 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 3.2rem 0;
  }

  .summary-item,
  .step-card,
  .target-card,
  .method-card,
  .records-box,
  .notice-card,
  .faq-list details,
  .state-bridge-panel,
  .feeder-card,
  .feeder-note-box,
  .search-tool,
  .state-card,
  .no-results,
  .state-result {
    border-radius: 16px;
  }

  .notice-card,
  .state-result {
    border-radius: 0 16px 16px 0;
  }

  .footer-links {
    gap: 14px;
  }

  .field-button {
    grid-column: auto;
  }

  .results-count {
    margin-top: -0.2rem;
  }
}
/* ==========================================
   Septic Records Search Tool
   UI layer for records finder component
========================================== */

.records-search-shell {
  display: grid;
  gap: 1.35rem;
}

.records-search-panel {
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.records-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.records-search-field {
  display: grid;
  gap: 0.45rem;
}

.records-search-field label {
  color: var(--soil-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.records-search-field select,
.records-search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.82rem 0.95rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  line-height: 1.2;
  appearance: none;
}

.records-search-field select:focus,
.records-search-field input:focus {
  border-color: var(--grass);
  outline: 3px solid rgba(79, 115, 55, 0.14);
  outline-offset: 0;
}

.records-search-button {
  min-height: 48px;
  padding: 0.92rem 1.25rem;
  border: 1px solid var(--soil-dark);
  border-radius: 999px;
  background: var(--soil-dark);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.records-search-button:hover,
.records-search-button:focus {
  background: var(--soil);
  border-color: var(--soil);
  transform: translateY(-1px);
}

.records-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.records-search-meta p,
.records-search-meta span {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.records-search-title {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.state-result {
  background: linear-gradient(180deg, #fffdf9 0%, #f7f1e7 100%);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-left: 5px solid var(--grass);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.state-result h3 {
  margin: 0 0 0.45rem;
  color: var(--soil-dark);
  font-size: 1.08rem;
  line-height: 1.25;
}

.state-result p {
  margin: 0 0 0.7rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.state-result p:last-child {
  margin-bottom: 0;
}

.state-result a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 115, 55, 0.3);
  padding-bottom: 2px;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.state-card {
  display: grid;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid rgba(214, 203, 187, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.05rem;
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.state-name {
  color: var(--soil-dark);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
}

.state-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soil-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agency-name {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.search-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.tag-address {
  background: rgba(34, 103, 129, 0.1);
  border-color: rgba(34, 103, 129, 0.18);
  color: var(--pipe);
}

.tag-county {
  background: rgba(126, 170, 87, 0.12);
  border-color: rgba(126, 170, 87, 0.22);
  color: var(--grass-dark);
}

.tag-owner {
  background: rgba(179, 92, 47, 0.12);
  border-color: rgba(179, 92, 47, 0.22);
  color: var(--clay);
}

.tag-parcel {
  background: rgba(98, 70, 51, 0.1);
  border-color: rgba(98, 70, 51, 0.18);
  color: var(--soil-dark);
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--grass-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.visit-btn:hover,
.visit-btn:focus {
  background: var(--grass);
  color: #fff;
  transform: translateY(-1px);
}

.no-results {
  display: none;
  background: rgba(255, 253, 249, 0.84);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (max-width: 1040px) {
  .states-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .records-search-button {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .records-search-controls,
  .states-grid {
    grid-template-columns: 1fr;
  }

  .records-search-button {
    grid-column: auto;
    width: 100%;
  }

  .records-search-panel,
  .state-card,
  .state-result,
  .no-results {
    border-radius: 16px;
  }

  .state-result {
    border-radius: 0 16px 16px 0;
  }

  .records-search-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
