/* Sound Skylights Stockport: main stylesheet, written from scratch to STYLE-GUIDE.md (master C).
   "A friendly, established Stockport fitter's website: warm stone and teal, bright photographs of real installs,
   and the survey one postcode away."
   Order: fonts . tokens . base . layout . components . header . sections . long read . articles . indexes . footer .
   fixed UI . motion . print. */

/* ------------------------------------------------------------------ fonts (self-hosted latin woff2) */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/nunito-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 700 900; font-display: swap; src: url("../fonts/nunito-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/figtree-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/figtree-italic-latin.woff2") format("woff2"); }
/* Metric fallbacks (7g.8): size-adjust and line metrics measured in Chrome by build/qa/font-metrics.mjs
   (results in build/theme-tools/font-metrics.json), so the swap does not shift the hero (CLS). */
@font-face { font-family: "Nunito Fallback"; font-style: normal; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); size-adjust: 99.4%; ascent-override: 101.6%; descent-override: 35.2%; line-gap-override: 0%; }
@font-face { font-family: "Nunito Fallback"; font-style: italic; font-weight: 700 900; src: local("Arial Bold Italic"), local("Arial-BoldItalicMT"), local("Arial Italic"); size-adjust: 99.1%; ascent-override: 101.9%; descent-override: 35.3%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; font-style: normal; font-weight: 400 700; src: local("Arial"), local("ArialMT"); size-adjust: 101.5%; ascent-override: 93.6%; descent-override: 24.6%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; font-style: italic; font-weight: 400; src: local("Arial Italic"), local("Arial-ItalicMT"); size-adjust: 101.5%; ascent-override: 93.6%; descent-override: 24.6%; line-gap-override: 0%; }

/* ------------------------------------------------------------------ tokens */
:root {
  --ground: #ECE4DD;
  --ground-2: #F4EFEA;
  --card: #FFFFFF;
  --ink: #2A211C;
  --ink-muted: #5B4F47;
  --rule: #D9CFC6;
  --teal: #11645C;
  --teal-deep: #0B4A44;
  --teal-tint: #DCEAE7;
  --footer: #201711;
  --footer-text: #EFE7DF;
  --footer-muted: #B9ADA3;
  --wa: #11645C;

  --f-head: "Nunito", "Nunito Fallback", Arial, sans-serif;
  --f-body: "Figtree", "Figtree Fallback", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --band-y: clamp(48px, 7vw, 96px);
  --gutter: 16px;
  --w-prose: 45em; /* 68ch of Figtree (0.661em measured on the rendered column), in em so the column never resizes when the font swaps in (CLS) */
  --w-std: 1180px;
  --w-wide: 1320px;
  --hdr-h: 72px;

  --r-card: 16px;
  --r-big: 24px;
  --r-chip: 12px;
  --r-pill: 999px;
  --shadow: 0 2px 4px rgba(42, 33, 28, .06), 0 8px 24px rgba(42, 33, 28, .06);
  --shadow-lift: 0 4px 8px rgba(42, 33, 28, .08), 0 14px 32px rgba(42, 33, 28, .10);

  --t-body: clamp(17px, 0.95rem + 0.2vw, 18px);
  --t-h1: clamp(40px, 2.2rem + 1.6vw, 56px);
  --t-hero: clamp(36px, 1.9rem + 2vw, 58px);
  --t-h2: clamp(30px, 1.6rem + 0.9vw, 40px);
  --t-h3: clamp(21px, 1.2rem + 0.3vw, 24px);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--f-body); font-size: var(--t-body); line-height: 1.65; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.15; margin: 0 0 var(--s4); color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
h3, h4 { font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--teal-deep); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--r-chip); font-weight: 600; }
.skip:focus { top: var(--s3); color: #fff; }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; margin-inline: auto; padding-inline: var(--gutter); min-width: 0; }
.wrap--prose { max-width: calc(var(--w-prose) + 2 * var(--gutter)); }
.wrap--std { max-width: calc(var(--w-std) + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(var(--w-wide) + 2 * var(--gutter)); }
/* Full-bleed bands carry padding, never vertical margin (7b.4, 7c.4). */
.band { padding-block: var(--band-y); margin: 0; }
.band--ground { background: var(--ground); }
.band--ground2 { background: var(--ground-2); }
.band--white { background: var(--card); }
.center { text-align: center; }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }
.h2.center { margin-bottom: var(--s6); }

/* ------------------------------------------------------------------ dark grounds: ONE mechanism (7c.3)
   .on-dark is added by every dark band (quote band, answer callout, cost band, footer). Its rules carry the
   .on-dark class twice in the selector chain so they outrank component colour rules instead of tying them. */
.on-dark.on-dark { color: #fff; }
.on-dark.on-dark h1, .on-dark.on-dark h2, .on-dark.on-dark h3, .on-dark.on-dark p, .on-dark.on-dark li, .on-dark.on-dark dt, .on-dark.on-dark dd { color: inherit; }
.on-dark.on-dark .eyebrow, .on-dark.on-dark .label { color: #CFE5E0; }
.on-dark.on-dark a:not(.btn) { color: var(--footer-text); }
.on-dark.on-dark a:not(.btn):hover { color: #fff; }
.on-dark.on-dark .ticks .ico--tick { color: #CFE5E0; }
.on-dark.on-dark .ticks .ico--tick path { stroke: var(--teal-deep); }
.on-dark.on-dark :focus-visible { outline-color: #fff; }
/* A white card inside a dark band is a light ground again. */
.on-dark.on-dark .quote__panel, .on-dark.on-dark .quote__panel p { color: var(--ink); }
.on-dark.on-dark .quote__panel a:not(.btn) { color: var(--teal); }

/* ------------------------------------------------------------------ components */
.eyebrow { font-family: var(--f-body); font-weight: 600; font-size: 1rem; color: var(--teal); margin: 0 0 var(--s3); letter-spacing: 0; }
.label, .kicker { font-family: var(--f-body); font-weight: 600; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 var(--s2); }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
:where(a).card { display: block; color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
:where(a).card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 10px 24px; border-radius: var(--r-pill); border: 2px solid transparent; font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-deep); color: #fff; text-decoration: none; }
.btn--line { background: var(--card); color: var(--teal-deep); border-color: var(--teal); }
.btn--line:hover { background: var(--teal-tint); color: var(--teal-deep); text-decoration: none; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--teal-deep); color: #fff; text-decoration: none; }
.btn--block { display: flex; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin: var(--s5) 0 var(--s4); }
@media (max-width: 479px) { .cta-row .btn { width: 100%; white-space: normal; } }

.ticks { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s2); }
.ticks li { display: flex; align-items: flex-start; gap: var(--s2); font-size: .9375rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.ticks .ico { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 1px; }
.ticks--row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }

.chips { list-style: none; padding: 0; margin: var(--s4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-tint); color: var(--teal-deep); border-radius: var(--r-chip); padding: 6px 12px; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.chip--sm { padding: 3px 10px; font-size: .8125rem; }
.chip--link { text-decoration: none; min-height: 40px; }
.chip--link:hover { background: var(--teal); color: #fff; }
.chip__n { background: var(--card); color: var(--teal-deep); border-radius: var(--r-pill); padding: 0 7px; font-size: .75rem; }

.prose { max-width: var(--w-prose); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: var(--t-h3); margin-top: var(--s6); }
.prose h3 { font-size: 1.15rem; margin-top: var(--s5); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: var(--s2); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.prose ol { padding-left: 1.4em; }
.prose ol li { margin-bottom: var(--s2); }
.prose ol li::marker { color: var(--teal); font-weight: 700; }
.prose blockquote { margin: var(--s5) 0; padding: var(--s4) var(--s5); background: var(--ground-2); border-radius: var(--r-card); font-family: var(--f-head); font-style: italic; font-weight: 700; font-size: 1.2rem; }
.prose--lead { font-size: 1.125rem; }

/* tables that fit, never scroll (memory: two mechanisms) */
.table-fit { width: 100%; margin: var(--s5) 0; min-width: 0; }
.table-fit table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; font-size: .9375rem; }
.table-fit caption { caption-side: top; text-align: left; font-weight: 600; padding: 0 0 var(--s2); color: var(--ink-muted); }
.table-fit th, .table-fit td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; hyphens: auto; }
.table-fit thead th { background: var(--teal-tint); color: var(--teal-deep); font-weight: 700; }
.table-fit tbody tr:last-child > * { border-bottom: 0; }
.table-fit tbody th { font-weight: 600; }
@media (max-width: 599px) {
  .table-fit table.cols-3, .table-fit table.cols-4, .table-fit table.cols-5, .table-fit table.cols-6 { table-layout: auto; }
  .table-fit table:is(.cols-3, .cols-4, .cols-5, .cols-6) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-fit table:is(.cols-3, .cols-4, .cols-5, .cols-6) tr { display: block; padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
  .table-fit table:is(.cols-3, .cols-4, .cols-5, .cols-6) th, .table-fit table:is(.cols-3, .cols-4, .cols-5, .cols-6) td { display: block; border: 0; padding: 4px 14px; }
  .table-fit table:is(.cols-3, .cols-4, .cols-5, .cols-6) td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
}

/* the designed image fallback: a teal-tint panel with a faint rooflight drawing (never a broken image) */
.ph { display: grid; place-items: center; width: 100%; background: var(--teal-tint); color: var(--teal); border-radius: inherit; }
.ph .ico { width: 34%; height: auto; max-width: 180px; opacity: .45; }

.sss-fig { margin: var(--s6) auto; max-width: 100%; }
.sss-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; border-radius: var(--r-card); }
.sss-fig figcaption { font-size: .875rem; color: var(--ink-muted); text-align: center; margin-top: var(--s2); }

/* ------------------------------------------------------------------ header (4a) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--rule); }
.hdr { display: flex; align-items: center; gap: var(--s4); min-height: calc(var(--hdr-h) - 1px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__word { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand__town { font-family: var(--f-head); font-weight: 700; font-size: .9375rem; color: var(--ink-muted); }
.hdr__actions { display: flex; align-items: center; gap: var(--s3); flex: none; }
.hdr__wa, .hdr__phone { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--teal); text-decoration: none; white-space: nowrap; }
.hdr__wa .ico, .hdr__phone .ico { width: 22px; height: 22px; }
.hdr__wa:hover, .hdr__phone:hover { color: var(--teal-deep); text-decoration: underline; }
.hdr__wa-num { display: none; }
.hdr__phone { display: none; }
.hdr__cta { min-height: 44px; padding: 8px 20px; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link { font-weight: 600; color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"], .nav__link.is-section { color: var(--teal); }
.caret { width: 18px; height: 18px; transition: transform .2s ease; }
.nav__caret { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: var(--r-chip); }
.nav__caret[aria-expanded="true"] .caret { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 0; }
.sub a { display: block; text-decoration: none; color: var(--ink); font-weight: 600; }
.sub a:hover, .sub a[aria-current="page"] { color: var(--teal); }
.sub__all a { color: var(--teal); }
.burger { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--teal-tint); border-radius: var(--r-chip); cursor: pointer; padding: 0; }
.burger__box, .burger__box span, .burger__box span::before, .burger__box span::after { display: block; width: 22px; height: 2.5px; background: var(--teal-deep); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease; }
.burger__box { background: none; }
.burger__box span::before, .burger__box span::after { content: ""; position: absolute; left: 0; }
.burger__box span::before { top: -7px; }
.burger__box span::after { top: 7px; }
.nav-open .burger__box span { background: transparent; }
.nav-open .burger__box span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger__box span::after { transform: translateY(-7px) rotate(-45deg); }

/* below 1024: the bounded, scrollable, page-locking panel with a restyled submenu (7b.5) */
@media (max-width: 1023px) {
  .hdr__wa { display: none; }
  .hdr__cta { display: none; }
  .nav { position: fixed; left: 0; right: 0; top: var(--hdr-h); z-index: 49; background: var(--card); border-top: 1px solid var(--rule); box-shadow: var(--shadow-lift); max-height: calc(100dvh - var(--hdr-h)); overflow-y: auto; overscroll-behavior: contain; padding: var(--s3) var(--gutter) var(--s6); display: none; }
  .nav-open .nav { display: block; }
  html.nav-open { overflow: hidden; }
  .nav__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--rule); }
  .nav__link { flex: 1; display: flex; align-items: center; min-height: 52px; font-size: 1.125rem; }
  .sub { display: none; flex-basis: 100%; background: var(--ground-2); border-radius: var(--r-chip); padding: var(--s2) var(--s3); margin: 0 0 var(--s3); }
  .is-open > .sub { display: block; }
  .sub a { padding: 10px 4px; min-height: 44px; font-size: 1rem; }
  .nav__extra { display: grid; gap: var(--s3); margin-top: var(--s5); }
  .ticks--nav { margin-top: var(--s2); }
}
@media (min-width: 480px) and (max-width: 1023px) { .hdr__cta { display: inline-flex; } }
@media (max-width: 379px) { .brand__name { font-size: 1.12rem; } .brand__mark { width: 40px; height: 40px; } .hdr { gap: var(--s2); } }

@media (min-width: 1024px) {
  .burger, .nav__extra { display: none; }
  .nav { display: block; }
  .nav__list { display: flex; align-items: center; gap: 2px; }
  .nav__item { position: relative; display: flex; align-items: center; }
  .nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 1rem; white-space: nowrap; border-radius: var(--r-chip); }
  .nav__link:hover { color: var(--teal); }
  .has-sub .nav__link { padding-right: 0; }
  .nav__caret { width: 30px; }
  .sub { display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 280px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-lift); padding: var(--s2); z-index: 60; }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
  .is-open > .sub { display: block; }
  .sub a { padding: 9px 12px; border-radius: 10px; white-space: nowrap; }
  .sub a:hover { background: var(--teal-tint); }
  .sub__all { border-top: 1px solid var(--rule); margin-top: 4px; padding-top: 4px; }
  .hdr__wa { display: inline-flex; }
  .hdr__wa-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 1280px) {
  .hdr__wa-word { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .hdr__wa-num { display: inline; }
  .nav__link { padding: 0 12px; }
}
@media (min-width: 1180px) { .has-phone .hdr__phone { display: inline-flex; } }
@media (min-width: 1280px) and (max-width: 1439px) { .has-phone .hdr__wa-num { display: none; } }

/* ------------------------------------------------------------------ 02-hero */
.hero { background: var(--card); padding-block: var(--s4) var(--s7); }
.hero__in { display: grid; gap: var(--s5); align-items: center; }
.hero__card { min-width: 0; padding: var(--s4) 0; }
.hero__h1 { font-size: var(--t-hero); font-weight: 800; line-height: 1.08; margin-bottom: var(--s3); }
.hero__line { font-size: 1.1875rem; font-weight: 500; margin-bottom: var(--s5); }
.hero__media { position: relative; margin: 0; min-width: 0; border-radius: var(--r-big); overflow: hidden; box-shadow: var(--shadow); }
.hero__img, .hero__media .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.hero__chip { position: absolute; right: var(--s4); bottom: var(--s4); display: inline-flex; align-items: center; gap: 6px; background: var(--card); color: var(--ink); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 600; font-size: .9375rem; box-shadow: var(--shadow); max-width: calc(100% - 2 * var(--s4)); }
.hero__chip .ico { width: 18px; height: 18px; color: var(--teal); flex: none; }
.hero .crumbs { margin-bottom: var(--s4); }
@media (min-width: 1024px) {
  .hero { padding-block: var(--s4); }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s7); }
  .hero__card { padding: var(--s6) 0 var(--s6) var(--s5); }
  .hero__img, .hero__media .ph { aspect-ratio: 1.38 / 1; }
}
@media (min-width: 1320px) { .hero__card { padding-left: var(--s7); } }
/* Stage 4: the town plate (sss_town_plate), the town hero until town photography exists. Teal-deep ground, rings
   around Stockport, the other town pages as faint dots, this town ringed in white. Same frame as the photo. */
.plate { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 20%, #136a61 0%, var(--teal-deep) 58%, #083b36 100%); }
.plate__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plate__lab { position: absolute; transform: translate(14px, -50%); font-family: var(--f-head); font-weight: 800; line-height: 1.1; white-space: nowrap; color: #fff; }
.plate__lab--l { transform: translate(calc(-100% - 14px), -50%); }
.plate__lab--town { font-size: clamp(20px, 1rem + 1vw, 30px); text-shadow: 0 1px 12px rgba(8, 59, 54, .8); }
.plate__lab--town { transform: translate(clamp(18px, 2.2vw, 30px), -50%); }
.plate__lab--town.plate__lab--l { transform: translate(calc(-100% - clamp(18px, 2.2vw, 30px)), -50%); }
.plate__lab--home { font-size: .9375rem; font-weight: 700; color: var(--teal-tint); }
.plate__n { position: absolute; left: var(--s4); top: var(--s4); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; font: 800 .8125rem/1 var(--f-head); }
@media (min-width: 1024px) { .hero__media--plate .plate { aspect-ratio: 1.38 / 1; } }

/* the postcode-first starter: one pill holding the field and the teal button */
.starter { max-width: 560px; }
.starter__row { display: flex; align-items: center; gap: var(--s2); background: var(--card); border: 2px solid var(--rule); border-radius: var(--r-pill); padding: 5px 5px 5px 20px; box-shadow: 0 2px 6px rgba(42, 33, 28, .05); }
.starter__row:focus-within { border-color: var(--teal); }
.starter__input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.0625rem; padding: 10px 0; outline: none; }
.starter__input::placeholder { color: #7A6D64; opacity: 1; }
.starter__btn { flex: none; min-height: 46px; padding: 8px 20px; }
@media (max-width: 374px) {
  .starter__row { flex-direction: column; align-items: stretch; border-radius: var(--r-card); padding: 6px; }
  .starter__input { padding: 10px 12px; }
  .starter__btn { width: 100%; }
}

/* ------------------------------------------------------------------ 03-services */
.svc__intro { max-width: 39.7em; margin: calc(-1 * var(--s4)) auto var(--s6); color: var(--ink-muted); }
.svc__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.svc__item { min-width: 0; }
.svc__card { height: 100%; padding: 8px 8px 14px; text-align: center; }
.svc__media { display: block; border-radius: 12px; overflow: hidden; }
.svc__img, .svc__media .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc__t { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; margin-top: 12px; padding-inline: 4px; text-wrap: balance; }
@media (min-width: 760px) { .svc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
@media (min-width: 1100px) { .svc__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5) var(--s4); } .svc__t { font-size: 1.125rem; } }
@media (min-width: 760px) { .svc__grid--few { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 260px)); justify-content: center; } }

/* ------------------------------------------------------------------ 04-easy: full-bleed fitter photo + white card */
.easy { position: relative; background: var(--ground); }
.easy__media { position: relative; }
.easy__img, .easy__media .ph { width: 100%; height: clamp(280px, 34vw, 460px); aspect-ratio: auto !important; object-fit: cover; object-position: 30% 40%; border-radius: 0; }
.easy__in { position: relative; margin-top: -72px; padding-bottom: var(--band-y); }
.easy__card { padding: var(--s5); max-width: 520px; margin-inline: auto; }
.easy__card .h2 { font-size: clamp(28px, 1.5rem + 0.8vw, 36px); margin-bottom: var(--s4); }
.easy__lede { color: var(--ink-muted); }
.easy__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.easy__list li { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 600; line-height: 1.45; }
.easy__ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--teal-tint); color: var(--teal); }
.easy__ico .ico { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .easy__in { position: absolute; inset: 0; margin: 0 auto; padding-bottom: 0; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; }
  .easy__card { pointer-events: auto; margin: 0; padding: var(--s6); width: min(46%, 520px); }
  .easy__img, .easy__media .ph { height: clamp(400px, 33vw, 480px); }
  /* Stage 4: photo and card share one grid cell, so the band grows with a long card instead of the card
     overhanging the photo top and bottom; the photo fills the cell (min height as before). */
  .easy { display: grid; }
  .easy > .easy__media, .easy > .easy__in { grid-area: 1 / 1; }
  .easy > .easy__in { position: relative; inset: auto; width: 100%; padding-block: var(--s7); }
  .easy > .easy__media .easy__img, .easy > .easy__media .ph { height: 100%; min-height: clamp(400px, 33vw, 480px); }
}
/* Stage 4: stamped band photos keep their logo corner in frame (images.json "mark"). The crop anchors to the
   bottom and to the stamped side; under 900px the card sits below the photo instead of over its bottom edge,
   and from 900px it moves to the side away from the stamp. */
.easy--mark-br .easy__img { object-position: 100% 100%; }
.easy--mark-bl .easy__img { object-position: 0% 100%; }
@media (max-width: 899.98px) {
  .easy--mark-br .easy__in, .easy--mark-bl .easy__in { margin-top: 0; padding-top: var(--s5); }
}
@media (min-width: 900px) {
  /* the crop stays anchored to the stamped corner at every width: a tall card widens the cover crop */
  .easy--mark-br .easy__in { justify-content: flex-start; }
}

/* ------------------------------------------------------------------ 05-steps */
.steps__list { list-style: none; margin: 0; padding: var(--s5) 0 0; display: grid; gap: var(--s7) var(--s5); grid-template-columns: minmax(0, 1fr); max-width: 940px; margin-inline: auto; }
.step { position: relative; text-align: center; padding: 44px var(--s5) var(--s5); min-width: 0; }
.step__n { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--f-head); font-weight: 900; font-size: 1.6rem; border: 4px solid var(--ground); }
.step__t { font-size: 1.1875rem; margin: 0; }
.step__d { margin: var(--s2) 0 0; color: var(--ink-muted); font-size: 1rem; }
.steps__cta { margin: var(--s6) 0 0; }
@media (min-width: 760px) { .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ areas: map panel + "Do we cover you?" */
.areas__grid { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
.areas__map { padding: 8px; min-width: 0; }
.map { position: relative; height: clamp(300px, 36vw, 420px); border-radius: 12px; overflow: hidden; background: var(--teal-tint); z-index: 0; }
.map--wide { height: clamp(320px, 40vw, 480px); }
.map__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s2); text-align: center; color: var(--teal-deep); font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; padding: var(--s5); }
.map__fallback .ico { width: 40px; height: 40px; color: var(--teal); }
.map__fallback p { margin: 0; }
.map__note { font-size: .875rem; color: var(--ink-muted); margin: var(--s3) var(--s2) var(--s1); }
.areas__card { padding: var(--s5); min-width: 0; }
.areas__card .h3 { font-size: clamp(24px, 1.3rem + 0.5vw, 30px); font-weight: 800; }
.areas__card .starter { margin: var(--s4) 0 var(--s5); }
.townlinks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.townlinks a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--ground-2); color: var(--teal-deep); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.townlinks a:hover { background: var(--teal); color: #fff; }
.townlinks__all.townlinks__all { background: var(--teal-tint); }
@media (min-width: 900px) { .areas__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } .areas__card { padding: var(--s6); } }
.leaflet-container { font-family: var(--f-body); }

/* ------------------------------------------------------------------ 06-faq: native details, two columns */
.faq__cols { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); max-width: 1000px; margin-inline: auto; }
.faq__cols--1 { max-width: var(--w-prose); }
.faq__col { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.faq__item { background: var(--card); border-radius: var(--r-chip); box-shadow: 0 1px 2px rgba(42, 33, 28, .06); border: 1px solid var(--rule); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 14px 16px 14px 18px; cursor: pointer; min-height: 52px; font-weight: 600; line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { width: 20px; height: 20px; flex: none; color: var(--teal); transform: rotate(-90deg); transition: transform .2s ease; }
.faq__item[open] .faq__chev { transform: rotate(0deg); }
.faq__item[open] summary { color: var(--teal-deep); }
.faq__a { padding: 0 18px 16px; font-size: 1rem; }
@media (min-width: 900px) { .faq__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); } }

/* ------------------------------------------------------------------ the A2 long read (STYLE-GUIDE 9): no sticky anything */
.lr { background: var(--ground); padding-bottom: var(--band-y); }
.lr-intro { padding-top: var(--band-y); }
.lr-intro__card { background: var(--card); border-radius: var(--r-big); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 56px); text-align: center; }
.lr-intro__h { font-size: var(--t-h2); max-width: 13.2em; margin-inline: auto; }
.lr-intro__dek { font-size: 1.1875rem; color: var(--ink-muted); max-width: 39.7em; margin-inline: auto; }
.lr-intro__body { margin: var(--s4) auto 0; text-align: left; }
.qchips { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.qchips ul { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.qchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: var(--r-pill); background: var(--teal-tint); color: var(--teal-deep); font-weight: 600; text-decoration: none; line-height: 1.25; }
.qchip:hover { background: var(--teal); color: #fff; }
.qchip__q { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--f-head); font-weight: 900; font-size: .95rem; }
.qchip:hover .qchip__q { background: #fff; color: var(--teal); }

.lrq { padding-top: clamp(48px, 6vw, 80px); }
.lrq__head { display: flex; align-items: flex-start; gap: var(--s4); max-width: 900px; margin: 0 auto var(--s5); }
.qdisc { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--f-head); font-weight: 900; font-size: 1.6rem; margin-top: 2px; box-shadow: 0 0 0 6px var(--teal-tint); }
.lrq__q { font-size: clamp(27px, 1.4rem + 1vw, 37px); font-weight: 800; margin: 0; padding-top: 4px; }
.lrq__answer { min-width: 0; }
.lrq--below .lrq__answer, .lrq--band .lrq__answer, .lrq--none .lrq__answer { max-width: var(--w-prose); margin-inline: auto; }
.lrq--below .lrq__head, .lrq--band .lrq__head, .lrq--none .lrq__head { max-width: calc(var(--w-prose) + 68px); }
.lrq__grid { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
.lrq__mod { min-width: 0; display: grid; gap: var(--s4); align-content: start; }
.lrq__mod--below { margin-top: var(--s6); }
.lrq__mod--band { margin-bottom: var(--s6); }
@media (min-width: 960px) {
  .lrq--right .lrq__head, .lrq--left .lrq__head { max-width: none; }
  .lrq--right .lrq__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s7); }
  .lrq--right .lrq__answer { grid-column: 1; grid-row: 1; }
  .lrq--right .lrq__mod { grid-column: 2; grid-row: 1; }
  .lrq--left .lrq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: var(--s7); }
  .lrq--left .lrq__answer { grid-column: 2; grid-row: 1; }
  .lrq--left .lrq__mod { grid-column: 1; grid-row: 1; }
  .lrq--left .lrq__head { padding-left: calc((100% - var(--s7)) * 1 / 2.55 + var(--s7)); }
}
.lr-short { background: var(--teal-tint); border-radius: var(--r-card); padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.lr-short .label { color: var(--teal-deep); }
.lr-short__t { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; line-height: 1.4; margin: 0; color: var(--ink); }
.lr-verdict { background: var(--card); border-radius: var(--r-card); padding: var(--s5); box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.lr-verdict__t { font-family: var(--f-head); font-style: italic; font-weight: 800; font-size: clamp(22px, 1.2rem + 0.6vw, 29px); line-height: 1.3; margin: 0; color: var(--ink); }
.lrq--below .lr-verdict, .lrq--band .lr-verdict { max-width: 860px; margin-inline: auto; text-align: center; }
.lr-spec { background: var(--card); border-radius: var(--r-card); padding: var(--s5); box-shadow: var(--shadow); }
.lr-spec dl { margin: 0; }
.lr-spec__row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.lr-spec__row:last-child { border-bottom: 0; }
.lr-spec dt { font-weight: 600; color: var(--ink-muted); }
.lr-spec dd { margin: 0; font-weight: 600; }
.lr-spec__note { font-size: .875rem; color: var(--ink-muted); margin: var(--s3) 0 0; }
.lrq--below .lr-spec, .lrq--band .lr-spec { max-width: 760px; margin-inline: auto; width: 100%; }
.lr-gloss { background: var(--ground-2); border-radius: var(--r-card); padding: var(--s5); }
.lr-gloss__list { margin: var(--s2) 0 0; display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.lr-gloss__item { min-width: 0; }
.lr-gloss__item dt.chip { margin-bottom: 4px; font-family: var(--f-head); font-weight: 800; }
.lr-gloss__item dd { margin: 0; font-size: .9375rem; color: var(--ink-muted); }
.lrq--below .lr-gloss__list, .lrq--band .lr-gloss__list { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.lr-cost { background: var(--teal-deep); color: #fff; border-radius: var(--r-big); padding: clamp(24px, 4vw, 48px); display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
.lr-cost .label { color: #CFE5E0; }
.lr-cost__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(24px, 1.3rem + 0.6vw, 30px); line-height: 1.2; color: #fff; }
.lr-cost__note { font-size: .9375rem; color: #E3EFEC; margin: var(--s3) 0 0; }
.lr-cost__cta { margin: 0; }
.lr-cost .btn--teal { background: var(--card); color: var(--teal-deep); }
.lr-cost .btn--teal:hover { background: var(--teal-tint); color: var(--teal-deep); }
.lr-cost__items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.lr-cost__items li { background: rgba(255, 255, 255, .08); border-radius: var(--r-chip); padding: var(--s4); min-width: 0; }
.lr-cost__label { display: block; font-family: var(--f-head); font-weight: 800; color: #fff; margin-bottom: 4px; }
.lr-cost__text { display: block; font-size: .9375rem; color: #E3EFEC; }
.lr-cost a:not(.btn) { color: var(--footer-text); }
@media (min-width: 900px) { .lr-cost { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); align-items: start; } }

/* the photo pair: stacked labelled frames without JS; a draggable divider (native range input) with JS */
.pair { margin: 0 auto; max-width: 960px; width: 100%; }
.pair__stage { display: grid; gap: var(--s3); position: relative; }
.pair__frame { position: relative; border-radius: var(--r-card); overflow: hidden; }
.pair__img, .pair__frame .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pair__tag { position: absolute; left: var(--s3); top: var(--s3); z-index: 2; background: var(--card); color: var(--ink); border-radius: var(--r-pill); padding: 4px 12px; font-weight: 600; font-size: .875rem; box-shadow: var(--shadow); }
.pair__frame--b .pair__tag { left: auto; right: var(--s3); }
/* both photographs missing: the two designed fallback frames sit side by side at a modest size */
@media (min-width: 760px) { .pair:not([data-pair]) .pair__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* two different photos side by side (no divider): the stamped library files keep their bottom stamp in frame */
.pair--static .pair__img { object-position: 50% 100%; }
/* homepage photos cropped from master C: keep the lantern (hero) and the fitter's head (easy band) in frame */
.hero__img[data-img-slot="home-hero"] { object-position: 30% 50%; }
.easy__img[data-img-slot="home-easy"] { object-position: 20% 12%; }
/* from 900px the homepage band is as tall as its card needs (min 400-480px), not the photo's own 1.9:1 height */
@media (min-width: 900px) {
  [data-sonic-section="04-easy"] > .easy__media { position: relative; min-height: clamp(400px, 33vw, 480px); }
  [data-sonic-section="04-easy"] > .easy__media .easy__img { position: absolute; inset: 0; height: 100%; min-height: 0; }
}
.pair figcaption { font-size: .875rem; color: var(--ink-muted); text-align: center; margin-top: var(--s2); }
.pair--live .pair__stage { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; --pos: 50%; }
.pair--live .pair__frame { position: absolute; inset: 0; border-radius: 0; }
.pair--live .pair__frame--a { z-index: 1; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.pair--live .pair__img { height: 100%; aspect-ratio: auto; }
.pair__range { display: none; }
.pair--live .pair__range { display: block; position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.pair__handle { display: none; }
.pair--live .pair__handle { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); z-index: 3; width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.pair--live .pair__handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: var(--shadow-lift); }
.pair--live .pair__range:focus-visible + .pair__handle::after { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px var(--teal); }
.lr-table .table-fit { margin: 0; }

/* light form on town pages */
.lr--light .lr-intro__card { text-align: left; }
.lr--light .lr-intro__h { margin-inline: 0; }
/* Stage 4: one alignment in the light intro card (the dek was centred under a left heading) and, from 900px, the
   heading and dek side by side so the full-width card is not half empty. */
.lr--light .lr-intro__dek, .lr--light .lr-intro__body { margin-inline: 0; }
@media (min-width: 900px) {
  .lr--light .lr-intro__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s4) var(--s7); align-items: center; }
  .lr--light .lr-intro__h { margin: 0; max-width: none; }
  .lr--light .lr-intro__body { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ #quote: teal-deep rounded band, white panel */
.quote { background: var(--ground); padding-block: var(--band-y); }
.quote__band { background: var(--teal-deep); border-radius: var(--r-big); padding: clamp(24px, 4vw, 56px); display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
.quote__copy { min-width: 0; }
.quote__h { font-size: var(--t-h2); }
.quote__lede { font-size: 1.125rem; }
.quote__pc { background: rgba(255, 255, 255, .12); border-radius: var(--r-chip); padding: var(--s3) var(--s4); font-weight: 600; }
.quote__panel { background: var(--card); border-radius: var(--r-card); padding: var(--s4); min-width: 0; color: var(--ink); }
.quote__panel-h { font-family: var(--f-head); font-weight: 800; font-size: 1.375rem; margin: var(--s2) var(--s2) var(--s3); }
.quote__or { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); font-weight: 600; }
.ticks--band li { font-size: 1rem; }
/* The CRM card is never an empty panel: a field skeleton sits behind the byte-exact iframe until it paints. */
.crm { position: relative; min-height: 620px; border-radius: 12px; background-color: var(--ground-2); background-image: linear-gradient(var(--card), var(--card)), linear-gradient(var(--card), var(--card)), linear-gradient(var(--card), var(--card)), linear-gradient(var(--card), var(--card)); background-size: calc(100% - 32px) 48px, calc(100% - 32px) 48px, calc(100% - 32px) 48px, calc(100% - 32px) 120px; background-position: 16px 24px, 16px 88px, 16px 152px, 16px 216px; background-repeat: no-repeat; }
.crm iframe { position: relative; z-index: 1; }
@media (min-width: 960px) { .quote__band { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } .quote__copy { padding-top: var(--s4); } .quote__panel { padding: var(--s5); } }

/* ------------------------------------------------------------------ page heads (inner pages) */
.phead { background: var(--ground); padding-block: var(--s6) 0; }
.phead__in { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
.phead__card { background: var(--card); border-radius: var(--r-big); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); min-width: 0; border-top: 6px solid var(--teal); }
.phead__h1 { font-size: var(--t-h1); line-height: 1.1; margin-bottom: var(--s3); }
.phead__dek { font-size: 1.1875rem; color: var(--ink-muted); max-width: 39.7em; margin: 0; }
.phead--short .phead__h1 { font-size: clamp(34px, 1.9rem + 1.2vw, 48px); }
.phead__media { margin: 0; border-radius: var(--r-big); overflow: hidden; min-width: 0; }
.phead__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Stage 4: the photo keeps its 4:3 frame beside a tall card (stretching it made a near-square crop at 1366). */
@media (min-width: 1024px) { .phead--img .phead__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; } }
.crumbs ol { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .875rem; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--rule); }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--teal); }

.intro .prose { margin-inline: auto; }
.hero--inner .hero__h1 { font-size: var(--t-h1); }

/* ------------------------------------------------------------------ feature flow (guides) */
.flow__hero { margin: 0 auto var(--s7); }
.flow__img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-big); }
.flow__col { position: relative; }
.flow__intro { font-size: 1.1875rem; margin: 0 auto var(--s6); }
.flow__intro > p:first-of-type::first-letter { float: left; font-family: var(--f-head); font-weight: 900; font-size: 3.6em; line-height: .82; margin: .06em .1em 0 0; color: var(--teal); }
.asec { margin: 0 auto var(--s7); }
.asec__num { display: flex; align-items: center; gap: var(--s4); margin: 0 0 var(--s4); color: var(--teal); }
.asec__num::before, .asec__num::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.asec__num span { font-family: var(--f-head); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.asec--flow .asec__title { text-align: center; font-size: var(--t-h3); font-size: clamp(24px, 1.3rem + 0.6vw, 32px); }
.asec__title { font-size: clamp(24px, 1.3rem + 0.6vw, 32px); }
.asec .prose { margin-inline: auto; }
.mod { margin: var(--s5) 0; }
.mod--pull { font-family: var(--f-head); font-style: italic; font-weight: 800; font-size: clamp(22px, 1.2rem + 0.6vw, 29px); line-height: 1.3; text-align: center; color: var(--teal-deep); padding: var(--s5) var(--s4); border-block: 2px solid var(--teal-tint); }
.mod--callout { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s5); }
.mod--callout p:last-child { margin: 0; }
.mod--steps ol, .mod--checklist ul { margin: 0; }
.mod--steps, .mod--checklist { background: var(--ground-2); border-radius: var(--r-card); padding: var(--s5); }
.mod--checklist ul { list-style: none; padding: 0; }
.mod--checklist li { position: relative; padding-left: 30px; margin-bottom: var(--s2); }
.mod--checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); }
.flow__cta { padding: var(--s5); text-align: center; margin-top: var(--s7); }
.flow__cta-t { font-family: var(--f-head); font-weight: 800; font-size: 1.375rem; }
.flow__cta .cta-row, .flow__cta .ticks--row { justify-content: center; }

/* ------------------------------------------------------------------ direct answer */
.answer { background: var(--teal-deep); border-radius: var(--r-big); padding: clamp(24px, 4vw, 40px); margin-bottom: var(--s5); }
.answer__t { font-family: var(--f-head); font-weight: 700; font-size: 1.3125rem; line-height: 1.5; }
.answer__t > :last-child { margin-bottom: 0; }
.asec--plain .asec__title, .asec--designed .asec__title { margin-top: var(--s6); }

/* ------------------------------------------------------------------ designed article (core, legal) */
.designed__col .asec { padding-top: var(--s5); border-top: 1px solid var(--rule); margin-bottom: var(--s6); }
.designed__col .kicker { color: var(--teal); }
.designed__intro { margin: 0 auto var(--s6); }
.legal-contact { padding: var(--s5); margin-top: var(--s6); }
.legal-contact p:last-child { margin: 0; }
.designed--legal { counter-reset: legal; }
.designed--legal .asec__title::before { counter-increment: legal; content: counter(legal) ". "; color: var(--teal); }

/* ------------------------------------------------------------------ spokes, related */
.spokes__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
a.card.spoke, .card.spoke { height: 100%; padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.spoke__t { font-family: var(--f-head); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.spoke__m { margin-top: auto; font-size: .875rem; color: var(--ink-muted); }
.spoke--owner { background: var(--teal-tint); }

/* ------------------------------------------------------------------ indexes */
.dirs__count { text-align: center; font-size: 1.125rem; max-width: 39.7em; margin: 0 auto var(--s6); }
.dirs__n { font-family: var(--f-head); font-weight: 900; font-size: 1.6em; color: var(--teal); vertical-align: -0.1em; }
.dirs__grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); align-items: start; }
.dir { padding: var(--s5); min-width: 0; }
.dir__h { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); font-size: 1.25rem; }
.dir__list { list-style: none; margin: 0; padding: 0; }
.dir__list a { display: flex; justify-content: space-between; gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-weight: 600; min-height: 44px; align-items: center; }
.dir__list li:last-child a { border-bottom: 0; }
.dir__list a:hover { color: var(--teal); }
.dir__m { color: var(--ink-muted); font-weight: 400; font-size: .9375rem; white-space: nowrap; }
.jump { margin-bottom: var(--s6); text-align: center; }
.jump .chips { justify-content: center; }
.feat { list-style: none; margin: 0 0 var(--s7); padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.feat__a { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.feat__img, .feat__media .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* index cards crop 4:3 stamped files to 16:9, 16:10 or a tall side panel: anchor the crop to the logo corner (2b.9.7) */
.feat__img.mk-bl { object-position: 0% 100%; }
.feat__img.mk-br { object-position: 100% 100%; }
.feat__media { display: block; }
.feat__body { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; flex: 1; }
.feat__t { font-family: var(--f-head); font-weight: 800; font-size: 1.1875rem; line-height: 1.25; }
.feat__d { font-size: .9375rem; color: var(--ink-muted); }
.feat__m { margin-top: auto; font-size: .875rem; color: var(--teal-deep); font-weight: 600; }
.grp { margin-bottom: var(--s6); }
.grp__h { display: flex; align-items: center; gap: var(--s3); font-size: 1.375rem; }
.grp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.grp__list a { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 600; text-decoration: none; }
.grp__list a:hover { color: var(--teal); }
.grp__m { flex: none; color: var(--ink-muted); font-weight: 400; font-size: .875rem; }
.index__empty { color: var(--ink-muted); }

/* ------------------------------------------------------------------ contact */
.contact__grid { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); align-items: start; }
.contact__form { padding: var(--s5); min-width: 0; }
.contact__form .quote__pc { background: var(--teal-tint); color: var(--teal-deep); }
.contact__card { padding: var(--s5); min-width: 0; }
.direct-list { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s4); }
.direct-list li { display: flex; gap: var(--s3); align-items: flex-start; }
.direct-list__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--teal-tint); color: var(--teal); }
.direct-list__ico .ico { width: 22px; height: 22px; }
.direct-list .label { display: block; margin-bottom: 2px; }
.direct-list a { font-weight: 600; font-size: 1.0625rem; }
.coverage__card { padding: 8px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .contact__form, .contact__card { padding: var(--s6); } }

/* ------------------------------------------------------------------ footer (4b): deep brown, auto-fit full-width grid */
.site-footer { background: var(--footer); color: var(--footer-text); padding-block: var(--s8) var(--s5); margin: 0; }
.foot__grid { display: grid; gap: var(--s6) var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.foot__brand { grid-column: 1 / -1; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup__mark { width: 52px; height: 52px; flex: none; }
.lockup__word { display: flex; flex-direction: column; line-height: 1.05; }
.lockup__name { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; color: #fff; }
.lockup__town { font-family: var(--f-head); font-weight: 700; font-size: 1rem; color: var(--footer-muted); }
.foot__tag { font-family: var(--f-head); font-style: italic; font-weight: 800; font-size: 1.25rem; margin: var(--s4) 0 var(--s3); }
.foot__h { font-family: var(--f-body); font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-muted); margin-bottom: var(--s3); }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot__col a:not(.lockup) { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; text-decoration: none; font-size: .9375rem; }
.on-dark.on-dark .foot__col a:not(.btn):hover { text-decoration: underline; color: #fff; }
.foot__contact .ico { width: 18px; height: 18px; flex: none; }
.foot__note { font-size: .875rem; color: var(--footer-muted); margin-top: var(--s3); }
.on-dark.on-dark .foot__note, .on-dark.on-dark .foot__h, .on-dark.on-dark .lockup__town { color: var(--footer-muted); }
.on-dark.on-dark .lockup__name { color: #fff; }
.foot__base { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid rgba(239, 231, 223, .18); display: grid; gap: var(--s1); font-size: .875rem; text-align: center; }
.foot__base p { margin: 0; color: var(--footer-muted); }
.on-dark.on-dark .foot__base p { color: var(--footer-muted); }
@media (min-width: 1100px) { .foot__grid { grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(160px, 100%), 1fr)); } .foot__brand { grid-column: auto; } }
/* the mobile bar's clearance sits on the last band, never on body (7c.4) */
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(var(--s5) + 72px); } }

/* ------------------------------------------------------------------ fixed UI: mobile bar, FAB, WhatsApp panel */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: var(--s2); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--rule); box-shadow: 0 -4px 16px rgba(42, 33, 28, .08); }
.mbar__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; border: 2px solid var(--teal); color: var(--teal-deep); background: var(--card); }
.mbar__btn .ico { width: 20px; height: 20px; }
.mbar__btn--quote { background: var(--teal); color: #fff; }
.mbar__btn--quote:hover { color: #fff; }
@media (min-width: 1024px) { .mbar { display: none; } }
.wa-fab { display: none; }
@media (min-width: 1024px) {
  .wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 20px 10px 14px; border-radius: var(--r-pill); background: var(--wa); color: #fff; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-lift); transition: opacity .2s ease, transform .2s ease; }
  .wa-fab:hover { background: var(--teal-deep); color: #fff; }
  .wa-fab .ico { width: 24px; height: 24px; }
  .wa-fab.is-away, .wa-fab.is-early { opacity: 0; transform: translateY(12px); pointer-events: none; }
  .wa-open .wa-fab { opacity: 0; pointer-events: none; }
}
.wa { position: fixed; z-index: 70; right: var(--gutter); left: var(--gutter); bottom: 84px; max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain; background: var(--card); border-radius: var(--r-card); box-shadow: 0 10px 40px rgba(42, 33, 28, .25); padding: var(--s4) var(--s5) var(--s5); }
@media (min-width: 600px) { .wa { left: auto; width: 400px; } }
@media (min-width: 1024px) { .wa { bottom: 24px; right: 24px; max-height: calc(100dvh - 48px); } }
.wa__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); }
.wa__title { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; margin: 0; }
.wa__title .ico { width: 24px; height: 24px; color: var(--teal); }
.wa__close { width: 44px; height: 44px; border: 0; background: var(--ground-2); border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.wa__intro { font-size: .9375rem; color: var(--ink-muted); }
.wa__row { display: grid; gap: 4px; margin-bottom: var(--s3); min-width: 0; }
.wa__row label { font-weight: 600; font-size: .9375rem; }
.wa__row input, .wa__row select, .wa__row textarea { width: 100%; min-height: 46px; border: 2px solid #8C7F76; border-radius: var(--r-chip); padding: 8px 12px; background: var(--card); }
.wa__row input:focus, .wa__row select:focus, .wa__row textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-tint); }
.wa__pair { display: grid; gap: 0 var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }

/* ------------------------------------------------------------------ motion (MOTION-PROFILE): CSS only, under .js-motion */
.js-motion [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.js-motion [data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-motion [data-reveal] { opacity: 1; transform: none; transition: none; } * { transition-duration: 0s !important; } }

/* ------------------------------------------------------------------ print */
@media print { .site-header, .mbar, .wa-wrap, .quote, .site-footer .foot__grid { display: none !important; } body { background: #fff; } }

/* ------------------------------------------------------------------ Stage 4 judge loop 1 (2026-10-29) */
/* hero: the postcode starter sits in a white rounded headline card on stone (STYLE-GUIDE move 1; blueprint 2: no
   plain white hero). Phones keep the card edge-to-edge-ish inside the gutter. */
.hero { background: var(--ground); padding-block: var(--s5) var(--s7); }
.hero__card { background: var(--card); border-radius: var(--r-big); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 48px); border-top: 6px solid var(--teal); }
@media (min-width: 1024px) {
  .hero { padding-block: var(--s6); }
  .hero__in { align-items: stretch; }
  .hero__card { padding: clamp(32px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
  .hero__media { align-self: center; }
  .hero--town .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
@media (min-width: 1320px) { .hero__card { padding-left: var(--s7); } }
.hero .hero__h1.hero__h1--long { font-size: clamp(30px, 1.5rem + 1.3vw, 42px); }
/* starter under 480px: the button drops below the field, so the placeholder is never clipped */
@media (max-width: 479.98px) {
  .starter__row { flex-wrap: wrap; border-radius: var(--r-card); padding: 6px; gap: 6px; }
  .starter__input { flex: 1 1 100%; min-width: 0; padding-inline: 14px; }
  .starter__btn { flex: 1 1 100%; justify-content: center; }
}
/* designed fallback panels while home-hero / home-easy are pending: a large centred drawing on a faint roofline
   pattern, never a small glyph in an empty box; shorter on phones */
.ph { background-color: var(--teal-tint); background-image: repeating-linear-gradient(135deg, rgba(17, 100, 92, .06) 0 2px, transparent 2px 22px); }
.hero__media .ph .ico { width: 46%; max-width: 280px; opacity: .55; }
.easy__media .ph { justify-items: start; padding-left: clamp(24px, 14vw, 220px); }
.easy__media .ph .ico { width: min(34%, 320px); max-width: none; opacity: .5; }
@media (max-width: 1023.98px) { .hero__media .ph { aspect-ratio: 16 / 7 !important; } }
@media (max-width: 899.98px) { .easy__media .ph { justify-items: center; padding-left: 0; } }
/* long-read intro heading sets in two or three lines */
.lr-intro__h { max-width: 16.8em; text-wrap: balance; }
/* side-module chapters: the module column centres on the answer, so a long answer never leaves a tall empty column */
.lrq--right .lrq__mod, .lrq--left .lrq__mod { align-self: center; }
/* areas index: masonry flow of direction groups (no ragged holes) */
.dirs__grid { display: block; columns: 4 260px; column-gap: var(--s4); }
.dirs__grid > .dir { break-inside: avoid; margin-bottom: var(--s4); display: block; }
/* guides/answers index: lead band and cluster card grids */
.grp__h--feat { margin-bottom: var(--s4); }
.feat--lead .feat__t { font-size: 1.3125rem; }
.feat--grp { margin-bottom: var(--s4); }
.grp { margin-top: var(--s6); }
/* contact: the form card hugs its content */
.contact__form, .contact__grid > :first-child { align-self: start; }
/* article page heads with no photo: header card matches the reading column and centres on it */
.phead:not(.phead--img):not([data-sonic-section="contact-head"]) .phead__card { max-width: calc(45em + 2 * clamp(24px, 4vw, 48px)); margin-inline: auto; width: 100%; font-size: var(--t-body); }

.plate__lab--near { font: 600 .75rem/1.1 var(--f-body); color: rgba(255, 255, 255, .78); transform: translate(8px, -50%); }
.plate__lab--near.plate__lab--l { transform: translate(calc(-100% - 8px), -50%); }

/* ------------------------------------------------------------------ Stage 4 extra loop (2026-10-29) */
@media (min-width: 900px) {
  .easy--card-right .easy__in { justify-content: flex-end; }
  .easy--card-left .easy__in { justify-content: flex-start; }
  .easy--card-over-mark > .easy__in { padding-bottom: 104px; }
}
.ticks--above { margin: 0 0 var(--s4); }
/* guides/answers index: the lead band is one large horizontal lead card plus two stacked compact cards */
@media (min-width: 900px) {
  .feat--lead { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto; }
  .feat--lead > li:first-child { grid-row: 1 / span 2; }
  .feat--lead > li:first-child .feat__img { aspect-ratio: 16 / 10; }
  .feat--lead > li:first-child .feat__t { font-size: 1.625rem; }
  .feat--lead > li:not(:first-child) .feat__a { flex-direction: row; }
  .feat--lead > li:not(:first-child) .feat__media { flex: 0 0 42%; }
  .feat--lead > li:not(:first-child) .feat__img { height: 100%; aspect-ratio: auto; min-height: 150px; }
  /* clusters of one or two pair up two-up; their cards turn horizontal so a row is never two-thirds empty */
  .grps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--s6); align-items: start; }
  .grps > .grp:not(.grp--small) { grid-column: 1 / -1; }
  .grp--small .feat--grp { grid-template-columns: minmax(0, 1fr); }
  .grp--small .feat__a { flex-direction: row; }
  .grp--small .feat__media { flex: 0 0 40%; }
  .grp--small .feat__img { height: 100%; aspect-ratio: auto; min-height: 140px; }
}

/* ------------------------------------------------------------------ Stage 4 judge fixes (2026-10-31): desktop only */
/* areas index explainer: left-aligned prose in a readable column */
@media (min-width: 900px) {
  [data-sonic-section="index-note"] .prose.center { text-align: left; max-width: 45em; }
  /* areas: map card and "Do we cover you?" card sit as a balanced pair */
  .areas__grid { align-items: stretch; }
  .areas__map { display: flex; flex-direction: column; }
  .areas__map .map { height: auto; flex: 1 1 auto; min-height: 320px; }
  .areas__card { display: flex; flex-direction: column; }
  .areas__card .label { margin-top: auto; padding-top: var(--s4); }
  /* contact: form and direct-contact cards equal height */
  .contact__grid { align-items: stretch; }
  .contact__form, .contact__grid > :first-child { align-self: stretch; }
}
@media (min-width: 1024px) {
  /* core page heads: the photo fills the card's height so the bottom edges line up */
  .phead--img .phead__in { align-items: stretch; }
  .phead--img .phead__media { position: relative; min-height: 320px; }
  .phead--img .phead__img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  /* contact head: compact, matched to a readable column instead of a full-width empty card */
  .phead--short[data-sonic-section="contact-head"] .phead__card { max-width: calc(45em + 2 * clamp(24px, 4vw, 48px)); margin-inline: auto; width: 100%; padding-block: var(--s5); }
  /* town intro card: compact */
  .lr--light .lr-intro__card { padding: var(--s5) clamp(32px, 4vw, 56px); gap: var(--s3) var(--s6); }
}

/* ------------------------------------------------------------------ Stage 6 extra design loop (2026-10-31) */
/* long read: an ordered list inside a chapter answer is a process, so it renders as numbered step cards
   (the homepage steps' teal disc, reused). Full A2 form only; town (light) lists keep plain markers. */
.lr:not(.lr--light) .lrq .prose ol { list-style: none; counter-reset: lrstep; padding: 0; margin: var(--s5) 0 var(--s6); display: grid; gap: var(--s3); position: relative; }
.lr:not(.lr--light) .lrq .prose ol > li { counter-increment: lrstep; position: relative; margin: 0; padding: var(--s4) var(--s4) var(--s4) 68px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); min-height: 64px; line-height: 1.55; }
.lr:not(.lr--light) .lrq .prose ol > li::marker { content: none; }
.lr:not(.lr--light) .lrq .prose ol > li::before { content: counter(lrstep); position: absolute; left: var(--s4); top: var(--s4); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--f-head); font-weight: 900; font-size: 1.05rem; line-height: 1; }
.lr:not(.lr--light) .lrq .prose ol > li > strong:first-child { display: block; font-family: var(--f-head); font-weight: 800; font-size: 1.0625rem; color: var(--ink); margin-bottom: 2px; }
@media (min-width: 900px) {
  .lr:not(.lr--light) .lrq .prose ol > li { padding: var(--s4) var(--s5) var(--s4) 76px; }
  .lr:not(.lr--light) .lrq .prose ol > li::before { left: var(--s5); }
}
/* areas explainer: left-aligned at every width (a centred wall of text at 390 was a judge fail) */
[data-sonic-section="index-note"] .prose.center { text-align: left; }
[data-sonic-section="index-note"] .prose h3 { margin-top: var(--s6); }
[data-sonic-section="index-note"] .prose h3:first-child { margin-top: 0; }
/* areas: direction cards are dealt into balanced columns server-side (templates/index.php). Below 1100px the
   column wrappers dissolve into the old card grid; from 1100px four columns stand and the last card in each
   column stretches so the bottom edges line up. */
.dirs__grid.dirs__grid--cols { display: grid; columns: auto; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--s4); align-items: start; }
.dirs__grid--cols > .dirs__col { display: contents; }
.dirs__grid--cols .dir { margin-bottom: 0; }
@media (min-width: 1100px) {
  .dirs__grid.dirs__grid--cols { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
  .dirs__grid--cols > .dirs__col { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
  .dirs__grid--cols > .dirs__col > .dir:last-child { flex: 1 1 auto; }
}
/* long read: the chapter question's text starts on the answer's left edge; only the Q disc (52px + 16px gap)
   hangs into the margin (judge: ragged left edge between heading and prose). Desktop only. */
@media (min-width: 960px) {
  .lrq--below .lrq__head, .lrq--band .lrq__head, .lrq--none .lrq__head { max-width: calc(var(--w-prose) + 136px); padding-right: 68px; }
}
@media (min-width: 1280px) {
  .lrq--right .lrq__head { margin-left: -68px; }
  .lrq--left .lrq__head { padding-left: calc((100% - var(--s7)) * 1 / 2.55 + var(--s7) - 68px); }
}

/* ------------------------------------------------------------------ Gate 2 Fidelity loop 1 (2026-10-31): homepage, desktop only */
@media (min-width: 1024px) {
  /* hero: the H1 sits in three-four lines, not five, and the photo fills the card's height as in master C */
  [data-sonic-section="02-hero"] .hero__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--s6); }
  [data-sonic-section="02-hero"] .hero__h1 { font-size: clamp(36px, 1.25rem + 1.6vw, 46px); line-height: 1.1; }
  [data-sonic-section="02-hero"] .hero__media { align-self: stretch; }
  [data-sonic-section="02-hero"] .hero__img { height: 100%; aspect-ratio: auto; min-height: 420px; }
  /* steps: a compact row, less empty ground around it */
  [data-sonic-section="05-steps-quote"] { padding-block: var(--s7); }
  [data-sonic-section="05-steps-quote"] .steps__list { max-width: 880px; gap: var(--s7) var(--s4); }
  [data-sonic-section="05-steps-quote"] .step { padding: 40px var(--s4) var(--s4); }
  [data-sonic-section="05-steps-quote"] .step__d { font-size: .9375rem; }
  [data-sonic-section="05-steps-quote"] .steps__cta { margin-top: var(--s5); }
  /* FAQ: the questions sit on master C's white rounded panel */
  [data-sonic-section="06-faq"] > .wrap { background: var(--card); border-radius: var(--r-big); box-shadow: var(--shadow); padding: var(--s7) var(--s7) var(--s6); max-width: 1080px; }
}
/* mobile bar (2026-10-31, Fidelity mobile note): "WhatsApp" ran into its pill border at 390; buttons size to their labels */
.mbar { gap: 6px; }
.mbar__btn { flex: 1 1 auto; padding-inline: 10px; white-space: nowrap; font-size: .9375rem; min-width: 0; }

/* ------------------------------------------------------------------ Layout fix (2026-11-01, operator laptop review) */
/* White gaps: two stacked stone bands each carried a full band of padding, so every seam showed ~190px of empty
   ground. A stone band that follows another stone block drops its top padding, so the seam is one band, not two
   (gap gate: build/theme-tools/gap-check.mjs). Colour changes (ground-2, the easy photo band, dark bands) keep both. */
:root { --band-y: clamp(44px, 6vw, 80px); }
:is(.band--ground, .quote, .lr) + :is(.band--ground, .quote) { padding-top: 0; }
:is(.band--ground, .quote) + .lr > .lr-intro:first-child { padding-top: 0; }
/* a section whose last child is a white card/panel still ends on ground; the seam above a quote band is enough */
.quote { padding-bottom: var(--band-y); }
/* spokes ("guides and answers"): five cards sit in one row at laptop widths, never four plus an orphan */
@media (min-width: 1024px) { .spokes__grid { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); } }

/* Footer: on the header's container (bookends), four even
   columns (brand, services, areas, company) and the legal links on the base line, so no column ends far above the rest. */
.site-footer { padding-block: var(--s8) var(--s5); }
.foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.foot__brand { grid-column: 1 / -1; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .foot__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: var(--s6) var(--s7); } .foot__brand { grid-column: auto; } }
.foot__note { max-width: 19.8em; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); text-align: left; }
.foot__legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.foot__legal a { display: inline-flex; align-items: center; min-height: 36px; font-size: .875rem; text-decoration: none; }
.on-dark.on-dark .foot__legal a:hover { text-decoration: underline; color: #fff; }
.foot__base-r { display: grid; gap: var(--s1); text-align: right; }
@media (max-width: 759.98px) { .foot__base { flex-direction: column; align-items: flex-start; } .foot__base-r { text-align: left; } }
/* quote band: the copy centres on the form card, so a tall form never leaves a teal void under the ticks */
@media (min-width: 900px) { .quote__copy { align-self: center; } }
/* footer, desktop: master C's compact link block (30px rows, still above the 24px target minimum); touch widths keep 36px */
@media (min-width: 1024px) {
  .site-footer { padding-block: var(--s7) var(--s4); }
  .foot__col ul { gap: 0; }
  .foot__col a:not(.lockup) { min-height: 30px; }
  .foot__h { margin-bottom: var(--s2); }
  .foot__tag { margin: var(--s3) 0 var(--s2); }
  .foot__base { margin-top: var(--s6); }
  .foot__legal a { min-height: 30px; }
}
