/* Luke's design changes for Peter's pages (local test, 4 November 2026).

   The same changes as Luke's central heating test page at /ch/, applied to all 46 of Peter's pages
   (12 service pages, 7 equipment pages and 27 guides) by luke-design/apply_luke_design.py. The rules in sections 1 to 5 are copied
   unchanged from the /ch/ test files (trust-dock.css, equipment.css, what-is-photos.css,
   photo-logo.css and review-stars.css). Section 2 adds the photos for the three tiles that /ch/
   does not have, section 4 adds the logo to two photo styles on the equipment pages, and section 6
   is new: the "View all case studies" button.

   Local test only. Never upload anything from local-preview/. */

/* 1. The logo strip as the docked trust panel from https://www.adileakdetection.co.uk/new/
   (homepage-3.css), with the smaller "The original Leak detection company, EST. 2011" label on
   its top edge. The old founding strip under the logos is removed from the page. */
body.home-fold .hero { padding-bottom:84px }
section.services-intro { overflow:visible;overflow-x:clip }
.trust-dock { position:relative;z-index:3;margin-top:-48px;padding:0 28px;background:transparent }
.trust-dock .trust-bar-inner { position:relative;max-width:1180px;padding:30px 28px 20px;background:#fff;border-radius:16px; box-shadow:0 2px 4px rgba(22,30,111,.06),0 22px 44px -18px rgba(22,30,111,.42) }
.trust-dock-label { position:absolute;top:0;left:50%;max-width:calc(100% - 32px);margin:0;padding:7px 20px;transform:translate(-50%,-50%); background:#80eff7;border-radius:999px;color:#161e6f;font-size:14px;font-weight:800;line-height:1.3;letter-spacing:.14em;text-align:center;text-transform:uppercase;white-space:nowrap; box-shadow:0 6px 14px -6px rgba(22,30,111,.45) }
.trust-dock .accreditations-logos { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 236px minmax(0,1fr) minmax(0,1fr);gap:0;align-items:center }
.trust-dock .trust-bar-reviews { justify-self:center;margin:0;box-shadow:none;border-radius:12px }
.trust-dock .accreditation-logo { position:relative;height:72px;margin:0 6px }
.trust-dock .accreditation-logo::before { content:"";position:absolute;left:-6px;top:12px;bottom:12px;width:1px;background:#dfe5f1 }
.trust-dock .accreditation-logo:first-child::before { display:none }
.trust-dock .trust-bar-reviews::before { content:"";position:absolute;left:0;top:28px;bottom:28px;width:1px;background:#dfe5f1 }
.trust-dock .accreditation-logo-front { padding:12px 22px;background:transparent;border:0 }
.trust-dock .accreditation-logo-back { border:0 }
@media (min-width:769px) and (max-width:1100px) { body.home-fold .hero { padding-bottom:96px } }
@media (min-width:769px) and (max-width:1100px) { .trust-dock .accreditations-logos { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 200px minmax(0,1fr) minmax(0,1fr) } }
@media (min-width:769px) and (max-width:1100px) { .trust-dock .trust-bar-reviews { width:200px } }
@media (min-width:769px) and (max-width:1100px) { .trust-dock .trust-bar-reviews .trustpilot-widget { transform:scale(1.02) } }
@media (min-width:769px) and (max-width:1100px) { .trust-dock .trust-bar-reviews::after { left:13px } }
@media (min-width:769px) and (max-width:1100px) { .trust-dock .accreditation-logo-front { padding:10px 12px } }
@media (min-width:769px) and (max-width:1100px) { .trust-dock-label { font-size:12.5px;letter-spacing:.1em } }
@media (max-width:768px) { body.home-fold .hero { padding-bottom:70px } }
@media (max-width:768px) { .trust-dock { margin-top:-28px;padding:0 12px } }
@media (max-width:768px) { .trust-dock .trust-bar-inner { padding:24px 10px 10px;border-radius:14px } }
@media (max-width:768px) { .trust-dock-label { padding:5px 12px;font-size:10.5px;letter-spacing:.05em;white-space:normal;width:max-content;text-wrap:balance } }
@media (max-width:768px) { .trust-dock .accreditations-logos { grid-template-columns:repeat(4,minmax(0,1fr));row-gap:6px } }
@media (max-width:768px) { .trust-dock .trust-bar-reviews { grid-column:1 / -1;justify-self:center } }
@media (max-width:768px) { .trust-dock .accreditation-logo { height:44px;margin:0 4px } }
@media (max-width:768px) { .trust-dock .accreditation-logo::before { left:-4px;top:8px;bottom:8px } }
@media (max-width:768px) { .trust-dock .trust-bar-reviews::before { display:none } }
@media (max-width:768px) { .trust-dock .accreditation-logo-front { padding:6px 6px } }
.trust-dock-label { text-transform:none;letter-spacing:.03em }
@media (max-width:768px) { .trust-dock-label { letter-spacing:.01em } }
.trust-dock { margin-top:-24px;margin-bottom:-24px }
@media (max-width:768px) { .trust-dock { margin-top:-20px;margin-bottom:-20px } }
@media (max-width:768px) { section.services-intro { padding-bottom:0 } }
section.services-intro { background:#edf3fb }
.trust-dock-label { border-radius:10px }
@media (max-width:768px) { .trust-dock-label { border-radius:8px } }
.trust-dock { padding:0 }
.trust-dock .trust-bar-inner { max-width:none;margin-left:-64px;margin-right:-64px;padding-left:calc(64px + max(56px,(100% - 1124px) / 2));padding-right:calc(64px + max(56px,(100% - 1124px) / 2));border-radius:0 }
@media (max-width:768px) { .trust-dock .trust-bar-inner { padding-left:86px;padding-right:86px } }
/* Keep the original space above "What is central heating leak detection?": the panel now overlaps that
   section by 24px (20px on phones), so its top padding grows by the same amount, as /new/ did for its reviews. */
.ch-strip + .about-section { padding-top: 104px }
@media (max-width:768px) { .ch-strip + .about-section { padding-top: 60px } }

/* 2. Equipment photo tiles. The blue link pills in the equipment panel become photo tiles that
   still link to the same pages. The five equipment photos come from the equipment section of /new/
   and load from the live site's /images/ folder. The Case Studies pill is removed, because every
   page has its own case studies further down and now a "View all case studies" button under them. */
.service-categories .ch-equip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ch-equip-grid > li {
  flex: 0 0 calc((100% - 64px) / 5);
  min-width: 0;
  margin: 0;
  list-style: none;
}
.ch-equip-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dfe5f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 30, 111, .06), 0 14px 22px -16px rgba(22, 30, 111, .34);
  color: #1e3a5f;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ch-equip-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 10;
  background: #dfe5f1;
}
.ch-equip-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.ch-equip-photo-thermal img { object-position: 62% 50%; }
.ch-equip-body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px;
}
.ch-equip-name {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: #1e3a5f;
}
.ch-equip-arrow {
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid #1c9fd8;
  border-radius: 50%;
  background: no-repeat center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c9fd8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
  transition: transform .2s ease, background-color .2s ease;
}
.ch-equip-tile:hover,
.ch-equip-tile:focus-visible {
  transform: translateY(-4px);
  border-color: #80eff7;
  box-shadow: 0 14px 28px rgba(30, 58, 95, .22);
}
.ch-equip-tile:focus-visible { outline: 3px solid #1c9fd8; outline-offset: 3px; }
.ch-equip-tile:hover .ch-equip-arrow,
.ch-equip-tile:focus-visible .ch-equip-arrow {
  transform: translateX(3px);
  background-color: rgba(128, 239, 247, .25);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ch-equip-photo img { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
  .ch-equip-tile:hover .ch-equip-photo img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-equip-tile, .ch-equip-arrow { transition: none; }
  .ch-equip-tile:hover, .ch-equip-tile:focus-visible { transform: none; }
}

/* Three tiles a row on tablets, two on phones (the odd one centres) */
@media (max-width: 1099px) {
  .ch-equip-grid > li { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 768px) {
  .ch-equip-tile:hover { transform: none; }
}
@media (max-width: 599px) {
  .service-categories .ch-equip-grid { gap: 12px; }
  .ch-equip-grid > li { flex-basis: calc((100% - 12px) / 2); }
  .ch-equip-photo { aspect-ratio: 1 / 1; }
  .ch-equip-body { gap: 8px; padding: 10px 12px 12px; }
  .ch-equip-name { font-size: 15px; }
  .ch-equip-arrow { width: 24px; height: 24px; background-size: 12px 12px; }
}

/* Tiles that /ch/ does not have. Each uses the hero photo of the page it links to (ADI job photos
   from /images/case-studies/): "All equipment" shows the van with the tracer gas cylinders and
   manifold, "Underground pipes" and "Underground leaks" show water spraying from a supply pipe in an
   excavation, and "Water mains" shows the meter in its chamber. */
.ch-equip-photo-all-equipment img { object-position: 80% 50%; }
/* The pool filtration guide's link to the pool service page uses that page's hero photo: dye
   released beside an underwater light fitting. */
.ch-equip-photo-pool img { object-position: 60% 50%; }
/* The square phone tile shows more of the left edge, where the camera's date stamp sits */
@media (max-width: 599px) {
  .ch-equip-photo-all-equipment img { object-position: 100% 50%; }
}

/* 3. On phones and small tablets (768px and below), the photos in the first section ("What is ...?")
   sit under the heading and text instead of above them. The site stylesheet puts .about-image first
   (order: 1) at that width, and these rules swap the order. Desktop is unchanged. */
@media (max-width: 768px) {
  .about-section .about-text { order: 1; }
  .about-section .about-image { order: 2; }
}

/* 4. The small white ADI logo (/images/adi-logo.webp, the same file as the header logo) in the
   top-left corner of every photo. The hero photo, the logo strip and the header and footer are
   left alone, as on /ch/. */
/* These two photo frames were not positioned, so the logo had nothing to sit in */
.device-image,
.awards-photo { position: relative; }

.about-image::after,
.image-overlay::after,
.video-wrapper.ch-photo::after,
.service-image-card::after,
.ch-equip-photo::after,
.device-image::after,
.ch-case-photo::after,
.awards-photo::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: clamp(36px, 13%, 76px);
  aspect-ratio: 1458 / 467;
  background: url("/images/adi-logo.webp") no-repeat left top / contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
  pointer-events: none;
}

/* Smaller photos sit closer to the corner */
.ch-equip-photo::after,
.ch-case-photo::after { top: 10px; left: 10px; }

@media (max-width: 768px) {
  .about-image::after,
  .image-overlay::after,
  .video-wrapper.ch-photo::after,
  .service-image-card::after,
  .device-image::after,
  .awards-photo::after { top: 10px; left: 10px; }
  .ch-case-photo::after { top: 8px; left: 8px; }
}

/* Two photo styles that only the equipment pages use (added on 4 November 2026): the photo cards on
   /equipment/ (.ch-card-photo) and the single photos with a caption under them on the tracer gas,
   moisture meter and borescope pages (.ch-figure). Neither frame was positioned, so the logo had
   nothing to sit in. The photo is the first thing in each frame, so the logo sits on its corner. */
.ch-card-photo,
.ch-figure { position: relative; }
.ch-card-photo::after,
.ch-figure::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: clamp(36px, 13%, 76px);
  aspect-ratio: 1458 / 467;
  background: url("/images/adi-logo.webp") no-repeat left top / contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
  pointer-events: none;
}
.ch-card-photo::after { top: 12px; left: 12px; }
@media (max-width: 768px) {
  .ch-card-photo::after,
  .ch-figure::after { top: 10px; left: 10px; }
}

/* 5. The customer quote in the insurance section as a Trustpilot review card: white card, green
   star squares (the page's own review-card stars, .rv-star with #rv-star-sym from /css/reviews.css),
   the Trustpilot logo (/images/trustpilot-green-star.webp), the reviewer's name and month and a
   "Read on Trustpilot" link. Each review was checked on Trustpilot on 4 November 2026. */
.ch-tp-card {
  margin: 0 0 24px;
  padding: 18px 20px 14px;
  border: 1px solid #dcdce6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(22, 30, 111, .55);
  color: #191919;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: left;
}
.ch-tp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.ch-tp-card .ch-tp-stars { margin: 0; gap: 3px; }
.ch-tp-card .rv-star { width: 24px; height: 24px; }
.ch-tp-logo { display: block; width: auto; height: 24px; }
.ch-tp-quote { margin: 0; padding: 0; border: 0; }
.ch-tp-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #191919;
}
.ch-tp-card .customers-testimonial {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: #191919;
}
.ch-tp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  padding-top: 12px;
  border-top: 1px solid #e8e8ef;
  font-size: 14px;
  line-height: 1.4;
  color: #6c6c85;
}
.ch-tp-who { font-weight: 700; color: #191919; }
.ch-tp-read {
  font-weight: 600;
  color: #191919;
  text-decoration: underline;
  text-decoration-color: #00b67a;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.ch-tp-read:hover,
.ch-tp-read:focus-visible { color: #00b67a; }

@media (max-width: 480px) {
  .ch-tp-card { padding: 16px 16px 12px; }
  .ch-tp-card .rv-star { width: 20px; height: 20px; }
  .ch-tp-logo { height: 20px; }
  .ch-tp-title { font-size: 17px; }
  .ch-tp-card .customers-testimonial { font-size: 15px; }
}

/* 6. "View all case studies" button under the case studies (new on 4 November 2026). It links to
   /case-studies/ and replaces the Case Studies pill that sat in the equipment panel. Navy with the
   cyan circle arrow, in the style of the equipment tiles; the hero call button stays the only cyan
   button. */
.ch-cases-more {
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 0 20px;
  text-align: center;
}
.ch-cases-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 8px;
  background: #161e6f;
  box-shadow: 0 12px 24px -14px rgba(22, 30, 111, .75);
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ch-cases-all::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid #80eff7;
  border-radius: 50%;
  background: no-repeat center / 12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2380eff7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
  box-sizing: border-box;
  transition: transform .2s ease;
}
.ch-cases-all:hover,
.ch-cases-all:focus-visible {
  background: #1e2a8f;
  box-shadow: 0 16px 28px -14px rgba(22, 30, 111, .85);
  color: #fff;
  transform: translateY(-2px);
}
.ch-cases-all:hover::after,
.ch-cases-all:focus-visible::after { transform: translateX(3px); }
.ch-cases-all:focus-visible { outline: 3px solid #1c9fd8; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .ch-cases-all,
  .ch-cases-all::after { transition: none; }
  .ch-cases-all:hover,
  .ch-cases-all:focus-visible,
  .ch-cases-all:hover::after,
  .ch-cases-all:focus-visible::after { transform: none; }
}
@media (max-width: 768px) {
  .ch-cases-more { margin-top: 28px; }
  .ch-cases-all { width: 100%; max-width: 420px; min-height: 54px; padding: 0 20px; font-size: 16px; }
}

/* 7. Fixes from the design taste review (luke-design/TASTE-REVIEW.md, suggestions 1, 4 and 6),
   applied on 4 November 2026 at Luke's request. Every rule starts with "body" so it wins over the
   site's and Peter's rules without !important. */

/* 7a. Text that passes contrast (suggestion 1). The light cyan (#4ecffb, #02b9f8, #00bcd4) was
   1.65 to 2.3:1 on white, grey and pale blue, and the link blue (#2d99ca) 2.4 to 3.2:1.
   - Heading accents and case numbers on light backgrounds: #0a7ab8. That is 4.7:1 on white, so
     it also passes the 4.5:1 that the equipment panel title needs on phones (22px, not bold), and
     at least 3.4:1 on the palest blue (#b3e5fc), where large bold text needs 3:1.
   - Links on light backgrounds: #08679e, at least 4.5:1 on every light background.
   - Links in the navy methods section: light cyan, as the insurance section already uses (#87f6ff).
   - Links in the cyan "Why choose ADI" panel: navy.
   The bright cyan stays wherever the background is navy. */
body .about-section .highlight-cyan,
body .benefits-section .highlight-cyan,
body .benefits-section .ch-sub,
body .service-categories .highlight,
body .ch-section .highlight-cyan,
body .ch-section .ch-card-h .number,
body .rv-section .highlight-cyan { color: #0a7ab8; }

body .about-section .sublink,
body .benefits-section .sublink,
body .service-categories .sublink,
body .ch-section .sublink,
body .rv-section .sublink,
body .benefits-section p a:not([class]),
body .ch-section p a:not([class]),
body .ch-section li a:not([class]),
body .rv-section p a:not([class]) { color: #08679e; }

body .services-detail-section .sublink,
body .services-detail-section p a:not([class]) { color: #87f6ff; }

body .promotional-banner-section .sublink,
body .promotional-banner-section p a:not([class]) { color: #161e6f; }

/* 7b. One corner system (suggestion 4), matching /new/:
   - 16px for every button, card, photo and panel;
   - 8px for the small label on the logo panel;
   - fully round for the small round things (chips, arrows, FAQ toggles, photo labels, data bars).
   Before this there were 13 sizes, from 2px to 70px, and three button shapes. The phone call
   button also moves from sky blue (#87ceeb) to the brand cyan, like the hero button. */
body.home-fold .hero-cta,
body .call-now-btn,
body .promotional-cta-button,
body .ch-cases-all,
body .faq-item,
body .rv-card,
body .ch-card,
body .ch-card-sign,
body .ch-case,
body .ch-tp-card,
body .service-categories-container,
body .service-image-card,
body .service-image-card img,
body .customers-right,
body .services-detail-section.ch-methods,
body .about-image img,
body .image-overlay img,
body .video-wrapper.ch-photo,
body .video-wrapper.ch-photo img,
body .awards-photo img,
body .trust-dock .trust-bar-reviews,
body .accreditation-logo,
body .accreditation-logo-flip,
body .accreditation-logo-front,
body .accreditation-logo-back { border-radius: 16px; }

/* Two rules that are more specific than the list above (Peter's ".ch-faq .faq-item" and the site's
   ".service-image-card.offset") */
body .ch-faq .faq-item,
body .service-image-card.offset { border-radius: 16px; }

body .trust-dock-label { border-radius: 8px; }

@media (max-width: 768px) {
  body .call-now-btn.mobile-call-btn,
  body .promotional-cta-button,
  body .ch-case,
  body .customers-section .customers-right { border-radius: 16px; }
  body .trust-dock-label { border-radius: 8px; }
  body .call-now-btn.mobile-call-btn { background: #80eff7; color: #161e6f; }
  body .call-now-btn.mobile-call-btn:hover,
  body .call-now-btn.mobile-call-btn:focus-visible { background: #ffffff; }
}

/* 7c. Closing the empty gaps (suggestion 6).
   - Desktop: the equipment panel had 160px of white space below its edge before the next heading
     (80px of its own section's padding plus the next section's 80px). It now has 96px.
   - Phones: the insurance section had 68px of empty navy between the call button and the cyan
     photo panel (the column gap plus a 28px margin). It now has 40px. */
@media (min-width: 769px) {
  body .service-categories { padding-bottom: 16px; }
}
@media (max-width: 768px) {
  body .customers-section .customers-right { margin-top: 0; }
}

/* 8. Headings in sentence case (Luke, 4 November 2026). Every heading except the H1 is now typed
   in sentence case by apply_luke_design.py (change 7). The site's stylesheet also turns some of
   them into capitals with text-transform: uppercase: the promo headline and the equipment panel
   title always, and the benefits, methods and insurance titles at 768px and below. These rules
   switch that off so the typed case shows. The H1 (.hero-title) keeps its capitals. The selectors
   are the ones tested on /ch/ in the 3 November sentence-case trial (local-preview/ch/heading-case.css). */
body .promotional-headline,
body .benefits-title,
body .services-detail-title,
body .customers-title,
body .about-title,
body .ch-card-h,
body .service-categories-header .ch-cat-title,
body .service-categories-header .ch-cat-title .highlight { text-transform: none; }

@media (max-width: 768px) {
  body .promotional-headline,
  body .benefits-title,
  body .services-detail-title,
  body .customers-title,
  body .about-title,
  body .ch-card-h,
  body .service-categories-header .ch-cat-title,
  body .service-categories-header .ch-cat-title .highlight { text-transform: none; }
}

/* 9. Swipe rows on phones (taste review suggestion 7, applied on 4 November 2026 at Luke's request).
   At 768px and below, the six review cards sit in a row that scrolls sideways, with part of the next
   card showing so it is clear there is more. Every review stays on the page and in the HTML; the page
   is just shorter to scroll past. Desktop is unchanged. The row runs to the edges of the screen: its
   negative margins match the section's 16px and the wrapper's 24px padding at these widths. Links
   in the row stay reachable with the keyboard.
   Each case study's photos were a swipe row here too, until the case studies themselves became a
   swipe row on 5 November 2026 (section 12). A swipe row inside a swipe row fights the same gesture,
   so the case photos went back to Peter's own phone layout (one large photo and two below). */
@media (max-width: 768px) {
  body .rv-section .rv-cards {
    display: flex;
    gap: 12px;
    margin-left: -40px;
    margin-right: -40px;
    padding: 4px 40px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 40px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  body .rv-section .rv-card {
    flex: 0 0 min(300px, calc(100vw - 88px));
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
  }
  /* Cards in a row share one height, so the name and link line up at the bottom */
  body .rv-section .rv-card .rv-meta { margin-top: auto; }
}

/* 10. The report list in the insurance section (ul.customers-types, once on each of the 46 pages),
   changed at Luke's request on 5 November 2026. The site's stylesheet marks each item with a cyan
   triangle (a different triangle and cyan at 768px and below) and turns every second item
   (li.highlight) cyan, close to the cyan of the real links in the same section, so the list looked
   clickable. Now every item is white and each marker is a plain round bullet in brand cyan (#80eff7,
   the colour of the phone call button). The bullet takes the item's own font size, line height and
   top padding, so it sits on the first line of text at every screen size, even when an item wraps.
   The text keeps its indent. These rules beat the site's rules at every width, so no media query is
   needed. The benefits lists on 11 pages have the same triangle at desktop and are not changed
   here. */
body .customers-section .customers-types li,
body .customers-section .customers-types li.highlight { color: #fff; }
body .customers-section .customers-types li::before {
  content: "\2022";
  top: 0;
  padding-top: inherit;
  font-size: inherit;
  line-height: inherit;
  color: #80eff7;
}

/* 11. The customer quote in each case study as a Trustpilot review card (Luke, 5 November 2026). It is
   the card from section 5, a little smaller to suit the case study's narrower column: green star
   squares and the Trustpilot logo, Peter's excerpt, then the reviewer, the month of the review, the
   engineer and "Read on Trustpilot". The script builds it (change 9) from the 16 reviews checked on
   Trustpilot on 5 November 2026. Peter's pale blue quote panel (.ch-case-quote) is no longer used. */
body .ch-case .ch-case-review { margin: 0; padding: 16px 18px 12px; }
body .ch-case .ch-case-review .ch-tp-head { margin-bottom: 12px; }
body .ch-case .ch-case-review .rv-star { width: 20px; height: 20px; }
body .ch-case .ch-case-review .ch-tp-logo { height: 20px; }
body .ch-case .ch-case-review .ch-tp-text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #191919;
}
body .ch-case .ch-case-review .ch-tp-meta { font-size: 13px; }

/* 12. The case studies as a swipe row on phones (Luke, 5 November 2026), like the reviews in section 9.
   At 768px and below the case study cards sit side by side in a row that scrolls sideways, one card at
   a time, with the edge of the next card showing so it is clear there is more. Every case study stays
   on the page and in the HTML. Desktop is unchanged.
   - The row runs to the edges of the screen: its -16px margins cancel the section's padding, and the
     first card starts 26px in, in line with the heading and text above.
   - Since 27 November 2026 every card in the row is as tall as the tallest, for symmetry (Luke: "on mobile
     make the case studies white box all be the same length"). The spare height goes above each card's
     "Read the full case study" link, so the links line up along the bottom. (On 5 November each card kept
     its own height; the cases on a page differ by about 9% in height, up to a third.)
   - Inside a card the photos keep Peter's phone layout (one large photo, two below), not a swipe row
     of their own (see section 9). */
@media (max-width: 768px) {
  body .ch-cases {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-left: -16px;
    margin-right: -16px;
    padding: 4px 26px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 26px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  body .ch-cases > .ch-case {
    flex: 0 0 min(360px, calc(100vw - 68px));
    scroll-snap-align: start;
  }
  body .ch-cases > .ch-case:only-child { flex-basis: 100%; }
  body .ch-cases > .ch-case { display: flex; flex-direction: column; }
  body .ch-cases > .ch-case > .ch-case-body { flex: 1 1 auto; display: flex; flex-direction: column; }
  body .ch-cases > .ch-case > .ch-case-body > .sublink:last-child { margin-top: auto; padding-top: 6px; align-self: flex-start; }
}

/* 13. Diagrams in card photo frames (Luke, 5 November 2026). On the I01 guide, causes 6 (ground water)
   and 7 (condensation) have drawings instead of job photos, because ADI has no photos of either: they
   are not leaks. The ADI logo in the corner of every photo (section 4) is white, made for photos, and
   all but vanishes on these light drawings. So on a diagram the same logo shape is used as a mask and
   filled with brand navy, without the drop shadow photos need. Since 27 November 2026 the same goes for
   the supply pipe diagram on the water mains page (.ch-figure.ch-diagram, change 25). */
body .ch-card-photo.ch-diagram::after,
body .ch-figure.ch-diagram::after {
  background: #161e6f;
  -webkit-mask: url("/images/adi-logo.webp") no-repeat left top / contain;
  mask: url("/images/adi-logo.webp") no-repeat left top / contain;
  filter: none;
}

/* 14. Peter's written copy on the central heating page (Luke, 27 November 2026; change 13 in
   apply_luke_design.py), and since change 17 the same day on all 12 service pages. The words are
   Peter's plans of 25 and 26 November 2026, unchanged; these rules lay them out with the pages' own
   pieces. Every class here is used only on those 12 pages. */

/* The plan's opening paragraph, under the logo panel, a step larger than the text after it */
body .about-section .about-text p.ch-intro { font-size: 19px; line-height: 1.7; color: #1a2273; }
@media (max-width: 768px) { body .about-section .about-text p.ch-intro { font-size: 17px; } }
@media (max-width: 480px) {
  body .about-section .about-text p.ch-intro { font-size: 16px; }
  /* The site's phone rule crops this photo to a fixed portrait size made for the homepage's pair of
     photos; this one is shown whole */
  body .ch-intro-section .about-image img { width: 100%; height: auto; }
}

/* The opening keeps the plan's order in the HTML: the lead paragraph, the photo, then the next
   paragraph. From 769px the photo sits on the right beside both paragraphs, exactly as before; on phones
   and small tablets the next paragraph comes under the photo (Luke, 27 November 2026). */
@media (min-width: 769px) {
  body .ch-intro-grid { grid-template-rows: auto auto; row-gap: 0; }
  body .ch-intro-grid > .ch-intro-top { grid-column: 1; grid-row: 1; align-self: end; }
  body .ch-intro-grid > .ch-intro-bottom { grid-column: 1; grid-row: 2; align-self: start; }
  body .ch-intro-grid > .about-image { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 768px) {
  body .ch-intro-grid { gap: 28px; }
  /* section 3 puts the text before the photo; here the HTML order is the one wanted */
  body .ch-intro-grid > .about-text,
  body .ch-intro-grid > .about-image { order: 0; }
  body .ch-intro-grid > .about-text > p:last-child { margin-bottom: 0; }
}

/* A phone number never breaks across two lines */
.ch-tel { white-space: nowrap; }

/* Text with a photo beside it, the photo on the right, or on the left with ch-flip. Beside a long
   text (ch-sticky) the photo stays in view, like the photos in the light blue bands. On phones the
   photo goes under the text. */
.ch-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.ch-split.ch-flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.ch-split.ch-flip > .ch-figure { order: -1; }
body .ch-split > .ch-figure,
body .benefits-left > .ch-figure { margin: 0; }
/* These photos show whole, at their own shape, instead of cropped to the captioned photo's 460px height */
body .ch-split > .ch-figure img,
body .benefits-left > .ch-figure img { height: auto; }
@media (min-width: 1025px) {
  .ch-split.ch-sticky { align-items: start; }
  .ch-split.ch-sticky > .ch-figure { position: sticky; top: 130px; }
}
@media (max-width: 1024px) { .ch-split { gap: 36px; } }
@media (max-width: 768px) {
  .ch-split,
  .ch-split.ch-flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ch-split.ch-flip > .ch-figure { order: 0; }
}

/* A photo the plan still has to supply: a dashed frame with the shot described, in place of a
   stand-in photo */
.ch-photo-todo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 260px;
  padding: 28px;
  border: 2px dashed #8da2c0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
  box-sizing: border-box;
}
.ch-photo-todo-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: #161e6f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
body .ch-photo-todo p { margin: 0; color: #1a2273; font-size: 16px; line-height: 1.6; }
body .customers-right .ch-photo-todo { min-height: 240px; margin: 0 0 30px; border-color: rgba(22, 30, 111, .5); background: rgba(255, 255, 255, .4); }

/* The navy methods panel: the list in white with cyan bullets. Its left column holds the equipment
   tiles (section 16); the plan's two photos that were there are left out (change 15). */
body .ch-methods-plan .ch-list { margin: 0; }
body .ch-methods-plan .ch-list li { color: inherit; }
body .ch-methods-plan .ch-list li::marker { color: #80eff7; }
body .ch-methods-plan strong { color: #fff; }
@media (min-width: 1025px) {
  body .ch-methods-plan .services-detail-content { align-items: start; }
}

/* The numbers in the table line up on the right; on phones each row is a card, so they go left */
body .ch-table .ch-num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { body .ch-table .ch-num { text-align: left; } }
/* From 641px to 768px the site's stylesheet makes every table a block, so this two-column table stopped
   short of its frame. Peter's frame (.ch-table-wrap) already scrolls a wide table, so it stays a table. */
@media (min-width: 641px) { body .ch-table.ch-table-plan { display: table; } }

/* Room between the table's text and the case study cards under it */
.ch-narrow + .ch-cases { margin-top: 32px; }

/* The insurance question is longer than the old one; it steps down like the other question headings */
@media (min-width: 1025px) { body .ch-insurance-plan .customers-title { font-size: 40px; } }

/* Change 17: pieces the other service pages' plans need. A dashed frame, or two photos, beside a
   question's text sit in a column of their own, which takes the side, the place on phones and the
   "sticky" rule of a single photo. */
.ch-split-photos { display: grid; gap: 24px; align-content: start; }
.ch-split.ch-flip > .ch-split-photos { order: -1; }
body .ch-split-photos > .ch-figure { margin: 0; }
body .ch-split-photos > .ch-figure img { height: auto; }
@media (min-width: 1025px) {
  .ch-split.ch-sticky > .ch-split-photos { position: sticky; top: 130px; }
}
@media (max-width: 768px) {
  .ch-split.ch-flip > .ch-split-photos { order: 0; }
}
/* A frame whose planned photo has a caption in the plan, with the caption under it */
body .ch-figure.ch-figure-todo { margin: 0; }
/* A frame in the opening and in the light blue bands; on phones a frame is only as tall as its words,
   so the pages stay short to scroll (Luke, 27 November 2026) */
body .ch-intro-section .about-image > .ch-photo-todo { min-height: 320px; }
@media (max-width: 600px) {
  body .ch-written .ch-photo-todo,
  body .ch-written .ch-intro-section .about-image > .ch-photo-todo { min-height: 0; padding: 22px 20px; }
}
body .benefits-left > .ch-photo-todo { width: 100%; }
/* A table of words: its row headings wrap (Peter's style keeps them on one line, for short labels) */
body .ch-table-text tbody th { white-space: normal; min-width: 8em; }
/* The navy methods panel: subheadings in white, the table's frame without the space under it, and
   the table's cells in Peter's text colour (they took the panel's white, on the table's white) */
body .ch-methods-plan .ch-h3 { color: #fff; margin: 12px 0 0; }
body .ch-methods-plan .ch-table-wrap { margin: 0; }
body .ch-methods-plan .ch-table td,
body .ch-insurance-plan .ch-table td { color: #333; }
/* A dashed frame is not a photo, so it has no ADI logo in its corner (section 4 puts one on every
   .about-image and .ch-figure) */
body .about-image.ch-photo-todo-holder::after,
body .ch-figure.ch-figure-todo::after { content: none; }
/* The plan's own photo in the "why choose" banner (commercial: Robert Gires), framed like the awards
   photo it stands in for */
body .ch-promo .promotional-banner-left > .ch-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}
body .ch-promo .promotional-banner-left > .ch-figure img { max-height: none; height: auto; border-radius: 0; }
/* On phones the site puts the awards photo between the heading and the text, 25px above the text */
@media (max-width: 768px) {
  body .ch-promo .promotional-banner-left > .ch-figure { order: 3; width: 100%; margin-bottom: 25px; }
}
/* Case study cards under a question with a photo, which uses the full width */
.ch-section > .container + .ch-cases { margin-top: 32px; }

/* 15. The live homepage's accreditations panel on the central heating page (Luke, 27 November 2026;
   change 14). The sizes were measured on https://www.adileakdetection.co.uk/ that day at 1440, 1024, 800,
   600 and 390px. The site's older stylesheet, which these pages load, already has the panel's parts (the
   cards that flip over to show their wording, the Trustpilot card and the cyan strip); these rules give
   them the homepage's current sizes and shape. The panel has no trust-dock class, so section 1 leaves it
   alone. */

/* The hero leaves room at its foot for the panel, which overlaps it by 46px (24px on phones) */
body.home-fold .hero.ch-hero-trust { padding-bottom: 91px; }

/* A white panel, centred, up to 1240px wide */
body section.services-intro.ch-home-trust {
  position: relative;
  z-index: 6;
  width: calc(100% - 48px);
  max-width: 1240px;
  margin: -46px auto 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(9, 16, 58, .12), 0 22px 44px -20px rgba(9, 16, 58, .5);
}
body .ch-home-trust .trust-bar { padding: 18px 28px; background: #fff; }
body .ch-home-trust .trust-bar-inner { max-width: 1344px; margin: 0 auto; }
body .ch-home-trust .accreditations-logos {
  grid-template-columns: repeat(2, minmax(0, 164px)) 170px repeat(2, minmax(0, 164px));
  justify-content: center;
  gap: 12px 44px;
}
body .ch-home-trust .accreditation-logo { height: 54px; margin: 0; }
body .ch-home-trust .accreditation-logo,
body .ch-home-trust .accreditation-logo-flip,
body .ch-home-trust .accreditation-logo-front,
body .ch-home-trust .accreditation-logo-back { border-radius: 12px; }
body .ch-home-trust .accreditation-logo-front {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid rgba(128, 239, 247, .9);
  box-shadow: 0 1px 2px rgba(22, 30, 111, .1), 0 6px 14px -8px rgba(22, 30, 111, .3);
}
body .ch-home-trust .accreditation-logo-back {
  padding: 4px 8px;
  border: 0;
  font-size: 11.5px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(22, 30, 111, .1), 0 6px 14px -8px rgba(22, 30, 111, .3);
}
body .ch-home-trust .trust-bar-reviews {
  width: 170px;
  height: 72px;
  margin: -9px 0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(22, 30, 111, .1), 0 6px 14px -8px rgba(22, 30, 111, .3);
}
/* The shine that crosses the stars, placed for the smaller card */
body .ch-home-trust .trust-bar-reviews::after { left: 18px; top: 30px; width: 128px; height: 23px; }
/* The real Trustpilot widget (174 x 84) at the scale the homepage gives it in this card (its stylesheet
   homepage-hero-trust-20261126.css). The site's older stylesheet, which these pages load, scales it up
   to 1.14 for its old, larger card, which pushed it past this card into the cyan strip on the live
   central heating page (Luke, 27 November 2026: "the trustpilot badget is slightly touching the cyan
   bar"). The test pages show the stand-in below instead. */
body .ch-home-trust .trust-bar-reviews .trustpilot-widget { transform: scale(0.82); }
/* The preview's Trustpilot stand-in at the size the homepage shows its TrustBox in this card */
body .ch-home-trust .ch-tp { gap: 2px; }
body .ch-home-trust .ch-tp-name { font-size: 13px; }
body .ch-home-trust .ch-tp-score { font-size: 10.5px; white-space: nowrap; }
body .ch-home-trust .ch-tp .rv-star { width: 16px; height: 16px; }
body .ch-home-trust .founding-strip-title { margin: 0; }
@media (min-width: 601px) {
  body .ch-home-trust .founding-strip { padding: 7px 20px; }
  body .ch-home-trust .founding-strip-title { font-size: 14px; line-height: 1.4; }
}

/* Less space under the panel than under the old logo band, as on the homepage */
body .ch-home-trust + .about-section { padding-top: 56px; }

@media (min-width: 769px) and (max-width: 1100px) {
  body .ch-home-trust .accreditations-logos {
    grid-template-columns: repeat(2, minmax(0, 140px)) 150px repeat(2, minmax(0, 140px));
    gap: 10px 18px;
  }
  body .ch-home-trust .accreditation-logo { height: 50px; }
  body .ch-home-trust .accreditation-logo-front { padding: 7px 12px; }
  body .ch-home-trust .accreditation-logo-back { font-size: 10.5px; }
  body .ch-home-trust .trust-bar-reviews { width: 150px; height: 64px; margin: -7px 0; }
  body .ch-home-trust .trust-bar-reviews::after { left: 16px; top: 26px; width: 113px; height: 20px; }
  body .ch-home-trust .trust-bar-reviews .trustpilot-widget { transform: scale(0.74); }
}

/* Phones: the Trustpilot card on its own row above the four marks, on lighter cards */
@media (max-width: 768px) {
  body.home-fold .hero.ch-hero-trust { padding-bottom: 54px; }
  body section.services-intro.ch-home-trust {
    width: calc(100% - 24px);
    margin-top: -24px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(9, 16, 58, .12), 0 18px 36px -18px rgba(9, 16, 58, .45);
  }
  body .ch-home-trust .trust-bar { padding: 12px 10px 10px; }
  body .ch-home-trust .accreditations-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: normal; gap: 10px 8px; }
  body .ch-home-trust .accreditation-logo { height: 42px; }
  body .ch-home-trust .accreditation-logo,
  body .ch-home-trust .accreditation-logo-flip,
  body .ch-home-trust .accreditation-logo-front,
  body .ch-home-trust .accreditation-logo-back { border-radius: 10px; }
  body .ch-home-trust .accreditation-logo-front { padding: 6px 8px; background: #f4f7fb; border-color: #80eff7; box-shadow: none; }
  body .ch-home-trust .accreditation-logo-back { padding: 2px 4px; font-size: 10px; line-height: 1.15; box-shadow: none; }
  body .ch-home-trust .trust-bar-reviews {
    order: -1;
    grid-column: 1 / -1;
    width: 170px;
    height: 72px;
    margin: 0;
    box-shadow: 0 1px 2px rgba(22, 30, 111, .1), 0 8px 22px -6px rgba(22, 30, 111, .28);
  }
  body .ch-home-trust + .about-section { padding-top: 40px; }
}

/* 16. The equipment tiles in the navy methods panel on the central heating page (Luke, 27 November
   2026; change 15 in apply_luke_design.py: "remove the two images on the left and just have the images
   of the equipment laid out as tiles so it looks neater"). The five tiles of section 2 fill the panel's
   left column, in place of the plan's two photos, two a row and in the order of the list beside them;
   the strip they were in under the panel is gone with its title. Under 769px the column follows the
   text, three tiles a row, or two on phones, with the odd one centred as in the strip. Since change 17
   the other 11 service pages have their tiles in their methods panel too, in the page's own order.
   Since change 19 (section 18) only roof, structural and industrial still show them this way.
   Every class here is used only on the 12 service pages. */
body .ch-methods-equip .ch-equip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body .ch-methods-equip .ch-equip-grid > li { flex: 0 0 calc((100% - 16px) / 2); }
/* Level with the heading. Not sticky: the navy section hides its overflow, which makes it the sticky
   box's scroll container, so a sticky column would only be pushed down, not kept in view. */
@media (min-width: 769px) {
  body .ch-methods-plan .ch-methods-equip { align-self: start; }
}
@media (max-width: 768px) {
  body .ch-methods-plan .ch-methods-equip { order: 2; }
  body .ch-methods-equip .ch-equip-grid > li { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 599px) {
  body .ch-methods-equip .ch-equip-grid { gap: 12px; }
  body .ch-methods-equip .ch-equip-grid > li { flex-basis: calc((100% - 12px) / 2); }
}

/* 17. The central heating page, shorter to scroll on phones (Luke, 27 November 2026; change 16 in
   apply_luke_design.py: "on mobile we have to reduce the scroll time, a lot of sections are far too
   long especailly the equipment section"). Peter's words and every photo stay; they take less room.
   Every rule is scoped by main.ch-written and applies only at 768px and below, so desktop is unchanged.
   Since change 17 all 12 service pages have main.ch-written, so they are all shorter on phones in the
   same way; the 34 equipment pages and guides are unchanged. */

/* The equipment tiles: a swipe row, like the reviews (section 9) and the case studies (section 12).
   Two tiles and the edge of a third show, and the row runs to the navy panel's edges. */
@media (max-width: 768px) {
  /* The column keeps the panel's width; otherwise it grows to the whole row and nothing scrolls */
  body .ch-written .ch-methods-plan .ch-methods-equip { width: 100%; min-width: 0; }
  body .ch-written .ch-methods-equip .ch-equip-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 -20px;
    padding: 8px 20px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  body .ch-written .ch-methods-equip .ch-equip-grid > li { flex: 0 0 150px; scroll-snap-align: start; }
  /* The last tile snaps to the row's end, so the end of the row is always a stop. Where the row only
     just overflows (70px at 768px) no tile's start lands in reach, and the row snapped back to the
     start even when the keyboard focused the last tile. */
  body .ch-written .ch-methods-equip .ch-equip-grid > li:last-child { scroll-snap-align: end; }
  body .ch-written .ch-methods-equip .ch-equip-photo { aspect-ratio: 1 / 1; }
}
/* The navy panel's side padding is 15px below 600px */
@media (max-width: 599px) {
  body .ch-written .ch-methods-equip .ch-equip-grid { margin: 0 -15px; padding: 8px 15px 16px; scroll-padding-inline: 15px; }
}

/* Case study photos: the large photo on the left and the two smaller ones stacked beside it, instead of
   under it. The small photos are 17:12, a little wider than 4:3, so the two together are as tall as
   the large one. */
@media (max-width: 768px) {
  body .ch-written .ch-case-photos:not(.ch-two) { grid-template-columns: 2fr 1fr; gap: 8px; }
  body .ch-written .ch-case-photos:not(.ch-two) > .ch-case-photo:first-child:not(:only-child) { grid-column: 1; grid-row: 1 / span 2; }
  body .ch-written .ch-case-photos:not(.ch-two) > .ch-case-photo:not(:first-child) img { aspect-ratio: 17 / 12; }
  body .ch-written .ch-case-photos:not(.ch-two) > .ch-case-photo:not(:first-child)::after { top: 6px; left: 6px; width: 26px; }
  /* The small photos' labels ("Repaired", "After") scaled to the photo, so they don't cover it */
  body .ch-written .ch-case-photos:not(.ch-two) > .ch-case-photo:not(:first-child) figcaption {
    left: 6px;
    bottom: 6px;
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* The plan's table stays a table: Peter's phone rule turns every table into stacked cards, which made
   this four-row, two-column table 344px tall. A table of numbers stays a table on every written page;
   a table of words (ch-table-text, change 17) keeps Peter's cards, which read better on a phone. */
@media (max-width: 640px) {
  body .ch-written .ch-table.ch-table-plan:not(.ch-table-text) { display: table; }
  body .ch-written .ch-table-plan:not(.ch-table-text) thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  body .ch-written .ch-table-plan:not(.ch-table-text) tbody { display: table-row-group; }
  body .ch-written .ch-table-plan:not(.ch-table-text) tr { display: table-row; padding: 0; border: 0; }
  body .ch-written .ch-table-plan:not(.ch-table-text) th,
  body .ch-written .ch-table-plan:not(.ch-table-text) td {
    display: table-cell;
    width: auto;
    padding: 10px 14px;
    font-size: 15px;
    border-bottom: 1px solid #e6ebf1;
  }
  body .ch-written .ch-table-plan:not(.ch-table-text) tbody tr:last-child th,
  body .ch-written .ch-table-plan:not(.ch-table-text) tbody tr:last-child td { border-bottom: 0; }
  body .ch-written .ch-table-plan:not(.ch-table-text) td::before { content: none; }
  body .ch-written .ch-table-plan:not(.ch-table-text) .ch-num { text-align: right; }
}

/* Text and spacing on phones: Peter's paragraphs were 16px on 28.8px lines and his answer boxes 17px
   on 28.9px; they now match the methods and insurance text (15px on 24px), the answers a step larger.
   Sections and headings have less space around them. */
@media (max-width: 600px) {
  body .ch-written .ch-section,
  body .ch-written .ch-reviews { padding-top: 40px; padding-bottom: 40px; }
  body .ch-written .ch-section .about-title { margin-bottom: 20px; }
  body .ch-written .ch-answer { font-size: 16px; line-height: 1.6; padding: 14px 18px; margin-bottom: 14px; }
  body .ch-written .ch-text { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
  body .ch-written .ch-list li { font-size: 15px; line-height: 1.6; margin-bottom: 8px; }
  /* The navy methods column spaces its children twice: its own 20px gap plus each paragraph's 20px
     margin, so every gap was 40px. Here the gap alone spaces them, 20px, like the insurance text. */
  body .ch-written .ch-methods-plan .services-detail-text > * { margin-bottom: 0; }
}

/* 18. The methods panel's bullet points as tiles (Luke, 27 November 2026; change 19 in
   apply_luke_design.py: "can the bullet points explaining the equipment be a tile next to the photo of
   the equipment? do this on both mobile and desktop"). On the 9 service pages whose methods panel has a
   bulleted list of methods, each bullet is a white tile with the photo of its equipment beside the plan's
   words. The heading and the text before and after the list run across the navy panel; the tiles sit two
   a row from 900px and one a row below, with the photo always beside the words. The photo of a piece of
   equipment links to its page, with the tiles' arrow on it. Roof, structural and industrial keep the
   tiles of section 16. */
body .ch-methods-cards .services-detail-text { max-width: 820px; }
body .ch-method-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
}
body .ch-method-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(9, 16, 58, .18), 0 14px 30px -18px rgba(9, 16, 58, .6);
}
body .ch-method-photo { display: block; }
body .ch-method-img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #e8eef5;
}
body .ch-method-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The small ADI logo, as on every photo (section 4), sized for these smaller photos */
body .ch-method-img::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 36px;
  aspect-ratio: 1458 / 467;
  background: url("/images/adi-logo.webp") no-repeat left top / contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
  pointer-events: none;
}
/* The tiles' arrow in the bottom right corner of the white tile (Luke, 27 November 2026: "move the click
   icon to the bottom right of each white tile"). It is still part of the photo's link to the equipment
   page. A space as wide as the arrow ends the words, so the last line never runs under it. */
body .ch-method-photo .ch-equip-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  background-color: #fff;
  transition: transform .2s ease, background-color .2s ease;
}
body .ch-method-linked .ch-method-text::after { content: ""; display: inline-block; width: 36px; }
body a.ch-method-photo:hover .ch-equip-arrow,
body a.ch-method-photo:focus-visible .ch-equip-arrow { transform: translateX(3px); background-color: #e6fbfd; }
body a.ch-method-photo:focus-visible { outline: 3px solid #80eff7; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { body .ch-method-photo .ch-equip-arrow { transition: none; } }
body .ch-method-text { margin: 0; color: #333; font-size: 16px; line-height: 1.6; }
body .ch-method-text strong { color: #161e6f; }
/* The plan's links in a tile take the links' colour on white (section 7), not the navy panel's cyan */
body .services-detail-section .ch-method-text .sublink { color: #08679e; }
/* A page's tiles that no bullet uses stay as tiles, in a row under the new ones */
body .ch-method-more .ch-equip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: -12px 0 36px;
  padding: 0;
  list-style: none;
}
body .ch-method-more .ch-equip-grid > li { flex: 0 0 180px; }
/* No space under the last of the panel's text */
body .ch-methods-cards .container > :last-child { margin-bottom: 0; }
@media (max-width: 1099px) {
  body .ch-method-card { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 899px) {
  body .ch-method-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 28px 0; }
}
@media (max-width: 768px) {
  body .ch-method-cards { margin: 24px 0; gap: 12px; }
  /* The words keep to their own column beside the photo, as on desktop. Running them on under the photo
     (tried the same day) left a last word such as "pipe." alone under the photo, which looked messy. */
  body .ch-method-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 14px; }
  body .ch-method-img { border-radius: 10px; }
  body .ch-method-img::after { top: 6px; left: 6px; width: 28px; }
  body .ch-method-photo .ch-equip-arrow { right: 12px; bottom: 12px; width: 24px; height: 24px; background-size: 12px 12px; }
  body .ch-method-linked .ch-method-text::after { width: 32px; }
  body .ch-method-text { font-size: 15px; line-height: 1.55; }
  /* The spare tiles become short rows, the photo beside the name, so they add little to the page */
  body .ch-method-more .ch-equip-grid { flex-direction: column; gap: 10px; margin: -6px 0 24px; }
  body .ch-method-more .ch-equip-grid > li { flex: none; width: 100%; }
  body .ch-method-more .ch-equip-tile { flex-direction: row; align-items: center; height: auto; }
  body .ch-method-more .ch-equip-photo { flex: 0 0 72px; width: 72px; aspect-ratio: 1 / 1; }
  body .ch-method-more .ch-equip-photo::after { top: 5px; left: 5px; width: 24px; }
  body .ch-method-more .ch-equip-body { padding: 10px 14px; }
}

/* 19. The "why choose" banner in navy on the 12 service pages (Luke, 27 November 2026: "on all service
   pages, change the cyan background colour in the 'Why choose ADI Leak Detection for a (service)'
   section to navy"). On the other 11 pages the banner holds the question about who the engineers are
   (change 17). The cyan picture behind it gives way to the navy of the insurance section, the other
   full-width navy band (#1e3a8a at 768px and below, as the site's navy sections use there); its words
   turn white and its links take the navy panels' cyan. The white call button stays as it is. On
   bathroom, swimming pool and underground the insurance section comes straight before it, so a thin
   line marks where one ends. Scoped by main.ch-written, so the equipment pages and guides keep the cyan
   banner. */
body .ch-written .ch-promo { background: #1a2273; }
body .ch-written .ch-insurance-plan + .ch-promo { border-top: 1px solid rgba(255, 255, 255, .18); }
body .ch-written .ch-promo .promotional-headline,
body .ch-written .ch-promo .promotional-description,
body .ch-written .ch-promo .ch-list li,
body .ch-written .ch-promo strong { color: #fff; }
body .ch-written .ch-promo .ch-list li::marker { color: #80eff7; }
body .ch-written .ch-promo .sublink,
body .ch-written .ch-promo p a:not([class]) { color: #87f6ff; }
@media (max-width: 768px) {
  body .ch-written .ch-promo { background: #1e3a8a; }
}

/* 20. No cyan between the last section and the footer on the 12 service pages (Luke, 27 November 2026:
   "remove this cyan colour thats inbetween the footer and final part of the service pages"). The site's
   footer paints its curved navy top over a cyan background colour, which showed as a cyan band above the
   curve. Behind the curve it now takes the colour of the section above it: grey where the page ends with a
   grey section, white otherwise. Scoped by main.ch-written, so the equipment pages and guides are as they
   were. */
body main.ch-written + .footer-section,
body main.ch-written + #footer-placeholder > .footer-section { background-color: #fff; }
body main.ch-written:has(> .ch-section.ch-grey:last-child) + .footer-section,
body main.ch-written:has(> .ch-section.ch-grey:last-child) + #footer-placeholder > .footer-section { background-color: #f3f5f6; }
/* On the live site the footer is Mission Control's shared footer (/footer.html), stamped into
   #footer-placeholder, so the same rule also reaches it there (27 November 2026, when the central
   heating page went live). */

/* 21. The insurance photo centred in its panel (Peter's review of the live central heating page, 27
   November 2026, change 27 in apply_luke_design.py: "I'd maybe centralise that image in the grid
   there"). From 481px to 768px wide the photo stops at its 468px and sat on the left of the panel, with
   up to 240px spare on its right. It now sits in the middle; below 481px it fills the panel as before. */
@media (max-width: 768px) {
  body .ch-insurance-plan .customers-right > .device-image { margin-left: auto; margin-right: auto; }
}

/* 22. A call button between the signs of a leak and how our engineers find one, on the central heating
   page (Luke, 27 November 2026: "add a call cta between what are the signs and how do our engineers find
   sections"; change 28 in apply_luke_design.py). The live site's button wording, centred at the foot of
   the signs question, navy on its light blue, with the size and corners of the page's other call
   buttons; full width on phones, like the call button in the insurance section. */
/* Since the same day the button sits at the end of the text column, centred under the text (Luke: "centre the
   call button under the text"), not centred on the whole section. */
body .ch-call-cta { display: flex; justify-content: center; margin: 32px 0 0; padding: 0; }
body .ch-call-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 18px 40px;
  border-radius: 16px;
  background: #1a2273;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 17.6px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(22, 30, 111, .55);
}
/* From 769 to 1100px the text column is as narrow as 350px: a little less padding keeps the number on
   one line */
@media (min-width: 769px) and (max-width: 1100px) {
  body .ch-call-cta-btn { padding: 18px 24px; font-size: 16px; }
}
body .ch-call-cta-btn:hover,
body .ch-call-cta-btn:focus-visible { background: #0f1659; color: #fff; text-decoration: none; }
@media (max-width: 768px) {
  body .ch-call-cta { margin-top: 24px; }
  body .ch-call-cta-btn { width: 100%; min-height: 51px; padding: 16px 25px; font-size: 15px; }
}

/* 23. Headings all the way across (Peter's review of the live central heating page, change 27). With the
   forced break gone from the markup, the site's stylesheets still started the coloured words on a line of
   their own in some headings: .ch-sub is a block everywhere (service-pages.css), and the methods panel's
   .highlight-cyan is one at 768px and below. They now follow on the same line, as Peter asked, so a
   heading only wraps where the line is full. Scoped to the service pages' headings. A heading too long
   for one line also fills its first line now, instead of splitting into two balanced halves (Peter's
   service-pages.css sets text-wrap: balance on every heading in main, which put the break in the same
   place as before); "pretty" still keeps a lone word off the last line. */
body main.ch-written h2[id] > span[class] { display: inline; }
body main.ch-written h2[id] { text-wrap: pretty; }

/* 24. The methods panel's heading may use the panel's full width (Luke, 27 November 2026: "the header \"How
   do our engineers detect a leak on a water main?\" can fit on one line instead of two"). The site's
   stylesheet keeps .services-detail-text to 820px, which put that 873px heading on two lines from 1100px
   up; the paragraphs under it keep the 820px measure. */
body .ch-methods-cards .ch-methods-head { max-width: none; }
body .ch-methods-cards .ch-methods-head > p { max-width: 820px; }
