/* Water heater repair pages (Nov 13 2026): /water-heater-repair and /water-heater-repair-or-replace.
   Builds on page-wh.css (the .whs-* search-page blocks and the funnel's .whf-opt answer buttons).
   Verdict colors: repair = green, either = amber, replace = brand blue (a new heater isn't bad news). */

:root { --whr-repair: #1f7a45; --whr-repair-bg: #e7f5ec; --whr-either: #8a5a00; --whr-either-bg: #fdf3dc; }

/* ───────── the tap-through card ───────── */
.whr-tool { gap: 0; min-height: 420px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 18px 40px -24px rgba(17, 24, 39, .35); scroll-margin-top: 90px; }
.whr-tool .whf__h { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.whr-tool .whf__sub a { color: var(--blue); font-weight: 600; }
.whr-tool .whf-opts { margin-top: 20px; }
.whr-chev { font-size: 1.6rem; line-height: 1; color: var(--blue); font-weight: 400; }
.whr-top { display: flex; justify-content: space-between; align-items: center; min-height: 34px; margin-bottom: 14px; }
.whr-back, .whr-again { appearance: none; border: 0; background: none; padding: 6px 0; font: 600 .95rem/1 var(--font-sans); color: var(--blue); cursor: pointer; }
.whr-back:hover, .whr-again:hover { text-decoration: underline; }
.whr-back:focus-visible, .whr-again:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.whr-step { font: 600 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ───────── the answer ───────── */
.whr-badge { display: inline-block; justify-self: start; align-self: flex-start; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px;
             font: 700 .78rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.whr-badge--repair { color: var(--whr-repair); background: var(--whr-repair-bg); }
.whr-badge--either { color: var(--whr-either); background: var(--whr-either-bg); }
.whr-badge--replace { color: var(--blue); background: var(--blue-wash); }
.whr-why { margin: 12px 0 0; font-size: 1.12rem; line-height: 1.5; color: var(--ink); }
.whr-part { margin: 12px 0 0; color: var(--ink-2); line-height: 1.5; }
.whr-picked { margin: 12px 0 0; font-size: .88rem; color: var(--muted); }
.whr-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper-2, #f6f7f9); color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.whr-note a, .whr-price a { color: var(--blue); font-weight: 600; }
.whr-price { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--blue-wash); line-height: 1.5; }
.whr-price b { color: var(--blue); font-size: 1.15rem; }
.whr-text { margin: 16px 0 0; color: var(--ink-2); line-height: 1.5; }
.whr-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.whr-acts .whr-btn { flex: 1 1 200px; justify-content: center; text-align: center; }
.whr-more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 0; }

/* ───────── the full chart ───────── */
.whr-charts { display: grid; gap: 28px; }
@media (min-width: 1040px) { .whr-charts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .whr-chart:first-child { grid-column: 1 / -1; } }
.whr-chart { min-width: 0; }
.whr-chart__h { margin: 0 0 10px; font: 800 1.2rem/1.2 var(--font-sans); color: var(--ink); }
.whr-table thead th { white-space: normal; }
.whr-table thead th:not(:first-child), .whr-table td { text-align: center; width: 1%; }
.whr-table td { padding-inline: 8px; vertical-align: middle; }
.whr-cell { display: inline-block; min-width: 4.6em; padding: 5px 8px; border-radius: 8px; font: 700 .8rem/1.1 var(--font-sans); }
.whr-cell--repair { color: var(--whr-repair); background: var(--whr-repair-bg); }
.whr-cell--either { color: var(--whr-either); background: var(--whr-either-bg); }
.whr-cell--replace { color: var(--blue); background: var(--blue-wash); }
@media (max-width: 560px) {
  .whr-table tbody th, .whr-table thead th { padding: 10px 10px; }
  .whr-table thead th { font-size: 10px; letter-spacing: .04em; }
  .whr-table td { padding-inline: 4px; }
  .whr-table .whs-table__what { font-size: 15px; }
  .whr-table .whs-table__detail { font-size: 13px; }
  .whr-cell { min-width: 0; padding: 4px 5px; font-size: .72rem; }
}

/* ───────── /water-heater-repair ───────── */
.whr-cardbtn { align-self: flex-start; margin-top: 4px; }
.whr-jobs { max-width: 860px; }
.whr-jobs a.whs-table__what { text-decoration: none; }
.whr-jobs a.whs-table__what:hover { color: var(--blue); text-decoration: underline; }
.whr-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; padding: 20px 24px;
          border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .12s; }
.whr-go:hover { border-color: var(--blue); }
.whr-go__words { flex: 1 1 320px; line-height: 1.5; color: var(--ink-2); }
.whr-go__words b { color: var(--ink); }
