/* Tankless guides share the benchmark styles and adapt the tables and site checker. */
.tankless-guide .screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.tankless-guide .skip {
  position: absolute; left: 12px; top: 10px; z-index: 20; padding: 12px 16px;
  transform: translateY(-150%); color: #fff; background: #0f5257; border-radius: 8px;
}
.tankless-guide .skip:focus { transform: none; }
.tankless-guide section[id], .tankless-guide .pick { scroll-margin-top: 90px; }
.tankless-guide .byline-meta { margin: 6px 0 0; color: #4c626b; }
.tankless-guide .byline-links { padding: 0; list-style: none; }
.tankless-guide .byline-links .icon { width: 16px; height: 16px; }
.tankless-comparison .hero-media .install-photo {
  width: 100%; height: auto; max-height: 430px; object-fit: cover; object-position: center 39%;
}
.tankless-comparison .hero-copy:has(.topic-jumps) { align-self: center; }
.topic-jumps {
  display: flex; flex-wrap: wrap; column-gap: 14px; margin-top: 16px;
  font-weight: 700;
}
.topic-jumps a { padding-block: 10px; color: #0f5257; text-decoration: underline; text-underline-offset: 4px; }
.tankless-comparison .content-block { margin-block: clamp(36px, 6vw, 76px); }
.tankless-guide .verdict-text { max-width: 76ch; }
.tankless-roundup .verdict.wrap { width: min(calc(100% - 40px), 1160px); margin-inline: auto; }
.tankless-guide .verdict .text-link { margin-top: 10px; display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }
.tankless-guide .price-stamp { display: block; margin-top: 1px; color: #4c626b; font-size: .875rem; }
.tankless-guide .pick-media img { object-fit: contain; object-position: center; }
.tankless-guide .type-body, .tankless-guide .type-media { min-width: 0; }
.tankless-guide .buy-button { min-height: 44px; }
.tankless-guide .type-where { overflow-wrap: anywhere; }
.tankless-guide .table-wrap { max-width: 100%; }
.tankless-guide .tankless-table tbody th { text-align: left; vertical-align: top; }
.tankless-guide .tankless-table tbody td { vertical-align: top; }
.tankless-guide .tankless-table a { white-space: normal; }

.tankless-finder {
  border: 1px solid #c4d6d8; border-radius: 16px; margin-top: 16px; padding: clamp(16px, 3vw, 28px);
  background: #edf5f5;
}
.fit-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.fit-field { display: grid; align-content: end; gap: 8px; }
.fit-field label { font-weight: 700; color: #143c48; }
.fit-field select {
  width: 100%; min-height: 48px; padding: 8px 10px; color: #143c48;
  background: white; border: 1px solid #738d93; border-radius: 8px; font: inherit;
}
.fit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.fit-actions button { min-height: 44px; cursor: pointer; }
.fit-actions .reset { padding: 0 12px; font: inherit; font-weight: 700; color: #0f5257; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.fit-result { margin-top: 20px; padding: 16px 18px; border: 1px solid #c4d6d8; border-radius: 10px; background: #fff; }
.fit-result h3 { margin: 0 0 6px; }
.fit-result p { margin: 0 0 6px; }
.fit-result a { display: inline-flex; align-items: center; min-height: 44px; }
.field-list { padding-inline-start: 1.4rem; }
.field-list li + li, .model-notes div + div { margin-top: 16px; }
.field-list li::marker { color: #176b70; font-weight: 800; }
.field-list h3 { margin: 0 0 4px; }
.field-list p { margin: 0; }
.model-notes { margin-block-start: 14px; }
.model-notes dt { color: #143c48; font-weight: 800; }
.model-notes dd { margin: 4px 0 0; }
.tankless-guide .related-guides { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-left: 1.25rem; }
.tankless-guide .related-guides a { display: inline-flex; min-height: 44px; align-items: center; }

/* Exterior wall diagram shows the three checks referenced in the fit section. */
.wall-diagram {
  position: relative; overflow: hidden; min-height: 230px; aspect-ratio: 5 / 3;
  background: #e6f0f1; border: 1px solid #c4d6d8; border-radius: 16px; isolation: isolate;
}
.wall-diagram::before {
  content: ""; position: absolute; inset: 19% 8% 12%;
  background: #fbf9f2; border: 2px solid #a8b9b4; border-top: 0;
}
.wall-roof {
  position: absolute; z-index: 1; inset: 16% 6% auto; height: 7%;
  background: #bdcdca; border: 1px solid #8caaa7; border-radius: 3px;
}
.wall-window {
  position: absolute; top: 34%; left: 18%; width: 27%; height: 38%;
  border: 7px solid #fff; outline: 2px solid #809a9c; background: #c9e1e4;
  box-shadow: 0 5px 10px rgb(20 60 72 / 12%);
}
.wall-window::before,.wall-window::after {
  content: ""; background: #fafcfc; position: absolute;
}
.wall-window::before { inset: 0 49%; }
.wall-window::after { inset: 49% 0; }
.wall-heater {
  position: absolute; top: 37%; left: 65%; width: 18%; height: 31%;
  background: #fff; border: 2px solid #809a9c; border-radius: 4px; box-shadow: 2px 5px 9px rgb(20 60 72 / 12%);
}
.wall-heater::before { content: ""; position: absolute; top: 12%; left: 12%; width: 28%; height: 10%; border: 1px solid #7a989c; border-radius: 2px; background: #b9cdd0; }
.wall-heater i { position: absolute; top: 100%; width: 4px; height: 48%; left: 22%; background: #6d8d92; border-radius: 1px; }
.wall-heater i + i { left: 67%; background: #ac795d; }
.wall-heater i::after { content: ""; position: absolute; top: 36%; left: -3px; width: 10px; height: 4px; border-radius: 1px; background: #143c48; }
.wall-wire { position: absolute; top: 62%; left: 58%; width: 8%; height: 8%; border: 2px solid #56777b; border-top: 0; border-right: 0; border-radius: 0 0 0 4px; }
.wall-ground { position: absolute; inset: auto 0 0; height: 13%; background: #d4dfd5; border-top: 1px solid #aec2b7; z-index: -1; }
.wall-pin {
  position: absolute; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: white; background: #176b70; font-weight: 800; border: 2px solid white;
}
.wall-pin-opening { top: 37%; left: 50%; }
.wall-pin-freeze { top: 57%; left: 50%; }
.wall-pin-valves { top: 72%; left: 80%; }
.tankless-guide .site-footer .footer-disclosure { margin-top: .75rem; }

@media (max-width: 760px) {
  .fit-fields { grid-template-columns: 1fr; }
  .tankless-comparison .hero-media .install-photo { max-height: 260px; object-position: center 28%; }
  .wall-diagram { min-height: 210px; }
}
.tankless-comparison .hero {
  margin-top: 12px; padding-top: 0; padding-bottom: 0; align-items: center;
}
.tankless-comparison .hero h1 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.2rem); }
.tankless-roundup .hero h1 { max-width: 17ch; }
.tankless-guide .illus-note { font-size: .8125rem; text-align: left; }
@media (max-width: 760px) {
  .tankless-comparison .hero h1 { max-width: none; }
}
.tankless-comparison .section-head h2 { font-size: clamp(1.5rem, 2.8vw, 1.85rem); }


@media (min-width: 761px) {
  .tankless-guide .verdict { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}
