/* /water-heater-help (Nov 13 2026): the water heater hub. Builds on page-dp.css (sections,
   cards) and page-wh.css (.whs-hero, the funnel's .whf-opt answer rows and heater pictures).
   Prefix: whh-. */

.whh-sec { scroll-margin-top: 64px; }
.whh-chev { font-size: 1.7rem; line-height: 1; color: var(--blue); font-weight: 400; }

/* ───────── hero ───────── */
.whh-hero .whs-hero__grid { align-items: center; }
.whh-kicker { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.whh-kicker li { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.whh-kicker b { color: var(--blue); font-weight: 800; }
.whh-pick { padding: clamp(20px, 3vw, 32px); gap: 0; box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 18px 40px -24px rgba(17, 24, 39, .35); font-family: var(--font-sans); }
.whh-pick .whf__h { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.whh-pick .whf-opts { margin-top: 18px; }
.dp a.whf-opt { text-decoration: none; color: var(--ink); }
@media (hover: hover) { .dp a.whf-opt:hover { border-color: var(--blue); } .dp a.whf-opt:hover .whh-chev { transform: translateX(3px); } }
.whh-chev { display: inline-block; transition: transform .15s; }
.whh-pick__gas { margin: 14px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.45; }
/* Phones and tablets: eyebrow, headline, then the picker, then the rest, so the first tap is on
   the first screen (the same order the other water heater pages use). */
@media (max-width: 1039px) {
  .whh-hero .whs-hero__grid { gap: 22px; }
  .whh-hero .whs-hero__copy { display: contents; }
  .whh-hero .whs-hero__copy > * { order: 4; }
  .whh-hero .whs-hero__copy > .eyebrow { order: 1; margin-bottom: -8px; }
  .whh-hero .whs-hero__copy > h1 { order: 2; }
  .whh-hero .whh-pick { order: 3; }
  .whh-hero .whs-hero__copy > .lede { order: 5; }
  .whh-hero .whs-hero__copy > .wh-who { order: 6; }
  .whh-hero .whs-hero__copy > .whh-kicker { order: 7; }
}
@media (max-width: 560px) {
  .whh-pick .whf-opt { min-height: 0; padding: 12px 14px; gap: 12px; }
  .whh-pick .whf-opt__icon { width: 48px; height: 48px; border-radius: 12px; }
  .whh-pick .whf-opt__icon svg { width: 38px; height: 38px; }
  .whh-pick .whf-opt__label { font-size: 1.04rem; }
  .whh-pick .whf-opt__note { font-size: .88rem; }
}

/* ───────── jump links ───────── */
.whh-jump { position: sticky; top: 0; z-index: 40; margin-top: clamp(8px, 2vw, 24px); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
            border-block: 1px solid var(--line); }
.whh-jump ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--gutter); }
.whh-jump ul::-webkit-scrollbar { display: none; }
.whh-jump li { flex: none; }
.whh-jump a { display: block; padding: 8px 14px; border-radius: 999px; font: 600 .92rem/1.1 var(--font-sans); color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color .12s, color .12s; }
.whh-jump a:hover { background: var(--blue-wash); color: var(--ink); }
.whh-jump a[aria-current="true"] { background: var(--blue); color: #fff; }
.whh-jump a:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
@media (max-width: 759px) { .whh-jump .dp-wrap { padding-inline: 0; } .whh-jump ul { padding-inline: var(--gutter); } }

/* ───────── something's wrong: photo cards ───────── */
.whh-guides { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.whh-guide { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; color: var(--ink); text-decoration: none;
             transition: border-color .15s, box-shadow .15s, transform .15s; }
.dp .whh-guide { text-decoration: none; }
.whh-guide:hover { border-color: var(--blue); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.whh-guide:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.whh-guide__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--blue-wash); }
.whh-guide__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.whh-guide__t { display: flex; justify-content: space-between; gap: 10px; font-size: 1.22rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.whh-guide__t span { color: var(--blue); flex: none; transition: transform .15s; }
.whh-guide:hover .whh-guide__t span { transform: translateX(3px); }
.whh-guide__p { color: var(--ink-3); font-size: .98rem; line-height: 1.5; }
.whh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.whh-tags span { padding: 4px 10px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-deep); font-size: .8rem; font-weight: 600; }
/* Phones: each guide is a row (small photo beside the words), so all four fit on about a screen. */
@media (max-width: 599px) {
  .whh-guides { gap: 12px; }
  .whh-guide { display: grid; grid-template-columns: 104px minmax(0, 1fr); border-radius: 18px; }
  .whh-guide__img { aspect-ratio: auto; height: 100%; min-height: 128px; }
  .whh-guide__body { padding: 14px 14px 14px 16px; gap: 6px; }
  .whh-guide__t { font-size: 1.08rem; }
  .whh-guide__p { font-size: .9rem; line-height: 1.45; }
  .whh-tags { display: none; }
}

/* ───────── fix or replace ───────── */
.whh-fix { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 980px) { .whh-fix { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.whh-fix .dp-head { margin-bottom: var(--space-6); }
.whh-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.whh-rules li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.whh-rules__n { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.whh-rules b { display: block; font-size: 1.1rem; line-height: 1.3; margin-top: 2px; }
.whh-rules p { margin: 4px 0 0; color: var(--ink-2); line-height: 1.5; }
.whh-more { margin: 22px 0 0; }
.whh-start { padding: clamp(20px, 3vw, 32px); gap: 0; box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 18px 40px -24px rgba(17, 24, 39, .35); }
.whh-start .whf__h { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.whh-start .whf-opts { margin-top: 18px; }

/* ───────── costs ───────── */
.whh-costs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.whh-cost--hi { background: var(--blue-wash); border-color: var(--blue-wash); }
.whh-cost--hi .dp-card__big { color: var(--blue); }
.whh-cost--hi .dp-btn { align-self: flex-start; margin-top: auto; }
.whh-cost { color: var(--ink); text-decoration: none; transition: border-color .15s; }
.dp .whh-cost { text-decoration: none; }
.whh-cost:hover { border-color: var(--blue); }
.whh-cost__t { font-size: 1.3rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.whh-cost .dp-arrow { margin-top: auto; }

/* ───────── free tools ───────── */
.whh-tools { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.whh-tool { gap: 10px; margin: 0; }
.whh-tool__t { margin: 0; font-size: 1.3rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.whh-tool .dp-card__p { margin: 0; }
.whh-tool .dp-btn, .whh-tool .dp-arrow { margin-top: auto; align-self: flex-start; }
.whh-tool--link { color: var(--ink); text-decoration: none; transition: border-color .15s; }
.dp .whh-tool--link { text-decoration: none; }
.dp-wash .whh-tool--link:hover { border-color: var(--blue); }
.whh-field { display: grid; gap: 6px; margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.whh-field input { font: 700 1.1rem/1.2 var(--font-sans); letter-spacing: .04em; color: var(--ink); padding: 13px 14px; border: 1.5px solid var(--rule-mid); border-radius: 12px; background: var(--surface); width: 100%; min-width: 0; }
.whh-field input::placeholder { color: #b6bdc8; font-weight: 600; letter-spacing: 0; }
.whh-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.whh-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.whh-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .12s, background-color .12s; }
.whh-chips a:hover { border-color: var(--blue); background: var(--blue-tint); }
.whh-chips a.is-code { font-family: var(--font-mono); font-size: .82rem; background: var(--ink); border-color: var(--ink); color: #9ff0b0; }
.whh-chips a.is-code:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

/* ───────── how it works: the drawing and its legend ───────── */
.whh-parts { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .whh-parts { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } .whh-parts__fig { position: sticky; top: 76px; } }
.whh-parts__fig { margin: 0; padding: clamp(16px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff 0%, var(--page) 100%); }
.whh-parts__fig svg { display: block; width: 100%; max-width: 380px; height: auto; margin-inline: auto; }
.whh-parts__fig figcaption { margin-top: 14px; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.whh-parts__fig figcaption a { color: var(--blue); font-weight: 600; }
.whh-mark circle { fill: var(--blue); stroke: #fff; stroke-width: 3; transition: fill .12s; }
.whh-mark text { fill: #fff; font: 800 13px/1 var(--font-sans); pointer-events: none; }
.whh-mark:hover circle, .whh-mark:focus-visible circle, .whh-mark.is-on circle { fill: var(--ink); }
.whh-mark:focus-visible { outline: none; }
.whh-led { animation: whh-blink 1.6s steps(1) infinite; }
@keyframes whh-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .whh-led { animation: none; } }
.whh-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (min-width: 1180px) { .whh-legend { grid-template-columns: 1fr 1fr; column-gap: 20px; } }
.whh-legend li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 12px 12px; border-radius: 14px; scroll-margin-top: 80px; transition: background-color .2s; }
.whh-legend li:target, .whh-legend li.is-on { background: var(--blue-wash); }
.whh-legend__n { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: 1px; }
.whh-legend b { display: block; font-size: 1.04rem; line-height: 1.3; }
.whh-legend p { margin: 3px 0 0; color: var(--ink-3); font-size: .95rem; line-height: 1.5; }
.whh-legend a { color: var(--blue); font-weight: 600; white-space: nowrap; }

/* ───────── tankless ───────── */
.whh-tl { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .whh-tl { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.whh-tl__pic { margin: 0; }
.whh-tl__img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.whh-tl .dp-head { margin-bottom: var(--space-5); }
.whh-tl__p { margin: 0; max-width: 56ch; color: var(--ink-2); font-size: 1.06rem; line-height: 1.55; }
.whh-tl__k { margin: 22px 0 10px; font: 600 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.whh-tl__links { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.whh-tl__links a { display: grid; gap: 2px; padding: 14px 44px 14px 18px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--surface); color: var(--ink); text-decoration: none; position: relative; transition: border-color .12s; }
.whh-tl__links a::after { content: "\2192"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--blue); font-weight: 700; }
.whh-tl__links a:hover { border-color: var(--blue); }
.whh-tl__links b { font-size: 1.05rem; }
.whh-tl__links span { color: var(--ink-3); font-size: .93rem; line-height: 1.45; }
