@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;
}

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-page-location {
  color: var(--tt-muted);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.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;
}

.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;
}

.tt-home-states {
  border-top: 2px solid var(--tt-ink);
  margin-bottom: 2.5rem;
  padding-top: 1.75rem;
}

.tt-home-states-header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tt-state-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.tt-state-grid a {
  font-weight: 600;
}

.tt-state-grid span {
  color: var(--tt-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* A .row has negative gutter margins, so a real border would overhang the content; draw the rule inside them */
.tt-home-about {
  background: linear-gradient(var(--tt-ink), var(--tt-ink)) center top / calc(100% - var(--bs-gutter-x)) 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;
}

.tt-kpi-item {
  border-left: 1px solid var(--tt-border);
  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: 0.2rem 0 0;
}

.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;
}

/* System page fact sections */
.tt-key-facts {
  border-top: 1px solid var(--tt-border);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.tt-key-facts ul {
  line-height: 1.55;
  padding-left: 1.1rem;
}

.tt-key-facts li + li {
  margin-top: 0.3rem;
}

.tt-measured-level {
  color: var(--tt-ink);
}

.tt-details summary {
  color: var(--tt-accent);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tt-system-links {
  column-gap: 2rem;
  columns: 2 16rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-system-links li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

.tt-system-links .tt-mini-note {
  display: block;
}

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

/* Breadcrumb trail on system and /water pages */
.tt-breadcrumbs ol {
  color: var(--tt-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 0.25rem 0;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.tt-breadcrumbs li + li::before {
  color: var(--tt-muted);
  content: "/";
  margin: 0 0.45rem;
}

.tt-breadcrumbs [aria-current="page"] {
  color: var(--tt-ink);
}

/* /water hub pages */
.tt-hub-lead {
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 50rem;
}

.tt-hub-lead p {
  margin-bottom: 0.6rem;
}

.tt-area-links {
  column-gap: 2rem;
  columns: 3 12rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-area-links li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.tt-area-links .tt-mini-note {
  color: var(--tt-muted);
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

.tt-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
