/* TapCheck CA — mobile-first, trustworthy water report UI */
:root {
  --blue-900: #0c4a6e;
  --blue-800: #075985;
  --blue-700: #0369a1;
  --blue-600: #0284c7;
  --blue-500: #0ea5e9;
  --blue-100: #e0f2fe;
  --blue-50: #f0f9ff;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --green-700: #15803d;
  --green-100: #dcfce7;
  --amber-700: #b45309;
  --amber-100: #fef3c7;
  --red-700: #b91c1c;
  --red-100: #fee2e2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 4px 16px rgba(15,23,42,.06);
  --shadow-lg: 0 8px 30px rgba(15,23,42,.12);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--slate-900); }
p { margin: 0 0 1em; color: var(--slate-700); }
ul { padding-left: 1.25rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-900);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  display: grid; place-items: center;
  color: white; font-size: 1rem;
  flex-shrink: 0;
}
.nav { display: none; gap: 1.25rem; align-items: center; }
.nav a {
  color: var(--slate-600);
  font-size: .925rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--blue-700); }
.nav .btn-nav {
  background: var(--blue-700);
  color: white !important;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .875rem;
}
.nav .btn-nav:hover { background: var(--blue-800); text-decoration: none; }
.menu-btn {
  display: inline-flex;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: .4rem .65rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--slate-700);
}
.nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: white;
  padding: 1rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav { display: flex; }
  .nav.open { position: static; flex-direction: row; box-shadow: none; border: 0; padding: 0; align-items: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--blue-700);
  color: white;
}
.btn-primary:hover { background: var(--blue-800); color: white; }
.btn-secondary {
  background: white;
  color: var(--blue-800);
  border: 1.5px solid var(--slate-200);
}
.btn-secondary:hover { border-color: var(--blue-500); color: var(--blue-700); }
.btn-teal {
  background: var(--teal-600);
  color: white;
}
.btn-teal:hover { background: #0f766e; color: white; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 55%, #ecfeff 100%);
  padding: 2.75rem 0 3.25rem;
  border-bottom: 1px solid var(--slate-200);
}
.hero-badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  max-width: 18ch;
  margin-bottom: .65rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--slate-600);
  max-width: 42ch;
  margin-bottom: 1.75rem;
}
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--slate-500);
}
.trust-line span { display: inline-flex; align-items: center; gap: .35rem; }

/* ZIP search */
.zip-search {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  max-width: 480px;
  background: white;
  padding: .5rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}
.zip-search input {
  flex: 1;
  min-width: 140px;
  border: none;
  outline: none;
  padding: .65rem 1rem;
  font-size: 1.05rem;
  border-radius: 999px;
  font-family: inherit;
}
.zip-search .btn { flex-shrink: 0; }
.zip-error {
  color: var(--red-700);
  font-size: .9rem;
  margin-top: .75rem;
  display: none;
}
.zip-error.show { display: block; }
.example-zips {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--slate-500);
}
.example-zips a {
  display: inline-block;
  margin: .2rem .35rem .2rem 0;
  padding: .2rem .55rem;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  color: var(--blue-700);
  font-weight: 500;
  font-size: .8rem;
}
.example-zips a:hover { border-color: var(--blue-500); text-decoration: none; }

/* Cards / sections */
.section { padding: 3rem 0; }
.section-alt { background: white; border-block: 1px solid var(--slate-200); }
.section-title { font-size: 1.5rem; margin-bottom: .35rem; }
.section-lead { color: var(--slate-500); margin-bottom: 1.75rem; max-width: 55ch; }

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid; place-items: center;
  font-size: 1.2rem;
  margin-bottom: .85rem;
}

/* Report page */
.report-hero {
  background: white;
  border-bottom: 1px solid var(--slate-200);
  padding: 2rem 0 1.5rem;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  font-size: .875rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.pill-ok { background: var(--green-100); color: var(--green-700); }
.pill-warn { background: var(--amber-100); color: var(--amber-700); }
.pill-alert { background: var(--red-100); color: var(--red-700); }
.pill-info { background: var(--blue-100); color: var(--blue-800); }
.pill-group { display: inline-flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }

.contaminant {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.contaminant-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.contaminant h3 { margin: 0; font-size: 1.1rem; }
.contam-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.stat {
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: .65rem .75rem;
}
.stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-500); font-weight: 600; }
.stat-value { font-size: 1.05rem; font-weight: 700; color: var(--slate-900); }
.bar-wrap { height: 8px; background: var(--slate-100); border-radius: 999px; overflow: hidden; margin-top: .5rem; }
.bar { height: 100%; border-radius: 999px; background: var(--blue-500); max-width: 100%; }
.bar.warn { background: var(--amber-700); }
.bar.alert { background: var(--red-700); }
.filter-tag {
  display: inline-block;
  margin-top: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal-600);
  background: #ccfbf1;
  padding: .25rem .6rem;
  border-radius: 999px;
}

/* Audience poll */
.poll-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.poll-box h3 { font-size: 1rem; margin-bottom: .75rem; }
.poll-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.poll-options button {
  border: 1.5px solid var(--slate-200);
  background: white;
  padding: .5rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate-700);
}
.poll-options button:hover,
.poll-options button.selected {
  border-color: var(--blue-600);
  background: var(--blue-100);
  color: var(--blue-800);
}
.poll-thanks { display: none; color: var(--green-700); font-size: .9rem; font-weight: 500; margin-top: .75rem; }

/* CTA / lead form */
.cta-panel {
  background: linear-gradient(135deg, var(--blue-800), var(--teal-600));
  color: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0;
}
.cta-panel h2, .cta-panel p { color: white; }
.cta-panel p { opacity: .9; }
.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: inherit;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  color: white;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.65); }
.form-group select option { color: var(--slate-900); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid white;
  outline-offset: 1px;
}
.form-light .form-group label { color: var(--slate-700); }
.form-light .form-group input,
.form-light .form-group select,
.form-light .form-group textarea {
  background: white;
  border-color: var(--slate-200);
  color: var(--slate-900);
}
.form-light .form-group input::placeholder { color: var(--slate-400); }
.form-note { font-size: .8rem; opacity: .85; margin-top: .75rem; }
.form-msg { margin-top: .75rem; font-size: .9rem; font-weight: 500; display: none; }
.form-msg.show { display: block; }

/* Pricing */
.price-card {
  background: white;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-lg);
}
.price-card .badge-featured {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-700);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price { font-size: 2rem; font-weight: 800; color: var(--blue-900); }
.price span { font-size: 1rem; font-weight: 500; color: var(--slate-500); }
.price-per { font-size: .875rem; color: var(--teal-600); font-weight: 600; margin: .25rem 0 1rem; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
}
.price-card li {
  padding: .4rem 0;
  font-size: .925rem;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
}
.price-card li::before {
  content: "✓ ";
  color: var(--teal-600);
  font-weight: 700;
}

/* Filters 101 table */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .9rem;
}
.guide-table th,
.guide-table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--slate-100);
}
.guide-table th {
  background: var(--blue-900);
  color: white;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table tr:nth-child(even) td { background: var(--slate-50); }
@media (max-width: 639px) {
  .guide-table { display: block; overflow-x: auto; }
}

/* Disclaimer / legal */
.disclaimer {
  background: var(--amber-100);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: .875rem;
  color: var(--amber-700);
  margin: 1.5rem 0;
}
.disclaimer strong { color: var(--slate-900); }
.legal-stub h2 { margin-top: 2rem; font-size: 1.2rem; }
.legal-stub p, .legal-stub li { font-size: .95rem; }

/* Coming soon */
.coming-soon {
  text-align: center;
  padding: 3rem 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
}
.coming-soon h2 { color: var(--blue-900); }

/* Print */
@media print {
  .site-header, .site-footer, .cta-panel, .poll-box, .menu-btn, .no-print { display: none !important; }
  body { background: white; }
  .contaminant { break-inside: avoid; box-shadow: none; }
}

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  font-size: .875rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer a { color: var(--slate-300); }
.site-footer a:hover { color: white; }
.site-footer h4 { color: white; font-size: .9rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid var(--slate-700);
  padding-top: 1.25rem;
  font-size: .8rem;
}
.footer-brand { color: white; font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }

/* Misc */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 2rem;
}
.muted { color: var(--slate-500); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Multi-utility chooser */
.chooser-box {
  background: var(--amber-100);
  border: 1px solid #f59e0b55;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
}
.chooser-box h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: var(--amber-700);
}
.chooser-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.chooser-option {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .75rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.chooser-option:hover {
  border-color: var(--blue-500);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.chooser-option.active {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, .2);
}
.chooser-option strong {
  color: var(--slate-900);
  font-size: .95rem;
}
.chooser-option .muted {
  font-size: .8rem;
  color: var(--slate-500);
}

/* Tighter mobile report meta */
@media (max-width: 560px) {
  .report-hero h1 { font-size: 1.55rem; }
  .report-meta { font-size: .85rem; gap: .4rem; }
  .contam-stats { grid-template-columns: 1fr; }
  .share-bar { flex-direction: column; align-items: stretch; }
  .share-bar .btn { width: 100%; }
  .zip-search { flex-direction: column; }
  .zip-search input { width: 100%; }
  .zip-search .btn { width: 100%; }
  .example-zips { font-size: .8rem; }
  .trust-line { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .chooser-option { padding: .65rem .85rem; }
}

/* Chooser badges + match caution */
.chooser-option-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
}
.chooser-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
}
.chooser-badge-sabl {
  background: #dcfce7;
  color: #166534;
}
.chooser-badge-hq {
  background: #e0f2fe;
  color: #075985;
}
.chooser-badge-city {
  background: #fef3c7;
  color: #92400e;
}
.chooser-selected-tag {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue-700);
}
.match-caution {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-left: 4px solid #f97316;
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  margin: 0 0 1.25rem;
  font-size: .92rem;
  color: var(--slate-700);
}
.match-caution-ok {
  background: #f0fdf4;
  border-color: #86efac;
  border-left-color: #22c55e;
}
.cta-soft {
  font-size: .9rem;
  opacity: .9;
  margin-top: -.35rem;
  margin-bottom: 1rem;
}

/* Report clarity */
.report-key {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin: -.5rem 0 1.25rem;
  padding: .75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  font-size: .82rem;
  color: var(--slate-600);
}
.report-key span { display: inline-flex; align-items: center; gap: .35rem; }
.key-dot { width: .65rem; height: .65rem; border-radius: 50%; display: inline-block; }
.key-alert { background: #dc2626; }
.key-warn { background: #dc2626; }
.key-ok { background: #16a34a; }
.contaminant-alert { border-left: 5px solid #dc2626; }
.contaminant-warn { border-left: 5px solid #d97706; }
.contaminant-ok { border-left: 5px solid #16a34a; }
.guideline-explainer {
  padding: .55rem .7rem;
  margin: .55rem 0;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  font-size: .82rem;
  color: var(--slate-600);
}
.guideline-explainer.alert { background: #fef2f2; color: #991b1b; }
.guideline-explainer.warn { background: #fffbeb; color: #92400e; }
.filter-meaning {
  margin: 1.75rem 0;
  padding: 1.25rem;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-50), white);
}
.filter-meaning h2 { margin-top: 0; }
.filter-compare { display: grid; grid-template-columns: 1fr; gap: .85rem; }
@media (min-width: 720px) { .filter-compare { grid-template-columns: 1fr 1fr; } }
.filter-compare-card {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: white;
}
.filter-compare-card.recommended { border: 2px solid var(--blue-500); }
.filter-compare-card.recommended::before {
  content: "Worth comparing for this report";
  display: inline-block;
  margin-bottom: .5rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.filter-compare-card h3 { margin: 0 0 .5rem; }
.filter-caveat { margin: 1rem 0 0; font-size: .9rem; }
.print-only { display: none; }

/* PDF / print-friendly report */
@media print {
  @page { size: letter; margin: .45in; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { font-size: 10pt; color: #111827; background: #fff !important; }
  a { color: #111827; text-decoration: none; }
  .site-header, .site-footer, .cta-panel, .poll-box, .menu-btn, .no-print,
  .chooser-box, .match-caution { display: none !important; }
  .print-only { display: block !important; }
  .report-hero { padding: .15in 0 .1in !important; background: #fff !important; color: #111827 !important; }
  .report-hero .container, .report-body .container { max-width: none; padding: 0; }
  .report-hero h1 { font-size: 20pt; margin: .08in 0; color: #0f172a !important; }
  .report-hero p, .report-hero span { color: #334155 !important; }
  .report-meta { margin-bottom: .04in; }
  .report-print-note {
    padding: .08in 0 .12in;
    border-bottom: 1px solid #94a3b8;
    font-size: 8pt;
    overflow-wrap: anywhere;
  }
  .report-body { padding: .12in 0 0 !important; }
  .disclaimer { font-size: 7.5pt; padding: .1in; margin-bottom: .12in; }
  .section-title { font-size: 15pt; margin: .14in 0 .06in; }
  .section-lead { font-size: 8.5pt; margin-bottom: .1in; }
  .report-key { font-size: 7.5pt; padding: .06in .08in; margin: 0 0 .1in; }
  .contaminant {
    break-inside: avoid-page;
    page-break-inside: avoid;
    box-shadow: none !important;
    margin: 0 0 .12in !important;
    padding: .12in !important;
  }
  .contaminant h3 { font-size: 11.5pt; }
  .contam-stats { grid-template-columns: repeat(3, 1fr) !important; gap: .08in; }
  .stat-value { font-size: 9pt; }
  .stat-label, .filter-tag, .guideline-explainer { font-size: 7.5pt; }
  .guideline-explainer { padding: .05in .07in; margin: .05in 0; }
  .bar-wrap { height: 5px; }
  .filter-meaning {
    break-inside: avoid-page;
    page-break-inside: avoid;
    margin: .15in 0;
    padding: .12in;
    background: #f8fafc !important;
  }
  .filter-meaning h2 { font-size: 14pt; }
  .filter-compare { grid-template-columns: 1fr 1fr !important; gap: .1in; }
  .filter-compare-card { padding: .1in; }
  .filter-compare-card p { font-size: 8pt; }
}

/* Homepage proof / conversion clarity */
.hero-proof {
  margin: .85rem 0 0;
  color: rgba(255,255,255,.9);
  font-size: .86rem;
  font-weight: 600;
}
.proof-strip { background: var(--slate-900); color: white; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.proof-grid div { padding: .65rem .8rem; border-left: 1px solid var(--slate-700); }
.proof-grid div:first-child { border-left: 0; }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { font-size: 1.15rem; color: white; }
.proof-grid span { font-size: .75rem; color: var(--slate-400); margin-top: .12rem; }
@media (min-width: 720px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 719px) {
  .proof-grid div:nth-child(3) { border-left: 0; }
}

/* Collapsible report sections — collapsed on screen OK; always open in print */
.report-collapse {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  margin: 0 0 1.15rem;
  overflow: hidden;
}
.report-collapse > summary {
  cursor: pointer;
  list-style: none;
  padding: .9rem 1rem;
  font-weight: 700;
  color: var(--blue-900);
  background: var(--slate-50);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.report-collapse > summary::-webkit-details-marker { display: none; }
.report-collapse > summary::before {
  content: "▸";
  color: var(--blue-600);
  font-size: .85rem;
}
.report-collapse[open] > summary::before { content: "▾"; }
.report-collapse > summary:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}
.report-collapse-body,
.report-collapse .disclaimer,
.report-collapse .filter-meaning {
  padding: 0 1rem 1rem;
}
.report-collapse .filter-meaning {
  margin: 0;
  border: 0;
  background: transparent;
  padding-top: .25rem;
}
.filter-meaning-collapse { border-color: #bae6fd; }

.report-sticky-bar {
  display: none;
  position: sticky;
  top: 58px;
  z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(8px);
}
.report-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem 0;
}
.report-sticky-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: .82rem;
}
.report-sticky-meta strong { white-space: nowrap; }
.report-sticky-meta .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46vw;
}
.report-sticky-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.btn-sm { padding: .4rem .7rem !important; font-size: .8rem !important; }

@media (max-width: 720px) {
  .report-sticky-bar { display: block; }
  .report-hero h1 { font-size: 1.45rem; }
  .report-hero { padding-bottom: 1rem; }
  .share-bar .btn { flex: 1 1 auto; }
  .contaminant { padding: .85rem; }
  .guideline-explainer { font-size: .78rem; }
}

/* Accessibility: visible focus + contrast tweaks */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}
.btn:focus-visible,
.btn-nav:focus-visible,
.chooser-option:focus-visible,
.poll-options button:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}
.nav a:focus-visible { outline-offset: 4px; }
.muted { color: #526277; }
.pill-info { background: #e0f2fe; color: #075985; }
.zip-error { color: #b91c1c; }
.example-zips a { text-decoration: underline; text-underline-offset: 2px; }

@media print {
  .report-sticky-bar { display: none !important; }
  details.report-collapse { border: 0; background: transparent; }
  details.report-collapse > summary { display: none !important; }
  details.report-collapse > * { display: block !important; }
  .report-collapse-body,
  .report-collapse .disclaimer,
  .report-collapse .filter-meaning { padding: 0; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-800);
  color: white;
  padding: .6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Region + glossary content pages */
.region-grid, .glossary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .region-grid { grid-template-columns: 1fr 1fr; }
  .glossary-grid { grid-template-columns: 1fr 1fr; }
}
.region-card, .glossary-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.region-card h3, .glossary-card h3 { margin-top: 0; }
.region-zips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.region-zips a {
  display: inline-block;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-800);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.region-zips a:hover { background: var(--blue-100); }
.glossary-card .aka { font-size: .82rem; color: var(--slate-500); margin-top: -.35rem; }
.glossary-card .tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  margin-right: .35rem;
}
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--slate-600); }
.consent-row input { margin-top: .25rem; }
.form-error { color: #b91c1c; font-size: .85rem; margin: .35rem 0 0; display: none; }
.form-error.show { display: block; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; margin: 1rem 0; }
.compare-table th, .compare-table td { border: 1px solid #e5e7eb; padding: .65rem .75rem; text-align: left; vertical-align: top; }
.compare-table th { background: #111827; color: #f9fafb; }
.compare-table tr:nth-child(even) td { background: #f9fafb; }
.roi-box { background: #111827; color: #e5e7eb; border-radius: 12px; padding: 1.25rem 1.4rem; margin: 1.25rem 0; }
.roi-box h3 { color: #f59e0b; margin-top: 0; }
.roi-box .muted { color: #9ca3af; }
.ops-local-footer { font-size: .75rem; color: #6b7280; margin-top: .75rem; }
.ops-local-footer a { color: #6b7280; text-decoration: underline; }
.demo-dismiss-bar { background: #fff7ed; border: 1px solid #fdba74; border-radius: 8px; padding: .75rem 1rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }




.snapshot-blurb {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px;
  background: #f0f9ff; border: 1px solid #bae6fd; color: #0c4a6e;
  font-size: .92rem; line-height: 1.45; max-width: 46rem;
}
.snapshot-blurb-sparse, .snapshot-blurb-empty {
  background: #fffbeb; border-color: #fcd34d; color: #78350f;
}
.snapshot-blurb a { color: inherit; font-weight: 600; text-decoration: underline; }
.contam-glossary-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.contam-glossary-link:hover { color: var(--blue-700, #0369a1); }
.empty-detections {
  padding: 1.25rem; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc;
}
@media (max-width: 640px) {
  .snapshot-blurb { font-size: .86rem; }
}


/* Readability pass — plain English framing */
.snapshot-blurb p { margin: .45rem 0 0; }
.means-box {
  margin-top: 1rem; padding: 1rem 1.15rem; max-width: 46rem;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.means-box-title { margin: 0 0 .55rem; font-size: 1.05rem; color: var(--blue-900, #0c4a6e); }
.means-box-list { margin: 0; padding-left: 1.15rem; font-size: .92rem; line-height: 1.45; color: #334155; }
.means-box-list li { margin: 0 0 .4rem; }
.means-box-foot { margin-top: .65rem; font-size: .82rem; color: #64748b; }
.plain-rank { margin: .55rem 0 .35rem; font-size: 1.02rem; color: #0f172a; }
.plain-means { margin: .35rem 0 .5rem; font-size: .92rem; color: #334155; }
.health-concerns {
  margin: .45rem 0 .7rem; padding: .65rem .8rem; border-radius: 8px;
  background: #f8f7f4; border: 1px solid #e2e8f0; border-left: 3px solid #94a3b8;
  font-size: .88rem; color: #475569;
}
.health-concerns-label {
  margin: 0 0 .35rem; font-weight: 700; font-size: .8rem; letter-spacing: .03em;
  text-transform: uppercase; color: #64748b;
}
.health-concerns-list {
  margin: 0 0 .5rem; padding-left: 1.15rem;
}
.health-concerns-list li { margin: 0 0 .2rem; font-weight: 500; color: #475569; }
.health-concerns-overview { margin: 0 0 .35rem; color: #475569; line-height: 1.45; }
.health-concerns-foot { margin: 0; font-size: .8rem; color: #64748b; }
/* legacy soft concern block kept for any cached markup */
.associated-concern {
  margin: .35rem 0 .65rem; padding: .55rem .7rem; border-radius: 8px;
  background: #f8fafc; border-left: 3px solid #94a3b8; font-size: .88rem; color: #475569;
}
.associated-concern-label { font-weight: 700; color: #334155; }

.contam-stats-secondary { opacity: .95; }
.contam-stats-secondary .stat-label { font-size: .72rem; }
.contam-stats-secondary .unit { font-weight: 500; font-size: .85em; color: #64748b; }
.contam-blurb { margin-top: .75rem; margin-bottom: .35rem; font-size: .88rem; }
.concern-disclaimer {
  font-size: .84rem; color: #64748b; background: #f8fafc;
  border: 1px dashed #cbd5e1; border-radius: 8px; padding: .65rem .8rem; margin: 0 0 .85rem;
}
@media (max-width: 640px) {
  .means-box { padding: .85rem .95rem; }
  .plain-rank { font-size: .95rem; }
}

.goal-compare {
  margin: .35rem 0 .5rem; padding: .55rem .75rem; border-radius: 8px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-size: .92rem; line-height: 1.4;
}
.goal-compare-label { font-weight: 700; color: #7c2d12; }
.contaminant-warn .goal-compare { background: #fffbeb; }
.contaminant-alert .goal-compare { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.contaminant-alert .goal-compare-label { color: #991b1b; }


/* Treatment strip on contaminant cards */
.treatment-strip {
  margin-top: .75rem;
  padding: .65rem .75rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-sm);
}
.treatment-strip-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--teal-700, #0f766e);
  margin-bottom: .4rem;
}
.treat-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.treat-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.treat-chip-name { opacity: .85; font-weight: 700; }
.treat-strong { background: #ccfbf1; color: #115e59; border-color: #5eead4; }
.treat-certified { background: #e0f2fe; color: #075985; border-color: #7dd3fc; }
.treat-limited { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.treat-no { background: #f8fafc; color: #94a3b8; border-color: #e2e8f0; text-decoration: line-through; text-decoration-color: #cbd5e1; }
.treatment-strip-note { font-size: .8rem; margin: .45rem 0 0; }
.treatment-takeaway { margin: 0 0 .75rem; }
.treatment-sales-soft { font-size: .9rem; margin: 0 0 1rem; }
.filter-compare-3 { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .filter-compare.filter-compare-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.disinfection-panel {
  margin: 1.1rem 0 0;
  padding: 1rem 1.1rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
}
.disinfection-panel h3 {
  margin: 0 0 .4rem;
  font-size: .95rem;
  color: #92400e;
}
.disinfection-panel p { font-size: .88rem; color: #78350f; }
.disinfection-panel-foot { font-size: .8rem !important; margin-top: .5rem !important; }
/* Keep legacy filter-tag usable if referenced */
.filter-tag { /* unchanged fallback */ }

/* ——— PWA install banner ——— */
.pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  transform: translateY(110%);
  transition: transform 0.28s ease;
}
.pwa-install-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.pwa-install-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.pwa-install-icon img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.pwa-install-copy {
  flex: 1 1 12rem;
  min-width: 0;
}
.pwa-install-copy strong {
  display: block;
  color: var(--blue-900);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.pwa-install-copy p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.4;
}
.pwa-install-ios {
  margin-top: 0.4rem !important;
  font-size: 0.8rem !important;
  color: var(--slate-700) !important;
}
.pwa-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}
.pwa-install-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

/* Offline page */
.offline-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.offline-card h1 {
  font-size: 1.5rem;
  color: var(--blue-900);
}
.offline-actions {
  margin-top: 1.25rem;
}
