/* ==========================================================================
   CountySepticRecords.com - Design System
   Source: countysepticrecords-design
   Typography: Geist & Geist Mono
   Palette: #F6F6F2 (canvas), #FFFFFF (surface), #121614 (ink), #1F7A63 (brand green)
   ========================================================================== */

:root {
  --bg: #F6F6F2;
  --surface: #FFFFFF;
  --ink: #121614;
  --ink-secondary: #3D4440;
  --ink-muted: #5A615C;
  --ink-faint: #8E938E;

  --brand: #1F7A63;
  --brand-emerald: #1F7A63;
  --brand-hover: #16614E;
  --brand-light: #E3F0EB;
  --brand-light-border: rgba(31, 122, 99, 0.3);
  --brand-dark-text: #16614E;
  --brand-footer-text: #34A585;

  --warning-ink: #9A6F17;
  --warning-bg: #FBF4E4;
  --warning-border: rgba(154, 111, 23, 0.35);

  --border-subtle: rgba(18, 22, 20, 0.07);
  --border-card: rgba(18, 22, 20, 0.10);
  --border-strong: rgba(18, 22, 20, 0.12);
  --border-input: rgba(18, 22, 20, 0.22);
  --border-input-focus: #1F7A63;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  --font-sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  box-sizing: border-box;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
}

a {
  color: var(--brand);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

a:hover,
a:focus,
a:active {
  color: var(--brand-hover);
  text-decoration: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Page Frame */
.page {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

/* Top Banner */
.top-notice {
  min-height: 40px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
  color: #E9EAE5;
  font-size: 14px;
  line-height: 1.4;
}

/* Header & Nav */
.site-nav {
  min-height: 80px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  gap: 36px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(18, 22, 20, 0.08);
}

.site-nav a.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.site-nav a.brand-logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--brand);
}

.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(18, 22, 20, 0.16);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-grid {
  padding: 72px 64px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 36px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-left {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-title {
  margin: 0;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-desc {
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 560px;
  word-break: break-word;
}

.hero-form-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(18, 22, 20, 0.06);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.search-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.tab-pill {
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink-secondary);
  border: 1px solid rgba(18, 22, 20, 0.2);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-pill.active {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.hero-trust-badges {
  display: flex;
  gap: 14px 24px;
  font-size: 15px;
  color: var(--ink-secondary);
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.search-input-row {
  display: flex;
  gap: 10px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.search-input-main {
  flex-grow: 1;
  height: 60px;
  padding: 0 18px;
  border: 1.5px solid rgba(18, 22, 20, 0.25);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-input-main:focus {
  border-color: var(--brand);
}

.btn-search-go {
  height: 60px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-search-go:hover {
  background: var(--brand-hover);
  color: #FFFFFF;
  text-decoration: none;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(18, 22, 20, 0.12);
  max-height: 360px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.autocomplete-dropdown.active {
  display: block;
}

.dropdown-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.12s ease;
}

.dropdown-entry:last-child {
  border-bottom: none;
}

.dropdown-entry:hover,
.dropdown-entry.selected {
  background: var(--bg);
  text-decoration: none;
}

.dropdown-county-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
}

.dropdown-state-meta {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Hero Right: 3D Cutaway Graphic */
.hero-right {
  grid-column: 7 / span 6;
  position: relative;
  height: 580px;
}

.cutaway-wrap {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: #F7F7F4;
  border: 1px solid rgba(18, 22, 20, 0.08);
  overflow: hidden;
}

.cutaway-img {
  position: absolute;
  left: 0;
  top: -24px;
  width: 640px;
  height: 640px;
  object-fit: contain;
}

/* Stats Ribbon */
.stats-ribbon {
  margin: 0 64px 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
}

.stat-cell {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border-subtle);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-num {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: 16px;
  color: var(--ink-secondary);
}

/* AdSense Reserved Units (CLS Safe) */
.ad-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  width: 100%;
}

.adl {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.adb {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ECECE6;
  border: 1px dashed rgba(18, 22, 20, 0.22);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  overflow: hidden;
}

/* State Hub / County Hub Layouts */
.content-2col {
  padding: 40px 64px 80px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.county-quick-tools-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.btn-subtool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid rgba(18, 22, 20, 0.14);
  border-radius: 12px;
  color: #121614;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 54px;
  box-sizing: border-box;
}

.btn-subtool:hover {
  background: #F4FAF7;
  border-color: #1F7A63;
  color: #1F7A63;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(31, 122, 99, 0.09);
  text-decoration: none !important;
}

.btn-subtool svg {
  flex-shrink: 0;
  color: #1F7A63;
  transition: transform 0.2s ease;
}

.btn-subtool:hover svg {
  transform: translateX(4px);
}

.state-sublink {
  color: #1F7A63;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.state-sublink:hover {
  color: #16614E;
  text-decoration: none !important;
}

.state-sublink svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.state-sublink:hover svg {
  transform: translateX(3px);
}

.main-col-8 {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.side-col-4 {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Badges */
.badge-file {
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-light);
  color: var(--brand-dark-text);
  border: 1px solid var(--brand-light-border);
}

.badge-missing {
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  font-size: 13px;
  background: transparent;
  color: #8A908B;
  border: 1px dashed rgba(18, 22, 20, 0.2);
  text-decoration: line-through;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 72px 64px 40px;
  background: var(--ink);
  color: #E9EAE5;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
}

.footer-col a {
  color: #E9EAE5;
  text-decoration: none;
}

.footer-col a:hover {
  color: #34A585;
  text-decoration: none !important;
}

.footer-disclaimer-text {
  margin: 0;
  max-width: 440px;
  font-size: 14px;
  line-height: 1.65;
  color: #B9BDB8;
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(233, 234, 229, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ==========================================================================
   Responsive Adaptations (Mobile < 1024px & < 768px)
   ========================================================================== */

/* Subpage Common Components */
.subpage-header {
  padding: 32px 64px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-card);
}

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

.header-title {
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.chips-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.chip-item {
  padding: 16px 18px;
  border: 1px solid rgba(18, 22, 20, 0.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  background: #FFFFFF;
}

.system-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  background: #FFFFFF;
  border: 1px solid rgba(18, 22, 20, 0.12);
  border-radius: 14px;
  padding: 8px 28px;
}

.svg-drawing-card {
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(18, 22, 20, 0.12);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-x: auto;
}

.svg-drawing-responsive {
  width: 100%;
  max-width: 780px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.counties-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.steps-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Subpage Header Layout Elements */
.subpage-header {
  padding: 32px 64px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-card);
}

.subpage-header-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
}

.subpage-header-main {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subpage-header-aside {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  font-size: 14.5px;
  color: var(--ink-secondary);
}

/* 4-Box Stats Metric Grid */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-box {
  padding: 20px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
}

.stat-box-val {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-box-lbl {
  font-size: 15px;
  color: var(--ink-secondary);
}

/* Home Feature Sections */
.home-feature-section {
  padding: 80px 64px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  box-sizing: border-box;
}

.home-feature-left {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.home-feature-right {
  grid-column: 6 / span 7;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doc-tab-btn {
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.doc-tab-btn:hover:not(.active) {
  background: rgba(31, 122, 99, 0.04) !important;
}

.home-pad-section {
  padding: 0 64px 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
}

.home-split-section {
  padding: 88px 64px;
  background: var(--surface);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  box-sizing: border-box;
}

.tab-content-grid {
  padding: 20px 40px 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}

/* Tables & Rows */
.state-header-grid {
  display: grid;
  grid-template-columns: 1fr 210px 140px;
  column-gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

.state-row-grid {
  display: grid;
  grid-template-columns: 1fr 210px 140px;
  column-gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.state-col-badge {
  display: flex;
  align-items: center;
}

.state-col-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.btn-primary-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  background: #1F7A63 !important;
  color: #FFFFFF !important;
  border: 1px solid #1F7A63;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(31, 122, 99, 0.2);
  transition: all 0.15s ease;
}

.btn-primary-table:hover {
  background: #16614E !important;
  border-color: #16614E;
  color: #FFFFFF !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.btn-secondary-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(31, 122, 99, 0.35);
  color: #1F7A63 !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.btn-secondary-table:hover {
  background: #1F7A63;
  color: #FFFFFF !important;
  border-color: #1F7A63;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(31, 122, 99, 0.25);
  transform: translateY(-1px);
}


.table-row-grid-3 {
  display: grid;
  grid-template-columns: 1fr 130px 180px 85px;
  column-gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(18, 22, 20, 0.07);
  transition: background 0.15s ease;
  cursor: pointer;
}

.table-row-grid-3:hover {
  background: #F4F8F6;
}

.table-header-grid-3 {
  display: grid;
  grid-template-columns: 1fr 130px 180px 85px;
  column-gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(18, 22, 20, 0.10);
  font-size: 14px;
  font-weight: 600;
  color: #5A615C;
}

.btn-table-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1F7A63;
  padding: 6px 12px;
  background: #E3F0EB;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.table-row-grid-3:hover .btn-table-view {
  background: #1F7A63;
  color: #FFFFFF;
}

.cost-row-grid {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(18, 22, 20, 0.07);
}

.cost-header-grid {
  padding: 18px 22px;
  background: #F6F6F2;
  border-bottom: 1px solid rgba(18, 22, 20, 0.10);
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5A615C;
}

/* Step list rows */
.step-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-strong);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.foia-code-box {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .site-nav {
    padding: 0 24px;
    gap: 20px;
  }

  .subpage-header {
    padding: 28px 24px 32px;
  }

  .subpage-header-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .subpage-header-main {
    grid-column: span 12;
  }

  .subpage-header-aside {
    grid-column: span 12;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-left {
    width: 100%;
    grid-column: unset;
  }

  .hero-right {
    display: none !important;
  }

  .home-feature-section {
    padding: 56px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .home-feature-left,
  .home-feature-right {
    width: 100%;
  }

  .home-pad-section {
    padding: 0 24px 56px;
    gap: 32px;
  }

  .home-split-section {
    padding: 56px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .home-split-section>div {
    width: 100% !important;
    grid-column: span 12 !important;
  }

  .stats-ribbon {
    margin: 0 24px;
    grid-template-columns: repeat(2, 1fr);
  }

  .content-2col {
    padding: 32px 24px;
    grid-template-columns: 1fr;
  }

  .main-col-8 {
    grid-column: span 12;
  }

  .side-col-4 {
    grid-column: span 12;
    position: static;
  }

  .chips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counties-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    padding: 48px 24px 32px;
  }
}

@media (max-width: 900px) {
  .hero-right {
    display: none !important;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }

  .page {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    position: relative;
  }

  .site-nav {
    padding: 0 16px;
    min-height: 64px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-nav .nav-links {
    display: none;
  }

  .site-nav .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-card);
    box-shadow: 0 16px 32px rgba(18, 22, 20, 0.12);
    z-index: 99;
    gap: 16px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .subpage-header {
    padding: 20px 16px 24px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .subpage-header-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .subpage-header-main {
    width: 100%;
    gap: 12px;
  }

  .subpage-header-aside {
    width: 100%;
    padding: 14px 16px;
  }

  .header-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .header-title {
    font-size: 26px;
    line-height: 1.15;
    word-break: break-word;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .header-actions button,
  .header-actions a {
    width: 100%;
    justify-content: center;
    height: 48px;
  }

  .stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-box {
    padding: 14px;
  }

  .stat-box-val {
    font-size: 24px;
  }

  .stat-box-lbl {
    font-size: 13px;
  }

  .chips-grid,
  .chips-grid-3 {
    grid-template-columns: 1fr;
  }

  .content-2col {
    padding: 20px 16px 40px;
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
  }

  .system-details-grid {
    grid-template-columns: 1fr;
    padding: 8px 16px;
  }

  .svg-drawing-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

  .counties-grid-4 {
    grid-template-columns: 1fr;
  }

  .steps-grid-4,
  .steps-grid-3 {
    grid-template-columns: 1fr;
  }

  .home-feature-section {
    padding: 36px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .home-feature-left,
  .home-feature-right {
    width: 100%;
  }

  .home-pad-section {
    padding: 0 16px 40px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .home-split-section {
    padding: 36px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .tab-content-grid {
    grid-template-columns: 1fr;
    padding: 16px 18px 24px;
    column-gap: 0;
    row-gap: 2px;
  }

  .state-header-grid {
    display: none;
  }

  .state-row-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info info"
      "badge action";
    row-gap: 10px;
    column-gap: 12px;
    align-items: center;
    padding: 14px 16px;
  }

  .state-row-grid .state-col-info {
    grid-area: info;
  }

  .state-row-grid .state-col-badge {
    grid-area: badge;
    display: flex;
    align-items: center;
  }

  .state-row-grid .state-col-action {
    grid-area: action;
    display: flex;
    justify-content: flex-end;
  }

  @media (max-width: 480px) {
    .btn-primary-table {
      padding: 6px 12px;
      font-size: 13px;
    }

    .btn-secondary-table {
      padding: 5px 10px;
      font-size: 12.5px;
    }

    .state-row-grid .badge-file {
      font-size: 12px !important;
      padding: 0 8px !important;
      height: 26px !important;
    }
  }

  .table-header-grid-3 {
    display: none;
  }

  .table-row-grid-3 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
  }

  .table-row-grid-3 .doc-file-status {
    padding: 8px 12px;
    background: #F4F6F5;
    border-radius: 8px;
  }

  .table-row-grid-3 .btn-table-view {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 14px;
  }

  .cost-header-grid {
    display: none;
  }

  .cost-row-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
  }

  .step-row {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .step-num {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .foia-code-box {
    padding: 16px;
    font-size: 13px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    padding: 24px 16px 28px;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-left {
    width: 100%;
    grid-column: unset;
    gap: 18px;
  }

  .hero-title {
    font-size: clamp(24px, 6.5vw, 34px);
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
  }

  .hero-form-card {
    padding: 18px 16px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
  }

  .search-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .tab-pill {
    width: 100%;
    height: 38px;
    padding: 0 4px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .search-input-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .search-input-main {
    height: 52px;
    font-size: 15px;
    width: 100%;
    padding: 0 14px;
    box-sizing: border-box;
  }

  .btn-search-go {
    height: 50px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-trust-badges {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .stats-ribbon {
    margin: 0 16px;
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    box-sizing: border-box;
  }

  .stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .stats-grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(22px, 7vw, 28px);
  }

  .tab-pill {
    height: 36px;
    font-size: 12px;
  }

  .site-nav a.brand-logo svg {
    width: 30px;
    height: 38px;
  }

  .site-nav a.brand-logo span span:last-child {
    font-size: 18px;
  }
}

/* ==========================================================================
   Pumping Schedule Box & Badges (Clean, Responsive Table)
   ========================================================================== */
.pumping-schedule-box {
  border: 1px solid rgba(18, 22, 20, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(18, 22, 20, 0.03);
  width: 100%;
  box-sizing: border-box;
}

.pumping-schedule-header {
  padding: 12px 18px;
  background: #F6F6F2;
  border-bottom: 1px solid rgba(18, 22, 20, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pumping-schedule-row {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(18, 22, 20, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s ease;
}

.pumping-schedule-row:last-child {
  border-bottom: none;
}

.pumping-schedule-row:hover {
  background: rgba(31, 122, 99, 0.02);
}

.pumping-occupancy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.occupancy-main {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.occupancy-sub {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.35;
}

.pumping-badge {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  background: var(--brand-light);
  color: var(--brand-dark-text);
  border: 1px solid var(--brand-light-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

@media (max-width: 480px) {
  .pumping-schedule-header {
    font-size: 11px;
    padding: 10px 12px;
  }

  .pumping-schedule-row {
    padding: 12px;
    gap: 10px;
  }

  .occupancy-main {
    font-size: 14px;
  }

  .occupancy-sub {
    font-size: 12px;
  }

  .pumping-badge {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* ==========================================================================
   Chevron Link Icons (Unified Right-Facing Chevron)
   ========================================================================== */
.icon-chevron {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover .icon-chevron,
button:hover .icon-chevron,
.btn-table-view:hover .icon-chevron,
.table-row-grid-3:hover .icon-chevron,
.state-row-grid:hover .icon-chevron,
.state-sublink:hover .icon-chevron {
  transform: translateX(2.5px);
}

/* ==========================================================================
   Record Drawing Action Banner (Desktop & Mobile Centered)
   ========================================================================== */
.record-drawing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 12px;
}

.record-drawing-banner.has-file {
  background: #E3F0EB;
  border: 1px solid rgba(31, 122, 99, 0.3);
}

.record-drawing-banner.is-archive {
  background: #F6F6F2;
  border: 1px solid rgba(18, 22, 20, 0.1);
}

.record-drawing-banner .banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.record-drawing-banner.has-file .banner-text {
  color: #16614E;
  font-weight: 600;
  font-size: 14.5px;
}

.record-drawing-banner.is-archive .banner-text {
  color: #3D4440;
}

@media (max-width: 640px) {
  .record-drawing-banner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 14px;
    gap: 14px;
  }

  .record-drawing-banner .banner-text {
    justify-content: center;
    text-align: center;
    line-height: 1.5;
  }

  .record-drawing-banner .btn-banner-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* ==========================================================================
   Interactive US SVG Map & Browse By State Section
   ========================================================================== */
.home-states-section {
  padding: 80px 64px;
  background: var(--surface);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-sizing: border-box;
}

.states-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.states-header-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 480px;
}

.states-header-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex: 1 1 380px;
}

/* View Switcher Tabs */
.us-view-switcher {
  display: inline-flex;
  background: #EAEFEA;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(18, 22, 20, 0.08);
}

.us-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #5A615C;
  border: none;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.us-view-btn svg {
  opacity: 0.75;
}

.us-view-btn:hover {
  color: #121614;
}

.us-view-btn.is-active {
  background: #FFFFFF;
  color: #121614;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.us-view-btn.is-active svg {
  opacity: 1;
  color: #1F7A63;
}

/* Map Wrapper & Stage */
.us-map-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.us-map-stage {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #F8FAF8 0%, #EEF2EE 100%);
  border: 1px solid rgba(18, 22, 20, 0.10);
  border-radius: 18px;
  padding: 20px 24px;
  box-sizing: border-box;
  overflow: visible;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.us-vector-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 4px 14px rgba(18, 22, 20, 0.05));
}

/* State Paths inside SVG */
.us-map-state {
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.us-map-state .state-shape {
  fill: #D3DBD4;
  stroke: #FFFFFF;
  stroke-width: 1px;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  vector-effect: non-scaling-stroke;
}

.us-map-state .dc-circle {
  fill: #1F7A63;
  stroke: #FFFFFF;
  stroke-width: 1.5px;
}

/* Hover and Focus */
.us-map-state:hover .state-shape,
.us-map-state:focus .state-shape {
  fill: #2E937A !important;
  stroke: #16614E;
  stroke-width: 1.6px;
  filter: drop-shadow(0 2px 8px rgba(31, 122, 99, 0.4));
}

/* Active Highlighted State (Brand Green) */
.us-map-state.is-highlighted .state-shape {
  fill: #1F7A63 !important;
  stroke: #0E4436 !important;
  stroke-width: 2.2px !important;
  filter: drop-shadow(0 0 12px rgba(31, 122, 99, 0.8)) !important;
  animation: statePulseGlow 1.8s infinite ease-in-out;
}

@keyframes statePulseGlow {
  0% { filter: drop-shadow(0 0 6px rgba(31, 122, 99, 0.5)); }
  50% { filter: drop-shadow(0 0 14px rgba(31, 122, 99, 0.9)); }
  100% { filter: drop-shadow(0 0 6px rgba(31, 122, 99, 0.5)); }
}

/* Dimmed state when searching for a different state */
.us-map-state.is-dimmed .state-shape {
  fill: #E3E7E4 !important;
  opacity: 0.45;
}

/* Floating Tooltip */
.us-map-tooltip {
  position: absolute;
  pointer-events: none;
  background: #121614;
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 9px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 60;
  transform: translate(-50%, -100%);
  margin-top: -14px;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-family: inherit;
}

.us-map-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #121614 transparent transparent transparent;
}

.us-tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.us-tooltip-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.us-tooltip-badge {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 12px;
  color: #8CE0C6;
}

.us-tooltip-cta {
  font-size: 12px;
  color: #A3ACA5;
  margin-top: 3px;
  font-weight: 500;
}

/* Small States & DC Shortcut Chips */
.us-map-ne-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  background: #FFFFFF;
  border: 1px solid rgba(18, 22, 20, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.us-shortcuts-label {
  font-size: 13px;
  font-weight: 600;
  color: #5A615C;
}

.us-shortcuts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.us-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: #EFF3F0;
  border: 1px solid rgba(18, 22, 20, 0.1);
  color: #121614;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.us-chip-btn:hover,
.us-chip-btn.is-active {
  background: #1F7A63;
  color: #FFFFFF;
  border-color: #1F7A63;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(31, 122, 99, 0.3);
}

@media (max-width: 900px) {
  .states-header-controls {
    align-items: stretch;
    width: 100%;
  }

  .states-header-controls > div {
    max-width: 100% !important;
  }

  .us-view-switcher {
    width: 100%;
    display: flex;
  }

  .us-view-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .home-states-section {
    padding: 44px 20px;
    gap: 24px;
  }

  .us-map-stage {
    padding: 12px 10px;
    border-radius: 14px;
  }
}

/* ==========================================================================
   State List Grid Items (List View)
   ========================================================================== */
.state-link-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border-bottom: 1px solid rgba(18, 22, 20, 0.05);
  font-size: 15px;
  color: #121614;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.state-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.state-code-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5A615C;
  background: #EAEFEA;
  padding: 2px 6px;
  border-radius: 5px;
  min-width: 25px;
  text-align: center;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.state-name-text {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.16s ease;
}

.state-count-pill {
  font-size: 12px;
  color: #78807A;
  background: #F0F3F1;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 8px;
  transition: all 0.16s ease;
}

/* Hover: The exact pale green background with brand green text & pill */
.state-link-item:hover {
  background: rgba(31, 122, 99, 0.08) !important;
  color: #1F7A63 !important;
  border-bottom-color: transparent !important;
}

.state-link-item:hover .state-code-pill {
  background: #1F7A63 !important;
  color: #FFFFFF !important;
}

.state-link-item:hover .state-name-text {
  color: #1F7A63 !important;
}

.state-link-item:hover .state-count-pill {
  background: rgba(31, 122, 99, 0.14) !important;
  color: #1F7A63 !important;
}

/* ==========================================================================
   Septic Guides & Knowledge Base Styling
   ========================================================================== */
.home-guide-card:hover {
  border-color: #1F7A63 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

@media (max-width: 640px) {
  .home-guide-card,
  .guide-card-item {
    padding: 20px !important;
  }
}

.guide-prose {
  font-size: 17px;
  line-height: 1.75;
  color: #2F3632;
}

.guide-prose h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin: 40px 0 16px;
  color: #121614;
  letter-spacing: -0.02em;
}

.guide-prose h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin: 28px 0 12px;
  color: #121614;
}

.guide-prose p {
  margin: 0 0 20px;
}

.guide-prose ul,
.guide-prose ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.guide-prose li {
  margin-bottom: 10px;
}

.guide-callout {
  padding: 20px 24px;
  border-radius: 12px;
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.65;
}

.guide-callout.info {
  background: #F0F7F4;
  border-left: 4px solid #1F7A63;
  color: #1B4E40;
}

.guide-callout.warning {
  background: #FFF8E6;
  border-left: 4px solid #D97706;
  color: #78350F;
}

.guide-callout.alert {
  background: #FDF2F2;
  border-left: 4px solid #DC2626;
  color: #991B1B;
}

.guide-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid rgba(18, 22, 20, 0.12);
  background: #FFFFFF;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.guide-table th {
  background: #F6F8F6;
  padding: 14px 18px;
  font-weight: 600;
  color: #121614;
  border-bottom: 1px solid rgba(18, 22, 20, 0.12);
}

.guide-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(18, 22, 20, 0.06);
  color: #3D4440;
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table tr:hover td {
  background: #FAFCFA;
}

.guide-caption {
  font-size: 13px;
  color: #78807A;
  margin-top: -16px;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .guide-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .guide-sidebar-column {
    position: static !important;
  }
}

/* Contact Page Unified 3-Column Grid Layout */
.contact-grid-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contact-dept-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.contact-form-card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-sidebar-col {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.contact-sidebar-card.grow {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-notice-fullwidth {
  grid-column: 1 / -1;
  background: #F9FAFB;
  border: 1px dashed rgba(18, 22, 20, 0.18);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.contact-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .contact-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-form-card {
    grid-column: span 1;
    padding: 24px 20px;
  }
  .contact-sidebar-col {
    grid-column: span 1;
  }
  .contact-sidebar-card.grow {
    flex: auto;
  }
  .contact-notice-fullwidth {
    grid-column: span 1;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 20px 16px;
  }
  .contact-row-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Legal Box Callout for Terms and Disclaimers */
.legal-highlight-box {
  background: #FAFCFA;
  border: 1px solid rgba(31, 122, 99, 0.25);
  border-left: 4px solid #1F7A63;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.legal-highlight-box p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #2F3632;
}

.legal-highlight-box p:last-child {
  margin-bottom: 0;
}

/* Tank Locator Guide */
.tank-locator-card {
  margin-top: 10px;
  margin-bottom: 8px;
}

.locator-tab-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #F6F7F3;
  border-bottom: 1px solid rgba(18, 22, 20, 0.09);
  width: 100%;
}

.locator-tab-btn {
  padding: 14px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  min-width: 0;
}

.locator-tab-step {
  font-size: 11px;
  font-weight: 700;
  color: #5A615C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.locator-tab-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #5A615C;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-label-short {
  display: none;
}

.locator-tab-btn.active {
  border-bottom-color: #1F7A63;
}

.locator-tab-btn.active .locator-tab-step {
  color: #1F7A63;
}

.locator-tab-btn.active .locator-tab-title {
  color: #121614;
}

/* Notice Badges & Text Alignment */
.locator-notice-badge {
  width: 95px;
  min-width: 95px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  padding: 3px 0;
  border-radius: 4px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-sizing: border-box;
}

.locator-notice-badge.badge-mandatory {
  color: #B45309;
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.locator-notice-badge.badge-tip {
  color: #16614E;
  background: rgba(31, 122, 99, 0.1);
  border: 1px solid rgba(31, 122, 99, 0.2);
}

/* Keep 4 Steps Side-by-Side on Mobile */
@media (max-width: 580px) {
  .locator-tab-btn {
    padding: 11px 4px;
    gap: 2px;
  }
  .locator-tab-step {
    font-size: 10.5px;
  }
  .locator-tab-title {
    font-size: 11.5px;
  }
  .tab-label-full {
    display: none;
  }
  .tab-label-short {
    display: inline;
  }
  .locator-notice-badge {
    width: 85px;
    min-width: 85px;
    font-size: 11px;
  }
}

/* FOIA Request Generator Actions */
.foia-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.foia-bottom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 560px) {
  .foia-header-actions,
  .foia-bottom-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding-top: 8px !important;
  }
  .foia-header-actions .btn-foia-toggle,
  .foia-header-actions .btn-foia-copy,
  .foia-bottom-actions .btn-foia-email,
  .foia-bottom-actions .btn-foia-bottom-copy {
    width: 100% !important;
    height: 42px !important;
    justify-content: center !important;
    font-size: 13.5px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 561px) and (max-width: 680px) {
  .foia-header-actions,
  .foia-bottom-actions {
    width: 100%;
    justify-content: flex-start;
    padding-top: 6px;
  }
}

/* EPA Pumping Calculator */
.calc-header-bar {
  padding: 16px 20px;
  background: #FBFDFB;
  border-bottom: 1px solid rgba(18,22,20,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Universal Form Select Styling with Balanced Chevron */
select,
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none' stroke='%23121614' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  padding-right: 36px !important;
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.calc-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.calc-result-interval {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-result-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.calc-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(31,122,99,0.15);
  padding-top: 10px;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
}

@media (max-width: 680px) {
  .calc-header-bar {
    justify-content: flex-start;
    text-align: left;
    padding: 14px 16px;
  }
  .calc-inputs-grid {
    grid-template-columns: 1fr !important;
  }
  .calc-result-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .calc-result-interval {
    align-items: center;
    text-align: center;
  }
  .calc-result-status {
    align-items: center;
    text-align: center;
  }
  .calc-result-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

/* ==========================================================================
   Septic Disclosure Sheet & Escrow Closing Form (Form PSD-2026)
   ========================================================================== */

/* Top Action Button in Record Hero */
.btn-disclosure-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1.5px solid #1F7A63;
  color: #1F7A63;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-disclosure-top:hover {
  background: #1F7A63;
  color: #FFFFFF;
}

/* Sidebar Escrow Card */
.escrow-disclosure-card {
  padding: 22px;
  background: #FFFFFF;
  border: 1.5px solid rgba(31,122,99,0.25);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(31,122,99,0.06);
}

/* Modal Overlay */
.disclosure-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.disclosure-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 20, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.disclosure-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toolbar */
.disclosure-toolbar {
  background: #FFFFFF;
  border: 1px solid rgba(18,22,20,0.12);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.disclosure-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-print-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  background: #1F7A63;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-print-primary:hover {
  background: #16614E;
}

.btn-copy-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #FAFAF8;
  color: #121614;
  border: 1.5px solid rgba(18,22,20,0.18);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-copy-secondary:hover {
  background: #EAEAE6;
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid rgba(18,22,20,0.18);
  background: #FFFFFF;
  color: #5A615C;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  color: #121614;
  background: #F3F4F1;
}

/* Formal Document Container */
.disclosure-document {
  background: #FFFFFF;
  border: 1.5px solid rgba(18,22,20,0.15);
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  color: #121614;
  font-family: inherit;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 2px solid #1F7A63;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.doc-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #16614E;
  margin-bottom: 4px;
}

.doc-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #121614;
  line-height: 1.25;
}

.doc-subtitle {
  font-size: 12.5px;
  color: #5A615C;
  margin-top: 3px;
}

.doc-header-meta {
  border-left: 2px solid #1F7A63;
  padding-left: 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #3D4440;
}

.doc-section {
  margin-top: 14px;
  border-top: 1px solid rgba(18,22,20,0.12);
  padding-top: 10px;
}

.doc-section-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16614E;
  margin-bottom: 8px;
}

.doc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.doc-field-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-field {
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.doc-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5A615C;
}

.doc-value {
  color: #121614;
}

.doc-value-strong {
  font-weight: 600;
  color: #121614;
}

/* Document Specs Table */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid rgba(18,22,20,0.1);
  background: #FFFFFF;
}

.doc-table td {
  padding: 6px 10px;
  border: 1px solid rgba(18,22,20,0.08);
  line-height: 1.4;
}

.doc-tbl-label {
  width: 22%;
  background: #FAFAF8;
  font-weight: 600;
  color: #5A615C;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.doc-tbl-val {
  width: 28%;
  color: #121614;
}

.doc-tbl-val-strong {
  width: 28%;
  font-weight: 700;
  color: #121614;
}

/* Setbacks Grid */
.doc-setbacks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #FAFAF8;
  border: 1px solid rgba(18,22,20,0.08);
  border-radius: 6px;
  padding: 10px 14px;
}

.doc-setback-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.setback-dist {
  font-size: 16px;
  font-weight: 700;
  color: #1F7A63;
}

.setback-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #5A615C;
  line-height: 1.25;
}

.doc-subnote {
  font-size: 11px;
  color: #5A615C;
  margin-top: 5px;
  font-style: italic;
}

/* Callout & Boxes */
.doc-callout {
  padding: 10px 14px;
  background: #FAFAF8;
  border-radius: 6px;
  border-left: 3px solid #1F7A63;
}

.doc-box {
  padding: 10px 12px;
  background: #FAFAF8;
  border: 1px solid rgba(18,22,20,0.08);
  border-radius: 6px;
}

.doc-box-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #16614E;
  margin-bottom: 4px;
}

/* Checklist Table */
.doc-checklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  line-height: 1.45;
}

.doc-checklist-table td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(18,22,20,0.06);
  vertical-align: top;
}

.check-box-col {
  width: 26px;
  font-family: monospace;
  font-weight: 700;
  color: #1F7A63;
}

/* Signatures */
.doc-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.sig-box {
  padding: 10px 14px;
  border: 1px solid rgba(18,22,20,0.15);
  border-radius: 6px;
  background: #FCFCFA;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sig-role {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #16614E;
}

.sig-line {
  height: 28px;
  border-bottom: 1.5px solid #121614;
  margin-top: 6px;
}

.sig-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #5A615C;
  text-transform: uppercase;
}

.sig-print-name {
  font-size: 11px;
  color: #3D4440;
  margin-top: 4px;
}

/* Footer Audit & QR Code */
.doc-footer-audit {
  margin-top: 14px;
  border-top: 1.5px solid #1F7A63;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.doc-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.doc-qr-canvas {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(18,22,20,0.12);
  border-radius: 4px;
  padding: 3px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-qr-canvas canvas,
.doc-qr-canvas img {
  width: 82px !important;
  height: 82px !important;
}

.doc-audit-text {
  flex: 1;
}

/* Responsive Modal Styling */
@media (max-width: 680px) {
  .disclosure-modal {
    padding: 12px 8px;
  }
  .disclosure-toolbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }
  .disclosure-toolbar-actions {
    justify-content: center;
    width: 100%;
  }
  .disclosure-document {
    padding: 18px 16px;
  }
  .doc-grid-2,
  .doc-signatures-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .doc-setbacks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .doc-footer-audit {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   PRINT SPECIFICATION (@media print)
   ========================================================================== */
@media print {
  /* Hide all website chrome, nav, search, footers, ads, and UI toolbars */
  html, body {
    background: #FFFFFF !important;
    color: #121614 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 10.5pt !important;
  }

  /* Hide all elements on page except the disclosure modal */
  .page > *:not(#disclosureModal),
  .top-notice,
  .site-nav,
  .subpage-header,
  .header-flex,
  .chips-grid,
  .record-hero,
  .content-2col,
  .site-footer,
  .disclosure-backdrop,
  .disclosure-toolbar,
  .no-print,
  #pumping-calc-widget,
  .pumping-schedule-box,
  .tank-locator-card,
  .foia-generator-card {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #disclosureModal {
    position: static !important;
    display: block !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    z-index: auto !important;
  }

  .disclosure-dialog {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #septic-disclosure-doc {
    box-shadow: none !important;
    border: 1.5px solid #121614 !important;
    border-radius: 0 !important;
    padding: 18px 22px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #FFFFFF !important;
    page-break-after: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .doc-section {
    page-break-inside: avoid !important;
    margin-top: 10px !important;
    padding-top: 8px !important;
  }

  .doc-table,
  .doc-signatures-grid,
  .doc-setbacks-grid,
  .doc-footer-audit {
    page-break-inside: avoid !important;
  }

  .doc-badge {
    color: #16614E !important;
    font-weight: 700 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .setback-dist {
    color: #1F7A63 !important;
    font-weight: 700 !important;
  }
}