/* water-heater-anode-rod-replacement: page layer over the benchmark style.css + refinements.css
   (both byte-identical to how-to-winterize-outdoor-faucets). Loaded last. */

/* Hero: byline and disclosure sit inside the copy column, so the grid needs only
   the copy/media row and the short-answer row. */
@media(min-width:761px){
 .hero{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-areas:"copy media" "verdict verdict";column-gap:clamp(32px,5vw,72px);row-gap:36px;align-items:start}
}
.hero-copy .byline{margin-top:24px}
.hero-copy .disclosure{margin-top:18px}
.hero-fig img{max-height:340px;width:auto;max-width:100%;height:auto;margin-left:auto;margin-right:auto}
/* Short answer: verdict left, the lead part on the right */
.hero .verdict{align-items:start}
.verdict-pick{grid-column:2;grid-row:1/3;align-self:center}
.verdict-pick-name{font-size:17px;line-height:1.4;color:var(--ink)}
.verdict-pick .buy-price{margin-top:12px}
.verdict-pick .buy-button{margin-top:4px;width:auto}
.verdict .verdict-pick .text-link{display:flex;grid-column:auto;grid-row:auto;margin-top:8px}
@media(max-width:1080px){.verdict-pick{grid-column:1;grid-row:auto}}
@media(max-width:760px){.verdict-pick .buy-button{width:100%}.hero-fig{margin-top:24px}}

/* Section intro line under each H2 */
.block>.lede{margin-top:0;color:var(--muted);font-size:17px;max-width:74ch}
.block>.table-wrap,.block>.checks,.block>.pp-two,.block>.related-list,.block>.pp-fig,.block>.type-row:first-of-type{margin-top:24px}
.block>.table-wrap+p,.block>.checks+p,.block>.pp-two+p,.block>.pp-fig+.table-wrap,.block>.pp-fig+.pp-two{margin-top:24px}
.block>p+.table-wrap,.block>p+.checks,.block>p+.pp-two{margin-top:24px}
.block>p{max-width:86ch}
.block>p+p{margin-top:14px}
.block>p.note{color:var(--muted);font-size:16px;line-height:1.55}
.checks{list-style:none;margin-left:0;margin-bottom:0;padding:0;max-width:86ch}
main .inline{font-weight:600}

/* Drawings carried from the live page: tank diagram and the length chart (wide on desktop, tall on a phone) */
.pp-fig{margin-left:0;margin-right:0}
.pp-fig svg{display:block;width:100%;height:auto}
.pp-fig figcaption{margin-top:12px;font-size:14px;line-height:1.5;color:var(--muted);max-width:74ch}
.tank-fig svg{max-width:420px;border-radius:var(--radius-m,14px)}
.len-chart{max-width:760px}
.len-chart .ch-m{display:none;max-width:360px}
@media(max-width:760px){.len-chart .ch-d{display:none}.len-chart .ch-m{display:block}}

/* Tables: reference tables reuse .compare */
.compare tbody th{font-size:17px}
.compare td .inline,.compare th .inline{font-weight:700}

/* Two-up text columns (signs, when to call a plumber, method box) */
.pp-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px clamp(32px,5vw,72px)}
.pp-two h3{font-size:22px;line-height:1.3;letter-spacing:-.02em;font-weight:700}
.pp-two p{margin-top:12px;max-width:60ch}
.pp-uses{padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.pp-uses h3{font-size:19px}
.pp-uses .stop{grid-column:1/-1;padding-left:18px;border-left:3px solid var(--brass,#d8b45d)}
.pp-uses .stop p{max-width:86ch}
@media(max-width:1080px){.pp-two{grid-template-columns:1fr}}

/* Pick cards and FAQ */
.pick .type-body dd{margin-top:2px}
.faq-item h3{font-size:19px;line-height:1.35;letter-spacing:-.01em;font-weight:700}
.faq-item p{margin-top:6px;max-width:74ch}
section[id],article[id]{scroll-margin-top:calc(var(--header-h) + 16px)}

/* Phone: stacked table rows get side padding so cell text never touches the card edge */
@media(max-width:760px){
 .compare tr{padding:16px 16px}
 .compare tbody tr:first-child{border-top:0}
}

/* Check-or-leave-it helper (live inline style rebuilt on the shell tokens) */
#rod-help{background:var(--mist);border-radius:var(--radius-l,18px);padding:28px;margin-top:24px;max-width:86ch}
#rod-help .inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
#rod-help label{display:block;font-weight:700;font-size:16px;line-height:1.4;color:var(--ink)}
#rod-help select{display:block;width:100%;box-sizing:border-box;min-height:48px;margin-top:8px;padding:8px 12px;font:inherit;font-weight:400;color:var(--ink);background:var(--white,#fff);border:1px solid var(--line-strong,#a9c2c7);border-radius:10px}
#rod-help :focus-visible{outline:3px solid var(--teal);outline-offset:3px}
#rod-help .res{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
#rod-help .res p{margin:0 0 10px;font-size:18px;line-height:1.55}
#rod-help .res p.lead{font-weight:700;font-size:20px}
#rod-help .calc-help{font-size:16px;color:var(--muted);margin-top:12px}
@media(max-width:760px){#rod-help .inputs{grid-template-columns:1fr}#rod-help{padding:18px 16px}}
.block>#rod-help+script+p{margin-top:24px}

/* Lists inside the method box; stop boxes in "When to call" */
.pp-list{margin:12px 0 0;padding-left:20px;max-width:60ch}
.pp-list li+li{margin-top:8px}
.pp-stops>.stop{grid-column:auto}
.block .video-block{margin-top:40px}
.video-copy .video-why{font-size:16px}
