/* ============================================================
   CALMER PAGES (Nov 13 2026). Tyler: "sometimes it is really
   overwhelming with the info and I don't know where to look."

   Same look (blue, Archivo, pills, rounded photos). What changes:
   1. Only the top of a page shouts. Section headings are a size
      down, so the eye has one place to start.
   2. Less air between sections, fewer labels above headings.
   3. Reviews are one color, cut to a few lines with "Read more".
   4. Long walls of cards become short lists.
   5. On phones, photo cards become small rows or one swipe row,
      so a page is a few screens, not twenty.

   Loaded last on every page (inc/layout-top.php), so it wins over
   global.css and the page-*.css files at equal specificity. Take
   the <link> out and the old look is back.
   ============================================================ */

:root { --section: clamp(48px, 6.4vw, 88px); }

/* ---------- 1. one loud thing per page ---------- */
.dp .h2 { font-size: clamp(27px, 3.1vw, 40px); line-height: 1.05; letter-spacing: -0.015em; }
.dp .dp-areas .h2 { font-size: clamp(27px, 3.1vw, 40px); }
.dp .display-l { font-size: clamp(36px, 4.6vw, 62px); line-height: .96; }
.dp .display { font-size: clamp(34px, 4.4vw, 56px); line-height: .96; }
.dp .quote-xl { font-size: clamp(27px, 3.2vw, 42px); line-height: 1.06; }
.dp .h3-lg { font-size: 21px; }
.dp .h3 { font-size: 20px; }
.dp .job-title { font-size: 18px; line-height: 1.3; }
.dp .quote { font-size: 17px; line-height: 1.5; font-weight: 500; }

/* ---------- 2. tighter rhythm, fewer labels ---------- */
.dp-head { margin-bottom: var(--space-7); gap: var(--space-3) var(--space-5); }
.dp-head .dp-eyebrow, .dp-faq-layout .dp-eyebrow, .dp-areas .dp-eyebrow { display: none; }   /* the label above a section heading said the same thing as the heading */
.dp-head__aside { font-size: 16px; }
.dp-band__in { padding-block: clamp(44px, 6vw, 80px); gap: clamp(28px, 4vw, 48px); }
.dp-wash > .dp-wrap { padding-block: clamp(44px, 6vw, 80px); }
.dp-prose p { font-size: 17px; line-height: 1.6; }
.dp-prose .dp-prose__drop { font-size: clamp(19px, 1.7vw, 21px); }
.dp-line { font-size: 18px; margin-top: var(--space-6); }

/* questions: quieter rows */
.dp-faq__q { padding: 17px 0; font-size: 18px; }
.dp-faq__icon { width: 28px; height: 28px; }
.dp-faq__a { font-size: 17px; padding-bottom: var(--space-5); }

/* ---------- 3. reviews: one color, a few lines each ---------- */
.dp-quote, .dp-quote:nth-child(3n + 1), .dp-quote:nth-child(3n + 2) { background: var(--surface); border-color: var(--line); }
.dp-quote__t { font-size: 16px; font-weight: 600; }
.dp-review, .dp-review--sun, .dp-review--blue, .dp-review--plain,
.dp-wall .dp-review:nth-child(3n + 1), .dp-wall .dp-review:nth-child(3n + 2), .dp-wall .dp-review:nth-child(3n) { background: var(--sun); border: 0; }
.dp-review { padding: 22px 24px; gap: var(--space-3); border-radius: var(--radius-md); position: relative; }
.dp-wall { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.dp-wall .dp-review { margin-bottom: 0; }
@media (max-width: 959px) { .dp-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* "Read more": a checkbox and its label, no script. The whole review is always in the page. */
.dp-review__tog { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dp-review--long .dp-review__q { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.dp-review--long .dp-review__tog:checked ~ .dp-review__q { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.dp-review__more { align-self: flex-start; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.dp-review__more::after { content: "Read more"; }
.dp-review__tog:checked ~ .dp-review__more::after { content: "Show less"; }
.dp-review__tog:focus-visible ~ .dp-review__more { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.dp-pull { padding: 22px 24px; border-radius: var(--radius-md); }
.dp-pull__q { font-size: 17px; }

/* ---------- 4. cards: lighter, and long sets become lists ---------- */
.dp-card { padding: 22px 24px; border-radius: var(--radius-md); }
.dp-sign__t { font-size: 18px; }
.dp-sign__p { font-size: 15px; }

/* link cards */
.dp .dp-link { padding: 16px 18px; border-radius: 18px; gap: 4px; }
.dp-link__t { font-size: 17px; font-weight: 700; }
.dp-link__b { font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.dp .dp-link:hover { transform: none; box-shadow: none; border-color: var(--blue); }
/* more than six links is an index, not a set of cards: titles only */
.dp-grid--cards:has(> .dp-link:nth-child(7)) { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.dp-grid--cards:has(> .dp-link:nth-child(7)) .dp-link { padding: 12px 16px; border-radius: 14px; }
.dp-grid--cards:has(> .dp-link:nth-child(7)) .dp-link__b { display: none; }
.dp-grid--cards:has(> .dp-link:nth-child(7)) .dp-link__t { font-size: 16px; }

/* a ruled list: what you notice / what it usually is, a job and its date */
.dp-notes > div { padding-block: 14px; }
.dp-notes dt { font-family: var(--font-sans); font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); padding-top: 0; }
.dp-notes dd { font-size: 16px; }
.dp-notes small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* several short groups of links, each on one quiet line */
.cm-more { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.cm-more__row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px 24px; padding-block: 16px; border-bottom: 1px solid var(--rule-thin); align-items: baseline; }
.cm-more__k { font-weight: 700; font-size: 16px; }
.cm-more__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; }
.dp .cm-more__links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-mid); text-underline-offset: 3px; }
.dp .cm-more__links a:hover { color: var(--blue-deep); text-decoration-color: var(--blue); }
@media (max-width: 639px) { .cm-more__row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* service cards: no lift on hover, a blue edge instead */
.dp .dp-svc:hover { transform: none; box-shadow: none; border-color: var(--blue); }
.dp-svc__top .h3 { font-size: 20px; }

/* ---------- homepage: what we do ---------- */
.cm-svc { display: grid; gap: 18px; }
@media (min-width: 900px) { .cm-svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.08fr); align-items: stretch; } }
@media (min-width: 560px) and (max-width: 899px) { .cm-svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cm-svc__rest { grid-column: 1 / -1; } }
.cm-svc__price { margin-top: auto; padding-top: 6px; font-weight: 800; font-size: 16px; color: var(--blue-deep); }
.cm-svc__rest { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 20px 16px; }
.cm-svc__k { padding: 12px 0 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.dp .cm-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dp .cm-row__img { width: 56px; height: 56px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--blue-wash); }
.cm-row__words { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cm-row__words b { font-size: 17px; font-weight: 800; line-height: 1.25; }
.cm-row__words span { font-size: 14px; line-height: 1.35; color: var(--ink-3); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.cm-row__go { color: var(--blue); font-weight: 700; font-size: 18px; }
.dp .cm-row:hover b { color: var(--blue-deep); }
.cm-svc__all { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.dp .cm-svc__all a { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--blue-deep); }

/* the free tools, one quiet line */
.cm-tools { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; }
.cm-tools__k { color: var(--muted); font-weight: 600; margin-right: 4px; }
.dp .cm-tools a { padding: 8px 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
.dp .cm-tools a:hover { border-color: var(--blue); color: var(--blue-deep); }

/* ---------- homepage: who you get ---------- */
.cm-who { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .cm-who { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.cm-who__pics { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.cm-who__pics figure { margin: 0; position: relative; }
.dp .cm-who__pics img { width: 100%; height: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius-lg); }
.dp .cm-who__pics figure:nth-child(2) img { object-position: 46% 50%; }
.cm-who__pics figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--page); color: var(--ink); padding: 5px 12px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; line-height: 1.3; }
.cm-who__words { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cm-who__words .dp-band__p { font-size: 17px; }
.cm-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-inv); }
.cm-points li { padding: 14px 0; border-bottom: 1px solid var(--rule-inv); color: var(--on-ink-2); font-size: 16px; line-height: 1.5; }
.cm-points b { display: block; color: var(--on-ink); font-size: 17px; }

/* a text link on the dark band was ink on ink */
.dp .dp-ink .dp-arrow { color: var(--on-ink); }

/* ---------- towns: one region open at a time ---------- */
.wht__regions details { border-top: 1px solid var(--line); }
.wht__regions details:first-child { border-top: 0; }
.wht__regions summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 34px 14px 0; position: relative; }
.wht__regions summary::-webkit-details-marker { display: none; }
.wht__regions summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.wht__regions details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.wht__regions summary:hover .wht__name { color: var(--blue-deep); }
.wht__regions details .wht__chips { padding-bottom: 16px; }

/* ---------- 5. phones ---------- */
@media (max-width: 639px) {
  /* photo sets you swipe, instead of a stack of full-width photos */
  .dp-grid--jobs, .dp-wall, .dp-grid--three:has(> .dp-review) {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; align-items: stretch;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 2px;
  }
  .dp-grid--jobs { grid-auto-columns: 66%; }
  .dp-grid--jobs::-webkit-scrollbar, .dp-wall::-webkit-scrollbar, .dp-grid--three::-webkit-scrollbar { display: none; }
  .dp-grid--jobs > *, .dp-wall > *, .dp-grid--three:has(> .dp-review) > * { scroll-snap-align: start; }
  .dp .dp-job { gap: 10px; }
  .dp .job-title { font-size: 16px; }

  /* service cards become rows: small photo, name, one line */
  .dp-grid--svc { gap: 10px; }
  .dp .dp-grid--svc .dp-svc { flex-direction: row; border-radius: 18px; }
  .dp .dp-grid--svc .dp-svc__img { width: 104px; flex: none; aspect-ratio: 1; height: auto; align-self: stretch; }
  .dp-grid--svc .dp-svc__body { padding: 12px 14px; gap: 4px; }
  .dp-grid--svc .dp-svc__desc { font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .dp-grid--svc .dp-svc__meta, .dp-grid--svc .dp-svc__items { display: none; }
  .dp-svc__top .h3 { font-size: 18px; }

  /* homepage: the two water heater cards sit side by side */
  .cm-svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .cm-svc__rest { grid-column: 1 / -1; padding: 4px 16px 14px; }
  .cm-svc .dp-svc { border-radius: 18px; }
  .cm-svc .dp-svc__body { padding: 12px 14px 14px; gap: 4px; }
  .cm-svc .dp-svc__desc { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .cm-svc .dp-svc__arrow { display: none; }
  .cm-svc__price { font-size: 14px; }
  .cm-tools { gap: 8px; }
  .cm-tools__k { width: 100%; }

  .dp-card { padding: 16px 18px; }
  .dp-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 8px; padding: 14px 0 2px; }
  .dp-step__n { grid-row: span 2; }
  .dp .numeral { font-size: 30px; }
  .dp .dp-step .h3 { font-size: 18px; align-self: center; }
  .dp-step__p { font-size: 16px; }
  .dp-faq__q { font-size: 17px; padding: 15px 0; }
  .dp-faq__a { padding-right: 0; font-size: 16px; }
  .dp-cta__p { font-size: 17px; }
  .dp .dp-cta__img { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
  .dp-notes > div { padding-block: 12px; gap: 2px; }
  .dp-areas__words { gap: 16px; }
}

/* text links with an arrow */
.dp .dp-arrow { font-weight: 700; font-size: 16px; }
.dp .dp-notes small a { color: var(--muted); text-decoration: none; }
.dp .dp-notes small a:hover { color: var(--blue); }

/* the services page: four across on a laptop, so seven cards are 4 + 3, not 3 + 3 + 1 */
@media (min-width: 1100px) { .dp-grid--svc4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dp-grid--svc4 .dp-svc__desc { font-size: 14px; } }

/* video cards keep a sensible size when there are only one or two */
.dp-grid--videos { grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 240px)); }

/* ---------- long reference lists fold up ---------- */
/* a brand's serial number rules (/water-heater-age): one row per brand, tap to open */
.wa-brands-list { display: grid; gap: 8px; }
details.wa-brand { display: block; padding: 0; border-radius: 16px; }
details.wa-brand > summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 20px; position: relative; align-items: center; }
details.wa-brand > summary::-webkit-details-marker { display: none; }
details.wa-brand > summary::after, .cm-fold > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.wa-brand[open] > summary::after, .cm-fold[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
details.wa-brand > summary h3 { font-size: 19px; }
details.wa-brand > summary:hover h3 { color: var(--blue-deep); }
details.wa-brand[open] > summary { border-bottom: 1px solid var(--line); }
.wa-brand__body { display: grid; gap: 14px; padding: 18px 20px 22px; }

/* a folded table or list with a button to open it */
.cm-fold > summary { cursor: pointer; list-style: none; position: relative; display: inline-flex; align-items: center; padding: 12px 46px 12px 18px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 16px; color: var(--ink); }
.cm-fold > summary::-webkit-details-marker { display: none; }
.cm-fold > summary:hover { border-color: var(--blue); color: var(--blue-deep); }
.cm-fold[open] > summary { margin-bottom: 14px; }
