/* Tankless Water Heaters Direct - classic project document shell */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f1f1f1;
  color: #222;
  font: 15px/1.55 Arial, Helvetica, sans-serif;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #0b4f9e; padding: 8px 12px;
  border: 1px solid #0b4f9e; z-index: 20;
}
.skip:focus { left: 8px; top: 8px; }
a { color: #1a0dab; }
a:hover { color: #0b4f9e; }
a:focus-visible, .skip:focus-visible { outline: 2px solid #0b4f9e; outline-offset: 1px; }

.shell {
  max-width: 1080px;
  margin: 16px auto 32px;
  background: #fff;
  border: 1px solid #ccc;
}

/* ---- site identity ---- */
.idbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px;
  padding: 12px 16px;
  background: #f7f7f7;
  border-bottom: 1px solid #ccc;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #111; }
.brand img { display: block; border: 1px solid #ccc; background: #fff; }
.bname { font-size: 22px; font-weight: 600; color: #111; }
.btag { margin: 0; font-size: 12px; color: #555; }

/* ---- page navigation strip ---- */
.pagestrip {
  display: flex; flex-wrap: wrap;
  background: #f7f7f7;
  border-bottom: 1px solid #ccc;
  padding: 6px 10px;
  gap: 6px;
}
.pagestrip a {
  font-size: 13px; text-decoration: none; color: #1a0dab;
  border: 1px solid #ccc; background: #fff;
  padding: 4px 10px;
}
.pagestrip a:hover { background: #eef3fa; }
.pagestrip a.on { background: #0b4f9e; border-color: #0b4f9e; color: #fff; }

/* ---- columns ---- */
.cols {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  align-items: start;
}
.doc.detail ~ .factrail { display: block; }
@media (min-width: 1000px) {
  .cols:has(.factrail) { grid-template-columns: 218px minmax(0, 1fr) 210px; }
}
.rail {
  border-right: 1px solid #ccc;
  background: #fafafa;
  padding: 12px 10px 24px;
  min-width: 0;
}
.doc { padding: 14px 22px 30px; min-width: 0; }
.factrail { border-left: 1px solid #ccc; padding: 14px 10px 24px; min-width: 0; }

/* ---- gadget title bars (the site's repeating motif) ---- */
.gbar {
  margin: 0;
  font-size: 13px; font-weight: 600; color: #0b4f9e;
  background: #f7f7f7;
  border: 1px solid #ccc;
  padding: 5px 8px;
}
.gadget { margin: 0 0 18px; }
.gbar:has(.gcount) { display: flex; justify-content: space-between; gap: 12px; }
.gcount { font-weight: 400; color: #555; }
.gblurb { margin: 8px 0 8px; font-size: 13px; color: #555; }
.railgroup { margin: 0 0 14px; }
.railgroup ul, .subpages, .notices, .attachlist, .fmap {
  list-style: none; margin: 0; padding: 0;
}
.railgroup li { border-bottom: 1px solid #e4e4e4; }
.railgroup li:last-child { border-bottom: 0; }
.railgroup a {
  display: block; padding: 5px 6px; font-size: 13px;
  text-decoration: none; color: #1a0dab;
}
.railgroup a:hover { background: #eef3fa; text-decoration: underline; }
.railgroup a.on { background: #eef3fa; color: #111; font-weight: 600; }

/* ---- breadcrumb + page title band ---- */
.crumbband {
  border: 1px solid #ccc;
  border-left: 3px solid #0b4f9e;
  background: #fff;
  padding: 8px 12px 10px;
  margin: 0 0 16px;
}
.crumbs { font-size: 12px; color: #555; }
.crumbs a { color: #1a0dab; }
.crumbband h1 {
  margin: 6px 0 0;
  font-size: 30px; font-weight: 400; line-height: 1.2; color: #111;
}

/* ---- document body ---- */
.doc h2 { font-size: 19px; font-weight: 600; color: #111; margin: 24px 0 8px; }
.doc h3 { font-size: 16px; font-weight: 600; color: #111; margin: 18px 0 6px; }
.doc h4 { font-size: 14px; font-weight: 600; color: #111; margin: 14px 0 6px; }
.doc h2.gbar, .doc h3.gbar { font-size: 13px; margin: 0; }
.secttl { border-bottom: 1px solid #ccc; padding-bottom: 4px; }
.doc p { margin: 0 0 12px; max-width: 68ch; }
.doc ul { margin: 0 0 14px; padding-left: 22px; max-width: 68ch; }
.doc li { margin: 0 0 5px; }
.deck { color: #555; font-size: 14px; }
.tnote { font-size: 12px; color: #555; margin: -6px 0 16px; }

/* ---- data grids ---- */
.twrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid #ccc; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
caption {
  text-align: left; font-weight: 600; color: #0b4f9e;
  background: #f7f7f7; border-bottom: 1px solid #999;
  padding: 5px 8px; font-size: 13px;
}
th, td {
  border: 1px solid #ccc; padding: 5px 8px; text-align: left;
  vertical-align: top;
}
thead th { background: #f7f7f7; border-color: #999; font-weight: 600; }
tbody th { background: #fbfbfb; font-weight: 600; }

/* ---- label/value spec blocks ---- */
.deflist { margin: 0; border: 1px solid #ccc; border-top: 0; }
.dfrow { display: grid; grid-template-columns: 40% minmax(0, 60%); }
.dfrow + .dfrow { border-top: 1px solid #e4e4e4; }
.deflist dt {
  margin: 0; padding: 5px 8px; font-size: 13px; font-weight: 600;
  background: #fbfbfb; border-right: 1px solid #e4e4e4;
}
.deflist dd { margin: 0; padding: 5px 8px; font-size: 13px; }

/* ---- subpage / notice / attachment lists ---- */
.subpages li, .notices li, .attachlist li {
  border: 1px solid #e4e4e4; border-top: 0;
  padding: 6px 8px;
}
.subpages li:first-child, .notices li:first-child, .attachlist li:first-child {
  border-top: 1px solid #e4e4e4;
}
/* fixed columns, so a long document name never pushes the next field onto a
   staircase of its own */
.subpages li, .notices li {
  display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; gap: 2px 10px;
  align-items: baseline;
}
.attachlist li {
  display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem 10.5rem;
  gap: 2px 10px; align-items: baseline;
}
.subpages a, .notices a, .attachlist a { font-size: 14px; }
.ptype, .dkind, .dsec { font-size: 12px; color: #555; }
.nsum { grid-column: 1 / -1; font-size: 12px; color: #555; }

@media (max-width: 1000px) {
  .attachlist li { grid-template-columns: minmax(0, 1fr) 8.5rem; }
  .dsec { grid-column: 1 / -1; }
}

/* ---- footer ---- */
footer {
  border-top: 1px solid #ccc;
  background: #f7f7f7;
  padding: 10px 16px 14px;
}
.fname { font-size: 12px; color: #555; margin-bottom: 6px; }
.fmap { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fmap a { font-size: 12px; }

/* ---- mobile: the six prescribed transformations ---- */
@media (max-width: 860px) {
  body { font-size: 16px; line-height: 1.6; }
  .shell { margin: 0; border-left: 0; border-right: 0; }
  .cols { display: block; }
  .rail {
    border-right: 0; border-bottom: 1px solid #ccc;
    padding: 10px 12px 14px;
  }
  .railgroup { margin-bottom: 10px; }
  .railgroup ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .railgroup li { border-bottom: 0; }
  .railgroup a {
    border: 1px solid #ccc; background: #fff; padding: 5px 9px; font-size: 14px;
  }
  .doc { padding: 14px 14px 24px; }
  .crumbband h1 { font-size: 23px; }
  .doc p, .doc ul { max-width: none; }
  .factrail {
    border-left: 0; border-top: 1px solid #ccc; padding: 14px 14px 20px;
  }
  .dfrow { grid-template-columns: 1fr; }
  .deflist dt { border-right: 0; border-bottom: 1px solid #eee; }
  .subpages li, .notices li, .attachlist li { grid-template-columns: 1fr; }
  .fmap { flex-direction: column; gap: 6px; }
}
