/* The existing site owns its shell and branding; these rules size document content. */
.water-document {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 3rem;
  color: var(--ink, #193834);
  line-height: 1.65;
}
.water-document h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin: 0.5rem 0 1.25rem;
}
.water-document h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
}
.water-document h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}
.water-document p,
.water-document li {
  max-width: 78ch;
}
.water-document p {
  margin: 0.75rem 0;
}
.water-document a {
  color: #21665b;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.water-document a:hover {
  color: #153f39;
}
.water-document .introduction {
  max-width: 76ch;
  font-size: 1.1rem;
}
.water-document .page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.water-document .table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0;
}
.water-document table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
}
.water-document th,
.water-document td {
  border-bottom: 1px solid #d8e2dd;
  padding: 0.85rem 1rem;
  vertical-align: top;
}
.water-document th {
  background: #eaf1ec;
  font-weight: 650;
}
.water-document th:first-child,
.water-document td:first-child {
  padding-left: 0.65rem;
}
.water-document code {
  font:
    0.9em ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.water-document pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: #edf2ef;
  line-height: 1.55;
}
.water-document pre code {
  overflow-wrap: normal;
}
.water-document .source-note {
  padding-left: 1rem;
  border-left: 3px solid #b7ccc2;
}
.water-document .credit {
  color: #465e55;
  font-size: 0.94rem;
}
.water-document .gauge-list {
  columns: 2;
  max-width: 38rem;
  padding-left: 1.25rem;
}
.water-document .gauge-list li {
  break-inside: avoid;
}
