/* rheem-tankless-error-codes: page layer over the benchmark style.css + refinements.css
   (both byte-identical to how-to-winterize-outdoor-faucets). Loaded last. */

/* Hero: two columns on desktop. refinements.css flattens .hero to display:block; this later rule
   restores the benchmark grid. Byline and disclosure sit inside the copy column. */
@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 first part to look at 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}
.verdict-head p a{color:var(--teal);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
@media(max-width:1080px){.verdict-pick{grid-column:1;grid-row:auto}}
@media(max-width:760px){.verdict-pick .buy-button{width:100%}}

/* 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>.pp-grid,.block>.decoder,.block>.pd-cols{margin-top:24px}
.block>.table-wrap+p,.block>.checks+p,.block>.pp-two+p,.block>.pp-grid+p,.block>.decoder+p{margin-top:24px}
.block>p+.table-wrap,.block>p+.checks,.block>p+.pp-two,.block>.pp-two+.table-wrap,.block>.pp-grid+.decoder,.block>.checks+.table-wrap{margin-top:24px}
.block>.note{margin-top:16px;font-size:15px;color:var(--muted);max-width:74ch}
.checks{list-style:none;margin-left:0;margin-bottom:0;padding:0;max-width:86ch}
main .inline{font-weight:600}

/* Code decoder: code-drawn diagram, wide version on desktop and tall version on a phone */
.decoder{margin-left:0;margin-right:0;max-width:840px}
.decoder svg{display:block;width:100%;height:auto}
.decoder .ch-m{display:none;max-width:340px}
.decoder figcaption{margin-top:12px;font-size:14px;line-height:1.5;color:var(--muted)}
@media(max-width:760px){.decoder .ch-d{display:none}.decoder .ch-m{display:block}}

/* Reference tables reuse .compare; the code column stays narrow so the meaning gets the room */
.compare tbody th{font-size:17px}
.compare td .inline,.compare th .inline{font-weight:700}
.compare .thumb-row{display:flex;align-items:center;gap:12px}
.compare .thumb{flex:none;display:flex;align-items:center;justify-content:center;width:56px;height:56px;border:1px solid var(--line);border-radius:8px;background:var(--white)}
.compare .thumb img{display:block;width:auto;height:auto;max-width:48px;max-height:48px}
.compare td .buy-button{white-space:normal;font-size:14px;line-height:1.3;padding:10px 14px;min-height:44px}
.compare:has(.buy-button) thead th:last-child{width:27%}
.compare:has(.buy-button) thead th:first-child{width:21%}
.code-table th:first-child{width:15%}
@media(max-width:760px){.code-table th:first-child{width:auto}}

/* Plain columns between thin rules: hazard and owner-step boxes, the trust box */
.pp-grid{display:grid;gap:0 clamp(28px,4vw,56px)}
.pp-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.pp-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.pp-grid>div{padding:22px 0 24px;border-top:1px solid var(--line)}
.pp-grid>div.stop{border-top:2px solid var(--ink)}
.pp-grid h3{font-size:19px;line-height:1.35;letter-spacing:-.01em;font-weight:700}
.pp-grid p{margin-top:8px;font-size:16px;line-height:1.6;color:var(--muted);max-width:52ch}
.pp-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap: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}
@media(max-width:1080px){.pp-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.pp-two{grid-template-columns:1fr}}
@media(max-width:760px){.pp-grid-3,.pp-grid-2{grid-template-columns:1fr}}

/* Pick cards */
.pick .type-body dd{margin-top:2px}
.pick .type-body .text-link{display:flex;width:max-content;margin-top:10px}

/* Up close: photo, buy block and the two lists on the left; reading text on the right */
.pd-cols{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,5vw,72px);align-items:start}
.pick-media{margin:0}
.pick-media img{display:block;width:auto;max-width:100%;height:auto;max-height:300px;margin:0 auto;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white)}
.pick-media figcaption{margin-top:10px;font-size:14px;line-height:1.5;color:var(--muted);text-align:center}
.pd-buy{margin-top:18px}
.pd-buy .buy-button{width:100%}
.pc{display:grid;grid-template-columns:1fr;gap:20px;margin-top:24px;padding:22px 24px;background:var(--mist-soft);border-radius:var(--radius)}
.pc h3{font-size:17px;line-height:1.35;font-weight:700}
.pc ul{margin:8px 0 0;padding-left:20px;list-style:disc}
.pc li{margin:6px 0;font-size:16px;line-height:1.55}
.pc li::marker{color:var(--teal)}
.reading p{max-width:66ch}
.reading p+p{margin-top:16px}
@media(max-width:1080px){.pd-cols{grid-template-columns:1fr}.pd-aside{max-width:560px}}
@media(max-width:760px){.pd-aside{max-width:none}}

/* FAQ, sources, related */
.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}
.block>h3.sub{margin-top:40px;font-size:22px;line-height:1.3;letter-spacing:-.02em;font-weight:700}
.block>.source-list{margin-top:14px;max-width:86ch}
.related-block{padding-top:24px}
.related-block .related-list{padding-top:28px;border-top:1px solid var(--line)}
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}
 /* Code charts stay compact on a phone: the code on the left, its meaning and steps on the right */
 .code-table tr{display:grid;grid-template-columns:84px minmax(0,1fr);column-gap:14px;padding:14px 16px!important;margin-bottom:8px}
 .code-table tbody th{grid-column:1;grid-row:1/span 9;width:auto!important;padding:0!important;margin:0;font-size:19px;line-height:1.3;overflow-wrap:normal}
 .code-table td{grid-column:2;width:auto!important;padding:0 0 8px!important;border:0;line-height:1.5}
 .code-table td:last-child{padding-bottom:0!important}
 .code-table td:before{display:inline;margin:0 6px 0 0;font-size:13px;font-weight:700;color:var(--muted);content:attr(data-label) ":"}
 .code-table td:first-of-type:before{content:none}
}
