@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/ps-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/ps-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --surface: #f2f5f8;
  --ink: #1b2733;
  --muted: #56636f;
  --line: #d8dee5;
  --cold: #1f5c9e;
  --hot: #b8322a;
  --font: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "kern", "liga";
}
img { max-width: 100%; height: auto; }
a { color: var(--cold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cold); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.6rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { font-weight: 750; font-size: 1.12rem; letter-spacing: -0.01em; }
.header-search input {
  width: 300px; max-width: 42vw; font: inherit; font-size: .95rem;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink);
}
.main-nav { border-top: 1px solid var(--line); }
.nav-label { display: none; }
.nav-cb { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav-toggle a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav-toggle a:hover { color: var(--cold); }
.nav-toggle a[aria-current="page"] { color: var(--cold); box-shadow: inset 0 -3px 0 var(--cold); }
.nav-extra { display: none; }
.nav-more { position: relative; }
.nav-more summary { display: block; padding: 11px 0; font-weight: 600; font-size: .92rem; color: var(--ink); cursor: pointer; list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " \25BE"; color: var(--muted); }
.nav-more summary.is-current { color: var(--cold); box-shadow: inset 0 -3px 0 var(--cold); }
.nav-more summary:focus-visible { outline: 3px solid var(--cold); outline-offset: 2px; }
.nav-toggle .nav-more ul { display: block; position: absolute; right: 0; top: 100%; z-index: 20; min-width: 220px; padding: 6px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(27, 39, 51, .12); }
.nav-toggle .nav-more li a { padding: 9px 16px; }
.nav-toggle .nav-more a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cold); }
.pipes { height: 6px; background: linear-gradient(to bottom, var(--hot) 0 3px, var(--cold) 3px 6px); }

@media (max-width: 760px) {
  .header-search { display: none; }
  .main-nav .wrap { padding: 0; }
  .nav-label { display: block; cursor: pointer; padding: 12px 20px; font-weight: 650; }
  .nav-label::after { content: "+"; float: right; font-weight: 400; font-size: 1.2rem; line-height: 1; }
  .nav-cb:checked + .nav-label::after { content: "\2212"; }
  .nav-cb:focus-visible + .nav-label { outline: 3px solid var(--cold); outline-offset: -3px; }
  .nav-toggle ul { display: none; border-top: 1px solid var(--line); }
  .nav-cb:checked ~ ul { display: block; }
  .nav-toggle li + li { border-top: 1px solid var(--line); }
  .nav-toggle a { padding: 12px 20px; }
  .nav-toggle a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--cold); }
  .nav-extra { display: block; }
  .nav-more { display: none; }
}

/* ---------- Home ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.2rem); max-width: 16ch; letter-spacing: -0.02em; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 52ch; margin-bottom: 0; }
.finder { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: grid; gap: 6px; }
.finder-title { font-weight: 700; font-size: 1.12rem; margin-bottom: 8px; }
.finder label { font-size: .9rem; font-weight: 600; margin-top: 6px; }
.finder select, .finder input, .search-page input {
  font: inherit; padding: 11px 12px; border: 1px solid #b9c3cd; border-radius: 4px; background: var(--paper); color: var(--ink); width: 100%;
}
button, .finder button {
  font: inherit; font-weight: 650; cursor: pointer; border: 0; border-radius: 4px;
  background: var(--cold); color: #fff; padding: 12px 18px;
}
.finder button { margin-top: 12px; }
button:hover { background: #184c84; }

.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px 56px; padding-top: 48px; padding-bottom: 24px; }
.topic h2 { font-size: 1.3rem; padding-top: 14px; border-top: 3px solid var(--ink); }
.topic h2 a { color: var(--ink); text-decoration: none; }
.topic > .muted { font-size: .96rem; }
.link-list { list-style: none; margin: 0 0 12px; padding: 0; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.link-list a { text-decoration: none; font-weight: 550; }
.link-list a:hover { text-decoration: underline; }
.more { font-size: .94rem; font-weight: 600; }
.recent { padding-top: 24px; padding-bottom: 56px; }
.dated-list { list-style: none; margin: 0; padding: 0; columns: 2 380px; column-gap: 56px; }
.dated-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dated-list time { color: var(--muted); font-size: .88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #a3adb7; }
.crumbs a { color: var(--muted); }

/* ---------- Article ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 56px; padding-top: 18px; padding-bottom: 64px; }
.article-grid.is-page { grid-template-columns: minmax(0, 720px); }
.article-head { margin-bottom: 22px; }
.byline { color: var(--muted); font-size: .92rem; margin: 0; }
.byline a { color: var(--muted); }
.code-badge {
  display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 4px; margin-bottom: 14px; font-size: .95rem;
}
.code-badge span { padding: 4px 10px; background: var(--ink); color: #fff; font-weight: 600; }
.code-badge strong { padding: 4px 12px; font-variant-numeric: tabular-nums; font-size: 1.05rem; }

.quick-answer { background: var(--surface); border-left: 4px solid var(--cold); padding: 16px 20px; margin: 0 0 26px; }
.quick-answer p { margin: 0; font-size: 1.05rem; }
.quick-answer .qa-label { font-weight: 700; font-size: .92rem; color: var(--cold); margin-bottom: 4px; }

.prose { font-size: 1.06rem; line-height: 1.7; }
.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 1.9em; padding-top: .2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.prose .warning { border-left: 4px solid var(--hot); background: #fbf1f0; padding: 14px 18px; margin: 1.4em 0; }
.prose .warning p:last-child { margin: 0; }
.prose .tip { border-left: 4px solid var(--cold); background: var(--surface); padding: 14px 18px; margin: 1.4em 0; }
.prose .tip p:last-child { margin: 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }

.table-wrap { overflow-x: auto; margin: 1.3em 0; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-weight: 700; white-space: nowrap; }
td:first-child { font-weight: 600; }
.code-table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.code-table tr.is-current td { background: var(--surface); }

.toc { font-size: .95rem; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.toc li { margin: 6px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-inline { border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; margin-bottom: 26px; display: none; }
.toc-inline summary { font-weight: 700; cursor: pointer; }
.toc-title { font-weight: 700; margin: 0; }
.sidebar { font-size: .95rem; }
.toc-side { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.sidebar-sticky { position: sticky; top: 16px; }

.faq { margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { margin: 10px 0 4px; }

.series { margin-top: 44px; }
.series h2 { font-size: 1.25rem; padding-top: 14px; border-top: 3px solid var(--ink); }
.is-hub a { font-weight: 700; }
.author-box { margin-top: 44px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.author-box p { margin: 0; }

@media (max-width: 1000px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { display: none; }
  .toc-inline { display: block; }
}

/* ---------- Lists ---------- */
.list-head { padding: 22px 0 10px; max-width: 760px; }
.list-sub { font-size: 1.2rem; margin-top: 16px; }
.entry-list { list-style: none; padding: 0; margin: 8px 0 40px; max-width: 760px; }
.entry-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.entry-list a { font-weight: 650; font-size: 1.1rem; text-decoration: none; }
.entry-list a:hover { text-decoration: underline; }
.entry-list p { margin: 4px 0 0; color: var(--muted); font-size: .96rem; }
.hub-link { display: grid; gap: 4px; max-width: 760px; margin: 12px 0 18px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--cold); text-decoration: none; color: var(--ink); }
.hub-kicker { font-size: .88rem; font-weight: 700; color: var(--cold); }
.hub-title { font-weight: 700; font-size: 1.2rem; }
.hub-desc { color: var(--muted); font-size: .96rem; }
.hub-link:hover .hub-title { text-decoration: underline; }
.brand-list { list-style: none; padding: 0; margin: 12px 0 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 32px; }
.brand-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.brand-list a { font-weight: 650; font-size: 1.08rem; text-decoration: none; }
.notice { border-left: 4px solid var(--hot); background: #fbf1f0; padding: 12px 16px; max-width: 760px; }
.pager { display: flex; gap: 20px; align-items: center; margin-bottom: 56px; }
.search-page { display: flex; gap: 8px; margin-top: 16px; }
.search-page button { flex: 0 0 auto; }

/* ---------- Tool ---------- */
.tool { border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 20px; margin: 0 0 32px; }
.tool-title { font-size: 1.25rem; }
.tool-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tool-tabs button { background: none; color: var(--muted); border-radius: 0; padding: 10px 16px; font-weight: 650; }
.tool-tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--cold); }
.tool-tabs button:hover { background: var(--surface); }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; }
.tool-fields label { display: grid; gap: 4px; font-size: .92rem; font-weight: 600; }
.tool-fields input, .tool-fields select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #b9c3cd; border-radius: 4px; width: 100%; background: var(--paper); color: var(--ink); }
.tool-result { margin: 18px 0 0; padding: 14px 16px; background: var(--surface); border-left: 4px solid var(--cold); }
.tool-note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Ads ---------- */
.ad { margin: 30px 0; min-height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-sidebar { min-height: 600px; margin: 0; }
.ad-home_top, .ad-list_top { min-height: 100px; max-width: 1160px; margin: 28px auto; padding: 0 20px; }
.ad-placeholder { border: 1px dashed #b9c3cd; color: #8a96a2; font-size: .85rem; background: repeating-linear-gradient(45deg, #fafbfc 0 10px, #f3f5f8 10px 20px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d7dee6; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-brand { color: #fff; font-weight: 750; font-size: 1.1rem; margin-bottom: 8px; }
.site-footer .muted { color: #aeb9c4; max-width: 44ch; }
.footer-h { color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-note { margin-top: 32px; padding-top: 18px; border-top: 1px solid #34414e; color: #aeb9c4; font-size: .86rem; }
.footer-note p { margin: 0 0 6px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }


/* ---------- Article feedback ---------- */
.helpful { margin: 32px 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.helpful-q { margin: 0 0 12px; font-weight: 650; color: var(--ink); }
.helpful-btns, .helpful-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.helpful button { font: inherit; font-size: .95rem; padding: 8px 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); cursor: pointer; }
.helpful-reasons button { text-align: left; }
.helpful-thanks { margin: 0 0 8px; color: var(--ink); }
.helpful label.helpful-q { display: block; }
.helpful-text { display: block; width: 100%; font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); resize: vertical; }
.helpful-text[aria-invalid="true"] { border-color: var(--hot); }
.helpful-note { margin: 6px 0 12px; font-size: .85rem; color: var(--muted); }
.helpful .helpful-link { border: 0; background: none; padding: 8px 4px; color: var(--cold); text-decoration: underline; text-underline-offset: 3px; }
.helpful-reasons + .helpful-link { margin-top: 8px; }
@media (max-width: 760px) { .helpful-reasons button { width: 100%; } }

@media print {
  .site-header nav, .ad, .sidebar, .site-footer, .header-search, .helpful { display: none !important; }
}
.prose > .ad { max-width: none; }
.tool-checks { border: 0; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.tool-checks legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.tool-checks label { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.tool-checks input { width: 18px; height: 18px; margin: 0; }
.prose figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }

/* ---------- Local plumbing pros ---------- */
.pros-meta { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.pros-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.pros-filter a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--ink); background: var(--paper); }
.pros-filter a:hover { border-color: var(--cold); color: var(--cold); }
.pros-filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pros-list { display: grid; gap: 18px; max-width: 860px; margin-bottom: 28px; }
.pro { border: 1px solid var(--line); border-top: 4px solid var(--cold); border-radius: 6px; padding: 18px 20px; background: var(--paper); }
.pro-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.pro-head h3 { margin: 0; font-size: 1.22rem; }
.pro-badge { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; background: #fbf1f0; color: var(--hot); }
.pro-badge-ad { background: var(--surface); color: var(--muted); }
.pro-desc { margin: 4px 0 12px; color: var(--ink); }
.pro-facts { margin: 0 0 14px; display: grid; gap: 6px; }
.pro-facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: .96rem; }
.pro-facts dt { color: var(--muted); font-weight: 600; }
.pro-facts dd { margin: 0; overflow-wrap: anywhere; }
.pro-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 4px; background: var(--cold); color: #fff; font-weight: 650; text-decoration: none; }
.btn:hover { background: #184c84; color: #fff; }
.btn-ghost { background: var(--paper); color: var(--cold); border: 1px solid var(--cold); }
.btn-ghost:hover { background: var(--surface); color: var(--cold); }
.pro-foot { margin: 12px 0 0; font-size: .84rem; color: var(--muted); }
.pro-foot a { color: var(--muted); }
.pros-note { max-width: 860px; margin: 8px 0 28px; padding: 14px 18px; background: var(--surface); border-left: 4px solid var(--ink); font-size: .93rem; }
.pros-note p { margin: 0; }
.pros-prose, .pros-faq { max-width: 760px; }
.pros-faq { margin-bottom: 20px; }
.pros-nearby { max-width: 760px; margin-bottom: 56px; }
.pros-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 48px; margin: 12px 0 32px; }
.pros-state h2 { font-size: 1.2rem; padding-top: 12px; border-top: 3px solid var(--ink); }
.pros-state h2 a { color: var(--ink); text-decoration: none; }
.pros-cities { list-style: none; padding: 0; margin: 8px 0 32px; max-width: 760px; }
.pros-cities li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pros-city-link { font-weight: 650; font-size: 1.1rem; text-decoration: none; }
.pros-city-svcs { margin: 4px 0 0; font-size: .92rem; }
.pro-cta { margin: 36px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--hot); border-radius: 6px; }
.pro-cta-title { font-weight: 750; font-size: 1.15rem; margin: 0 0 4px; }
.pro-cta > p { margin: 0 0 10px; }
.pro-cta-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pro-cta-list a { font-weight: 600; }
.pro-cta .pro-cta-all { margin: 10px 0 0; font-size: .92rem; }
@media (max-width: 560px) {
  .pro-facts div { grid-template-columns: 1fr; gap: 0; }
  .pro-actions .btn { flex: 1 1 auto; text-align: center; }
}
@media print { .pro-cta { display: none !important; } }
