/* Septic Pump Index — Shortell Designs, 2026-08-29
   Calm, official, mobile-first, high contrast. No hero photos. Rebranded from well-lab-index visual language. */

:root {
  --ink: #141414;
  --ink-soft: #2a2a2a;
  --paper: #f6f3ea;
  --paper-2: #efe9db;
  --rule: #c9c0ae;
  --navy: #123048;
  --navy-2: #0c2234;
  --link: #0a4a82;
  --link-visited: #4a2f6b;
  --forest: #1e4d3a;
  --warn-bg: #f3e6c8;
  --warn-ink: #5c3a08;
  --ok-bg: #dce9e1;
  --focus: #c45c00;
  --max: 46rem;
  --wide: 72rem;
}

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

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

header.site {
  background: var(--navy);
  color: #f6f3ea;
  border-bottom: 4px solid var(--forest);
}

.brand {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.1rem 0.4rem;
}

.brand p.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7c9a4;
}

.brand h1 {
  margin: 0.15rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand h1 a {
  color: inherit;
  text-decoration: none;
}

.brand .tag {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.92rem;
  color: #e8e0cf;
  max-width: 38rem;
}

nav.primary {
  background: var(--navy-2);
}

nav.primary ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.35rem 0.7rem;
  max-width: var(--wide);
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}

nav.primary a {
  display: inline-block;
  color: #f6f3ea;
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 2px;
  font-size: 0.88rem;
}

nav.primary a:hover,
nav.primary a:focus {
  background: #1d4a68;
  outline: 2px solid #f6d27a;
  outline-offset: 1px;
}

nav.primary a[aria-current="page"] {
  background: var(--forest);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.1rem 3rem;
}

main.wide { max-width: var(--wide); }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--navy);
}

h1.page {
  font-size: 1.85rem;
  margin: 0 0 0.4rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}

.meta {
  font-size: 0.85rem;
  color: #4a463c;
  margin: 0 0 1.2rem;
}

h2 {
  font-size: 1.28rem;
  margin: 1.8rem 0 0.55rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.05rem;
  margin: 1.2rem 0 0.4rem;
  color: var(--forest);
}

p { margin: 0 0 0.9rem; }

a {
  color: var(--link);
  text-underline-offset: 2px;
}
a:visited { color: var(--link-visited); }
a:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

.flow {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 1.5rem;
}

.flow article {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--forest);
  padding: 0.85rem 1rem;
}

.flow article h2 {
  border: 0;
  margin: 0 0 0.3rem;
  padding: 0;
  font-size: 1.05rem;
}

.flow .step {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
}

.cards {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 640px) {
  .cards.two { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr 1fr; }
  h1.page { font-size: 2.05rem; }
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
}

.card h2, .card h3 {
  margin-top: 0;
  border: 0;
  padding: 0;
}

.callout {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid #d7b56a;
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.3rem;
}

.callout.ok {
  background: var(--ok-bg);
  color: #143328;
  border-color: #8fb59e;
}

.callout h2, .callout h3 {
  color: inherit;
  border: 0;
  margin-top: 0;
  padding: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  border: 1px solid var(--rule);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 40rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--rule);
}

th {
  background: var(--navy);
  color: #f6f3ea;
  font-weight: 600;
  position: sticky;
  top: 0;
}

tr:nth-child(even) td { background: var(--paper-2); }

caption {
  text-align: left;
  font-weight: 600;
  padding: 0.5rem 0.55rem;
  caption-side: top;
  background: var(--paper-2);
}

.yes { font-weight: 700; color: var(--forest); }
.sub { color: #5c3a08; }
.no { color: #666; }
.unknown { color: #5c3a08; font-style: italic; }

.cite {
  font-size: 0.88rem;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.cite ol { margin-bottom: 0; }

footer.site {
  background: var(--navy-2);
  color: #e8e0cf;
  padding: 1.4rem 1.1rem 2.2rem;
  font-size: 0.88rem;
}

footer.site .inner {
  max-width: var(--wide);
  margin: 0 auto;
}

footer.site a { color: #9ec9ef; }
footer.site a:visited { color: #cbb6e4; }

footer.site p { margin: 0 0 0.55rem; }

.disclaimer {
  border-top: 1px solid #3a5568;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  color: #d2cbb8;
}

.state-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.state-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding: 0.45rem 0;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: var(--ok-bg);
}

.badge.soon {
  border-color: #8a7a55;
  color: #5c5340;
  background: var(--paper-2);
}

dl.facts dt {
  font-weight: 700;
  margin-top: 0.6rem;
}
dl.facts dd { margin: 0.15rem 0 0; }

code, .path {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  background: var(--paper-2);
  padding: 0.05rem 0.28rem;
}

/* === Septic conversion pass (append to css/site.css) =====================
   Tokens unchanged. New classes only. Do not copy nth-child labels onto
   North Dakota / Montana tables — column order is different.
   ====================================================================== */

nav.primary a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.cta-cards {
  margin-top: 0.35rem;
}
.cta-cards .card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.1rem;
  border-top: 4px solid var(--forest);
}
.cta-cards .card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.12rem;
  line-height: 1.25;
}
.cta-cards .card h3 a {
  color: var(--navy);
  text-decoration: none;
}
.cta-cards .card h3 a:hover,
.cta-cards .card h3 a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-cards .card p { margin: 0 0 0.7rem; flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  background: var(--forest);
  color: #f6f3ea;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid var(--forest);
}
.btn:visited { color: #f6f3ea; }
.btn:hover, .btn:focus {
  background: var(--navy);
  border-color: var(--navy);
  color: #f6f3ea;
}
.btn.secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn.secondary:visited { color: var(--navy); }
.btn.secondary:hover, .btn.secondary:focus {
  background: var(--navy);
  color: #f6f3ea;
}

@media (min-width: 640px) {
  .flow { grid-template-columns: 1fr; }
  .cards.two.cta-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 56rem) {
  .flow { grid-template-columns: 1fr 1fr 1fr; }
}

.callout.compact { padding: 0.75rem 0.95rem; }
.callout.compact h2 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.key {
  display: grid;
  gap: 0.4rem 1.1rem;
  margin: 0;
  padding: 0;
}
.key div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.45rem;
  align-items: baseline;
}
.key dt {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
}
.key dd { margin: 0; font-size: 0.92rem; }
@media (min-width: 640px) {
  .key { grid-template-columns: 1fr 1fr; }
}

.hauler-table a[href^="tel:"] {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hauler-table a[href^="tel:"]:hover { text-decoration: underline; }

@media (min-width: 48rem) {
  .hauler-table th:nth-child(1),
  .hauler-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 11rem;
  }
  .hauler-table thead th:nth-child(1) {
    z-index: 3;
    background: var(--navy);
  }
  .hauler-table tbody tr:nth-child(odd) td:nth-child(1) { background: #fff; }
  .hauler-table tbody tr:nth-child(even) td:nth-child(1) { background: var(--paper-2); }
}

@media (max-width: 47.99rem) {
  .hauler-table { min-width: 0; border: 0; }
  .hauler-table caption { padding: 0.65rem 0.2rem; background: transparent; }
  .hauler-table thead { display: none; }
  .hauler-table tbody, .hauler-table tr, .hauler-table td { display: block; width: 100%; }
  .hauler-table tbody tr {
    display: grid;
    gap: 0.15rem;
    background: #fff;
    border: 1px solid var(--rule);
    border-left: 5px solid var(--forest);
    padding: 0.85rem 0.95rem 1rem;
    margin: 0 0 0.75rem;
  }
  .hauler-table tbody tr:nth-child(even) td { background: transparent; }
  .hauler-table td {
    display: grid;
    grid-template-columns: 7.25rem 1fr;
    gap: 0.35rem;
    border: 0;
    padding: 0.18rem 0;
  }
  .hauler-table td::before {
    content: "";
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--forest);
    padding-top: 0.2rem;
  }
  .hauler-table td:nth-child(1)::before { content: "Name"; }
  .hauler-table td:nth-child(2)::before { content: "Street"; }
  .hauler-table td:nth-child(3)::before { content: "City"; }
  .hauler-table td:nth-child(4)::before { content: "State"; }
  .hauler-table td:nth-child(5)::before { content: "ZIP"; }
  .hauler-table td:nth-child(6)::before { content: "Phone"; }
  .hauler-table td:nth-child(7)::before { content: "Contact"; }
  .hauler-table td:nth-child(8)::before { content: "DEP no."; }

  .hauler-table td:nth-child(1) { order: 1; }
  .hauler-table td:nth-child(6) { order: 2; }
  .hauler-table td:nth-child(3) { order: 3; }
  .hauler-table td:nth-child(7) { order: 4; }
  .hauler-table td:nth-child(2) { order: 5; }
  .hauler-table td:nth-child(4) { order: 6; }
  .hauler-table td:nth-child(5) { order: 7; }
  .hauler-table td:nth-child(8) { order: 8; }

  .hauler-table td:nth-child(1) {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--navy);
    grid-template-columns: 1fr;
    margin-bottom: 0.25rem;
  }
  .hauler-table td:nth-child(1)::before { display: none; }

  .hauler-table td:nth-child(6) { margin: 0.15rem 0 0.45rem; align-items: center; }
  .hauler-table td:nth-child(6) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.3rem 0.85rem;
    background: var(--navy);
    color: #f6f3ea;
    font-weight: 700;
    text-decoration: none;
  }
  .hauler-table td:nth-child(6) a:visited { color: #f6f3ea; }
}
