/* STL Sewer Guide
   Palette follows utility locate marking: sewer = green. Brick red is reserved for warnings. */
:root {
  --ink: #172229;
  --paper: #F3F5F4;
  --tint: #E4EAE8;
  --rule: #B9C4C0;
  --green: #17794E;
  --green-dark: #0F5A3A;
  --brick: #8C2F27;
  --soil: #DDE3E0;
  --muted: #46555D;
  --head: Rockwell, "Rockwell Nova", "Roboto Slab", "Zilla Slab", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--body);
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #1D6FD6;
  outline-offset: 2px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 700px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--ink); padding: 10px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 28px; padding-top: 14px; padding-bottom: 14px;
}
.wordmark {
  font: 700 1.25rem/1 var(--head); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: 0.95rem; }
.site-nav a { color: #E6ECEA; text-decoration: none; padding: 4px 0; }
.site-nav a:hover { color: #fff; text-decoration: underline; }
.site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .nav-cta {
  background: #fff; color: var(--ink); padding: 7px 14px; border-radius: 2px; font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--tint); color: var(--ink); text-decoration: none; }

/* Type */
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; max-width: 62ch; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5em; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 1.2em; }
.crumbs a { color: var(--muted); }

/* Page layout */
.band { padding: 52px 0; }
.band.tint { background: var(--tint); }
.page { padding: 40px 0 56px; }
.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Hero */
.hero { padding: 44px 0 52px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.hero figure { margin: 0; }
.hero figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.hero svg { width: 100%; display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

.btn {
  display: inline-block; font: 700 1rem/1.2 var(--body);
  background: var(--green); color: #fff; padding: 14px 22px;
  border: 2px solid var(--green); border-radius: 2px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }

/* Lists with rules instead of cards */
.rowlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rowlist li { border-bottom: 1px solid var(--rule); }
.rowlist a {
  display: block; padding: 16px 4px; text-decoration: none; color: var(--ink);
}
.rowlist a:hover { background: rgba(255,255,255,0.6); }
.rowlist strong { font-family: var(--head); font-size: 1.2rem; display: block; }
.rowlist span { color: var(--muted); font-size: 0.98rem; }

/* Steps: this is a true sequence, so the numbers carry meaning */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 68ch; }
.steps li { counter-increment: step; padding: 0 0 20px 56px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff; font: 700 1.1rem/38px var(--head); text-align: center;
}
.steps strong { font-family: var(--head); font-size: 1.15rem; display: block; margin-bottom: 2px; }

/* Notes and alerts */
.note { border-left: 4px solid var(--green); padding: 4px 0 4px 16px; margin: 1.4em 0; max-width: 68ch; }
.alert { border-left: 4px solid var(--brick); padding: 4px 0 4px 16px; margin: 1.2em 0; max-width: 68ch; }
.alert strong { color: var(--brick); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1em 0 1.6em; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.97rem; }
caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); }
thead th { border-bottom: 2px solid var(--ink); font-size: 0.92rem; }
tbody th { font-family: var(--head); white-space: nowrap; }

/* FAQ */
.faq h3 { margin-top: 1.2em; }

/* Sources */
.sources { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--muted); }
.sources h2 { font-size: 1.1rem; margin: 0 0 0.5em; }
.sources ul { margin: 0; padding-left: 1.2em; }

/* Lead form */
.help { background: var(--tint); padding: 52px 0 60px; border-top: 3px solid var(--ink); }
.help h2 { margin-top: 0; }
.help form { margin-top: 1.4em; max-width: 720px; }
.fields { display: grid; gap: 16px 20px; }
@media (min-width: 700px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 4px; font-size: 0.97rem; }
.field .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--ink); border-radius: 2px; padding: 11px 12px;
}
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 6px; font-size: 0.88rem; line-height: 1.5; }
.consent input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.fine { font-size: 0.85rem; color: var(--muted); max-width: 68ch; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: #D5DEDB; padding: 36px 0 44px; font-size: 0.9rem; }
.site-footer a { color: #fff; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 16px; }
.site-footer p { max-width: 74ch; margin-bottom: 0.7em; }
