/* Rules the Design stylesheet did not need. The Design stylesheet stays byte for byte. */

/* Message form row: aligned to the top while any field shows a validation line. The offset keeps Send level with the inputs. */
.message:has(.help[data-error-for]) .fields-row { align-items: start; }
@media (min-width: 640px) {
  .message:has(.help[data-error-for]) .fields-row > .btn { margin-top: calc(var(--caption-line) + var(--space-1)); }
}


/* The date input on Book a call without script: the same as the other inputs. :where keeps the Design's invalid border in charge. */
.field input:where([type="date"]) { width: 100%; height: var(--control-height); padding: 0 var(--space-2); border: 1px solid var(--grey-caption); border-radius: 0; background: var(--ground); color: var(--ink); font: inherit; font-size: var(--body-size); -webkit-appearance: none; appearance: none; }

/* Measure my roof result: a fourth route, Download the plan, with the same weight as the other three. */
@media (min-width: 640px) {
  .routes:has(> li:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Measure my roof result: the short Eaves length input beside its figure, styled like the other inputs. */
.facts input[data-eaves] { width: 7ch; height: var(--space-5); padding: 0 var(--space-1); border: 1px solid var(--grey-caption); border-radius: 0; background: var(--ground); color: var(--ink); font: inherit; text-align: right; -moz-appearance: textfield; }

/* Guide articles: the Sources heading and list in caption size, long addresses wrapping on a phone. */
.reading h2.sources { font-size: var(--caption-size); line-height: var(--caption-line); font-weight: 500; }
.reading .sources-list { padding-left: var(--space-3); font-size: var(--caption-size); line-height: var(--caption-line); color: var(--grey-caption); overflow-wrap: anywhere; }
.reading .sources-list a { color: var(--grey-caption); }

/* Ask block on the roof works and gutters pages: the photograph in eight columns, the question beside it.
   On a phone the grid stacks, photograph first. */
.ask { align-items: end; row-gap: var(--space-4); }
.ask > figure { grid-column: 1 / span 8; margin: 0; }
.ask > .ask-copy { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: var(--space-2); }
.ask .link-group { margin-top: var(--space-2); }

/* Footer Company column: the Design's fourth footer column under its new class name. */
.f-company { grid-column: 9 / span 2; }
@media (max-width: 1023px) { .f-company { grid-column: span 4; } }

/* Roof works and Gutters rows with their photograph (home page), and the level under each
   report purpose's title. Wider screens only; phones follow the Design's two-column rows below. */
@media (min-width: 640px) {
  .works-stills a { align-items: center; }
  .works-stills .photo { grid-column: 1 / span 2; }
  .works-stills .n { grid-column: 3 / span 1; }
  .works-stills .t-title { grid-column: 4 / span 3; }
  .works-stills .t-body { grid-column: 7 / span 5; }
}

/* Report purposes: the level directly under the title. */
.report-list .lvl { display: block; margin-top: 4px; color: var(--grey-caption); }

/* Home: Measure my roof and the reports side by side. */
.first-row { row-gap: var(--space-5); align-items: start; }
.first-measure { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: var(--space-2); }
.first-reports { grid-column: 8 / span 5; }
.compact-list { margin: var(--space-2) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.compact-list li { border-bottom: 1px solid var(--grey-rule); }
.compact-list a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding: var(--space-1) 0; text-decoration: none; }
.compact-list a:hover .t-body { text-decoration: underline; text-underline-offset: 4px; }
.compact-list .t-caption { white-space: nowrap; }

/* Report levels: three columns, stacked on a phone. */
.levels { margin: 0; padding: 0; list-style: none; row-gap: var(--space-5); }
.level { grid-column: span 4; border-top: 1px solid var(--ink); padding-top: var(--space-2); display: flex; flex-direction: column; gap: var(--space-2); }
.level-includes { margin: 0; padding: 0 0 0 var(--space-3); }
.level-includes li + li { margin-top: var(--space-1); }
.level-allow { margin-top: auto; padding-top: var(--space-2); }
.levels-notes { margin-top: var(--space-5); row-gap: var(--space-2); }
.levels-notes > p { grid-column: 1 / span 8; }

/* Sample report page: landscape A4. */
.r-a4-land { aspect-ratio: 297 / 210; }

/* Systems and materials: one strip per row of marks. */
.strip { padding: var(--space-3) 0; border-top: 1px solid var(--grey-rule); align-items: start; }
.strip > .t-label, .strip > .s-title { grid-column: 1 / span 3; } /* 65: the heading is .s-title; the rule had kept the old .t-label */
.strip-body { grid-column: 4 / span 9; display: flex; flex-direction: column; gap: var(--space-2); }
.marks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.mark img { display: block; height: 48px; width: auto; }
.strip + .grid { margin-top: var(--space-5); }
/* 65: at desktop widths each side heading sits on one line: the heading column widens and the body narrows to match
   (the longest, "Systems we install", needs 320px at 40px type: six columns from 1,024, four from 1,280). */
@media (min-width: 1024px) and (max-width: 1279px) { .strip > .s-title { grid-column: 1 / span 6; } .strip-body { grid-column: 7 / span 6; } }
@media (min-width: 1280px) { .strip > .s-title { grid-column: 1 / span 4; } .strip-body { grid-column: 5 / span 8; } }

@media (max-width: 1023px) {
  .level { grid-column: 1 / -1; }
  .first-measure, .first-reports { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .works-stills .photo { grid-column: 1 / -1; grid-row: 1; margin-bottom: var(--space-1); }
  .works-stills .n { grid-row: 2 / span 3; }
  .levels-notes > p { grid-column: 1 / -1; }
  .strip > .t-label, .strip > .s-title, .strip-body { grid-column: 1 / -1; }
}

/* Home: the three trust lines under the headline, above the routes. Lead in the title weight,
   line in body weight. At 390 x 844 all three and the routes end inside the first two screens
   at these weights, so nothing is reduced on a phone. */
.trust { margin: var(--space-5) 0 0; padding: 0; list-style: none; row-gap: var(--space-3); }
.trust li { grid-column: span 4; border-top: 1px solid var(--ink); }
.trust a { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-2); text-decoration: none; }
.trust a:hover .t-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.trust .t-body { color: var(--grey-caption); }
.trust-tagline { margin-top: var(--space-4); }

/* Home: the four reports paragraphs beside their heading. */
.reports-block { grid-column: 4 / span 9; display: flex; flex-direction: column; gap: var(--space-2); }

/* Questions as searched, with their answers. */
.search-questions .split + .split { margin-top: var(--space-5); }
.search-questions .content > p { margin: 0; }

/* About: paragraphs in a section. */
.split > .content > p + p { margin-top: var(--space-2); }

/* Guides and works pages: the Last checked line at the foot of the content. */
.last-checked { margin-top: var(--space-5); }
/* Guides: the closing block, Measure my roof and the works page for the subject, one a line. */

@media (max-width: 639px) {
  .trust { margin-top: var(--space-4); row-gap: var(--space-2); }
  .trust li { grid-column: 1 / -1; }
  .reports-block { grid-column: 1 / -1; }
}

/* Header from 1,024 px: every navigation label on one line, and the call block inside the row.
   Between 1,024 and 1,439 px the navigation steps down one size with tighter gaps. The reply pledge
   beside the number shows from 1,280 px, where it fits; between 1,024 and 1,279 px it leaves the
   header (the row is 784 to 1,039 px wide there). The opening hours are in the footer, the routes
   and the menu. */
.site-header nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-call .t-caption { display: none; }
}

/* "How did you find us?" in the compact Message bar: wide enough for the longest option, not the whole row. */
.message .source-field { max-width: 440px; margin-top: var(--space-2); }

/* Home: the routes pledge directly under the three routes. */
.routes-pledge { margin-top: var(--space-3); color: var(--grey-caption); }

/* Home: "What do you look for in a good roofing company?" The Design's fee table, two columns:
   question in the title weight, answer in body weight, with a short More link. On a phone each row
   stacks, question above answer, and the column headings step aside. */
.why { min-width: 0; table-layout: fixed; }
.why thead th:first-child { width: 40%; }
.why tbody th { padding-right: var(--space-4); }
.why td a { white-space: nowrap; }
@media (max-width: 639px) {
  .why thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .why, .why tbody, .why tr, .why th, .why td { display: block; width: 100%; }
  .why tbody th { padding: var(--space-3) 0 var(--space-1); border-bottom: 0; }
  .why td { padding: 0 0 var(--space-3); }
}

/* Finish pass, agreed with the owner after Design's return (11 Nov 2026): inside every ink band, body text is
   set one step up the type scale (body to title size: 24/32 on desktop, 20/28 on a phone). Nothing else changes. */
.band-ink { --body-size: var(--title-size); --body-line: var(--title-line); }

/* Printing a guide or a report page: the ink bands print as plain text on the page. */
@media print {
  .print-doc .band-ink, .print-doc .band-paper, .print-doc .band-accent { background: none; color: var(--ink); }
  .print-doc .band-ink .t-caption, .print-doc .band-ink a { color: var(--ink); }
}

/* Form pages (11 Nov 2026): the form follows the one-line lead after one spacing step, so the first field
   shows in the first screen. */
.lead-band + .screen.after-lead { padding-top: var(--space-5); }

/* Measure my roof: the selected and focused list row for any number of buildings (ingress.css marks b1 to b5
   by :has; with more buildings the page script sets these classes instead). */
.cand-row.is-selected { padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.cand-row.is-selected .mk-n { background: var(--ink); color: var(--ground); }
.cand-row.is-selected .t-title { font-weight: 500; }
.cand-row.is-focus { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Measure tools (show more, and later nudge, trace, zoom): plain underlined text buttons, placeholders for Design. */
.m-tools { margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: center; }
.m-tool { padding: 0; border: 0; background: none; font: inherit; font-size: var(--caption-size); line-height: var(--caption-line); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.m-tool:disabled { color: var(--grey-caption); cursor: not-allowed; }
.m-tool[aria-pressed="true"] { font-weight: 500; }
.m-steps { display: inline-flex; gap: var(--space-2); }
/* Trace: the drawn outline over the aerial; while drawing, a tap adds a corner instead of selecting. */
.m-trace-tool .m-tools .btn { height: auto; padding: var(--space-1) var(--space-2); }
.m-trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.m-trace path { fill: rgba(58, 95, 125, 0.18); stroke: var(--accent); stroke-width: 3; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.m-trace circle { fill: var(--ground); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.aerial.is-tracing { cursor: crosshair; }
.aerial.is-tracing .cand path, .aerial.is-tracing .cand rect { pointer-events: none; }
/* Pan and zoom: a grab cursor on the map for a mouse. */
.aerial.choose { overflow: hidden; cursor: grab; }
.aerial.choose.is-panning { cursor: grabbing; }
.aerial.choose.is-tracing { cursor: crosshair; }

/* Measure finish pass (instruction 13): build-side rules next to Design's ingress-measure.css. */
/* The list beside the aerial scrolls inside its column once it is capped (the page script sets the height). */
.m-side .cand-list.is-capped { overflow-y: auto; overscroll-behavior: contain; padding-right: var(--space-1); }
/* The disclosure and live lines sit inside the figcaption, which already carries the left padding. */
.m-aerial-fig figcaption .m-sources { padding-left: 0; }
.m-live { margin: 4px 0 0; }
.m-live:empty { display: none; }
/* Draw the roof yourself: a text link, as Design's .m-alt a. */
.m-link { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; line-height: 24px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.m-trace-tool { display: flex; flex-direction: column; gap: var(--space-1); }
.m-nudge button:disabled { color: var(--grey-caption); cursor: default; text-decoration: none; }
.m-side .cand-list.is-capped:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The plates (13A): beneath the aerial at every width, nothing over it. One row, left to right: the zoom pair,
   the compass cross, then Move the outlines with its heading on its own line above its six controls (which wrap
   inside their block where the row is narrow). Below 480px the three wrap to two rows, in the same order.
   Aligned with the caption under them (the figure bleeds off the left edge, so the row takes the margin). */
.m-stage { position: relative; container-type: inline-size; }
.m-plates { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) 0 0 var(--margin); }
.m-panzoom { display: contents; }
.m-plates .m-nudge { position: static; flex: 1 1 0; min-width: 0; flex-wrap: wrap; justify-content: flex-start; background: none; }
.m-plates .m-nudge .t-caption { display: block; flex: 1 0 100%; padding: 0 0 var(--space-1); }
.m-plates .m-nudge button { height: 40px; padding: 0 var(--space-1); border-left: 0; }
.m-plates .m-nudge button + button { border-left: 1px solid var(--grey-rule); }
/* Draw the roof yourself, moved to the top of the list column: no rule above it there. */
.m-side .m-alt-top { padding-top: 0; border-top: 0; }
.m-zoom { flex: none; display: flex; flex-direction: column; gap: 4px; }
.m-zoom button, .m-compass button { border: 0; border-radius: 0; background: var(--ink); color: var(--ground); font: inherit; cursor: pointer; }
.m-zoom button { width: 40px; height: 40px; font-size: 20px; line-height: 20px; font-weight: 300; }
.m-compass { flex: none; display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 32px); gap: 4px; }
.m-compass button { padding: 0; font-size: 12px; line-height: 16px; }
.m-compass .m-n { grid-column: 2; grid-row: 1; }
.m-compass .m-w { grid-column: 1; grid-row: 2; }
.m-compass .m-e { grid-column: 3; grid-row: 2; }
.m-compass .m-s { grid-column: 2; grid-row: 3; }
.m-zoom button:hover, .m-compass button:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-zoom button:focus-visible, .m-compass button:focus-visible, .m-nudge button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-zoom button:disabled { background: var(--grey-rule); color: var(--grey-caption); cursor: default; }
@media (max-width: 1023px) { .m-plates { padding: var(--space-2) var(--margin) 0; } }
@container (max-width: 479px) {
  .m-plates { flex-wrap: wrap; }
  .m-plates .m-nudge { flex: 1 0 100%; }
}
/* Part 4: Copy a link to this result, a small ground button under the figure; the fallback field beneath it. */
.m-share { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); margin-top: var(--space-2); }
.m-share .m-share-btn { height: 40px; padding: 0 var(--space-2); font-size: var(--caption-size); line-height: var(--caption-line); }
.m-share-url { width: 100%; height: 40px; padding: 0 var(--space-1); border: 1px solid var(--grey-caption); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: var(--caption-size); }

/* Part 5: the slim header, fixed on scroll, on every page. From Design's ingress-measure.css (11 Nov 2026),
   header section, which loads on the Measure pages only; repeated here so every page has it. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ground); }
.site-header .bar { height: 64px; gap: var(--space-3); }
.site-header .brand img { height: 24px; }
.site-header nav ul { gap: var(--space-2); }
.site-header nav a { font-size: 13px; line-height: 20px; }
.header-call { gap: var(--space-2); }
.header-call .t-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* "Call us" kept for screen readers */
.header-call .number { font-size: 16px; line-height: 24px; font-weight: 500; }
.header-call .t-caption { font-size: 13px; line-height: 20px; }
.mobile-menu { top: 65px; }
@media (max-width: 1279px) { .header-call .t-caption { display: none; } }
@media (max-width: 639px) {
  .site-header .bar { height: 56px; }
  .site-header .brand img { height: 20px; }
  .header-call { display: flex; margin-left: auto; }
  .header-call .number { font-size: 15px; }
  .mobile-menu { top: 57px; }
}
/* The header sits in .wrap, which stops at the content width; its ground runs the full width of the window,
   so nothing shows beside it as the page scrolls beneath. */
.site-header { box-shadow: 0 0 0 100vmax var(--ground); clip-path: inset(0 -100vmax); }
/* 22G: the header row (wordmark, number, Menu) does not wrap, and at its 24px gaps it needs 350px inside the wrap,
   so below 370 the Menu button ran past the window. Tighter gaps below 400 keep the number in the bar down to 380;
   below that the number drops to the menu, where it already sits. */
@media (max-width: 399px) { .site-header .bar { gap: 12px; } }
@media (max-width: 379px) { .site-header .header-call { display: none; } }
/* Anchors, the skip link's target and focused fields land clear of the bar. */
[id] { scroll-margin-top: 80px; }
@media (max-width: 639px) { [id] { scroll-margin-top: 72px; } }
/* Skip to the content: off screen until focused, then above the bar. */
.skip-link { position: absolute; left: var(--margin); top: -200px; z-index: 30; padding: var(--space-1) var(--space-2); background: var(--ink); color: var(--ground); font-size: var(--caption-size); line-height: var(--caption-line); text-decoration: underline; }
.skip-link:focus { top: var(--space-1); }
main:focus { outline: none; }

/* Part 6: the mark, in four places only (the browser tab, the film Play plate, the page foot here, and the
   plan PDF cover from the Worker). From Design's ingress-measure.css, repeated so every page has it. */
.f-mark { display: block; width: 32px; height: 32px; margin-bottom: var(--space-2); }
.film-play .play-mark { width: 32px; height: 32px; align-self: center; }
/* 13A item 2: each list row on one line, 48px tall: the number square, the building name, then the area in
   caption weight. The selected row keeps the filled number and the heavier rule. (padding is forced to 0 over
   the b1 to b5 :has rules in ingress.css and Design's file, which pad the selected row for the old layout.) */
.m-side .cand-list { scroll-padding-block: 0; }
.m-side .cand-row { display: flex; align-items: center; gap: var(--space-2); box-sizing: border-box; height: 48px; padding: 0 !important; border-bottom: 1px solid var(--grey-rule); }
.m-side .cand-row .mk-n { flex: none; width: 28px; height: 28px; }
.m-side .cand-row .cr-text { display: flex; flex-direction: row; align-items: baseline; gap: var(--space-2); min-width: 0; white-space: nowrap; overflow: hidden; }
.m-side .cand-row .t-title { font-size: var(--body-size); line-height: 24px; overflow: hidden; text-overflow: ellipsis; }
.m-side .cand-row .t-caption { color: var(--grey-caption); }
/* Instruction 34: the building's name never truncates. Name and area share one line where they fit and take two
   where they do not; a row is at least 48px, taller only when it wraps. "Show smaller buildings" sits directly
   under "Show more buildings" when both are offered, 20px apart (their 44px hit areas meet and do not overlap), as one pair of links. */
.m-side .cand-row { height: auto; min-height: 48px; }
.m-side .cand-row .cr-text { flex-wrap: wrap; column-gap: var(--space-2); row-gap: 0; white-space: normal; overflow: visible; padding: 2px 0; }
.m-side .cand-row .t-title { overflow: visible; text-overflow: clip; white-space: nowrap; }
.m-side .cand-row .t-caption { white-space: nowrap; }
.m-side .m-more:not([hidden]) + .m-smaller { margin-top: calc(20px - var(--space-3)); }
@media (min-width: 1024px) { .m-side .cand-list ~ .m-smaller:not([hidden]) ~ .m-measure { margin-top: 0; } } /* outranks the capped-list pull-up below */
.m-side .cand-row.is-selected { border-bottom: 2px solid var(--ink); }
/* Draw the roof yourself on one line under the heading. */
.m-side .m-alt-top .m-link { white-space: nowrap; }
/* 13A item 3: the number squares are sized in screen pixels by the page script (24px, 13px type), so the phone
   enlargement in ingress.css (scale 1.8) no longer applies. The outline itself is the tap target as well. */
@media (max-width: 639px) { .cand .mk { transform: none; } }
/* 13B: beside the aerial, Measure this roof sits directly under the list (no column gap), so the list ends 72px
   above the aerial's bottom edge and the button finishes level with it. Stacked (tablet and phone): unchanged. */
@media (min-width: 1024px) { .m-side .cand-list.is-capped ~ .m-measure { margin-top: calc(-1 * var(--space-3)); } }

/* Legal pages (instruction 9): each clause a paragraph opening with its reference in 500 weight; the per-form
   sections of the Privacy notice sit under "The forms on this site" as h3, their four parts as h4. */
/* The gap from the ink head to the opening paragraph: 96px, 64px below 768. */
.legal-body { padding-top: var(--space-7); }
@media (max-width: 767px) { .legal-body { padding-top: var(--space-6); } }
.legal .c-ref { font-weight: 500; }
.legal .clause + .clause { margin-top: var(--space-2); }
.legal .defs p { margin: 0; }
.legal .defs dl { margin: 0; }
.legal .defs dt { display: inline; font-weight: 500; }
.legal .defs dd { display: inline; margin: 0; }
.legal .defs dl > div + div { margin-top: 4px; }
.legal h4 { margin-top: var(--space-2); font-size: var(--caption-size); line-height: var(--caption-line); font-weight: 500; color: var(--grey-caption); }
.legal h4 + p { margin-top: 4px; }

/* About below 640: Design's photo-above rule (.p-hero--below .p-hero-panel, padding 32px 0 64px) outranks its own
   phone rule that pulls the panel out by the margin and pads it back in, so the title and intro sat at x=0. Put the
   side padding back (one class more, as ingress-finish.css loads after this file); top and bottom stay as Design set them. */
@media (max-width: 639px) {
  .p-hero.p-hero--below .p-hero-panel { padding-left: var(--margin); padding-right: var(--margin); }
}

/* Home hero (instruction 15): the subline in body weight, caption size below 768; the footnote as the panel's
   last line, caption size, ground tone, upright. One class more than Design's .p-hero-panel .p-hero-sub, as
   ingress-finish.css loads after this file. */
.p-hero .p-hero-panel .p-hero-foot { margin-top: var(--space-3); color: var(--ground); font-style: normal; }
@media (max-width: 767px) {
  .p-hero .p-hero-panel .p-hero-sub { font-size: var(--caption-size); line-height: var(--caption-line); }
}
/* A 4px ground rule across the top edge of the trust band, where the hero panel meets it. */
.trust-band { border-top: 4px solid var(--ground); }
/* re-roofing and re-sheeting never break at the hyphen (the nowrap transform in eleventy.config.js). */
.nb { white-space: nowrap; }
/* Trust band: the three headings align at the top and the proofs run to their own lengths; the rule beneath
   (the trust-foot border) falls under the longest. */
.trust-band .trust { align-items: start; }
/* Home: the Where are you starting from rule sits 48px beneath Read the film at every width (18B). */
.film-section + .screen { padding-top: var(--space-5); }
/* Trust band (17A, layout 18 Nov 2026). The three proofs at 14px at every width, in the band's grey. The foot:
   below 1,024 the heading (20px, 500) sits above the body (16px, 400, the band's light grey), full width; from
   1,024 the heading takes the left 4 columns at 24px / 500 and the body the right 8 at the site body size
   (18px / 32px), both two heading lines (64px) clear beneath the rule above. */
.trust-band .trust .t-caption { font-size: 14px; color: var(--ground-muted); }
.trust-band .trust-foot .trust-foot-block { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--space-2); }
.trust-band .trust-foot .trust-foot-block .t-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--ground); }
.trust-band .trust-foot .trust-foot-block .t-body { margin: 0; font-size: 16px; line-height: 26px; font-weight: 400; color: var(--ground-muted); }
@media (min-width: 1024px) {
  .band.trust-band .trust-foot { padding-top: calc(2 * 32px); }
  .trust-band .trust-foot .trust-foot-block { display: grid; grid-template-columns: subgrid; align-items: start; }
  .trust-band .trust-foot .trust-foot-block .t-title { grid-column: 1 / span 4; font-size: 24px; line-height: 32px; }
  .trust-band .trust-foot .trust-foot-block .t-body { grid-column: 5 / span 8; font-size: 18px; line-height: 32px; }
}
/* Home Measure my roof band: the entry field's rules from ingress-measure.css, scoped to the band, so home does
   not load that sheet (it also restyles the header, menu and film mark for the Measure pages). */
.mb { --control-large: 72px; }
.mb .m-entry label { display: block; margin-bottom: var(--space-1); font-size: var(--caption-size); line-height: var(--caption-line); font-weight: 500; color: var(--ground); }
.mb .m-entry-row { display: grid; }
.mb .m-entry input { width: 100%; height: var(--control-large); padding: 0 var(--space-3); border: 1px solid var(--ground); border-radius: 0; background: var(--ground); color: var(--ink); font: inherit; font-size: var(--title-size); -webkit-appearance: none; appearance: none; }
.mb .m-entry input:focus-visible { outline: 2px solid var(--ground); outline-offset: 2px; }
@media (max-width: 639px) { .mb .m-entry input { font-size: 18px; } }
/* Home Reports selector: without script the order form shows beneath the cards with the level select visible;
   with script the form opens when a card is chosen (ingress-home-bands.css) and the select is hidden. */
html:not(.js) .rs-wrap .rs-form { display: block; }
.js .rs-form .rs-level-field { display: none; }
.rs-form .check { margin: 0; }
.band-accent .rs-form .consent, .band-accent .rs-form [data-state="error"] { margin: 0; color: var(--grey-caption); }
.rs-form .field select { background-color: var(--paper); border-color: var(--grey-caption); }
/* Talk to us (18A): Name and "How did you find us?" side by side, stacked below (Design stacked
   them below 640 only); the source field's own top margin removed inside the pair. */
.talk .talk-form .source-field { margin: 0; }
@media (max-width: 1229px) { .talk .talk-form .fields-2 { grid-template-columns: 1fr; } }
/* Footer (18A): four columns (brand, Call or write, Services, Company); the statutory details as one caption
   line across the full width with the mark beside it, above the legal row. Below 768 the Services and Company
   links run as one wrapped row in caption size under Call or write. */
.f-menus { display: contents; }
.site-footer .f-nav { grid-column: 7 / span 3; }
.site-footer .f-company { grid-column: 10 / span 3; }
.f-reg { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5); }
.f-reg .f-mark { flex: none; margin: 0; }
@media (max-width: 1023px) { .site-footer .f-nav, .site-footer .f-company { grid-column: span 6; } }
@media (max-width: 767px) {
  .site-footer .f-brand, .site-footer .f-contact { grid-column: 1 / -1; }
  .f-menus { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
  .f-menus .f-nav, .f-menus .f-company, .f-menus ul { display: contents; }
  .f-menus h2 { display: none; }
  .f-menus li { font-size: var(--caption-size); line-height: var(--caption-line); }
  .f-reg { align-items: flex-start; }
}
/* Measure band outline (18B). Design's draw sets the dash in pathLength units (pathLength="1"), but the stroke is
   non-scaling, so browsers measure the dash on screen: wherever the photo is scaled up (the window wider than
   about 1,200, Chrome and Safari alike) the dash is shorter than the outline and the draw stops short, about
   three quarters of the way round at 1,920. Here the resting outline has no dash at all (finished, no-script and
   reduced-motion states are always whole); home-bands.js measures the path on screen into --mb-len and adds
   .mb-measured, so the draw runs over the measured length, and .mb-drawn clears the dash once it has played. */
html .mb .mb-photo .mb-halo, html .mb .mb-photo .mb-line { stroke-dasharray: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .mb.mb-measured .mb-photo .mb-halo, html.js .mb.mb-measured .mb-photo .mb-line { stroke-dasharray: var(--mb-len) var(--mb-len); stroke-dashoffset: var(--mb-len); }
  html.js .mb.mb-measured.is-in .mb-photo .mb-halo, html.js .mb.mb-measured.is-in .mb-photo .mb-line { animation: mb-draw-len 2000ms cubic-bezier(0.4, 0, 0.2, 1) 300ms both; }
  html.js .mb.mb-measured.mb-drawn .mb-photo .mb-halo, html.js .mb.mb-measured.mb-drawn .mb-photo .mb-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}
@keyframes mb-draw-len { from { stroke-dashoffset: var(--mb-len); } to { stroke-dashoffset: 0; } }
/* Measure band (18B): the quotation-review link under the button, in caption size on the ink panel. */
.mb .mb-panel .mb-quote { margin: 0; }
.mb .mb-panel .mb-quote a { color: var(--ground); text-underline-offset: 3px; }
/* Why Ingress on the ground colour (18B), so the Measure band's ink has an edge beneath it. Ink type, the same
   layout, rules and column labels, in the doors section's ground styles: an ink rule over the first row, grey
   rules between rows, grey labels, ink links with the accent focus ring. */
.why-band { background: var(--ground); color: var(--ink); }
.why-band .why-q { color: var(--ink); }
.why-band .why-a { color: var(--ink); }
.why-band .why-a a { color: var(--ink); }
.why-band .why-a a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.why-band .why-head .col-labels { color: var(--grey-caption); }
.why-band .why-list .why-pair { border-top-color: var(--grey-rule); }
.why-band .why-list .why-pair:first-child { border-top-color: var(--ink); }
.why-band .why-list .why-pair:last-child { border-bottom-color: var(--grey-rule); }
/* Measure band above the content width (18B). The aerial stays full bleed; the plate's left edge sits on the
   page grid's left edge, and the panel text spans grid columns 9 to 12, ending on the grid's right edge (the
   edges the header and the works row use). The grid's left edge is 50% - 600px of the band (content 1,200 plus
   the 120px margin, centred); column 9 starts 816px in. The band is capped at 820px tall, the panel's vertical
   padding trimmed to fit. */
.mb { container-type: inline-size; }
@media (min-width: 1441px) {
  .mb .mb-grid { grid-template-columns: minmax(0, 1fr) calc(50cqw - 168px); max-height: 820px; }
  .mb .mb-panel { padding: var(--space-6) calc(50cqw - 600px) var(--space-6) var(--space-5); }
  .mb .mb-stage .mb-plate { left: calc(50cqw - 600px); }
}
/* Film block (18B). The frame runs full bleed at every width, poster and video alike, 16:9 capped at 820px tall
   (the film is cropped top and bottom above about 1,460 wide). Over the poster, centred: the title in the hero
   heading style on an ink plate (the poster is light and busy) and the 64px ground Play plate beneath; both go
   when the film plays. Read the film sits under the frame in the page column. From 1,024 the open transcript
   brings the film back into the page column at 8 of 12 columns with the transcript beside it, inside the block's
   closed height (frame, gap, summary line), so nothing outside the block moves. */
.film-section { padding-top: var(--space-7); padding-bottom: 0; }
.film-section .film-frame { width: 100%; max-height: 820px; margin: 0; }
.film-over { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-3) var(--margin); text-align: center; }
.film-over[hidden] { display: none; }
.film-over .film-title { max-width: 20ch; padding: var(--space-2) var(--space-4); background: var(--ink); color: var(--ground); }
.film-section .film-over .film-play { position: static; height: 64px; align-items: center; padding: 0 var(--space-4); }
/* The mark is an img inside the frame, so the finish file's .film-frame img (absolute, full size) would catch it. */
.film-section .film-frame .film-play .play-mark { position: static; inset: auto; width: 32px; height: 32px; }
.film-section .film-transcript { max-width: calc(var(--content) + 2 * var(--margin)); margin: var(--space-2) auto 0; padding: 0 var(--margin); }
@media (min-width: 1024px) {
  .film-section .film-companion { --film-col: calc(min(100cqw, var(--content) + 2 * var(--margin)) - 2 * var(--margin)); --film-h8: calc(((var(--film-col) - 11 * var(--gutter)) / 12 * 8 + 7 * var(--gutter)) * 9 / 16); }
  .film-section .film-companion:has(> .film-transcript[open]) { max-width: calc(var(--content) + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); height: calc(min(100cqw * 9 / 16, 820px) + var(--space-2) + var(--caption-line)); }
  .film-section .film-companion:has(> .film-transcript[open]) > .film-transcript { max-width: none; margin: 0; padding: 0; }
}
@media (max-width: 639px) {
  .film-over { gap: var(--space-2); padding: var(--space-2) var(--margin); }
  .film-over .film-title { padding: var(--space-1) var(--space-2); }
}
/* Measure band aerial (18B item 2): a frame from the film footage, the shed close enough to fill most of it.
   Cropped to fill, the band's changing shape (portrait at 1,024 to 1,440, about 2:1 above) would cut the shed,
   so the photo shows whole at every width, at its own 4:3, with the figure plate beneath it rather than over it,
   as on a phone. From 1,024 the photo runs the stage's width; above 1,440 it runs from the page grid's left
   edge to the panel (768px), so photo and plate stay within the 820px band. 18C: the frame is wider (the shed
   about 60% of its width, ground on all four sides, the yard lettering blurred), 1,742 by 980. */
@media (min-width: 1024px) {
  .mb .mb-stage { display: flex; flex-direction: column; overflow: visible; }
  .mb .mb-stage .mb-photo { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1742 / 980; }
  .mb .mb-stage .mb-plate { position: static; left: auto; bottom: auto; max-width: none; padding: var(--space-3) var(--space-4) var(--space-4) var(--margin); }
  .mb .mb-stage .mb-figure, .mb .mb-stage .mb-band { white-space: normal; }
}
@media (min-width: 1441px) {
  .mb .mb-stage { padding-left: calc(50cqw - 600px); }
  .mb .mb-stage .mb-plate { padding: var(--space-3) var(--space-4) var(--space-4); }
}
/* Measure band outline (18C): a 4px accent stroke over a 10px white halo, a soft ink shadow beneath (0 2px 6px
   at 35%), and the plate, figure, band and scope come in as the draw completes (2.0 to 2.3s) rather than after. */
.mb .mb-photo .mb-halo { stroke-width: 10; opacity: 1; }
.mb .mb-photo .mb-line { stroke-width: 4; }
.mb .mb-photo svg { filter: drop-shadow(0 2px 6px rgb(27 36 43 / 0.35)); }
@media (prefers-reduced-motion: no-preference) {
  html.js .mb.is-in .mb-stage .mb-plate { animation: mb-in 300ms ease-out 2000ms both; }
  html.js .mb.is-in .mb-stage .mb-figure { animation: mb-in 300ms ease-out 2050ms both; }
  html.js .mb.is-in .mb-stage .mb-band, html.js .mb.is-in .mb-stage .mb-scope { animation: mb-in 300ms ease-out 2150ms both; }
}
/* Below 1,024 too, the photo keeps the frame's own shape, so the ground round the shed shows on all four sides. */
@media (max-width: 1023px) { .mb .mb-stage .mb-photo { aspect-ratio: 1742 / 980; } }
/* Why Ingress, size and finish (18D): questions at the works card heading size (24px, 20 on a phone, weight
   400), each numbered 01 to 08 above it in caption grey; answers at the body size (18px) in caption grey, the
   links in ink; row padding halved; 24px from the column labels to the first rule. A closing row with no
   question. Rows fade up 300ms as they enter the viewport, 80ms apart (home-bands.js), opacity and transform
   only, so nothing moves in the layout; none under reduced motion. */
.why-band .why-list .why-q { font-weight: 400; font-size: var(--title-size); line-height: var(--title-line); }
.why-band .why-n { display: block; margin-bottom: var(--space-1); color: var(--grey-caption); }
.why-band .why-list .why-a { color: var(--grey-caption); }
.why-band .why-list .why-pair { padding: var(--space-3) 0; }
@media (max-width: 639px) { .why-band .why-list .why-pair { padding: var(--space-2) 0; } }
@media (min-width: 640px) { .why-band .why-head { margin-bottom: var(--space-3); } }
@media (prefers-reduced-motion: no-preference) {
  html.js .why-band .why-list .why-pair { transition: opacity 300ms ease-out, transform 300ms ease-out; }
  html.js .why-band .why-list .why-pair.why-wait { opacity: 0; transform: translateY(12px); }
}
/* Reports selector (refinements, 19 Nov): on each level card "Allow" is a caption label above the figure, and
   the figure is the large line, breaking only between the two amounts; 48px from Request a visit to the cards;
   above 1,440 the two paragraphs run to eight columns. */
.rs-card .rs-band { display: flex; flex-direction: column; gap: var(--space-1); text-wrap: initial; }
.rs-wrap .rs-cards { margin-top: var(--space-5); }
@media (min-width: 1441px) { .rs-wrap .grid .rs-copy { grid-column: 1 / span 8; } }
/* Home section joins (19 Nov): the Why table's closing rule to the guides shelf's top rule, the shelf's cards to
   the Reports band, and the works row's cards to the Measure band are each 96px from 768 up and 64px below. */
:root { --home-join: 96px; }
@media (max-width: 767px) { :root { --home-join: 64px; } }
.band.why-band { padding-bottom: 0; }
.why-band + .screen { padding-top: var(--home-join); }
.screen + #reports.band { margin-top: var(--home-join); }
.band.band-paper:has(#works-h) { padding-bottom: var(--home-join); }
/* Why Ingress closing row: the line as plain text, an ink "Book a 15 minute call" button 24px beneath it. */
.why-band .why-close .why-a p { margin: 0; }
.why-band .why-close .why-a .why-call { display: inline-flex; margin-top: var(--space-3); color: var(--ground); }
/* Talk to us (19 Nov). "How did you find us?" stays on one line with "(optional)" after it at caption size, so
   Name and the source field share a top edge. The label needs 197px, which the pair's columns only give from
   1,230 wide, so the two sit side by side from 1,230 and stack below (one line each). From 1,024 the routes
   panel runs the form's height, Request a visit taking the extra, so both columns finish on one line. */
.talk .talk-form label[for="m-source"] { white-space: nowrap; }
@media (min-width: 1024px) {
  .talk .talk-grid .p-hero-routes { align-self: stretch; }
  .talk .talk-grid .p-hero-routes .routes { height: 100%; grid-template-rows: auto auto 1fr; }
  .talk .talk-grid .p-hero-routes .routes > li:last-child .route { height: 100%; box-sizing: border-box; }
}
/* 18E: where main ends on the ink Talk to us band, the footer meets it with no ground between (the space was the
   footer's own top margin, 192px and 96px on a phone), and a hairline in the ink rule colour marks the join. */
main:has(> .talk:last-child) + .site-footer { margin-top: 0; border-top: 1px solid var(--ink-rule); }
/* Measure band source order (18G): the panel is two parts around the aerial in the source, the head (label,
   heading, paragraph) and the form (field, button, quotation link). From 1,024 a grid with named areas keeps
   the aerial left and the two parts right, centred together as before; below 1,024 the band reads in source
   order, and below 768 the aerial shows whole (contain) with the plate beneath. */
@media (min-width: 1024px) {
  .mb .mb-grid { grid-template-areas: "stage head" "stage form"; grid-template-rows: auto auto; }
  .mb .mb-grid .mb-stage { grid-area: stage; }
  .mb .mb-grid .mb-panel-head { grid-area: head; align-self: end; padding-bottom: 0; }
  .mb .mb-grid .mb-panel-form { grid-area: form; align-self: start; padding-top: var(--space-3); }
  .mb .mb-grid .mb-panel-form .m-entry { margin-top: 0; }
}
@media (max-width: 1023px) {
  .mb .mb-grid .mb-panel-head { padding-bottom: var(--space-5); }
  .mb .mb-grid .mb-panel-form { padding-top: var(--space-5); }
  .mb .mb-grid .mb-panel-form .m-entry { margin-top: 0; }
}
@media (max-width: 767px) { .mb .mb-photo img { object-fit: contain; } }
/* Talk to us confirmation (18G): its caption lines (the reference) sit on the paper form, not the ink band, so
   they take caption grey, not the ink band's light grey (which was 2.1:1 on paper). */
.band-ink .talk-form .t-caption { color: var(--grey-caption); }
/* Hero at tablet widths (19 Nov): from 900 to 1,279 the H1 drops one step (48 to 40px) so it holds to three
   lines ("under it" is joined by a no-break space in the copy). The telephone number never wraps: hero panel,
   header, Talk to us and footer. */
@media (min-width: 900px) and (max-width: 1279px) {
  .p-hero .p-hero-panel .p-hero-title { font-size: var(--heading-size); line-height: var(--heading-line); }
  /* The routes panel is as narrow as 245px here, so the one-line number steps down with the H1 (32 to 24px). */
  .p-hero .p-hero-routes .routes > li:first-child .route .t-title.num { font-size: var(--title-size); line-height: var(--title-line); }
}
a[href^="tel:"].num, a[href^="tel:"] .num, .header-call .number { white-space: nowrap; }

/* Roof works index (Instruction 19). The lead and the three sections come before the "Which kind is yours?" panel
   in the source (crawlers and screen readers meet the H1, the hero line, the lead and the sections first); the
   panel shows directly beneath the hero. Flex items with auto margins would shrink to their content, so each
   child is given the full width and the .wrap max-width still caps and centres it. The prose has no links or
   controls, so the keyboard meets the panel first either way. */
.rw-order { display: flex; flex-direction: column; }
.rw-order > * { width: 100%; }
.rw-order > .wk { order: -1; }
/* Design's join: the lead at the body measure, then the sections heading left and text right, 64px below it. */
.rw-order .wk-prose .grid + .split { margin-top: var(--space-6); }
.rw-order .wk-prose .split > h2 { margin: 0; }
.rw-order .wk-prose .split > .content { margin: 0; }
/* The result title is the link to its page: ink, underlined, as the site's other title links. */
.wk .wk-title a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* What does your roof need? (19B): the See button under the four answered rows, the full width of the question
   column; without script, one muted line in its place. */
.wk .wk-qs .wk-see { width: 100%; margin-top: var(--space-3); justify-content: center; }
.wk .wk-qs .wk-see[hidden] { display: none; }
.wk .wk-qs .wk-noscript { margin: var(--space-3) 0 0; color: var(--grey-caption); }
/* The result card's height (19B, B6). Empty and counting: from 1,024, where the card sits beside the questions,
   which.js sets its height to the questions column's (at least question one's open block), the count line centred;
   below 1,024, where it sits below them, it holds the drawing area and the count line (19C). The See button grows
   it to the fixed result height (the tallest of the twelve results at that width) over 240ms, then it fills and
   draws; with reduced motion it is at once. Without script the card is not shown: the no-script line stands in. */
.wk .wk-result[data-state="empty"] { min-height: 0; }
.wk .wk-result.wk-growing { transition: height 240ms cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.wk:not(.wk-js) .wk-result { display: none; }

/* Drawing layer (19C): Design's ingress-roof-drawing.css, with two changes made here. (19C also capped the drawing at
   600 x 152 because fixed-width strokes with pathLength="1" drew short above 1:1; Design's 20C stylesheet drops the
   fixed-width stroke, so the cap is gone and the drawing fills the area at every width.)
   - The drawing shows in the empty card from answer one (the card keeps data-state="empty" until the button).
   - Fix groups cross-fade over 400ms (re-roofing: f4a to f4b). */
.wk .rd-area { display: flex; align-items: center; justify-content: center; }
.wk .wk-result[data-state="empty"] .rd-area svg { visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .wk .rd .rd-fix { transition: opacity 400ms ease-out; } }

/* Result layout (19E): Design's ingress-result-layout.css moves the actions and the use line out of .wk-body into
   .rl-foot. Below 1,024 the card must look exactly as before, so the foot takes the spacing it had inside .wk-body
   (the body's 8px gap, its paragraphs' zero margins) and, like the body, stays hidden in the empty card. */
.wk .wk-result[data-state="empty"] .rl-foot { display: none; }
.rl-foot p { margin: 0; }   /* same weight as .wk-body p, so Design's .wk-send > p still wins as before */
@media (max-width: 1023px) { .wk .rl-foot { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-1); } }   /* the body's flex column and 8px gap, so no margin collapses */

/* Roof works index (Instruction 20). The question band's questions are H3 under its heading, placed as the H2
   questions are elsewhere (columns 1 to 3; stacked on a phone, as .split is). */
.search-questions .split > h3 { grid-column: 1 / span 3; margin: 0; }

/* Instruction 20 F2, tightened again in 20A I: the wide result layout (from 1,024) holds every result under 600px
   at 1,280: 4px either side of the hairline between the text blocks (Design: 12px), 16px over and under the text
   (Design: 24px) and 8px over and under the foot's actions and line (Design: 16px and 24px). The 32px title and
   the body size stay. Below 1,024 nothing here applies. */
@media (min-width: 1024px) {
  .wk[data-layout="result"] .wk-body .wk-block { margin-top: 4px; padding-top: 4px; }
  .wk[data-layout="result"] .wk-body .wk-block:first-child { margin-top: 0; padding-top: 0; }
  .wk[data-layout="result"] .wk-result .wk-body { padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .wk[data-layout="result"] .wk-result .rl-foot { padding-top: var(--space-1); padding-bottom: var(--space-1); }
}

/* Instruction 20A. Roof works index: the line under the works heading, and the "When" line on each card (caption
   style, above the link). Works pages built from sections (Rooflights): headed prose as the search-question rows,
   and the closing links. */
.section-head .works-sub { grid-column: 1 / span 8; margin: var(--space-2) 0 0; }
.card .card-body .card-when { display: block; color: var(--grey-caption); }
.works-sections .split + .split { margin-top: var(--space-5); }
.works-sections .split > h2 { margin: 0; }
.works-sections .content { margin: 0; }
.works-links { padding-top: var(--space-3); padding-bottom: var(--space-4); }   /* 22H: top and bottom only, so the wrap keeps its side margins (the shorthand set them to 0) */

/* Instruction 20B: the Roof works index bands alternate as on home: hero, the panel on the ground, the middle
   (lead, Tenant or owner, What decides the system) on paper, the works row on the ground, the questions on paper,
   Talk to us in ink. On paper the two cards keep their 4px ink top and take a hairline round the rest, so they
   still read as cards; the drawing frames already carry one. */
.wb.band-paper .wb-card { border: 1px solid var(--grey-rule); border-top: 4px solid var(--ink); }
/* The questions as a paper band: the band padding of the works row above it, 128px over and under. */
.rw-questions .search-questions { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* Instruction 20C: the static drawings in "What decides the system" <use> the panel's groups, which page CSS does not
   reach, so they inherit their look from the <use> element: the existing roof in ink, the new work in the accent, at
   Design's frame weights (2.8 and 3.6 at about half size: about 1.5px and 2px on screen). An existing part inside a
   fix (rd-ex) keeps ink at the existing weight through --rd-ex-w. */
.wb-frame use { fill: none; stroke-linejoin: miter; stroke-linecap: butt; }
.wb-frame use.rd-use-sec { stroke: var(--ink); stroke-width: 2.8; }
.wb-frame use.rd-use-fix { stroke: var(--accent); stroke-width: 3.6; --rd-ex-w: 2.8; }

/* Instruction 20D: a works-page section with a still (Rooflights, What is happening on the roof): from 1,024 the text
   takes columns 4 to 8 and the photograph, at the works pages' 4:3, columns 9 to 12; below that the photograph sits
   under the text. */
.works-sections .has-still .sec-still { margin: 0; }
@media (min-width: 1024px) {
  .works-sections .has-still > .content { grid-column: 4 / span 5; }
  .works-sections .has-still > .sec-still { grid-column: 9 / span 4; }
}
@media (max-width: 1023px) { .works-sections .has-still > .sec-still { grid-column: 1 / -1; } }

/* Instruction 22: the answer panel's Also block is absent when a result has nothing to add (the gutter check's R6). */
.wk .wk-block.also.is-absent { display: none; }

/* Instruction 22A. The gutter check's answer cards: two columns at 1,024 and above, as the roof panel; one below. */
@media (max-width: 1023px) {
  .gc .wk-cards[data-cols] { grid-template-columns: 1fr; gap: var(--space-1); }
}
/* The empty state's ghost, both panels: Design's rd-ghost group (25 per cent, ingress-roof-drawing.css, 22B) until the
   first answer that draws, then gone (it shows only while it is the drawing's one child). No animation: its group never
   takes .is-in. */
.rd .rd-ghost:not(:only-child) { display: none; }
/* The gutter check's result: the drawing column at 45 per cent with the panel's side padding, so the section draws at
   the size it had beside the questions (Instruction 22A), not smaller. */
.wk.gc[data-layout="result"] .wk-result.rn { grid-template-columns: 9fr 11fr; }
.wk.gc[data-layout="result"] .rd-area { padding-left: var(--space-2); padding-right: var(--space-2); }
/* 22C: the Valley gutters section is two paragraphs; Design's rule sets paragraph margins to 0, so the second takes the
   space the "after" line takes under External gutters. */
.gt-sections .split > .content > p + p { margin-top: var(--space-4); }

/* Instruction 22D, 22F. Four kinds of gutter: on the page ground with the works row's band padding (.band) and no
   hairline over the H2. Four cards in a row from 1,024, two by two from 640, stacked below. Each card: the drawing in
   its frame, the photograph at 4:3, then the caption, its first line the gutter's name in ink, the rest in the caption
   grey, no bold. */
.gt-types .section-head { border-top: 0; padding-top: 0; }
.gt-types-line { grid-column: 1 / span 8; margin: 0 0 var(--space-5); }
.gt-types-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.gt-type { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.gt-type figcaption { color: var(--grey-caption); }
.gt-type-name { display: block; color: var(--ink); }
@media (min-width: 640px) {
  .gt-types-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--gutter); }
}
@media (min-width: 1024px) {
  .gt-types-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* The type drawings and the valley liner keep the colours in their files (attributes, not restyled here). They draw in
   once on scroll with rd-draw (gutter-draw.js holds them back with is-waiting, then is-in), 900ms over the paths in
   turn, as the roof sections do; nothing is held back under reduced motion. */
.gt-art { display: block; width: 100%; height: auto; }
.gt-art.is-waiting path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* 22H: two stages. One: the ink paths in path order over 700ms. A 300ms pause. Two: the accent paths (data-stage="2":
   the liner, then its edge hairlines, then the new gutter, bracket and downpipe) drawn along their length over 1,200ms. */
@media (prefers-reduced-motion: no-preference) {
  .gt-art.is-in path[pathLength] { stroke-dasharray: 1; animation: rd-draw calc(700ms / var(--n)) linear both; animation-delay: calc(var(--i) * 700ms / var(--n)); }
  .gt-art.is-in path[data-stage="2"] { animation-duration: calc(1200ms / var(--m)); animation-delay: calc(1000ms + var(--j) * 1200ms / var(--m)); }
}

/* 22H. The gutter check: added outlets filled in the accent (yours stay hollow, ink), and the key line under the
   drawing while they show: below the drawing in the result layout, at the foot of the drawing area otherwise. */
.rd .gc-added path.gc-o { fill: var(--accent); }
.rd-area .rl-key { position: absolute; left: var(--space-3); bottom: var(--space-2); margin: 0; }
.wk[data-layout="result"] .rd-area .rl-key { position: static; order: 3; }
/* 22H: where Read next follows the questions band on Gutters, the band's own bottom padding gives way to the Read next
   line's, so the line sits as close under the last answer as it does on the works pages. */
.rw-questions .search-questions:has(+ .works-links) { padding-bottom: 0; }
.works-links .split > p.content { margin: 0; }
/* 22H. Where gutters fail: six blocks across the full wrap, two columns of three from 768 (one column below), filled
   down the first column then the second; a hairline above each block, the lead on its own line in ink, the sentence
   beneath in the caption grey. */
.gt-fail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gutter); }
.gt-fail li { padding: var(--space-2) 0 var(--space-3); border-top: 1px solid var(--grey-rule); color: var(--grey-caption); }
@media (min-width: 768px) {
  .gt-fail { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; }
}

/* 22I. Footer, site-wide: a 48px gap between columns from 768. Two by two from 768 to 1,099 (brand and Call or write,
   then Services and Company); four across from 1,100, where the Call or write column is never narrower than its longest
   unbreakable word (the email address), so the address never runs into Services. Below 768 the phone arrangement
   (18A) stands: brand and Call or write full width, the menus as one wrapped row. */
@media (min-width: 768px) {
  .site-footer > .wrap > .grid { column-gap: 48px; }
  .site-footer .f-brand, .site-footer .f-contact, .site-footer .f-nav, .site-footer .f-company { grid-column: auto; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .site-footer > .wrap > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .site-footer > .wrap > .grid { grid-template-columns: minmax(0, 1fr) minmax(min-content, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* Instruction 23: Measure my roof landing. On the ink panel the bracket line and the timing line take the muted
   ground (caption grey on ink would fall under 3:1); the lead takes the ground. */
.m-hero-box .m-lead { margin: var(--space-3) 0 0; color: var(--ground); }
.m-hero-box .m-takes { margin: var(--space-2) 0 0; color: var(--ground-muted); }
/* 23C: the field's own label is visually hidden; the placeholder shows it, in caption grey on the ground (5.5:1). */
.m-entry input::placeholder { color: var(--grey-caption); opacity: 1; }
.m-hero-box .m-entry .m-err { margin-top: var(--space-1); }
.m-entry .help + .help { margin-top: var(--space-1); }
.m-q .section-head { margin-bottom: var(--space-3); }
.m-q .m-answer { grid-column: 1 / span 8; margin: 0; }
.m-q .m-example { margin-top: var(--space-4); }
/* The sample card: the drawing's own width up to the column, the full column from 768. */
.m-sample { margin: 0; }
.m-sample svg { display: block; width: 100%; height: auto; }
.m-sample figcaption { margin-top: var(--space-2); }
/* The bands table, from bands.json at build time. */
.m-bands-wrap { margin-top: var(--space-5); overflow-x: auto; }
.m-bands-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-bands { width: 100%; border-collapse: collapse; font-size: var(--caption-size); line-height: var(--caption-line); }
.m-bands th, .m-bands td { padding: var(--space-2) var(--space-3) var(--space-2) 0; text-align: left; vertical-align: top; border-top: 1px solid var(--grey-rule); }
.m-bands thead th { border-top: 0; color: var(--grey-caption); font-weight: 500; }
.m-bands tbody th { font-weight: 500; }
.m-bands td.num { white-space: nowrap; }
.m-bands tfoot td { color: var(--grey-caption); border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .m-bands { font-size: var(--body-size); line-height: var(--body-line); } }
@media (max-width: 767px) { .m-q .m-answer { grid-column: 1 / -1; } }
/* The work line under the work select on the result (23). */
.m-work-hint { margin: var(--space-1) 0 0; color: var(--grey-caption); }
/* The cost pages (23). */
.cost-moves { list-style: none; margin: 0; padding: 0; } /* 65: the full content width (was 46rem) */
.cost-moves li { padding: var(--space-2) 0; border-top: 1px solid var(--grey-rule); }
.cost-measure { margin: 0; }
.cost-measure-caption { margin: var(--space-2) 0 0; color: var(--grey-caption); }

/* Instruction 23A: the roof form cards on the result. Three across from 768, stacked below; the radio is the
   whole card (keyboard: arrows move between them, as any radio group), the checked card takes the accent. */
.m-forms { margin: 0; padding: 0; border: 0; min-width: 0; }
.m-forms-legend { padding: 0; margin-bottom: var(--space-1); font-size: var(--caption-size); line-height: var(--caption-line); font-weight: 500; }
.m-form-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
@media (min-width: 768px) { .m-form-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-form-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--grey-rule); background: var(--paper); cursor: pointer; }
.m-form-card .photo { margin: 0; }
.m-form-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-form-text { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2); }
.m-form-name { margin: 0; font-weight: 500; }
.m-form-text .t-caption { color: var(--grey-caption); }
.m-form-card:has(.m-form-radio:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.m-form-card:has(.m-form-radio:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-form-mix { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; margin-top: var(--space-1); cursor: pointer; }
.m-form-mix input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.m-form-unsure { padding: var(--space-2); border: 1px solid var(--grey-rule); background: var(--paper); }
.m-form-unsure .t-caption { margin: 2px 0 var(--space-2); color: var(--grey-caption); }
.m-head .field select:disabled { color: var(--grey-caption); border-color: var(--grey-rule); cursor: not-allowed; }
.m-visit-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; }
.m-eaves-err { display: block; margin-top: var(--space-1); font-size: var(--caption-size); line-height: var(--caption-line); color: var(--ink); }
#r-eaves[aria-invalid="true"] { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
/* 23A: 44px hit areas on the small text controls of Choose and the result, without changing how they look. */
[data-trace-start], [data-more-button], [data-measure-smaller], .context a, [data-choose-again] { position: relative; }
[data-trace-start]::after, [data-more-button]::after, [data-measure-smaller]::after, .context a::after, [data-choose-again]::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; min-width: 44px; transform: translateY(-50%); }
/* 23A: every button on Choose and the result at least 44px tall (zoom, nudge, Copy a link; the compass cells). */
.m-plates .m-nudge button, .m-share .m-share-btn, .m-nudge button { height: 44px; }
.m-zoom button { width: 44px; height: 44px; }
.m-compass button { position: relative; }
.m-compass button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 44px; transform: translate(-50%, -50%); }
.m-form-card .photo { display: block; }

/* Instruction 24: the promise cards' actions. The card's own link keeps its look; the action is a light underlined
   text link on the ink band with a 44px tap area, and its caption beneath. From 768 the cards stretch to one height
   and the action sits at each card's foot, so the links share a baseline. */
.trust li { display: flex; flex-direction: column; }
.trust .trust-action { display: flex; flex-direction: column; gap: 0; margin-top: var(--space-2); }
.trust .trust-action .trust-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 0; gap: 0; color: var(--ground); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 16px; line-height: 24px; font-weight: 500; }
.trust .trust-action .trust-link:hover { text-decoration-thickness: 2px; }
.trust .trust-action .t-caption { margin: 0; }
@media (min-width: 768px) {
  /* The copy, the link and its caption each on a shared row across the cards (subgrid), so the links share a baseline
     whatever the copy and caption lengths. */
  .trust-band .trust { align-items: stretch; }
  .trust-band .trust li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; justify-items: start; align-content: start; }
  .trust .trust-action { display: contents; }
  .trust .trust-action .trust-link { margin-top: var(--space-3); }
}
.trust-band .trust-foot .t-body a { color: var(--ground); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* 26: the small-building note on the result, in the site's note style (a 4px ink rule on its left). */
.m-small-note { margin: 0; padding-left: var(--space-3); border-left: 4px solid var(--ink); }
/* 27: a landing section's action under its paragraph, the site's underlined link with a 44px tap area, the same gap
   under the paragraph wherever it appears (29 reuses it under the questions). */
.m-section-link { margin: var(--space-2) 0 0; }
.m-section-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; color: var(--ink); }
.m-section-link a:hover { text-decoration-thickness: 2px; }
.m-q .m-section-link { margin-top: var(--space-1); }
/* 28: the cost pages listed on the calculator's page, by their questions. */
.m-cost-links { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.m-cost-links li { border-top: 1px solid var(--grey-rule); }
.m-cost-links a { display: flex; align-items: center; min-height: 44px; padding: var(--space-1) 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; color: var(--ink); }
.m-q .m-cost-links { margin-top: var(--space-3); }
/* 29: the questions component's bottom padding matches its top, so the last answer (or the action under it) sits
   clear of whatever follows: the screen's own padding where nothing is attached below (the calculator's page), the
   band's where it is set on a band. Where a Read next line follows (cost pages, Gutters, the works pages) it stays
   attached under the answers, as built in 22H and 23C. */
.screen.search-questions:not(:has(+ .works-links)) { padding-bottom: var(--space-9); }
@media (max-width: 639px) { .screen.search-questions:not(:has(+ .works-links)) { padding-bottom: var(--space-7); } }
.rw-questions .search-questions:not(:has(+ .works-links)) { padding-bottom: var(--space-8); }
.search-questions .m-section-link { margin: var(--space-2) 0 0; }
.search-questions .split + .split:has(.m-section-link) { margin-top: var(--space-1); }

/* Instruction 30: the roof form step, full width beneath the picture and the measured area. Three cards across the
   content width from 768 (each photograph at least 200px wide at 768, 280px at 1280), the card names on one line;
   stacked on a phone with the photograph full width. The mix option and Still not sure? in a row beneath. */
.m-form-step { margin: var(--space-6) 0 0; padding: var(--space-5) 0 0; border: 0; border-top: 1px solid var(--ink); }
.m-form-step .m-forms-legend { float: left; width: 100%; margin: 0 0 var(--space-3); padding: 0; }
.m-form-step .m-forms-legend + * { clear: both; }
.m-form-step .m-forms-legend .s-title { margin: 0; }
.m-form-step .m-form-cards { gap: var(--space-3); }
@media (min-width: 768px) {
  .m-form-step .m-form-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-form-step .m-form-name { white-space: nowrap; }
}
.m-form-step .m-form-card .photo img { display: block; width: 100%; height: auto; }
/* Instruction 34: the measured area's line stays unseen until its figure is written, so the unit does not jump
   sideways (and the line 2px up) under the visitor when the figure arrives a moment after the first paint. */
.m-figure:has([data-plan-area]:empty) { visibility: hidden; }
/* Instruction 34: below 768 the card photographs are cropped to a 16:9 frame, centred. The frame's shape is set
   here, so its height is known from the first paint and nothing moves when the picture arrives. 768 up unchanged. */
@media (max-width: 767.98px) {
  .m-form-step .m-form-card .photo.r-4-3 { aspect-ratio: 16 / 9; overflow: hidden; }
  .m-form-step .m-form-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
}
.m-form-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-3); align-items: start; }
@media (min-width: 768px) { .m-form-more { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.m-form-more .m-form-mix { margin-top: 0; }
/* The work, the band and the facts beneath, in the left part of the grid from 1,024. */
.m-after { margin-top: var(--space-5); }
.m-after .m-after-col { grid-column: 1 / -1; }
@media (min-width: 1024px) { .m-after .m-after-col { grid-column: 1 / span 7; } }
/* "Use our figure" beside the gutter length: a text link with a 44px hit area. */
.m-eaves-reset { position: relative; margin-left: var(--space-2); padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--caption-size); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.m-eaves-reset::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }

/* 30: the calculator page's error line, shown from the first paint for the error the page arrived with (the script at
   the top of the page sets data-entry-error on <html>); only that message shows. */
#site-err[data-pending] { display: none; }
#site-err [data-k] { display: none; }
html[data-entry-error="not_found"] #site-err[data-pending] { display: block; }
html[data-entry-error="not_found"] #site-err [data-k="not_found"] { display: inline; }
html[data-entry-error="unavailable"] #site-err[data-pending] { display: block; }
html[data-entry-error="unavailable"] #site-err [data-k="unavailable"] { display: inline; }
html[data-entry-error="northern_ireland"] #site-err[data-pending] { display: block; }
html[data-entry-error="northern_ireland"] #site-err [data-k="northern_ireland"] { display: inline; }
html[data-entry-error="outside_area"] #site-err[data-pending] { display: block; }
html[data-entry-error="outside_area"] #site-err [data-k="outside_area"] { display: inline; }
html[data-entry-error="limit"] #site-err[data-pending] { display: block; }
html[data-entry-error="limit"] #site-err [data-k="limit"] { display: inline; }
html[data-entry-error="challenge"] #site-err[data-pending] { display: block; }
html[data-entry-error="challenge"] #site-err [data-k="challenge"] { display: inline; }

/* Instruction 31: "Want to talk it through?" beneath the band, and the status line with the band. */
.m-band .m-status-line { margin: var(--space-2) 0 0; color: var(--grey-caption); }
.m-talk { padding: var(--space-3); background: var(--paper); border-top: 1px solid var(--ink); }
.m-talk .t-title { margin: 0; }
.m-talk > .t-body { margin: var(--space-1) 0 0; }
.m-talk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-3) 0 0; }
.m-talk-call { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.m-talk > .t-caption { margin: var(--space-1) 0 0; color: var(--grey-caption); }
.m-talk-box { margin-top: var(--space-3); }
.m-talk-box .form { display: grid; gap: var(--space-2); }
.m-bench .m-section-link { margin-top: var(--space-2); }

/* Instruction 32: beneath the cards. One column, in order, below 1,024; from 1,024 the existing 12-column grid: the
   work and the band in columns 1 to 7, "Want to talk it through?" in 8 to 12 on the band's row (top level with the
   band panel), the facts full width beneath as one row of three. Both cells align to the top, so opening the ring-back
   form grows the right column downwards and moves nothing beside it. With no talk block showing, the left content
   takes the full width. */
.m-after { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.m-after .m-selects { padding-top: var(--space-3); }
@media (min-width: 1024px) {
  .m-after { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-3); align-items: start; }
  .m-after-work { grid-column: 1 / span 7; grid-row: 1; }
  .m-after-band { grid-column: 1 / span 7; grid-row: 2; }
  .m-after .m-talk { grid-column: 8 / span 5; grid-row: 2; }
  .m-after .m-facts { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
  .m-after:not(:has(> .m-talk:not([hidden]))) .m-after-work,
  .m-after:not(:has(> .m-talk:not([hidden]))) .m-after-band { grid-column: 1 / -1; }
}
.m-after-band { display: flex; flex-direction: column; gap: var(--space-3); }
/* Instruction 33: the gutter length fact shows only for the two gutter works. Without it, from 1,024, the facts are a
   row of two halves; with it, the gutter length takes half the row and roof form and roof area share the other half.
   In its cell the label and help line sit on the left; the field with its "m" on one line on the right, and "Use our
   figure" on one line beneath the field. Only the help line may wrap. Below 1,024 unchanged. */
@media (min-width: 1024px) {
  .m-after .m-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-after .m-facts:has(> .m-gutter-fact:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .m-after .m-facts > .m-gutter-fact { grid-column: span 2; }
  .m-after .m-facts dd { white-space: nowrap; }
  .m-gutter-fact > dt { flex: 1 1 auto; min-width: 0; }
  .m-gutter-fact > dd { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
  .m-gutter-fact .m-eaves-reset { margin: var(--space-1) 0 0; }
  .m-gutter-fact .m-eaves-err { max-width: 24ch; white-space: normal; text-align: right; }
}
/* 32: the band note as three lines; each label in the caption style's stronger weight. */
.m-band-note .m-note-line { display: block; }
.m-band-note .m-note-line strong { font-weight: 500; color: var(--ink); }

/* Instruction 35: the caption under the satellite picture, on Choose and the result page, holds its height from the
   first paint at every width: the lead line ("Select the building." / "Roof outline drawn on the satellite picture.")
   and the no-picture line overlaid in one cell, the taller setting its height, and beneath them a credit box of
   exactly two 16px lines (4px above, as Design's .m-credit). A longer credit is cut with an ellipsis after two lines;
   its title carries the full text. Hidden text uses visibility, so it is not read out. */
.m-cap { display: block; }
.m-cap-lead { display: grid; }
.m-cap-lead > .m-cap-text { grid-area: 1 / 1; }
.m-cap .m-cap-picture { visibility: hidden; }
.m-cap.has-picture .m-cap-picture { visibility: visible; }
.m-cap.has-picture .m-cap-none { visibility: hidden; }
.m-cap .m-credit { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; height: 32px; margin-top: 4px; overflow-wrap: anywhere; }

/* Instruction 35: beside the aerial the list takes its own height when that fits, and is capped (scrolling inside its
   column, as before) only when the rows need more; the links and Measure this roof follow it with their existing
   gaps. While the lookup is under way (.is-loading) the controls below the list are unseen, and appear in place. */
.m-side.is-loading > .cand-list ~ * { visibility: hidden; }

/* Instruction 52: "Worth reading first" on the report pages: under the opening paragraph, in its column. */
.lead-band .r-guide { grid-column: 4 / span 8; margin: var(--space-2) 0 0; }
@media (max-width: 1023px) { .lead-band .r-guide { grid-column: 1 / -1; } }

/* Instruction 55: a questions block of more than eight (is-compact, counted at build). Each question sits above its
   answer as one item; two columns from 1,024 with a 64 px gap, reading down the first and then the second, no item
   split. 48 px under the heading; 128 px above and below from 640, 64 px below 640. A links block that follows keeps
   its join (no padding below). */
section.search-questions.is-compact.screen { padding-top: var(--space-8); }
section.search-questions.is-compact.screen:not(:has(+ .works-links)) { padding-bottom: var(--space-8); }
@media (max-width: 639px) {
  section.search-questions.is-compact.screen { padding-top: var(--space-6); }
  section.search-questions.is-compact.screen:not(:has(+ .works-links)) { padding-bottom: var(--space-6); }
}
.search-questions.is-compact .section-head.tall { margin-bottom: var(--space-5); }
.search-questions.is-compact :is(.sq-items, .sq-col) > .split { display: block; margin: 0; break-inside: avoid; }
.search-questions.is-compact .sq-items > .split + .split { margin-top: var(--space-4); }
.search-questions.is-compact :is(.sq-items, .sq-col) > .split > .t-title { font-size: var(--body-size); line-height: 28px; font-weight: 500; color: var(--ink); margin: 0; }
.search-questions.is-compact :is(.sq-items, .sq-col) > .split > .content { font-size: var(--body-size); line-height: 28px; margin: var(--space-1) 0 0; }
@media (min-width: 1024px) {
  .search-questions.is-compact .sq-items { column-count: 2; column-gap: var(--space-6); }
}
/* 65: the balanced block (gutters questions): two explicit columns; each a flex column with the same 32 px minimum
   gap, the shorter spreading its gaps so both end level from 1,024. One column below. */
.search-questions.is-compact .sq-balanced .sq-col { display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 1023px) { .search-questions.is-compact .sq-balanced .sq-col + .sq-col { margin-top: var(--space-4); } }
@media (min-width: 1024px) {
  .search-questions.is-compact .sq-items.sq-balanced { column-count: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
  .search-questions.is-compact .sq-balanced .sq-col { justify-content: space-between; }
}

/* Instruction 56: on the leak investigation, the quiet line under the opening line, in caption size (as the Reports
   hero carries it); and, on each report page, "See what each report includes" under the fee and turnaround. */
.band-ink .r-quiet { grid-column: 1 / span 10; margin: var(--space-2) 0 0; }
.band-ink .r-quiet a { color: var(--ground); text-underline-offset: 3px; }
.lv-price .r-levels-link { margin: var(--space-2) 0 0; }

/* Instruction 57: on /about/, 16 px between paragraphs in a section, and the link lines 16 px below the text they follow. */
.prose .content p + p { margin-top: var(--space-2); }

/* Instruction 58: /about/.
   The four facts: the project record's facts list (.facts), label over value, in one row on the ground with a rule
   above and below; four across from 1,024, two by two from 480 to 1,023, one column below 480. */
.about-facts-band { padding-top: var(--space-5); }
.facts.about-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); margin: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.facts.about-facts > div { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: var(--space-1); padding: var(--space-3) 0; border-bottom: 0; }
.facts.about-facts dt { color: var(--grey-caption); }
.facts.about-facts dd { margin: 0; text-align: left; }
.about-facts .about-hours { display: block; color: var(--grey-caption); }
@media (max-width: 1023px) {
  .facts.about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts.about-facts > div:nth-child(n + 3) { border-top: 1px solid var(--grey-rule); }
}
@media (max-width: 479px) {
  .facts.about-facts { grid-template-columns: minmax(0, 1fr); }
  .facts.about-facts > div + div { border-top: 1px solid var(--grey-rule); }
}
/* The section pattern on every section: heading on the left, content on the right from 1,024 (prose-a); stacked below.
   The panels, the picture and the link cards run the full width of the grid beneath. */
@media (max-width: 1023px) {
  .about-section .prose-a .s-title, .about-section .prose-a .content { grid-column: 1 / -1; }
  .about-section .prose-a .s-title { margin-bottom: var(--space-4); }
}
.about-section .about-panels, .about-section .about-figure, .about-section .about-cards { grid-column: 1 / -1; }
.about-section .about-panels, .about-section .about-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--space-5); }
.about-section .about-panels > li, .about-section .about-cards > li { grid-column: auto; display: flex; }
/* The panels: the guide card (.g-card) as a static panel on paper, the rule colour as its border, equal height. */
.about-panel { width: 100%; border: 1px solid var(--grey-rule); }
.about-panel h3 { margin: 0; }
.about-panel .t-body { margin: 0; font-size: var(--body-size); line-height: var(--body-line); }
.about-section .about-figure { margin: var(--space-5) 0 0; }
.about-figure .photo img { object-fit: contain; }
/* The link cards: the guide card (.g-card), four across from 1,024, two by two below. */
.about-section .about-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.about-cards .g-card { width: 100%; }
@media (max-width: 1023px) {
  .about-section .about-panels { grid-template-columns: minmax(0, 1fr); }
  .about-section .about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .about-cards .g-card, .about-panel { padding: var(--space-3); }
}
@media (max-width: 479px) {
  .about-cards .g-card { padding: var(--space-2); }  /* two by two at 320: room for "calculator" and "overcladding" */
}

/* Instruction 59: the guides.
   Headings wrap balanced site-wide (the section headings in the title style, and every h1 to h3), so no heading leaves
   one word alone on its last line. */
.s-title, h1, h2, h3 { text-wrap: balance; }
/* The guide cards carry the reading time at their foot, in caption grey. */
.g-card .g-time { margin-top: auto; padding-top: var(--space-1); color: var(--grey-caption); }
/* The Guides index: three across from 1,024, one column below. */
@media (max-width: 1023px) { .guide-index .g-cards > li { grid-column: 1 / -1; } }
/* The guide page: the lead (the site's lead style) with the reading time beneath it, then the reading column. */
.guide-lead { grid-column: 1 / span 8; }
.guide-time { grid-column: 1 / span 8; margin: var(--space-2) 0 0; color: var(--grey-caption); }
.guide-body { padding-top: var(--space-6); }
.reading .guide-list { margin-top: var(--space-3); }
.reading .guide-list li { padding: var(--space-2) 0; }
.reading h2.sources { margin-top: var(--space-7); }
.reading .sources-list { margin-top: var(--space-2); }
.reading .last-checked { margin-top: var(--space-2); }
@media (max-width: 1023px) { .guide-lead, .guide-time { grid-column: 1 / -1; } }
/* On /about/ from 1,024 to 1,279 the four-column heading is too narrow for "Will you be kept informed?" to wrap without
   leaving one word alone; the heading takes five columns there (the content column is unchanged). */
@media (min-width: 1024px) and (max-width: 1279px) { .about-section .prose-a .s-title { grid-column: 1 / span 5; } }

/* 65: the main submit on every form page is the solid button, as "Send, and we will price it" on /reports/. */
.btn.form-send { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* 65: at phone widths the small links get a tap area at least 44px tall. Vertical padding with an equal negative margin
   grows the target without moving anything or changing how the text looks. */
@media (max-width: 639px) {
  .site-header .header-call { padding-block: 10px; margin-block: -10px; }
  .f-legal a { padding-block: 12px; margin-block: -12px; }
  .film-transcript > summary { display: inline-block; padding-block: 14px; margin-block: -14px; }
}

/* 65: home at phone widths: no empty strip of ground between the last "By what you can see" row and the Roof works
   band; the band's own top padding is the space, as between the other bands. */
@media (max-width: 639px) { section[aria-labelledby="start-h"] + .band { margin-top: 0; } }

/* 65: the foot of the questions band on the works, cost and gutters pages: Read next, What it costs and Last checked,
   each a line from the questions' left edge, inside the band, with the band's standard space beneath. */
.sq-foot .grid > p { grid-column: 1 / span 8; margin: 0; }
.sq-foot .grid > p + p { margin-top: var(--space-1); }
.sq-foot .grid > .last-checked { margin-top: var(--space-3); }
.rw-questions .works-links.sq-foot { padding-bottom: var(--space-8); }
@media (max-width: 1023px) { .sq-foot .grid > p { grid-column: 1 / -1; } }
@media (max-width: 639px) { .rw-questions .works-links.sq-foot { padding-bottom: var(--space-7); } }

/* 65: the cost pages' opening paragraph keeps the band's standard space beneath it (as above it) before the paper band. */
.lead-band.cost-lead { padding-bottom: var(--space-6); }

/* 65: Terms, Privacy and Cookies: the standard space beneath the last paragraph, before the Talk to us band. */
.legal-body { padding-bottom: var(--space-8); }
@media (max-width: 639px) { .legal-body { padding-bottom: var(--space-7); } }
