/* whatwatercosts.org site style (app#113, #116): Public Sans, the droplet logo's blues, quiet structure.
   Loaded by base.html for every page in the new look. Page templates use these classes; the prose pages
   (about, methodology, blog, submit) are restyled by the rules at the end. */
:root {
  --deep: #063e96; --deeper: #042b69; --water: #0867d8; --shallow: #a8d2ff; --foam: #eaf4ff;
  --navy: #102a43; --slate: #334e68; --muted: #52667a; --line: #d9e2ec; --focus: #ffbf47;
  --warn: #8a4b00; --warn-bg: #fff4e5;
}
body.wx { font-family: "Public Sans", system-ui, sans-serif; color: var(--slate); }
body.wx :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Layout */
.wx .wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wx .page-top { padding-top: 40px; padding-bottom: 8px; }
.wx .block { padding-top: 40px; padding-bottom: 48px; background: linear-gradient(var(--line), var(--line)) 24px 0 / calc(100% - 48px) 1px no-repeat; }
.wx .block.first { background: none; padding-top: 24px; }
.wx .grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .wx .grid.two { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; }
  .wx .grid.halves { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .wx .page-top { padding-top: 56px; }
}

/* Type */
.wx .t-h1 { color: var(--navy); font-weight: 700; font-size: 33.2px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
.wx .t-h2 { color: var(--navy); font-weight: 700; font-size: 23px; line-height: 1.25; margin: 0 0 12px; }
.wx .t-h3 { color: var(--navy); font-weight: 700; font-size: 19.2px; margin: 0 0 8px; }
.wx .lede { font-size: 19.2px; line-height: 1.5; color: var(--slate); max-width: 40em; margin: 0; }
.wx .muted { color: var(--muted); }
.wx .small { font-size: 15px; }
.wx .figure { color: var(--navy); font-weight: 700; font-size: 33.2px; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 0 0 4px; }
@media (min-width: 960px) { .wx .t-h1 { font-size: 47.8px; } }
.wx .w-link, .wx .lede a, .wx .prose-wx a { color: var(--water); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wx .w-link:hover, .wx .lede a:hover, .wx .prose-wx a:hover { color: var(--deep); text-decoration-thickness: 2px; }
.wx .crumbs { font-size: 15px; color: var(--muted); margin: 0 0 24px; }
.wx .crumbs a { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.wx .crumbs .sep { margin: 0 8px; color: #9fb3c8; }
.wx .review { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.wx .review a { color: var(--water); text-decoration: underline; }

/* Table */
.wx .w-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.wx .w-table th, .wx .w-table td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; color: var(--slate); }
.wx .w-table thead th { color: var(--muted); font-size: 14px; font-weight: 700; padding-top: 0; }
.wx .w-table .num { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--navy); }
.wx .w-table .sub { display: block; color: var(--muted); font-size: 14px; }
.wx .w-table a { color: var(--water); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wx .w-table a:hover { color: var(--deep); text-decoration-thickness: 2px; }

/* Panels, notices, buttons */
.wx .panel { background: var(--foam); border-radius: 8px; padding: 24px; }
.wx .notice { background: var(--warn-bg); border-left: 4px solid var(--warn); padding: 16px 18px; color: var(--navy); }
.wx .note { border-left: 4px solid var(--shallow); padding: 4px 0 4px 16px; font-size: 15px; }
.wx .cta { display: inline-block; padding: 12px 20px; border-radius: 8px; background: var(--deep); color: #fff; font-weight: 700; text-decoration: none; }
.wx .cta:hover { background: var(--deeper); color: #fff; }

/* Link lists (cities, counties, states) */
.wx .link-list { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 16px; }
.wx .link-list a { color: var(--water); text-decoration: none; }
.wx .link-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wx .link-list .count { color: var(--muted); font-size: 14px; margin-left: 4px; }

/* ---- Prose pages: restyle the existing markup (about, methodology, blog, submit) ---- */
.wx .prose-wx { font-size: 17px !important; line-height: 1.6 !important; color: var(--slate) !important; }
.wx main h1 { color: var(--navy) !important; font-weight: 700 !important; letter-spacing: -0.02em; }
.wx .prose-wx h2, .wx .methods > h2, .wx .blog-content h2 { color: var(--navy) !important; font-weight: 700 !important; font-size: 23px !important; text-transform: none !important; letter-spacing: 0 !important; }
.wx .prose-wx h3, .wx .methods > h3, .wx .blog-content h3 { color: var(--navy) !important; font-weight: 700 !important; font-size: 19.2px !important; }
.wx .prose-wx strong, .wx .methods strong { color: var(--navy) !important; font-weight: 700 !important; }
.wx .prose-wx th { color: var(--navy) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; }
.wx .prose-wx td { color: var(--slate) !important; border-bottom-color: var(--line) !important; }
.wx .prose-wx td, .wx .prose-wx th { font-family: inherit !important; }
.wx .prose-wx blockquote { border-left: 4px solid var(--shallow) !important; color: var(--slate) !important; font-family: inherit !important; font-style: normal !important; font-size: 15px !important; }
.wx .prose-wx input, .wx .prose-wx textarea { border: 2px solid var(--slate) !important; border-radius: 8px !important; font: inherit; color: var(--navy); }
.wx .prose-wx button[type=submit] { background: var(--deep) !important; color: #fff !important; border-radius: 8px !important; font-weight: 700 !important; }
.wx .toc a { color: var(--slate); }
.wx .toc a:hover { color: var(--water); }
.wx .toc .toc-label { color: var(--navy); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 15px; }
.wx .prose-wx label { text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; color: var(--navy) !important; font-weight: 700 !important; }
.wx .prose-wx h2 a, .wx .prose-wx h2 { text-decoration: none; }

/* ---- Utility page (.wu) ---- */
  .wu { --deep: #063e96; --deeper: #042b69; --water: #0867d8; --shallow: #a8d2ff; --foam: #eaf4ff;
        --navy: #102a43; --slate: #334e68; --muted: #52667a; --line: #d9e2ec; --focus: #ffbf47; --warn: #8a4b00; --warn-bg: #fff4e5;
        font-family: "Public Sans", system-ui, sans-serif; color: var(--slate); font-size: 16px; line-height: 1.5; }
  .wu .wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
  .wu h1 { color: var(--navy); font-weight: 700; font-size: 33.2px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
  .wu h2 { color: var(--navy); font-weight: 700; font-size: 23px; line-height: 1.25; margin: 0 0 12px; }
  .wu h3 { color: var(--navy); font-weight: 700; font-size: 19.2px; margin: 0 0 8px; }
  .wu p { margin: 0 0 16px; }
  .wu a { color: var(--water); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .wu a:hover { color: var(--deep); text-decoration-thickness: 2px; }
  .wu :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .wu .muted { color: var(--muted); }
  .wu .small { font-size: 15px; }
  .wu .review { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
  .wu .crumbs { font-size: 15px; color: var(--muted); margin: 0 0 24px; }
  .wu .crumbs a { color: var(--slate); }
  .wu .crumbs .sep { margin: 0 8px; color: #9fb3c8; }
  .wu .top { padding-top: 40px; padding-bottom: 8px; }
  .wu .lede { font-size: 19.2px; color: var(--slate); max-width: 40em; margin-bottom: 0; }
  .wu section.block { padding-top: 48px; padding-bottom: 48px; background: linear-gradient(var(--line), var(--line)) 24px 0 / calc(100% - 48px) 1px no-repeat; }
  .wu section.first { background: none; padding-top: 32px; }
  .wu .grid { display: grid; gap: 40px; }
  /* The answer */
  .wu .answer-intro { font-size: 17px; margin: 0 0 2px; }
  .wu .answer-amount { color: var(--navy); font-weight: 700; font-size: 47.8px; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 0 0 8px; }
  .wu .answer-amount span { font-size: 23px; font-weight: 400; color: var(--slate); letter-spacing: 0; }
  .wu .answer-for { font-size: 17px; margin: 0 0 12px; }
  .wu .status { display: flex; gap: 8px; align-items: baseline; font-size: 15px; color: var(--muted); margin: 0 0 32px; }
  .wu .status .tick { color: #1b7a43; font-weight: 700; }
  .wu .notice { background: var(--warn-bg); border-left: 4px solid var(--warn); padding: 16px 18px; margin: 0 0 24px; color: var(--navy); }
  .wu .note { border-left: 4px solid var(--shallow); padding: 4px 0 4px 16px; margin: 20px 0 0; font-size: 15px; }
  /* Rows: bill lines and facts */
  .wu .rows { width: 100%; border-collapse: collapse; }
  .wu .rows th, .wu .rows td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
  .wu .rows th { color: var(--navy); font-weight: 700; }
  .wu .rows .sub { display: block; color: var(--muted); font-size: 15px; font-weight: 400; }
  .wu .rows .num { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--navy); }
  .wu .rows tr.total th, .wu .rows tr.total td { border-bottom: 0; font-weight: 700; padding-top: 14px; }
  .wu .rows tr.total td { font-size: 19.2px; }
  /* Side panel */
  .wu .panel { background: var(--foam); border-radius: 8px; padding: 24px; }
  .wu .panel + .panel { margin-top: 16px; }
  .wu .panel label { display: block; color: var(--navy); font-weight: 700; font-size: 19.2px; margin-bottom: 4px; }
  .wu .panel input[type=range] { width: 100%; accent-color: var(--deep); margin: 12px 0 4px; }
  .wu .panel .scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
  .wu .panel .result { color: var(--navy); font-size: 19.2px; margin: 12px 0 0; }
  .wu .panel .result strong { font-size: 33.2px; font-variant-numeric: tabular-nums; }
  .wu .cta { display: inline-block; padding: 12px 20px; border-radius: 8px; background: var(--deep); color: #fff; font-weight: 700; text-decoration: none; }
  .wu .cta:hover { background: var(--deeper); color: #fff; }
  /* Comparison table */
  .wu .table { width: 100%; border-collapse: collapse; font-size: 16px; }
  .wu .table th, .wu .table td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
  .wu .table thead th { color: var(--muted); font-size: 14px; font-weight: 700; padding-top: 0; }
  .wu .table .num { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .wu .table tr.me th, .wu .table tr.me td { background: var(--foam); font-weight: 700; color: var(--navy); }
  .wu .table tr.me th { box-shadow: inset 4px 0 0 var(--deep); padding-left: 12px; }
  .wu .table tr.me td:last-child { padding-right: 12px; }
  .wu .big-figure { color: var(--navy); font-weight: 700; font-size: 33.2px; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 0 0 4px; }
  .wu .map { height: 360px; border-radius: 8px; border: 1px solid var(--line); }
  /* Fold-out */
  .wu details > summary { cursor: pointer; color: var(--water); font-weight: 700; font-size: 19.2px; list-style: none; display: inline-flex; gap: 10px; align-items: center; }
  .wu details > summary::-webkit-details-marker { display: none; }
  .wu details > summary::before { content: "+"; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 2px solid currentColor; border-radius: 50%; font-size: 18px; line-height: 1; }
  .wu details[open] > summary::before { content: "\2212"; }
  .wu details .inside { margin-top: 24px; }
  .wu textarea { width: 100%; max-width: 560px; font: inherit; padding: 10px 12px; border: 2px solid var(--slate); border-radius: 8px; color: var(--navy); }
  .wu .button-quiet { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--deep); color: var(--deep); background: #fff; cursor: pointer; }
  @media (min-width: 960px) {
    .wu h1 { font-size: 47.8px; }
    .wu .answer-amount { font-size: 68.8px; }
    .wu .grid.main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
    .wu .grid.compare { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; }
    .wu .grid.area { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; }
    .wu .grid.more { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
    .wu .top { padding-top: 56px; }
  }

/* ---- Home page (.wh) ---- */
  .wh { --deep: #063e96; --deeper: #042b69; --water: #0867d8; --shallow: #a8d2ff; --foam: #eaf4ff;
        --navy: #102a43; --slate: #334e68; --muted: #52667a; --line: #d9e2ec; --focus: #ffbf47;
        font-family: "Public Sans", system-ui, sans-serif; color: var(--slate); font-size: 16px; line-height: 1.5; }
  .wh .wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
  .wh .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .wh .panel { background: var(--foam); border-radius: 8px; padding: 24px 24px 12px; }
  .wh .panel h2 { font-size: 19.2px; margin: 0 0 4px; }
  .wh .panel .sub { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
  .wh .panel .list { border-top-color: #c9d9ea; }
  .wh .panel .list li { border-bottom-color: #c9d9ea; }
  .wh .panel .list li:last-child { border-bottom: 0; }
  .wh h1 { font-family: inherit; color: var(--navy); font-weight: 700; font-size: 39.8px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
  .wh h2 { font-family: inherit; color: var(--navy); font-weight: 700; font-size: 23px; line-height: 1.25; margin: 0 0 8px; }
  .wh p { margin: 0 0 16px; }
  .wh .lede { font-size: 19.2px; line-height: 1.5; color: var(--slate); max-width: 34em; }
  .wh a { color: var(--water); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .wh a:hover { color: var(--deep); text-decoration-thickness: 2px; }
  .wh :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .wh .hero { padding-top: 64px; padding-bottom: 40px; }
  .wh .search label { display: block; color: var(--navy); font-weight: 700; font-size: 19.2px; margin: 32px 0 8px; }
  .wh .search .row { display: flex; gap: 8px; max-width: 560px; }
  .wh .search input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; font: inherit; font-size: 19.2px; color: var(--navy);
         border: 2px solid var(--slate); border-radius: 8px; background: #fff; }
  .wh .search input:hover { border-color: var(--navy); }
  .wh .search input::placeholder { color: #829ab1; }
  .wh .search button { height: 56px; padding: 0 22px; font: inherit; font-size: 17px; font-weight: 700; color: #fff;
         background: var(--deep); border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; }
  .wh .search button:hover { background: var(--deeper); }
  .wh .hint { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
  .wh .answer { }
  .wh .answer-intro { color: var(--slate); font-size: 17px; margin: 0 0 6px; }
  .wh .answer-name { font-size: 39.8px; line-height: 1.15; font-weight: 700; margin: 0 0 10px; }
  .wh .answer-name a { color: var(--navy); text-decoration-color: var(--shallow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .wh .answer-name a:hover { text-decoration-color: var(--water); }
  .wh .answer-bill { font-size: 19.2px; color: var(--navy); margin: 0 0 20px; }
  .wh .cta { display: inline-block; padding: 12px 20px; border-radius: 8px; background: var(--deep); color: #fff; font-weight: 700; text-decoration: none; }
  .wh .cta:hover { background: var(--deeper); color: #fff; }
  .wh .list { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
  .wh .list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .wh .list li > a { font-weight: 700; font-size: 17px; }
  .wh .list .meta { grid-column: 1; color: var(--muted); font-size: 14px; }
  .wh .list .bill { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .wh .list .nobill { color: var(--muted); font-weight: 400; font-size: 14px; }
  .wh .below-bg { background: var(--foam); }
  .wh .below { padding-top: 48px; padding-bottom: 56px; }
  .flex-1:has(> main.wh) { display: flex; flex-direction: column; }
  main.wh { flex: 1 0 auto; display: flex; flex-direction: column; }
  .wh .hero { flex: 1 0 auto; }
  .wh .below-bg { flex: none; }
  .wh .below h2 { margin-bottom: 16px; }
  .wh .states { columns: 6 140px; column-gap: 24px; font-size: 15px; }
  .wh .states a { display: block; padding: 3px 0; break-inside: avoid; }
  .wh .states a { text-decoration: none; font-weight: 500; }
  .wh .states a:hover { text-decoration: underline; }
  .wh .review { font-size: 14px; color: var(--muted); margin: -40px 0 40px; }
  @media (min-width: 960px) {
    .wh .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
    .wh .panel { padding: 32px 32px 16px; margin-top: 12px; }
  }
  @media (min-width: 720px) {
    .wh h1 { font-size: 57.3px; }
    .wh .hero { padding-top: 96px; padding-bottom: 56px; }
    .wh .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
  }

/* ---- Methodology page: live examples drawn with the utility page's answer block ---- */
.wx .methods-example { border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; margin: 24px 0 8px; font-size: 16px; line-height: 1.5; }
.wx .methods-example .methods-example-title { color: var(--navy); font-weight: 700; font-size: 17px; margin: 0 0 12px; }
.wx .methods-example .answer-amount { font-size: 40px !important; }
.wx .methods-example .status { margin-bottom: 20px; }
.wx .methods-example .rows th, .wx .methods-example .rows td { font-size: 15px; }
.wx .methods-example .note { margin-bottom: 0; }
.wx .methods-states { display: grid; gap: 24px; }
@media (min-width: 720px) { .wx .methods-states { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wx .methods-states .answer-amount { font-size: 32px !important; }
.wx .methods-states .note, .wx .methods-states h2 { display: none; }

/* Feedback prompt (partials/feedback_prompt.html) */
.fb { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px));
  max-height: calc(100vh - 24px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 42, 67, .18); padding: 20px; font-size: 15px; color: var(--slate); }
@media (min-width: 640px) { .fb { left: auto; right: 20px; bottom: 20px; width: 340px; } }
.fb-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 6px;
  background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.fb-close:hover { background: var(--foam); color: var(--navy); }
.fb-q { display: block; margin: 0 32px 14px 0; color: var(--navy); font-weight: 700; font-size: 16px; line-height: 1.35; }
.fb-opts { display: flex; flex-direction: column; gap: 8px; }
.fb-opt { display: block; width: 100%; margin: 0; padding: 10px 12px; text-align: left; font: inherit; color: var(--navy);
  background: #fff; border: 1px solid #c9d9ea; border-radius: 8px; cursor: pointer; }
.fb-opt:hover { background: var(--foam); border-color: var(--water); }
.fb-opt[aria-pressed="true"] { background: var(--foam); border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); font-weight: 700; }
.fb-label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: 14px; }
.fb-text { display: block; width: 100%; padding: 8px 10px; font: inherit; color: var(--navy); border: 1px solid var(--slate);
  border-radius: 8px; resize: vertical; }
.fb-q + .fb-text { margin-top: 0; }
.fb-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.fb-skip { border: 0; background: none; padding: 6px 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fb-send { border: 0; border-radius: 8px; padding: 9px 18px; font: inherit; font-weight: 700; color: #fff; background: var(--deep); cursor: pointer; }
.fb-send:hover { background: var(--deeper); }
.fb-note { margin: 0; color: var(--muted); }
.fb-note a { color: var(--deep); text-decoration: underline; text-underline-offset: 2px; }

/* Phone layout (app#129) */
.site-head { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 4px 16px; }
.site-nav { display: flex; gap: 24px; align-items: center; font-size: 16px; white-space: nowrap; }
@media (max-width: 559px) {
  .site-head { padding: 12px 16px 8px; }
  .site-nav { width: 100%; gap: 20px; font-size: 15px; }
}
.flex-1 > main { min-width: 0; }
.wh .search input { width: 0; }
@media (max-width: 559px) {
  .wx .wrap, .wh .wrap { padding-left: 16px; padding-right: 16px; }
  .wh .search button { padding: 0 16px; }
  .wh h1 { font-size: 33.2px; }
}
@media (max-width: 559px) { .wu h1, .wx .t-h1 { font-size: 28px; } }
