.ch-guide {
  --ch-blue: #163b46;
  --ch-brick: #98533e;
  --ch-rule: #b7b9a8;
  --ch-pale: #e6e9d9;
  --ch-gold: #f0cb97;
  color: var(--ink);
}
.ch-guide h1, .ch-guide h2, .ch-guide h3, .ch-guide p, .ch-guide figure, .ch-guide dl, .ch-guide dd, .ch-guide ol { margin: 0; }
.ch-guide h1, .ch-guide h2, .ch-guide h3, .ch-guide dt {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  text-wrap: balance;
}
.ch-guide .eyebrow { margin-bottom: 1rem; }
.ch-mast {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(2.8rem, 6vw, 6.5rem);
}
.ch-guide h1 { font-size: clamp(3.45rem, 6.4vw, 6.9rem); letter-spacing: -.06em; line-height: .94; }
.ch-heading h1 em { display: block; color: var(--teal); font-weight: 400; }
.ch-guide .ch-intro { font-size: clamp(1.04rem, 1.35vw, 1.3rem); max-width: 43ch; line-height: 1.56; margin: 1.5rem 0 1.9rem; }
.ch-guide .button { gap: .8rem; }
.ch-guide section[id] { scroll-margin-top: 5rem; }
.ch-guide h2 { font-size: clamp(2.1rem, 3.6vw, 4.05rem); line-height: 1.06; letter-spacing: -.044em; }
.ch-guide h3 { font-size: clamp(1.65rem, 2.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.035em; }
.ch-section { padding-block: clamp(3.2rem, 6.5vw, 6.5rem); }
.ch-replace { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); align-items: start; gap: clamp(2rem, 9vw, 8rem); border-top: 1px solid var(--ch-rule); }
.ch-prose, .ch-stage-heading > p:last-child, .ch-stages li > p, .ch-scenarios dd, .ch-sheet-instructions { line-height: 1.65; font-size: 1.04rem; }
.ch-prose { max-width: 59ch; }
.ch-prose > * + * { margin-top: 1.05rem; }
.ch-prose a, .ch-price-slip a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.ch-link { display: inline-block; font-weight: 650; padding: .35em 0; }
.ch-link span, .ch-print span { display: inline-block; margin-left: .3rem; }
.ch-guide .ch-follow { display: grid; justify-items: start; gap: .3rem; }
.ch-plate {
  background: var(--ch-blue);
  color: #fff5d7;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: 1px;
  transform: rotate(.8deg);
  box-shadow: 5px 6px 0 #d4cdba;
}
.ch-drawing {
  aspect-ratio: 1.75;
  position: relative;
  margin: .65rem 0 1.45rem;
  background-color: var(--ch-blue);
  background-image: linear-gradient(90deg,#e8f2da13 1px,transparent 1px),linear-gradient(0deg,#e8f2da13 1px,transparent 1px);
  background-size: 6.25% 12.5%;
  border: 1px solid #d9ebdc2c;
}
.ch-wall {
  position: absolute; top: 11%; left: 9%; height: 66%; width: 3.8%;
  border: 1px solid #ddedda;
  background: repeating-linear-gradient(45deg,transparent 0 3px,#d4e3ce78 3px 4px);
}
.ch-floor {
  position: absolute; left: 5%; right: 6%; top: 78%; height: 4%;
  background: repeating-linear-gradient(135deg,transparent 0 4px,#f6d5ba95 4px 5px);
  border-block: 1px solid var(--ch-gold);
}
.ch-tub-shell {
  position: absolute; left: 13%; right: 12%; top: 32%; bottom: 22%;
  border: 2px solid #f7ead1; border-radius: 4% 4% 8% 4% / 7% 8% 16% 8%;
  background: #557779;
}
.ch-tub-shell::before {
  content: ""; position: absolute; top: -7%; left: -1.5%; width: 103%; height: 9%;
  border: 1.6px solid #f7ead1; border-radius: 4px; background: #6a8580;
}
.ch-tub-door {
  position: absolute; top: 4%; left: 20%; width: 36%; height: 87%; border: 2px solid #f7ead1;
  border-top: 0; border-radius: 0 0 18% 18% / 0 0 22% 22%;
}
.ch-tub-door::before {
  content: ""; position: absolute; top: 10%; right: 12%; width: 3.5%; min-width: 3px; height: 18%;
  border-radius: 3px; background: var(--ch-gold);
}
.ch-tub-access {
  position: absolute; top: 34%; left: 65%; width: 25%; height: 48%;
  border: 1.3px dashed #f7ead1; border-radius: 4px;
}
.ch-pipe {
  position: absolute; left: 60%; bottom: 10%; width: 16%; height: 11%;
  border-left: 3px double var(--ch-gold); border-bottom: 3px double var(--ch-gold);
  border-radius: 0 0 0 9px;
}
.ch-marker {
  position: absolute; display: grid; place-items: center;
  width: 1.44rem; aspect-ratio: 1; border-radius: 50%; background: var(--ch-gold); color: #253f40;
  font: 600 .78rem/1 var(--mono, monospace); transform: translate(-50%, -50%);
}
.ch-mark-a { left: 10.7%; top: 22%; }
.ch-mark-b { left: 71%; top: 58%; }
.ch-mark-c { left: 68%; top: 90%; }
.ch-plate figcaption {
  border-top: 1px solid #d9ebdc60; padding-top: .9rem;
  display: flex; flex-wrap: wrap; gap: .45rem 1.1rem;
  font: 500 .75rem/1.45 var(--sans, sans-serif);
}
.ch-plate figcaption b { font-family: var(--mono, monospace); color: var(--ch-gold); padding-right: .15rem; }
.ch-sequence { background: var(--ch-pale); border-block: 1px solid var(--ch-rule); }
.ch-stage-layout { padding-block: clamp(3.4rem, 6.5vw, 6.7rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0,1.2fr); gap: clamp(2rem, 7vw, 7rem); }
.ch-stage-heading > p:last-child { max-width: 33ch; margin-top: 1rem; }
.ch-stages { list-style: none; padding: 0; counter-reset: job; }
.ch-stages li {
  position: relative;
  display: grid;
  grid-template-columns: clamp(2.3rem, 5vw, 4.6rem) minmax(0, 1fr);
  gap: .65rem clamp(1rem, 2vw, 2rem);
  padding: 1.45rem 0 2rem;
  border-top: 1px solid #8e9d90;
  counter-increment: job;
}
.ch-stages li::before { content: counter(job, decimal-leading-zero); color: #416453; font: italic 400 clamp(1.9rem, 3.65vw, 3.7rem)/1 var(--serif, Georgia, serif); letter-spacing: -.065em; }
.ch-stages li > p { grid-column: 2; }
.ch-stages li:last-child { padding-bottom: 0; }
.ch-kicker, .ch-slip-head {
  font: 650 .74rem/1.4 var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase;
}
.ch-stages li .ch-kicker { margin: 0 0 .48rem; color: #40564c; }

.ch-price-slip {
  position: relative; background: #f2e4cb; color: var(--ch-blue); padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid #b5a28a; border-bottom: 4px double #b5a28a;
  transform: rotate(-1.1deg); box-shadow: 5px 6px 0 #d9d0bc;
}
.ch-slip-head { border-bottom: 1px solid #aa9b83; padding-bottom: .9rem; }
.ch-price-range {
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  font: 400 clamp(1.85rem, 2.85vw, 3.5rem)/1.1 var(--serif, Georgia, serif);
  letter-spacing: -.06em; padding-block: 1.35rem .9rem; font-variant-numeric: lining-nums;
}
.ch-price-range i { font-size: .52em; color: var(--ch-brick); font-weight: 400; }
.ch-price-slip > p:not(.ch-slip-head) { font-size: .98rem; line-height: 1.57; max-width: 38ch; }
.ch-price-slip a { display: inline-block; margin-top: 1.2rem; font-size: .86rem; font-weight: 650; }
.ch-scenarios {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(2.6rem, 5vw, 5rem); border-top: 1px solid var(--ch-rule);
}
.ch-scenarios dl > div { padding-block: 1rem; border-bottom: 1px solid var(--ch-rule); }
.ch-scenarios dl > div:first-child { padding-top: 0; }
.ch-scenarios dt { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.025em; margin-bottom: .35rem; }
.ch-worksheet { background: #d6dfd3; padding-block: clamp(2.2rem, 5vw, 5.3rem); }
.ch-sheet { padding: clamp(1.2rem, 5vw, 5rem); background: #fffcf1; border: 1px solid #a8b3a4; box-shadow: 6px 6px 0 #abb8aa; color: var(--ch-blue); }
.ch-sheet-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1.4rem; border-bottom: 3px double var(--ch-blue); }
.ch-guide .ch-sheet-instructions { margin-block: 1.15rem 1.45rem; max-width: 72ch; }
.ch-print { cursor: pointer; color: var(--ch-blue); border: 1px solid #8a9b8c; background: transparent; border-radius: 3px; padding: .7rem .9rem; font: 650 .87rem/1.25 var(--sans, sans-serif); white-space: nowrap; }
.ch-print:hover { background: #e9efdf; }
.ch-guide [hidden] { display: none !important; }
.ch-quote-table { table-layout: fixed; width: 100%; border-collapse: collapse; font: inherit; }
.ch-quote-table th, .ch-quote-table td { text-align: left; vertical-align: middle; border-bottom: 1px solid #b6c0ae; padding: .65rem .5rem; overflow-wrap: anywhere; }
.ch-quote-table th:first-child { width: 46%; padding-left: 0; }
.ch-quote-table th:last-child, .ch-quote-table td:last-child { padding-right: 0; }
.ch-quote-table thead th { color: #46634f; font: 650 .78rem/1.4 var(--mono, monospace); text-transform: uppercase; letter-spacing: .06em; border-block: 1px solid #7b8e7b; }
.ch-quote-table tbody th { font-size: .98rem; line-height: 1.35; font-weight: 600; }
.ch-quote-table select, .ch-quote-table input, .ch-notes textarea {
  display: block; box-sizing: border-box; min-width: 0; width: 100%;
  color: var(--ch-blue); border: 1px solid #a8b3a2; border-radius: 3px; background-color: #fffef8;
  font: 400 1rem/1.35 var(--sans, sans-serif);
}
.ch-quote-table select, .ch-quote-table input { padding: .5rem .35rem; min-height: 2.6rem; }
.ch-quote-table .ch-different { background-color: #f5e4ce; }
.ch-quoted small { display: block; font-size: .8rem; font-weight: 400; }
.ch-guide .ch-comparison { margin: .75rem 0 0; font-size: .94rem; color: #495c48; }
.ch-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.ch-notes label { min-width: 0; font-weight: 600; }
.ch-notes textarea { resize: vertical; min-height: 5.5rem; margin-top: .4rem; padding: .65rem; }
.ch-print-value { display: none; }
.ch-guide input:focus-visible, .ch-guide select:focus-visible, .ch-guide textarea:focus-visible, .ch-print:focus-visible { outline: 3px solid #2f675d; outline-offset: 2px; }
@media (max-width: 800px) {
  .ch-mast { gap: 2rem; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
  .ch-replace, .ch-stage-layout, .ch-scenarios { gap: 2rem; }
  .ch-plate { padding: 1rem; }
}
@media (max-width: 680px) {
  .ch-mast, .ch-replace, .ch-stage-layout, .ch-scenarios { grid-template-columns: 1fr; }
  .ch-mast { padding-block: 2.6rem; }
  .ch-guide h1 { font-size: clamp(3.1rem, 10.95vw, 4.8rem); }
  .ch-mast .ch-plate, .ch-mast .ch-price-slip { width: min(100%, 29rem); box-sizing: border-box; justify-self: center; }
  .ch-stage-heading > p:last-child { max-width: 49ch; }
  .ch-price-range { font-size: clamp(2.15rem, 7.8vw, 3rem); }
  .ch-scenarios-title h2 { max-width: 15ch; }
  .ch-quote-table th:first-child { width: 39%; }
  .ch-sheet-top { flex-direction: column; align-items: flex-start; }
  .ch-notes { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
  .ch-sheet { padding: 1.05rem .75rem; }
  .ch-quote-table th:first-child { width: 34%; }
  .ch-quote-table td, .ch-quote-table th { padding: .5rem .18rem; }
  .ch-quote-table tbody th { font-size: .85rem; }
  .ch-quote-table select { font-size: .88rem; padding: .42rem .06rem; }
  .ch-quote-table th:last-child, .ch-quote-table td:last-child { padding-left: .3rem; }
}
@media (max-width: 374px) {
  .ch-quote-table th:first-child { width: 31%; }
}
@media print {
  body:has(.ch-cost) { background: white !important; color: black !important; }
  body:has(.ch-cost) header, body:has(.ch-cost) footer, body:has(.ch-cost) nav, body:has(.ch-cost) .skip-link, .ch-cost > :not(.ch-worksheet), .ch-sheet button { display: none !important; }
  .ch-cost, .ch-cost .wrap, .ch-sheet, .ch-worksheet { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; background: white !important; color: black !important; }
  .ch-guide .ch-sheet-instructions { font-size: 10pt; line-height: 1.35; margin: .2cm 0 .35cm; }
  .ch-sheet-top { display: block; padding-bottom: .25cm; }
  .ch-sheet-top .eyebrow { margin-bottom: .12cm; }
  .ch-sheet-top h2 { font-size: 22pt; }
  .ch-sheet-top .eyebrow::before { content: "WalkInTubFit · "; }
  .ch-quote-table thead { display: table-header-group; }
  .ch-quote-table tr, .ch-notes label { break-inside: avoid; }
  .ch-quote-table th, .ch-quote-table td { height: .72cm; padding: .10cm .2cm; }
  .ch-quote-table tbody th { font-size: 10pt; }
  .ch-quote-table td { font-size: 10pt; }
  .ch-quote-table th:first-child { width: 43%; }
  .ch-print-ready input, .ch-print-ready select, .ch-print-ready textarea { display: none; }
  .ch-print-ready .ch-print-value { display: block; overflow-wrap: anywhere; white-space: pre-wrap; }
  .ch-quoted small { font-size: 8pt; }
  .ch-notes { display: grid; grid-template-columns: 1fr 1fr; margin-top: .35cm; }
  .ch-notes .ch-print-value { margin-top: .12cm; min-height: 1.2cm; border: 1px solid #888; padding: .12cm; font-size: 10pt; font-weight: normal; }
  .ch-guide .ch-comparison { font-size: 9pt; margin-top: .2cm; }
  .ch-stage-layout, .ch-replace { display: block; }
  .ch-install .ch-mast, .ch-install .ch-stage-layout, .ch-install .ch-section { padding-block: 1cm; }
  .ch-install .ch-mast h1 { font-size: 35pt; }
  .ch-install .ch-plate { display: none; }
  .ch-install .ch-stages li { break-inside: avoid; }
}
