/* Site Plain stylesheet.
   Everything above the "Site Plain additions" line is Tap Truth's app.css
   (tap-truth.com, commit 17c5b1d) kept in the same order so the two files diff cleanly.
   Site Plain changes inside that part: the status tokens in :root and the
   reduced-motion guard on smooth scrolling. */
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --tt-bg: #ffffff;
  --tt-bg-alt: #f3f3f1;
  --tt-surface: #ffffff;
  --tt-surface-soft: #ffffff;
  --tt-ink: #11263d;
  --tt-ink-soft: #244d78;
  --tt-muted: #55667a;
  --tt-border: #dde1e6;
  --tt-border-strong: #b8c0ca;
  --tt-input-border: #7b8794;
  --tt-accent: #7a5822;
  --tt-accent-strong: #5e420f;
  --tt-accent-soft: #f3f3f1;
  --tt-alert: #9b1c1c;
  --tt-shadow-soft: none;
  --tt-shadow-card: none;
  --tt-radius-lg: 4px;
  --tt-radius-md: 4px;
  --tt-radius-sm: 2px;
  --bs-border-radius: 4px;
  --bs-border-radius-sm: 2px;
  --bs-border-radius-lg: 4px;
  --bs-border-radius-xl: 4px;

  /* Site Plain only: EPA human exposure status. Meanings never change:
     red = not under control, yellow = under control,
     green = long-term protection achieved, gray = insufficient data or not reported */
  --sp-status-red: #9b1c1c;
  --sp-status-yellow: #b8860b;
  --sp-status-green: #2d7a46;
  --sp-status-gray: #6c757d;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--tt-bg);
  color: var(--tt-ink);
  font-family: "Public Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--tt-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--tt-accent);
  text-decoration: underline;
  text-decoration-color: var(--tt-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tt-accent-strong);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.tt-choice-card:focus-within {
  outline: 2px solid var(--tt-accent);
  outline-offset: 2px;
}

.bg-page {
  background: var(--tt-bg);
  min-height: 100vh;
}

/* Section labels: sentence-case headings, not tracked caps */
.eyebrow {
  color: var(--tt-ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.tt-masthead {
  background: #fff;
  border-bottom: 2px solid var(--tt-ink);
}

.tt-masthead-inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 0.85rem 0;
}

.tt-brand {
  color: var(--tt-ink);
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 36rem;
}

.tt-brand:hover {
  color: var(--tt-ink);
}

.tt-brand-mark {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tt-brand-sub {
  color: var(--tt-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.tt-nav {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.tt-nav-link {
  color: var(--tt-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.tt-nav-link:hover {
  color: var(--tt-accent-strong);
}

.tt-nav-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.tt-footer {
  background: #fff;
  border-top: 2px solid var(--tt-ink);
  color: var(--tt-ink);
  margin-top: 3rem;
  padding: 1.75rem 0 2.5rem;
}

.tt-footer-meta {
  color: var(--tt-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 48rem;
}

.tt-footer-meta p:first-child {
  color: var(--tt-ink);
}

.tt-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 0.75rem;
}

.tt-footer-link {
  font-weight: 600;
}

.tt-page-intro {
  margin-bottom: 2rem;
}

.tt-page-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 24ch;
}

.tt-report-header .tt-page-title {
  max-width: none;
}

.tt-page-subtitle {
  color: var(--tt-ink);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 44rem;
}

.tt-surface {
  background: var(--tt-surface);
  border: 1px solid var(--tt-border-strong);
  border-radius: var(--tt-radius-md);
}

.tt-surface-soft {
  background: var(--tt-surface);
  border: 1px solid var(--tt-border-strong);
  border-radius: var(--tt-radius-md);
}

.tt-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tt-card-kicker {
  color: var(--tt-ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
}

.tt-section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tt-subheading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.tt-muted-copy {
  color: var(--tt-muted);
  line-height: 1.6;
}

.tt-btn-primary {
  background: var(--tt-ink);
  border: 2px solid var(--tt-ink);
  border-radius: var(--tt-radius-sm);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
}

.tt-btn-primary:hover,
.tt-btn-primary:focus {
  background: #0a1828;
  border-color: #0a1828;
  color: #fff;
}

.tt-btn-secondary {
  background: #fff;
  border: 1px solid var(--tt-ink);
  border-radius: var(--tt-radius-sm);
  color: var(--tt-ink);
  font-weight: 700;
  padding: 0.8rem 1.2rem;
}

.tt-btn-secondary:hover,
.tt-btn-secondary:focus {
  background: var(--tt-bg-alt);
  color: var(--tt-ink);
}

.tt-input.form-control,
.tt-input.form-select {
  background-color: #fff;
  border: 1px solid var(--tt-input-border);
  border-radius: var(--tt-radius-sm);
  box-shadow: none;
  color: var(--tt-ink);
  min-height: 3.25rem;
}

.tt-input.form-control:focus,
.tt-input.form-select:focus {
  border-color: var(--tt-ink);
  box-shadow: 0 0 0 2px var(--tt-accent);
}

.tt-field-label,
.tt-primary-input-label {
  color: var(--tt-ink);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Lookup tabs: a plain tab strip with an underline for the active tab */
.tt-segmented {
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0;
}

/* Both choices read as buttons: the selected one is filled, the other is a gray button with a border */
.tt-segmented .nav-link {
  background: var(--tt-bg-alt);
  border: 1px solid var(--tt-border-strong);
  border-radius: var(--tt-radius-sm);
  color: var(--tt-ink-soft);
  cursor: pointer;
  font-weight: 700;
  height: 100%;
  line-height: 1.3;
  min-height: 3rem;
  padding: 0.7rem 1rem;
}

.tt-segmented .nav-link:hover {
  background: #e4e7eb;
  border-color: var(--tt-input-border);
  color: var(--tt-ink);
}

.tt-segmented .nav-link.active,
.tt-segmented .nav-link.active:hover {
  background: var(--tt-ink);
  border-color: var(--tt-ink);
  color: #ffffff;
}

/* Bootstrap adds a blue box-shadow halo on focus; the accent outline is the only focus mark */
.tt-segmented .nav-link:focus,
.tt-segmented .nav-link:focus-visible {
  box-shadow: none;
}

.tt-segmented .nav-link:focus-visible {
  outline: 3px solid var(--tt-accent);
  outline-offset: 2px;
}

.tt-home-hero {
  margin-bottom: 3rem;
}

.tt-home-intro {
  margin: 0.75rem 0 1.25rem;
}

.tt-home-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  max-width: 24ch;
}

.tt-home-subtitle {
  color: var(--tt-ink);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  max-width: 46rem;
}

.tt-home-action-shell {
  border: 2px solid var(--tt-ink);
  max-width: 50rem;
  padding: 1rem 1.25rem 1.25rem;
}

.tt-home-support {
  margin-top: 1.25rem;
  max-width: 50rem;
}

.tt-home-stats {
  border-top: 1px solid var(--tt-border-strong);
}

.tt-home-stat {
  border-bottom: 1px solid var(--tt-border-strong);
  line-height: 1.55;
  margin: 0;
  padding: 0.75rem 0;
}

.tt-stat-copy {
  color: var(--tt-ink);
  font-weight: 600;
}

.tt-stat-source {
  color: var(--tt-muted);
  display: block;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

/* A .row has negative gutter margins, so a real border would overhang the content; draw the rule inside them,
   starting at the content edge and no wider than the stats column above it (.tt-home-support, 50rem) */
.tt-home-about {
  background: linear-gradient(var(--tt-ink), var(--tt-ink)) calc(var(--bs-gutter-x) * 0.5) top / min(calc(100% - var(--bs-gutter-x)), 50rem) 2px no-repeat;
  padding-top: 1.75rem;
}

.tt-home-about p {
  line-height: 1.65;
  max-width: 38rem;
}

.tt-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-source-list li {
  border-top: 1px solid var(--tt-border);
  padding: 0.65rem 0;
}

.tt-source-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.tt-source-list a {
  font-weight: 700;
}

.tt-source-date {
  color: var(--tt-ink);
  font-size: 0.9rem;
  margin-left: 0.35rem;
}

.tt-source-date::before {
  content: "(";
}

.tt-source-date::after {
  content: ")";
}

.tt-source-limit {
  color: var(--tt-muted);
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.15rem;
}

.tt-primary-lookup-pane,
.tt-secondary-lookup-pane {
  border-radius: 0;
  padding: 1rem 0 0;
}

.tt-primary-lookup-pane {
  background: #fff;
  position: relative;
}

.tt-secondary-lookup-pane {
  background: #fff;
}

.tt-lookup-band .tt-primary-lookup-pane {
  border: 2px solid var(--tt-ink);
  border-radius: var(--tt-radius-md);
  padding: 1rem 1.25rem 1.25rem;
}

.tt-primary-input.form-control {
  border-color: var(--tt-ink);
}

.tt-pane-badge {
  color: var(--tt-ink);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.tt-primary-input.form-control::placeholder,
.tt-input.form-control::placeholder {
  color: #6f7d8c;
}

.tt-address-field-shell {
  position: relative;
}

.tt-address-suggestions {
  background: #fff;
  border: 1px solid var(--tt-ink);
  border-radius: var(--tt-radius-sm);
  display: grid;
  gap: 0;
  left: 0;
  margin-top: 0.25rem;
  max-height: 18rem;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 15;
}

.tt-address-suggestion {
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--tt-border);
  color: var(--tt-ink);
  display: flex;
  font-size: 0.97rem;
  padding: 0.8rem 1rem;
  text-align: left;
  width: 100%;
}

.tt-address-suggestion:last-child {
  border-bottom: none;
}

.tt-address-suggestion:hover,
.tt-address-suggestion.is-active {
  background: var(--tt-bg-alt);
  color: var(--tt-accent-strong);
}

.tt-address-suggestion-text {
  display: block;
  line-height: 1.4;
}

.tt-input-note {
  align-items: center;
  color: var(--tt-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.45rem 0.85rem;
  justify-content: space-between;
  margin-top: 0.6rem;
}

.tt-input-note-primary {
  color: var(--tt-ink);
}

.tt-input-note-secondary {
  color: var(--tt-muted);
  font-size: 0.85rem;
}

.tt-panel-card,
.tt-side-card,
.tt-choice-card,
.tt-directory-item {
  background: #fff;
  border: 1px solid var(--tt-border-strong);
  border-radius: var(--tt-radius-md);
}

.tt-panel-card,
.tt-side-card {
  padding: 1.25rem;
}

.tt-panel-copy {
  color: var(--tt-ink);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}

.tt-report-header {
  padding: 0;
}

.tt-report-meta {
  color: var(--tt-muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.tt-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-meta-list li::after {
  color: var(--tt-muted);
  content: "\00b7";
  margin-left: 0.5rem;
}

.tt-meta-list li:last-child::after {
  content: "";
  margin: 0;
}

/* Summary numbers: one ruled row, no boxes */
.tt-kpi-strip {
  border-bottom: 1px solid var(--tt-border-strong);
  border-top: 1px solid var(--tt-border-strong);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  margin: 1.5rem 0 1rem;
}

/* Each item is a column whose value sits at the bottom, so values share one baseline when a label wraps */
.tt-kpi-item {
  border-left: 1px solid var(--tt-border);
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
}

.tt-kpi-item:first-child {
  border-left: none;
  padding-left: 0;
}

.tt-kpi-strip dt {
  color: var(--tt-muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

.tt-kpi-strip dd {
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.1;
  margin: auto 0 0;
  padding-top: 0.2rem;
}

.tt-alert-text {
  color: var(--tt-alert);
}

.tt-report-share {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 992px) {
  .tt-report-share {
    align-items: flex-end;
  }
}

.tt-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tt-report-share-button {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem;
}

.tt-share-icon {
  display: inline-flex;
  height: 1rem;
  width: 1rem;
}

.tt-share-icon svg {
  fill: currentColor;
  height: 100%;
  width: 100%;
}

.tt-report-share-status {
  color: var(--tt-muted);
  font-size: 0.85rem;
  min-height: 1rem;
}

.tt-report-scope-note {
  border-left: 3px solid var(--tt-ink);
  color: var(--tt-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 50rem;
  padding: 0.1rem 0 0.1rem 0.9rem;
}

.tt-results-grid {
  align-items: start;
  margin-top: 0;
}

.tt-side-stack {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.tt-system-facts {
  display: grid;
  gap: 0.6rem;
}

.tt-fact-row {
  align-items: baseline;
  border-bottom: 1px solid var(--tt-border);
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}

.tt-fact-label {
  color: var(--tt-muted);
  font-size: 0.88rem;
}

.tt-fact-value {
  color: var(--tt-ink);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.tt-system-facts .tt-mini-note {
  margin-top: -0.2rem;
}

/* Record tables (results, system page, lead pipes, about) */
.tt-record-table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--tt-border);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}

.tt-record-table > :not(caption) > * > * {
  padding: 0.5rem 0.5rem 0.5rem 0;
}

.tt-record-table > :not(caption) > * > * + * {
  padding-left: 0.75rem;
}

.tt-record-table thead th {
  border-bottom: 2px solid var(--tt-ink);
  color: var(--tt-ink);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.tt-record-table tbody th {
  font-weight: 400;
}

.tt-record-table tbody tr:last-child > * {
  border-bottom: 1px solid var(--tt-border-strong);
}

.tt-record-table .tt-row-strong > * {
  font-weight: 700;
}

.tt-cell-detail {
  color: var(--tt-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.tt-cell-date {
  white-space: nowrap;
}

.tt-status-unresolved,
.tt-status-unresolved > span {
  color: var(--tt-alert);
  font-weight: 700;
}

.tt-record-table tr.tt-overflow-item {
  display: none;
}

.tt-directory {
  border-top: 1px solid var(--tt-border-strong);
  padding-top: 1rem;
}

.tt-directory-item,
.tt-choice-card {
  padding: 1rem 1.15rem;
}

.tt-directory-item {
  color: inherit;
  display: block;
  text-decoration: none;
}

.tt-directory-item:hover,
.tt-directory-item:focus {
  border-color: var(--tt-ink);
  color: inherit;
}

.tt-choice-card {
  cursor: pointer;
  display: block;
}

.tt-choice-card:hover {
  border-color: var(--tt-ink);
}

.tt-choice-card .form-check-input {
  border-width: 2px;
}

.tt-state-card {
  padding: 1.5rem;
}

.tt-state-card ul {
  line-height: 1.7;
  padding-left: 1.15rem;
}

.tt-mini-note {
  color: var(--tt-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.tt-card-link {
  color: var(--tt-accent-strong);
  font-weight: 700;
}

.tt-lead-notice {
  border-left: 3px solid var(--tt-accent);
  padding: 0.1rem 0 0.1rem 0.9rem;
}

.tt-lead-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.tt-lead-footnote {
  border-top: 1px solid var(--tt-border-strong);
  color: var(--tt-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  padding-top: 0.75rem;
}

.tt-contaminant-item {
  border-top: 1px solid var(--tt-border);
  padding: 0.9rem 0;
}

.tt-contaminant-item:first-child {
  border-top: none;
  padding-top: 0;
}

.tt-contaminant-name {
  font-size: 1.05rem;
  margin: 0;
}

.tt-contaminant-count {
  color: var(--tt-muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.tt-about-grid {
  display: grid;
  gap: 2.25rem;
}

/* Let wide tables scroll inside their wrapper instead of widening the grid column */
.tt-about-grid > * {
  min-width: 0;
}

.tt-author-note {
  border-top: 2px solid var(--tt-ink);
  max-width: 46rem;
  padding-top: 1.5rem;
}

.tt-notes-card .small {
  line-height: 1.55;
}

.tt-feedback-textarea {
  min-height: 11rem;
  resize: vertical;
}

.alert {
  border-radius: var(--tt-radius-md);
}

@media (max-width: 991.98px) {
  .tt-side-stack {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .tt-masthead-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    min-height: unset;
  }

  .tt-nav {
    flex-wrap: wrap;
    width: 100%;
  }

  .tt-home-action-shell,
  .tt-panel-card,
  .tt-side-card,
  .tt-state-card {
    padding: 1rem;
  }

  .tt-home-hero {
    margin-bottom: 2rem;
  }

  .tt-segmented .nav-link {
    font-size: 0.92rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .tt-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-kpi-item,
  .tt-kpi-item:first-child {
    border-left: none;
    border-top: 1px solid var(--tt-border);
    padding: 0.6rem 0.75rem 0.6rem 0;
  }

  .tt-kpi-item:nth-child(-n+2) {
    border-top: none;
  }

  .tt-kpi-strip dd {
    font-size: 1.6rem;
  }

  .tt-fact-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .tt-fact-value {
    text-align: left;
  }
}

@media print {
  @page {
    margin: 0.55in 0.5in 0.8in;
  }

  body {
    color: #1c1c18;
  }

  .tt-masthead,
  .tt-footer,
  .tt-btn-check-another,
  .tt-report-actions,
  .tt-report-share-status,
  .tt-show-more,
  .tt-home-segmented,
  .tt-home-submit {
    display: none !important;
  }

  .bg-page {
    background: #fff;
  }

  .tt-print-header,
  .tt-print-footer {
    display: flex !important;
  }

  .tt-print-header {
    align-items: baseline;
    border-bottom: 1px solid #d8cfbe;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
  }

  .tt-print-footer {
    border-top: 1px solid #d8cfbe;
    bottom: 0;
    color: #6e6658;
    font-size: 0.72rem;
    justify-content: center;
    left: 0;
    padding: 0.2rem 0;
    position: fixed;
    right: 0;
  }

  .tt-side-stack,
  .tt-report-section,
  .tt-violation-card,
  .tt-side-card,
  .tt-panel-card {
    break-inside: avoid;
    page-break-inside: avoid;
    position: static;
  }

  .tt-boundary-map {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Results page additions */

.tt-print-header,
.tt-print-footer {
  display: none;
}

.tt-print-brand {
  color: var(--tt-ink);
  font-size: 1rem;
  font-weight: 700;
}

.tt-print-url {
  color: var(--tt-muted);
  font-size: 0.82rem;
}

.tt-boundary-map {
  border-radius: inherit;
  display: block;
  height: 220px;
  width: 100%;
}

.tt-water-body-suggestion-detail {
  color: var(--tt-muted);
  display: block;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.tt-inline-warning {
  color: var(--tt-alert);
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 0.45rem;
}

/* Report sections */
.tt-report-section {
  margin-bottom: 2.5rem;
}

.tt-report-section-header {
  align-items: baseline;
  border-bottom: 2px solid var(--tt-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
}

.tt-report-section-title {
  color: var(--tt-ink);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.tt-report-section-count {
  color: var(--tt-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.tt-section-note {
  color: var(--tt-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.tt-empty-note {
  color: var(--tt-ink);
  margin-bottom: 0;
}

/* Record status: plain text, red only for unresolved and acute */
.tt-badge {
  font-weight: 600;
  white-space: nowrap;
}

.tt-badge-active,
.tt-badge-acute {
  color: var(--tt-alert);
  font-weight: 700;
}

.tt-badge-resolved {
  color: var(--tt-ink);
}

/* Show more button */
.tt-show-more {
  background: none;
  border: none;
  color: var(--tt-accent);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 0.75rem;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.tt-show-more:hover {
  color: var(--tt-accent-strong);
}

/* "Check another address" link */
.tt-btn-check-another {
  font-size: 0.92rem;
  font-weight: 600;
}

/* ==========================================================================
   Site Plain additions
   ========================================================================== */

/* Home search: Site Plain toggles its two panels with /js/home.js, not Bootstrap JS.
   Panel spacing comes from the forms inside (.tt-primary-lookup-pane, .tt-site-search-pane). */
.tt-site-search-pane {
  padding: 1rem 0 0;
}

.js-enabled .tt-search-panel {
  display: none;
}

.js-enabled .tt-search-panel.is-active {
  display: block;
}

.tt-search-panel:focus-visible {
  outline: 2px solid var(--tt-accent);
  outline-offset: 2px;
}

/* Site name suggestions carry a state and EPA ID line, styled like Tap Truth's suggestion detail */
.tt-address-suggestion {
  flex-direction: column;
  align-items: flex-start;
}

.tt-address-suggestion-meta {
  color: var(--tt-muted);
  display: block;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.tt-home-facts {
  color: var(--tt-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0.75rem 0 0;
}

.tt-home-section {
  margin-top: 2.5rem;
}

.tt-home-section-lead {
  color: var(--tt-ink);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 46rem;
}

/* Ruled list of short items (home "Use it for" and "How it works") */
.sp-ruled-list {
  border-top: 1px solid var(--tt-border-strong);
  counter-reset: sp-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-ruled-list > li {
  border-bottom: 1px solid var(--tt-border);
  padding: 0.85rem 0;
}

.sp-ruled-list h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.sp-ruled-list p {
  color: var(--tt-ink);
  line-height: 1.6;
  margin: 0;
  max-width: 46rem;
}

.sp-ruled-list-steps > li {
  counter-increment: sp-step;
  padding-left: 2.25rem;
  position: relative;
}

.sp-ruled-list-steps > li::before {
  color: var(--tt-ink);
  content: counter(sp-step);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  left: 0;
  position: absolute;
  top: 0.8rem;
}

/* EPA human exposure status: ink text with a colored square; red text only for "not under control"; gray is muted with a hollow square */
.sp-status {
  align-items: flex-start;
  color: var(--tt-ink);
  display: inline-flex;
  font-weight: 600;
  gap: 0.5rem;
  line-height: 1.35;
}

.sp-status::before {
  background: var(--sp-swatch, transparent);
  border: 1px solid var(--sp-swatch-border, var(--sp-swatch));
  content: "";
  flex: 0 0 auto;
  height: 0.75rem;
  margin-top: 0.22em;
  width: 0.75rem;
}

.sp-status-red {
  --sp-swatch: var(--sp-status-red);
  color: var(--tt-alert);
  font-weight: 700;
}

.sp-status-yellow {
  --sp-swatch: var(--sp-status-yellow);
}

.sp-status-green {
  --sp-swatch: var(--sp-status-green);
}

.sp-status-gray {
  --sp-swatch: transparent;
  --sp-swatch-border: var(--sp-status-gray);
  color: var(--tt-muted);
}

@media print, (forced-colors: active) {
  .sp-status::before {
    forced-color-adjust: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Status key shown near results and in the map card */
.sp-status-legend {
  font-size: 0.85rem;
}

.sp-status-legend-title {
  color: var(--tt-ink);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.sp-status-legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-map-legend {
  padding: 0.75rem 1rem 1rem;
}

.sp-map-legend .sp-status-legend-list {
  display: grid;
  gap: 0.3rem;
}

/* Caveat notices (approximate location, no published boundary): ink rule, no fill */
.sp-notice {
  border-left: 3px solid var(--tt-ink);
  color: var(--tt-ink);
  line-height: 1.55;
  max-width: 50rem;
  padding: 0.1rem 0 0.1rem 0.9rem;
}

.sp-notice-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* Site records on the results page */
.sp-site-item {
  border-top: 1px solid var(--tt-border);
  padding: 0.9rem 0;
}

.sp-site-item:first-child {
  border-top: none;
  padding-top: 0;
}

.sp-site-item-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.sp-site-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.sp-site-name a {
  color: var(--tt-ink);
  text-decoration-color: var(--tt-border-strong);
}

.sp-site-name a:hover {
  color: var(--tt-accent-strong);
  text-decoration-color: var(--tt-accent-strong);
}

.sp-site-distance {
  color: var(--tt-ink);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.sp-site-distance.is-inside {
  border-bottom: 2px solid var(--tt-ink);
}

.sp-site-links {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 0.4rem 1.4rem;
}

.sp-results-map {
  display: block;
  height: 320px;
  width: 100%;
}

/* Results page: site list, side column, feedback form. Stacked in that order below 1200px. From 1200px a
   two-column grid with the same columns and gutters as the .row it replaces, the side column spanning both
   rows, so the form follows the site list directly. */
.sp-report-layout > .sp-report-feedback {
  margin-top: 0;
}

@media (min-width: 1200px) {
  .sp-report-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto 1fr;
  }

  .sp-report-layout > * {
    width: auto;
  }

  .sp-report-main {
    grid-column: 1;
    grid-row: 1;
  }

  .sp-report-side {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .sp-report-feedback {
    grid-column: 1;
    grid-row: 2;
  }
}

/* "Was this page useful?" form at the end of report pages */
.sp-feedback {
  border-top: 2px solid var(--tt-ink);
  margin-top: 2.5rem;
  max-width: 46rem;
  padding-top: 1.5rem;
}

.sp-feedback .tt-feedback-textarea {
  min-height: 7rem;
}

.sp-choice-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.sp-choice-group legend {
  float: none;
  margin-bottom: 0.5rem;
}

.sp-choice-group .form-check-input {
  border-color: var(--tt-input-border);
  border-width: 2px;
}

/* 24px radios (WCAG 2.5.8 target size), with the label beside them */
.sp-choice-group .form-check {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  min-height: 2rem;
  padding-left: 0;
}

.sp-choice-group .form-check .form-check-input {
  float: none;
  height: 1.5rem;
  margin: 0;
  width: 1.5rem;
}

.sp-choice-group .form-check-input:checked {
  background-color: var(--tt-ink);
  border-color: var(--tt-ink);
}

.sp-choice-group .form-check-input:focus {
  border-color: var(--tt-ink);
  box-shadow: 0 0 0 2px var(--tt-accent);
}

@media (max-width: 767.98px) {
  .sp-site-distance {
    white-space: normal;
  }

  .tt-home-submit {
    width: 100%;
  }
}

@media print {
  .sp-feedback,
  #results-map,
  .sp-map-legend {
    display: none !important;
  }

  .sp-site-item,
  .tt-report-section-header {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Plain ruled list of links (results: state sites with no published boundary) */
.sp-link-list {
  border-top: 1px solid var(--tt-border);
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-link-list li {
  border-bottom: 1px solid var(--tt-border);
  padding: 0.55rem 0;
}

/* Side card link lists: links keep weight 700 from .tt-source-list */
.sp-side-links li {
  padding: 0.5rem 0;
}

/* Caption under the results map */
.sp-map-caption {
  border-top: 1px solid var(--tt-border);
  padding: 0.75rem 1rem 1rem;
}

/* EPA's own pathway paragraph on the site page */
.sp-epa-text {
  line-height: 1.6;
  max-width: 46rem;
}

/* Two-column site tables on the state page: the status column wraps instead of scrolling sideways */
.sp-site-table .sp-status {
  white-space: normal;
}

.sp-directory-name {
  color: var(--tt-ink);
}

/* Placeholder text: darker than Tap Truth's #6f7d8c (4.21:1) so it reaches 4.5:1 on white */
.tt-primary-input.form-control::placeholder,
.tt-input.form-control::placeholder {
  color: #5f6d7c;
}

/* Larger tap targets on phones: 44px buttons and padded inline links */
@media (max-width: 767.98px) {
  .tt-nav-button,
  .tt-report-share-button {
    min-height: 2.75rem;
  }

  .tt-nav-link,
  .tt-footer-link,
  .tt-btn-check-another,
  .sp-site-links a {
    display: inline-block;
    padding: 0.4rem 0;
  }

  .sp-site-name a,
  .sp-link-list a,
  .sp-side-links a,
  .sp-site-table td:first-child a {
    display: inline-block;
    padding: 0.3rem 0;
  }

  .sp-link-list li,
  .sp-side-links li {
    padding: 0.35rem 0;
  }

  /* A lone link under a notice (no-match site search): a full 44px row */
  .sp-tap-link {
    align-items: center;
    display: inline-flex;
    min-height: 2.75rem;
  }
}

@media print {
  .sp-map-card {
    display: none !important;
  }
}

/* State page site tables: ink site names like the results list, and one stacked record per row on small phones */
.sp-site-table td:first-child a {
  color: var(--tt-ink);
  font-weight: 600;
  text-decoration-color: var(--tt-border-strong);
}

.sp-site-table td:first-child a:hover {
  color: var(--tt-accent-strong);
  text-decoration-color: var(--tt-accent-strong);
}

@media (max-width: 575.98px) {
  .tt-record-table.sp-site-table thead th:last-child {
    display: none;
  }

  .tt-record-table.sp-site-table tbody tr {
    border-bottom: 1px solid var(--tt-border);
    display: block;
    padding: 0.6rem 0;
  }

  .tt-record-table.sp-site-table tbody tr:last-child {
    border-bottom-color: var(--tt-border-strong);
  }

  .tt-record-table.sp-site-table tbody tr > td {
    border-bottom: 0;
    display: block;
    padding: 0;
  }

  .tt-record-table.sp-site-table tbody tr > td + td {
    margin-top: 0.35rem;
  }
}
