/* Glencross Scaffolding: the shared page sections (parts/sections.njk), loaded on every page.
   Each section looks the same on every page that uses it (user's rule, 13 Nov).
   Menu bar, footer, form and banner are in site.css; settings in tokens.css.
   Look approved 12 Nov 2026 (design/mockups/glencross-home/final.html). */

/* ===== Hero: still job photo in black and white, washed from near-black to orange (round 2 C) ===== */
.hero { position: relative; overflow: hidden; color: var(--color-on-dark); min-height: 680px; display: flex; align-items: flex-end; padding: var(--space-36) 0 var(--space-35); background: var(--color-dark); }
.hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: grayscale(1) contrast(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: var(--z-photo-wash); background: var(--wash-hero); pointer-events: none; }
.hero .wrap { position: relative; z-index: var(--z-over-photo); width: 100%; }
.eyebrow { margin: 0 0 var(--space-13); font-size: var(--font-size-4); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--color-brand-on-dark); }
/* The places above Home's heading: each is its own item with its dot drawn before it, and the row starts one dot's width
   to the left, out of sight. So a line that wraps starts with a place, never a dot, and no line ends with one (Brief 7).
   --dot-width (1.15em) is the width " · " took when the dots were typed. The dot is drawn only, so screen readers don't read it. */
.eyebrow { overflow: hidden; }
.eyebrow .places { --dot-width: 1.15em; display: flex; flex-wrap: wrap; margin-left: calc(-1 * var(--dot-width)); }
.eyebrow .places > span::before { content: "·"; content: "·" / ""; display: inline-block; width: var(--dot-width); text-align: center; letter-spacing: 0; }
.hero h1 { margin: 0 0 var(--space-13); font-size: var(--font-size-21); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; max-width: 12ch; }
.hero .lead { font-size: var(--font-size-12); font-weight: 700; max-width: 40ch; margin: 0 0 var(--space-10); }
.hero .intro { font-size: var(--font-size-9); max-width: 58ch; margin: 0 0 var(--space-19); opacity: .88; }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.accred { display: flex; flex-wrap: wrap; gap: var(--space-6); margin: var(--space-19) 0 var(--space-13); padding: 0; list-style: none; }
.accred li { min-width: 120px; padding: var(--space-8) var(--space-13); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); font-weight: 800; font-size: var(--font-size-7); text-align: center; }
.ticks { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-18); margin: 0; padding: 0; list-style: none; font-size: var(--font-size-7); font-weight: 600; }
.ticks li::before { content: "✔"; color: var(--color-brand-on-dark); margin-right: var(--space-5); }

/* ===== At a glance (round 6 B): one white strip across the bottom edge of the photo, no outline ===== */
.glance-strip { position: relative; z-index: var(--z-strip); margin-top: calc(-1 * var(--space-26)); }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.1fr 1.35fr; background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-strip); overflow: hidden; }
.strip li { min-width: 0; }
.strip li + li { border-left: 1px solid var(--color-line); }
.strip li, .strip a { display: grid; align-content: center; gap: var(--space-2); padding: var(--space-15) var(--space-18); min-height: 112px; }
.strip li:has(> a) { padding: 0; }
.strip .v { font-size: var(--font-size-15); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.strip .v i { font-style: normal; color: var(--color-brand); }
.strip .l { color: var(--color-muted); font-size: var(--font-size-7); line-height: 1.35; }
.strip .s-call a { background: var(--color-brand-deep); color: var(--color-on-dark); height: 100%; }
.strip .s-call .l { color: var(--color-on-dark); } /* full white: 92% white reads even less well on the orange */
.strip a:hover .v { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.strip a:focus-visible { outline: var(--focus-ring); outline-offset: -6px; border-radius: var(--radius-card); }
@media (max-width: 1100px) { .strip .v { font-size: var(--font-size-13); } .strip li, .strip a { padding: var(--space-13) var(--space-14); } }

/* ===== Commercial and Domestic (round 5 C): big rounded job photo, white card in front ===== */
.work-c { padding: var(--space-16) 0 0; }
.work-c + .work-c { padding: var(--space-14) 0 var(--space-29); }  /* the 72px is the white gap before Recent projects */
.band { position: relative; margin: 0 var(--space-16); border-radius: var(--radius-band); overflow: hidden; background: var(--color-dark); min-height: 760px; display: flex; align-items: center; padding: var(--space-28) 0; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--wash-band); transition: opacity .5s; }
.band.right::after { background: var(--wash-band-flipped); }
/* The photo turns to colour on mouse-over and when a keyboard reaches a link in the card */
.band:hover img, .band:focus-within img { filter: none; }
.band:hover::after, .band:focus-within::after { opacity: .35; }
.band .wrap { position: relative; z-index: var(--z-photo-wash); width: 100%; display: flex; }
.band.right .wrap { justify-content: flex-end; }
.band-commercial img { object-position: center 40%; }
.band-domestic img { object-position: center 62%; }
.card-c { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-24) var(--space-25) var(--space-23); max-width: 640px; min-width: 0; box-shadow: var(--shadow-card-big); }
.card-c h2 { font-size: var(--font-size-18); margin-bottom: var(--space-13); }
.card-c p { margin: 0 0 var(--space-12); font-size: var(--font-size-8); }
.card-c .sub { font-weight: 700; margin-bottom: var(--space-6); }
.card-c .list { font-size: var(--font-size-7); margin-bottom: var(--space-14); }
/* Phones and touch screens: nothing to move a pointer over, so photos show in full colour */
@media (hover: none) { .band img { filter: none; } .band::after { opacity: .35; } }

/* ===== Recent projects (round 9 B): tall photos, each with a white card over its bottom ===== */
.projects { background: var(--color-section-pale); }
.a9 { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title more" "body body"; gap: 0 var(--space-14); align-items: end; }
.a9-title { grid-area: title; margin-bottom: var(--space-23); }
.a9-title h2 { margin: 0; }
.a9-more { grid-area: more; margin-bottom: var(--space-23); }
.a9-body { grid-area: body; }
.a9 img { display: block; width: 100%; height: 100%; object-fit: cover; }
.a9 .tag, .a9b.group .tag { color: var(--color-brand-deep); }
.a9b { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-18); }
.a9b article { display: flex; flex-direction: column; min-width: 0; }
.a9b .ph { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-dark); }
.a9b .txt { position: relative; flex: 1; margin: calc(-1 * var(--space-30)) var(--space-10) 0; padding: var(--space-14) var(--space-15) var(--space-15); background: var(--color-surface); border-radius: var(--radius-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-small); }
.a9b h3, .a9b h4 { margin: var(--space-4) 0 var(--space-5); font-size: var(--font-size-11); line-height: 1.3; }
.a9b p { margin: 0; color: var(--color-muted); font-size: var(--font-size-7); }
@media (max-width: 1100px) { .a9b { gap: var(--space-14); } .a9b .txt { margin: calc(-1 * var(--space-28)) var(--space-6) 0; padding: var(--space-13); } .a9b h3, .a9b h4 { font-size: var(--font-size-10); } }

/* ===== Safety, inspections and accreditations (round 7 C) ===== */
.s7c { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-26); align-items: center; }
.s7c h2 { margin-bottom: var(--space-14); }
.s7c p { margin: 0 0 var(--space-13); }
.s7c .s7c-sub { font-weight: 700; margin-bottom: var(--space-8); }
.s7-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); font-weight: 600; font-size: var(--font-size-9); line-height: 1.4; }
.s7-ticks li { position: relative; padding-left: var(--space-21); }
.s7-ticks li::before { content: "✔"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: var(--radius-round); background: var(--color-brand); color: var(--color-on-dark); font-size: var(--font-size-3); display: grid; place-items: center; margin-top: var(--space-1); }
.s7c-card { border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-line); border-top: 4px solid var(--color-brand); padding: var(--space-22); box-shadow: var(--shadow-soft); min-width: 0; }
.s7c-card > p { margin: 0 0 var(--space-17); }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; align-items: center; gap: var(--space-15) var(--space-20); --badge: 112px; }
.badges .b-logo img { width: var(--badge); height: var(--badge); object-fit: contain; }
/* PLACEHOLDER: the dashed CHAS badge stays until Glencross send the real CHAS logo. Launch check. */
.badges .b-placeholder span { width: var(--badge); height: var(--badge); border-radius: var(--radius-round); border: 2px dashed var(--color-placeholder-edge); background: var(--color-tile); color: var(--color-muted); display: grid; place-items: center; align-content: center; gap: var(--space-2); line-height: 1; font-weight: 800; font-size: calc(var(--badge) * .24); letter-spacing: .04em; }
.badges .b-placeholder small { display: block; font-size: max(var(--font-size-1), calc(var(--badge) * .115)); font-weight: 700; letter-spacing: 0; text-transform: none; }
.badges .b-words { grid-column: 1 / -1; font-weight: 800; font-size: var(--font-size-8); line-height: 1.25; padding-left: var(--space-12); border-left: 3px solid var(--color-brand); }
.s-go { display: inline-block; min-height: 44px; padding: var(--space-6) 0; margin: var(--space-13) 0 calc(-1 * var(--space-6)); color: var(--color-brand-deep); font-weight: 700; }  /* 44px tap area; the -10px keeps the card's approved height */
.s-go::after { content: "→"; margin-left: .4em; }
@media (max-width: 1100px) { .badges { --badge: 96px; gap: var(--space-13) var(--space-15); } }

/* ===== How it works (round 10 D): heading beside one numbered list, pale background ===== */
.steps-section { background: var(--color-section-pale); }
.a10d { display: grid; grid-template-columns: 1fr 1.7fr; gap: var(--space-26); align-items: start; }
.a10d h2 { margin: 0; position: sticky; top: 110px; }
.a10d ol { list-style: none; margin: 0; padding: 0; }
.a10d li { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-14); align-items: center; padding: var(--space-15) 0; border-top: 1px solid var(--color-line-strong); }
.a10d li:first-child { padding-top: 0; border-top: 0; }
.a10d .n { color: var(--color-brand); font-weight: 800; font-size: var(--font-size-20); line-height: 1; letter-spacing: -.02em; }
.a10d li b { display: block; font-size: var(--font-size-11); line-height: 1.3; margin-bottom: var(--space-3); }
.a10d li div > span { display: block; color: var(--color-muted); font-size: var(--font-size-8); }

/* ===== Where we work (a map picture with pins, or round 8 C's town dots in the frame for a picture still to come) ===== */
.a8c { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-26); align-items: center; }
.a8c h2 { margin-bottom: var(--space-15); }
.a8c p { margin: 0 0 var(--space-13); max-width: 52ch; }
.a8-tap { display: inline-block; padding: var(--space-7) 0; margin: calc(-1 * var(--space-7)) 0; }  /* 44px tap area, line spacing unchanged */
.call-link { color: var(--color-brand-deep); font-weight: 800; }
.a8c-map { padding: var(--space-16) 0 var(--space-13); }
.a8c-map > p { font-weight: 700; margin: 0 0 var(--space-4); }
/* PLACEHOLDER (Coventry): the dashed frame and "map to come" stay until the map picture arrives. Launch check. */
.map-frame { position: relative; border: 2px dashed var(--color-placeholder-edge); border-radius: var(--radius-lg); margin-top: var(--space-6); padding: var(--space-18) var(--space-10) var(--space-19); }
.map-note { position: absolute; left: 14px; bottom: 9px; font-size: var(--font-size-3); font-weight: 700; line-height: 1; color: var(--color-muted); }
/* A map picture in its frame, and the pin drawn over it: Contact's office map and Home's area map.
   The picture fills its frame whatever the frame's shape, cropped evenly round its centre. */
.map-pic { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 2px solid var(--color-line-strong); background: var(--color-tile); }
.map-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* The pin's point is on the centre of what holds it: the frame, or a place's own point on the map. The margins pull the
   pin left by half its size, and up by half its size plus half its diagonal, which is how far its turned corner reaches
   below its middle (1.4142 is the square root of 2; older browsers lack sqrt()).
   High-contrast mode leaves the picture alone, so the pin keeps its own colours there too: without forced-color-adjust it
   turns plain white, like the streets (kb-mwvycp0df72ko). Paper is the same: browsers leave backgrounds out unless
   print-color-adjust keeps them (kb-mww2ys0uf72cz). */
.map-pin { position: absolute; left: 50%; top: 50%; --size: var(--pin-size, 22px); width: var(--size); height: var(--size); margin: calc(var(--size) * -.5 * (1 + 1.4142)) 0 0 calc(var(--size) * -.5); border-radius: var(--radius-round) var(--radius-round) var(--radius-round) 0; background: var(--color-brand); box-shadow: 0 0 0 3px var(--color-page); transform: rotate(-45deg); forced-color-adjust: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* The credit in a map picture's bottom right corner (Brief 8d): OpenStreetMap's data needs one. The link is big enough to tap;
   the white patch is only as big as its words. They sit 3px up in it, so no letter touches the focus ring (user, q98). The ring
   runs inside the link, whose corner follows the frame's, so the frame can't cut it off. Like the pin, the credit keeps its
   colours in high contrast and on paper */
.map-credit { --credit-text: var(--font-size-3); position: absolute; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: flex-end; min-width: 44px; min-height: 44px; border-radius: var(--radius-focus); border-bottom-right-radius: inherit; color: var(--color-text); font-size: var(--credit-text); line-height: 1.5; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; forced-color-adjust: none; }
.map-credit span { padding: 0 var(--space-8) var(--space-4) var(--space-4); line-height: 1; border-radius: var(--radius-focus) 0 0; background: var(--color-page); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* A map's credit never grows with bigger text (user, q104, q105; kb-mwx8z9k7f72ds): map-credit.js shrinks it back by --credit-fit, so
   its ring, inside its edge, is drawn that much thicker to stay the normal width. At normal settings it's 1 */
.map-credit:focus-visible { outline-width: calc(var(--focus-ring-width) / var(--credit-fit, 1)); outline-offset: calc(-1 * var(--focus-ring-width) / var(--credit-fit, 1)); }
.a8c-plot { position: relative; list-style: none; margin: 0; padding: 0; }
.a8c-plot.town { aspect-ratio: 1.25; }  /* a town page's own map: one town, so a squarer frame */
/* --map-text: the names' size, which js/map-names.js also reads to tell bigger text from normal */
.a8c-plot li { --map-text: var(--font-size-6); position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; font-size: var(--map-text); font-weight: 700; line-height: 1.15; white-space: nowrap; }
.a8c-plot li::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: var(--radius-round); background: var(--color-dark); box-shadow: 0 0 0 3px var(--color-page); }
.a8c-plot li.base::before { background: var(--color-brand); width: 14px; height: 14px; left: -7px; top: -7px; }
.a8c-plot .lbl { position: absolute; display: block; }
.a8c-plot li.e .lbl { left: 11px; top: 0; transform: translateY(-50%); }
.a8c-plot li.w .lbl { right: 11px; top: 0; transform: translateY(-50%); }
.a8c-plot li.n .lbl { left: 0; bottom: 9px; transform: translateX(-50%); }
.a8c-plot li.s .lbl { left: 0; top: 10px; transform: translateX(-50%); }
.a8c-plot li.s3 .lbl { left: 0; top: 10px; transform: translateX(-25%); }
.a8c-plot li.base .lbl { font-weight: 800; }
.a8c-plot a.lbl { text-decoration: none; padding: var(--space-12) var(--space-5); margin: calc(-1 * var(--space-12)) calc(-1 * var(--space-5)); }
/* the link's bigger tap area must not move its words: centred labels drop the margin on the side they're centred along */
.a8c-plot li.e a.lbl, .a8c-plot li.w a.lbl { margin-top: 0; margin-bottom: 0; }
.a8c-plot li.n a.lbl, .a8c-plot li.s a.lbl, .a8c-plot li.s3 a.lbl { margin-left: 0; margin-right: 0; }
.a8c-plot a.lbl:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1100px) { .a8c-plot li { --map-text: var(--font-size-4); } }

/* Home's area map (Brief 8b and 8c, user q83 and q84). The plot is a square, and the picture runs past it: the frame crops it.
   Names stay page text; a thin white edge keeps them readable over roads and the orange line. */
.area-map { --pin-size: 20px; margin-top: var(--space-6); aspect-ratio: 1; }
.area-plot { position: absolute; inset: 0; }
.area-map img { inset: auto; left: var(--left); top: var(--top); width: var(--width); height: var(--height); max-width: none; }
.a8c-plot.pins { position: absolute; inset: 0; }
.pins li::before { content: none; }
.pins .map-pin { background: var(--color-dark); box-shadow: 0 0 0 2px var(--color-page); }
.pins .base { z-index: 1; }
.pins .base .map-pin { background: var(--color-brand); box-shadow: 0 0 0 3px var(--color-page); }
.pins .lbl { forced-color-adjust: none; color: var(--color-text); text-shadow: 0 0 2px var(--color-page), 1px 1px 0 var(--color-page), -1px -1px 0 var(--color-page), 1px -1px 0 var(--color-page), -1px 1px 0 var(--color-page), 2px 0 0 var(--color-page), -2px 0 0 var(--color-page), 0 2px 0 var(--color-page), 0 -2px 0 var(--color-page); }
.a8c-plot.pins li.e .lbl { left: calc(var(--pin-size) * .5 + 5px); top: calc(var(--pin-size) * -.7071); }
.a8c-plot.pins li.w .lbl { right: calc(var(--pin-size) * .5 + 5px); top: calc(var(--pin-size) * -.7071); }
.a8c-plot.pins li.n .lbl { bottom: calc(var(--pin-size) * 1.2071 + 4px); }
.a8c-plot.pins li.n0 .lbl { left: 0; bottom: calc(var(--pin-size) * 1.2071 + 4px); }
.a8c-plot.pins li.n3 .lbl { left: 0; bottom: calc(var(--pin-size) * 1.2071 + 4px); transform: translateX(-25%); }
.a8c-plot.pins li.s .lbl { top: 4px; }
.a8c-plot.pins li.s7 .lbl { left: 0; top: 4px; transform: translateX(-75%); }
.a8c-plot.pins li.base .lbl { white-space: nowrap; width: auto; }
/* Coventry's name is a link but looks like the others (user, q89). It is above the other names and pins, so none covers its
   tap area on small phones (kb-mww2ysc9f72ex) */
.a8c-plot.pins a.lbl { z-index: 1; }
.a8c-map > .town-list-title { margin: var(--space-6) 0 var(--space-4); }
/* As many columns as fit the longest name on one line. On phones two narrower ones where they fit; a name that wraps there
   has its second line set in, so it reads as one place (kb-mww2ys7hf72yl, kb-mww2yso1f723u) */
.town-list { list-style: none; margin: 0; padding: 0; columns: 3 10.75em; column-gap: var(--space-12); }
.town-list li { break-inside: avoid; padding: var(--space-2) 0 var(--space-2) 1em; text-indent: -1em; }
/* One column: a square would be too tall, so the frame is 1.25 wide and the square plot is the middle 80% of it */
@media (max-width: 860px) { .area-map { --pin-size: 18px; aspect-ratio: 1.25; } .area-plot { left: 10%; right: 10%; } }
@media (max-width: 539px) { .area-map { --pin-size: 15px; aspect-ratio: 1; } .area-plot { left: 0; right: 0; } .town-list { columns: 2 9em; } }
/* The smallest phones: names closer to their pins and tighter, so Birmingham's clears the line along Wales and the others their neighbours' pins */
@media (max-width: 389px) {
  .area-map { --pin-size: 11px; }
  .pins .base .map-pin { box-shadow: 0 0 0 2px var(--color-page); }
  .a8c-plot.pins .lbl { letter-spacing: -.03em; }
  .a8c-plot.pins li:is(.e, .w) .lbl { top: calc(var(--pin-size) * -.7071 + .75px); }
  .a8c-plot.pins li.e .lbl { left: calc(var(--pin-size) * .5 + 3px); }
  .a8c-plot.pins li.w .lbl { right: calc(var(--pin-size) * .5 + 3px); }
}

/* ===== Questions (round 4 "1y", 13 Nov): an open-and-close list beside a dark call panel with orange in it ===== */
.faq { background: var(--color-section-pale); }
.qa-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-23); align-items: start; }

/* The list: the first answer is open to start with. An open question gets an orange edge and its + turns to a dark − */
.qa-list { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.qa-list details { border-top: 1px solid var(--color-line); }
.qa-list details:first-child { border-top: 0; }
.qa-list details[open] { box-shadow: inset 4px 0 0 var(--color-brand); }
.qa-list summary { display: grid; grid-template-columns: 1fr 36px; gap: var(--space-14); align-items: center; min-height: 72px; padding: var(--space-12) var(--space-18); cursor: pointer; list-style: none; font-weight: 700; font-size: var(--font-size-11); line-height: 1.3; }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::after { content: "+"; width: 36px; height: 36px; border-radius: var(--radius-round); background: var(--color-brand); color: var(--color-on-dark); font-size: var(--font-size-14); font-weight: 700; line-height: 1; display: grid; place-items: center; }
.qa-list details[open] summary::after { content: "−"; background: var(--color-dark); }
.qa-list summary:hover { color: var(--color-brand-deep); }
.qa-list summary:focus-visible { outline: var(--focus-ring); outline-offset: calc(-1 * var(--focus-ring-width)); }
.qa-list details > p { margin: calc(-1 * var(--space-3)) 0 0; padding: 0 var(--space-30) var(--space-16) var(--space-18); max-width: none; color: var(--color-muted); font-size: var(--font-size-8); }
.qa-list p a { color: var(--color-brand-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* The panel: dark, with the photo's foot washed orange, an orange edge under the photo, an orange tag,
   a white phone in an orange circle and the number in orange. It stays in view while the questions scroll past */
.qa-panel { position: sticky; top: 150px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-panel); background: var(--color-dark); color: var(--color-on-dark); }
.qa-panel .ph { position: relative; aspect-ratio: 4 / 3; background: var(--color-dark); }
.qa-panel .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--color-dark) 0%, transparent) 45%, color-mix(in srgb, var(--color-brand) 55%, transparent) 100%); }
.qa-panel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.qa-panel .in { padding: var(--space-16) var(--space-18) var(--space-18); border-top: 6px solid var(--color-brand); }
.qa-panel .k, .qa-panel .h, .qa-panel .s { margin: 0; }
.qa-panel .k { display: inline-block; padding: var(--space-2) var(--space-6); border-radius: var(--radius-tag); background: var(--color-brand-deep); color: var(--color-on-dark); font-size: var(--font-size-4); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.qa-panel .h { margin: var(--space-3) 0 var(--space-6); font-size: var(--font-size-14); line-height: 1.2; font-weight: 800; }
.qa-panel .tel { display: inline-flex; align-items: center; gap: var(--space-6); min-height: 44px; color: var(--color-brand-on-dark); font-size: var(--font-size-16); font-weight: 800; letter-spacing: -.01em; }
.qa-panel .tel::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: var(--radius-round); background: var(--color-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.qa-panel .s { margin: var(--space-2) 0 var(--space-14); font-size: var(--font-size-7); color: var(--color-on-dark-soft); }
.qa-panel .btn { display: block; }

@media (max-width: 1100px) { .qa-side { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-18); } }
@media (max-width: 860px) {
  .qa-side { grid-template-columns: 1fr; }
  .qa-list summary { padding: var(--space-10) var(--space-13); font-size: var(--font-size-9); gap: var(--space-10); grid-template-columns: 1fr 32px; }
  .qa-list summary::after { width: 32px; height: 32px; font-size: var(--font-size-13); }
  .qa-list details > p { padding: 0 var(--space-13) var(--space-14); }
  /* Tablets: the panel comes after the questions, its photo and words side by side, the orange edge between them */
  .qa-panel { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qa-panel .ph { aspect-ratio: auto; min-height: 260px; border-right: 6px solid var(--color-brand); }
  .qa-panel .in { align-self: center; border-top: 0; }
}
@media (max-width: 539px) {  /* phones: photo above words again */
  .qa-panel { display: block; }
  .qa-panel .ph { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; }
  .qa-panel .in { border-top: 6px solid var(--color-brand); }
}

/* ===== Short photo top (service, projects, about and contact pages; approved 13–17 Nov) =====
   Home's photo and wash, shorter, with a trail of links back to Home above the heading. */
.phero { position: relative; overflow: hidden; color: var(--color-on-dark); background: var(--color-dark); min-height: 560px; display: flex; align-items: flex-end; padding: var(--space-36) 0 var(--space-28); }
.phero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.phero::after { content: ""; position: absolute; inset: 0; z-index: var(--z-photo-wash); background: var(--wash-hero); pointer-events: none; }
.phero > .wrap { position: relative; z-index: var(--z-over-photo); width: 100%; }
.phero h1 { margin: 0 0 var(--space-13); font-size: var(--font-size-page-title); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; max-width: 15ch; }
.phero .lead { font-size: var(--font-size-12); font-weight: 700; max-width: 44ch; margin: 0 0 var(--space-10); }
.phero .intro { font-size: var(--font-size-9); max-width: 60ch; margin: 0 0 var(--space-19); opacity: .88; }
.phero .actions { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-bottom: var(--space-17); }
.crumbs { margin: 0 0 var(--space-15); font-size: var(--font-size-6); font-weight: 600; color: var(--color-on-dark-dim); }
.crumbs a { display: inline-block; padding: var(--space-8) var(--space-2); margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-2)); min-width: 44px; color: var(--color-on-dark); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--color-on-dark) 45%, transparent); text-underline-offset: 4px; }  /* 44px tap area, spacing unchanged */
.crumbs .sep { margin: 0 var(--space-6); color: var(--color-brand-on-dark); }
.hero .crumbs { margin-bottom: var(--space-15); }

/* A label on a photo that isn't the real thing yet, and a "To check with Glencross" note.
   Both carry a stand-in mark in the page, so a live build stops on them (lib/launch-check.js). */
.standin { position: absolute; right: 12px; bottom: 12px; z-index: var(--z-strip); padding: var(--space-2) var(--space-5); border-radius: var(--radius-tag); background: var(--color-on-photo-label); color: var(--color-check); font-weight: 800; font-size: var(--font-size-3); letter-spacing: .04em; }
.hero > .standin, .phero > .standin { top: 92px; bottom: auto; }
.a8c-map .standin { position: static; margin-right: var(--space-4); background: var(--color-check-tag); }
.chk { margin: var(--space-8) 0 0; font-size: var(--font-size-4); color: var(--color-check); }
.chk-tag { display: inline-block; margin-right: var(--space-4); padding: var(--space-2) var(--space-5); border-radius: var(--radius-tag); background: var(--color-check-tag); font-weight: 800; font-size: var(--font-size-2); letter-spacing: .04em; color: var(--color-check); }

/* ===== A section's heading with words under it (the other pages' own sections) ===== */
.block-words h2 { margin-bottom: var(--space-14); }
.block-words > .wrap > p { margin: 0 0 var(--space-12); max-width: 64ch; }
.block-words .sub { font-weight: 700; margin-bottom: var(--space-8); }

/* ===== Photo tiles ("What we put up", "What we do in <town>"): a 4:3 photo, an orange line, the name ===== */
.tiles { list-style: none; margin: var(--space-3) 0 var(--space-16); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); }
.tiles li { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-tile); }
.tiles .ph { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-dark); }
.tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tiles .t { display: flex; flex-direction: column; flex: 1; padding: var(--space-10) var(--space-12) var(--space-12); font-weight: 700; font-size: var(--font-size-7); line-height: 1.35; border-top: 3px solid var(--color-brand); }
.tiles .d { display: block; margin: var(--space-4) 0 auto; font-weight: 400; color: var(--color-muted); }
.tiles .go { margin-top: auto; align-self: flex-start; padding: var(--space-8) 0; margin-bottom: calc(-1 * var(--space-8)); }
.tiles .d + .go { margin-top: var(--space-6); }
.tiles .ph .standin { top: 12px; right: 12px; bottom: auto; }
/* PLACEHOLDER: a tile with no real photo yet. Launch check. */
/* The tile keeps the photos' 4:3 box, so its orange line sits level with theirs (decision 13 Nov); the dashed frame is
   drawn 10px inside it. A margin on the box itself would make it narrower, and so shorter, and lift the line. */
.tiles .ph.need { display: grid; place-items: center; background: none; }
.tiles .ph.need::before { content: ""; position: absolute; inset: var(--space-6) var(--space-6) 0; border: 2px dashed var(--color-placeholder-edge); border-radius: var(--radius-slot); background: var(--color-tile); }
.tiles .ph.need span { position: relative; font-size: var(--font-size-4); font-weight: 800; color: var(--color-muted); }
/* Two a row, bigger photos (town pages, change 17 Nov) */
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-14); margin-bottom: 0; }
.tiles.two:not(:last-child) { margin-bottom: var(--space-16); }  /* keep the usual gap when a line follows the tiles (Industrial) */

/* ===== Steps beside a photo (service pages' "How we plan"): Home's numbered list, with a job photo ===== */
.steps-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--space-gap-wide); align-items: stretch; margin-top: var(--space-5); }
.steps-photo .ph { position: relative; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-dark); border: 1px solid var(--color-line); box-shadow: var(--shadow-tile); }
.steps-photo .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a10d.solo { display: block; }

/* ===== Project cards two a row (service pages' "Recent jobs") ===== */
.a9b.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a9b.two .ph { aspect-ratio: 4 / 3; }

/* ===== Project cards inside another section (About's "Some of our work") ===== */
.a9.inside { margin-top: var(--space-26); }
.a9-h3 { margin: 0; font-size: var(--font-size-15); }

/* ===== Project groups (projects page): Home's project cards in bands, one band per kind of job ===== */
.group-h { display: flex; align-items: baseline; gap: var(--space-12); flex-wrap: wrap; margin-bottom: var(--space-23); }
.group-h h2 { margin: 0; }
.group-count { color: var(--color-muted); font-weight: 700; }
.a9b.group { row-gap: var(--space-23); }
.a9b.group img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phero.short { min-height: 420px; }  /* a top with only a heading and a line (projects, about) */

/* ===== Project photo pop-up (Brief 3; UI spec "UI: Glencross project photo pop-up", final-project-popup.html) =====
   js/project-photos.js adds all of this, so with scripts off a card is exactly as above.
   Cards: a dark chip with a camera and the photo count. Pointed at, the photo darkens and grows a little,
   the chip turns orange and a round "see bigger" mark shows. Phones (no pointing) show the chip only. */
.pp-card { position: relative; }
.pp-card .ph { position: relative; }
.pp-card .ph img { transition: transform var(--photo-slide), filter var(--photo-slide); }
.pp-chip { position: absolute; top: var(--space-10); right: var(--space-10); display: inline-flex; align-items: center; gap: var(--space-4); height: 34px; padding: 0 var(--space-8); border-radius: var(--radius-pill); background: var(--color-photo-chip); color: var(--color-on-dark); font-weight: 800; font-size: var(--font-size-6); transition: background-color var(--card-point-fade); }
.pp-chip svg { width: 18px; height: 18px; }
.pp-zoom { position: absolute; left: 50%; top: 36%; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-round); background: var(--color-on-photo-card); color: var(--color-dark); opacity: 0; scale: .85; transition: opacity var(--card-point-fade), scale var(--card-point-fade); }
.pp-zoom svg { width: 26px; height: 26px; }
/* The card's button covers the whole card, so a click anywhere on it opens the photos */
.pp-open { position: absolute; inset: 0; z-index: var(--z-over-photo); width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); background: none; cursor: pointer; }
.pp-open:focus-visible { outline-offset: var(--space-3); }
@media (hover: hover) {
  .pp-card:hover .ph img { transform: scale(1.04); filter: brightness(.72); }
  .pp-card:hover .pp-chip { background: var(--color-brand); }
  .pp-card:hover .pp-zoom { opacity: 1; scale: 1; }
}

/* The pop-up: solid near-black over the whole screen (see-through let the page show as clutter, round 2).
   Title and place top left, close top right; the photo in a fixed box in the middle, the ones before and
   after dimmed and cut off by the screen's edges; then "Photo 2 of 3" and the row of small photos. */
html.pp-is-open { overflow: hidden; }
.pp { --pp-w: 62cqw; --pp-h: calc(100dvh - 300px); --pp-gap: var(--space-20); --pp-peek: .72;
  /* Widths are shares of the pop-up's own width (cqw), not the window's (vw): with a scrollbar that always shows,
     the window counts the scrollbar's room and the pop-up doesn't, so 100vw would cut a one-photo job off */
  container-type: inline-size;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: var(--color-dark-deep); color: var(--color-on-dark); font-family: var(--font); }
.pp[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
.pp::backdrop { background: var(--color-dark-deep); }
/* Every part names its column: auto-placed, a part would be pushed beside the buttons that share its row */
.pp-head, .pp-stage, .pp-count, .pp-thumbs { grid-column: 1 / -1; }
.pp button { font: inherit; color: inherit; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.pp button svg { width: 24px; height: 24px; }
.pp :focus-visible { outline: var(--focus-ring-on-dark); outline-offset: var(--space-2); }
.pp-head { grid-row: 1; padding: var(--space-17) var(--space-34) 0 var(--space-23); }
.pp-title { margin: 0; max-width: none; font-size: var(--font-size-12); line-height: 1.25; font-weight: 700; letter-spacing: 0; }
.pp-place { margin: var(--space-2) 0 0; color: var(--color-on-dark-muted); font-size: var(--font-size-7); }
.pp-close { position: absolute; top: var(--space-15); right: var(--space-18); width: 52px; height: 52px; border-radius: var(--radius-round); border: 1.5px solid var(--line-on-dark-strong); background: transparent; }
/* The middle: a box (62% of the pop-up's width by the height less 300px) the photo is fitted whole inside. All the photos
   sit in one sliding row; the ones either side are pulled in to hug the current photo, whatever its shape (user, q28). */
.pp-stage { grid-row: 2; position: relative; margin-top: var(--space-12); overflow: hidden; touch-action: pan-y pinch-zoom; }
.pp-track { --pp-hug: calc((var(--pp-w) - min(var(--pp-w), var(--pp-h) * var(--r-current, 1))) / 2);
  position: absolute; left: 50%; top: 50%; display: flex; gap: var(--pp-gap);
  translate: calc(var(--pp-w) * -.5 - var(--pp-i, 0) * (var(--pp-w) + var(--pp-gap)) + var(--pp-drag, 0px)) -50%; transition: translate var(--photo-slide); }
.pp-slide { flex: none; display: flex; align-items: center; justify-content: center; width: var(--pp-w); height: var(--pp-h); opacity: 0; pointer-events: none; transition: opacity var(--photo-slide), scale var(--photo-slide), translate var(--photo-slide); }
.pp-slide picture { display: contents; }
/* --r is the photo's width / height, set by the script from the photo's own size */
.pp-slide img { display: block; width: min(var(--pp-w), var(--pp-h) * var(--r, 1)); height: auto; aspect-ratio: var(--r, 1); border-radius: var(--radius-md); background: var(--color-dark-soft) center / 100% 100% no-repeat; transition: translate var(--photo-slide); }
.pp-slide.is-current { opacity: 1; pointer-events: auto; }
/* The photo before and after: dimmed, smaller, and pulled in to sit one gap from the current photo's edge.
   --pp-hug is the space between the current photo and its box; translate isn't shrunk by the scale. */
.pp-slide:is(.is-prev, .is-next) { opacity: .3; pointer-events: auto; scale: var(--pp-peek); cursor: pointer; }
.pp-slide.is-prev { transform-origin: right center; translate: var(--pp-hug) 0; }
.pp-slide.is-next { transform-origin: left center; translate: calc(-1 * var(--pp-hug)) 0; }
.pp-slide.is-prev img { translate: calc((var(--pp-w) - min(var(--pp-w), var(--pp-h) * var(--r, 1))) / 2) 0; }
.pp-slide.is-next img { translate: calc((min(var(--pp-w), var(--pp-h) * var(--r, 1)) - var(--pp-w)) / 2) 0; }
.pp.is-dragging :is(.pp-track, .pp-slide, .pp-slide img) { transition: none; }
/* Back and forward: round buttons at the screen's sides, level with the middle of the photo */
.pp-prev, .pp-next { grid-row: 2; grid-column: 1; align-self: center; z-index: var(--z-over-photo); width: 60px; height: 60px; margin-top: var(--space-12); border-radius: var(--radius-round); border: 0; background: var(--color-dark-soft); }
.pp-prev { justify-self: start; margin-left: var(--space-20); }
.pp-next { justify-self: end; margin-right: var(--space-20); background: var(--color-brand); }
/* At the first and last photo that side's button goes (q25), keeping its place so the phone row doesn't shift */
.pp :is(.pp-prev, .pp-next)[hidden] { visibility: hidden; }
.pp-count { grid-row: 3; justify-self: center; margin: var(--space-12) 0 0; font-size: var(--font-size-6); font-weight: 700; color: var(--color-on-dark-soft); }
/* The small photos: centred; a row too long for the screen scrolls sideways and fades at its ends (.many, set by the script when it overflows) */
.pp-thumbs { grid-row: 4; justify-self: center; position: relative; display: flex; justify-content: safe center; gap: var(--space-5); max-width: min(100%, 900px); margin: var(--space-6) 0 var(--space-15); padding: var(--space-4); overflow-x: auto; scrollbar-width: none; }
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumbs.many { -webkit-mask-image: linear-gradient(90deg, transparent, var(--black) 48px, var(--black) calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, var(--black) 48px, var(--black) calc(100% - 48px), transparent); }
.pp-thumbs button { flex: none; width: 72px; height: 54px; border-radius: var(--radius-xs); overflow: hidden; border: 0; background: var(--color-dark-soft); }
.pp-thumbs picture { display: contents; }
.pp-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.pp-thumbs [aria-current] { outline: 3px solid var(--color-brand); outline-offset: var(--space-2); }
.pp-thumbs [aria-current] img { opacity: 1; }
.pp-thumbs button:focus-visible { outline: var(--focus-ring-on-dark); }
/* One photo: no photos either side, no small photos, no buttons, no count; the photo gets the room */
.pp.one { --pp-w: 84cqw; --pp-h: calc(100dvh - 150px); }
.pp.one[open] { grid-template-rows: auto minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) {
  .pp-track, .pp-slide, .pp-slide img, .pp-card .ph img, .pp-chip, .pp-zoom { transition: none; }
}
@media (max-width: 539px) {
  .pp { --pp-w: 74cqw; --pp-h: calc(100dvh - 290px); --pp-gap: var(--space-6); --pp-peek: .6; }
  .pp[open] { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .pp-head, .pp-stage, .pp-thumbs { grid-column: 1 / -1; }
  .pp-head { padding: var(--space-12) var(--space-29) 0 var(--space-13); }
  .pp-title { font-size: var(--font-size-9); }
  .pp-place { font-size: var(--font-size-6); }
  .pp-close { top: var(--space-6); right: var(--space-8); width: 48px; height: 48px; }
  .pp-stage { margin-top: var(--space-8); }
  .pp-slide img { border-radius: var(--radius-sm); }
  /* The small photos run edge to edge under the thumb; back, the count and forward sit in a row below them */
  .pp-thumbs { grid-row: 3; justify-self: stretch; max-width: 100%; margin: var(--space-8) 0 0; padding: var(--space-4) var(--space-12); gap: var(--space-4); }
  .pp-thumbs.many { -webkit-mask-image: linear-gradient(90deg, transparent, var(--black) 24px, var(--black) calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, var(--black) 24px, var(--black) calc(100% - 24px), transparent); }
  .pp-thumbs button { width: 56px; height: 44px; }
  .pp-prev, .pp-next, .pp-count { grid-row: 4; align-self: center; margin: var(--space-8) 0 var(--space-17); }
  .pp-prev { grid-column: 1; width: 52px; height: 52px; margin-left: var(--space-12); }
  .pp-next { grid-column: 3; width: 52px; height: 52px; margin-right: var(--space-12); }
  .pp-count { grid-column: 2; justify-self: center; }
  .pp.one { --pp-w: 100cqw; --pp-h: calc(100dvh - 120px); }
  .pp.one .pp-slide img { border-radius: 0; }
}

/* Short screens, such as a phone held sideways (user, q27: "hide the small-photo row, photo fills the height"):
   no row of small photos, a smaller title, and the photo takes most of the height. Upright phones keep their
   own layout above, so this sits inside "not the phone width". */
@media (max-height: 500px) {
  @media not all and (max-width: 539px) {
    .pp { --pp-h: calc(100dvh - 96px); }
    .pp.one { --pp-h: calc(100dvh - 72px); }
    .pp-thumbs { display: none; }
    .pp-head { padding: var(--space-5) var(--space-29) 0 var(--space-12); }
    .pp-title { font-size: var(--font-size-8); }
    .pp-place { margin: 0; font-size: var(--font-size-4); }
    .pp-close { top: var(--space-3); right: var(--space-5); width: 44px; height: 44px; }
    .pp-stage { margin-top: var(--space-3); }
    .pp-prev, .pp-next { width: 52px; height: 52px; margin-top: var(--space-3); }
    .pp-prev { margin-left: var(--space-10); }
    .pp-next { margin-right: var(--space-10); }
    .pp-count { margin: var(--space-3) 0 var(--space-4); font-size: var(--font-size-4); }
  }
}

/* ===== Links to the other service pages ===== */
.go-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); }   /* the other 3 service pages in one row; one column on phones (user, q45) */
.go-card { display: block; padding: var(--space-15) var(--space-16); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-tile); }
.go-card b { display: block; font-size: var(--font-size-11); margin-bottom: var(--space-3); }
.go-card b::after { content: " →"; color: var(--color-brand-deep); }
.go-card span { display: block; color: var(--color-muted); font-size: var(--font-size-7); }

/* ===== Plain words (privacy) ===== */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--font-size-16); margin: var(--space-23) 0 var(--space-8); max-width: none; }
.prose p, .prose ul { margin: 0 0 var(--space-12); }

/* ===== Photo top with the quote form in it (Contact) =====
   The phone number is orange at the user's choice (17 Nov), in the logo orange used for all orange words. */
.phero.with-form { min-height: 0; padding-bottom: var(--space-29); }
.form-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: var(--space-26); align-items: start; }
.form-top-words { padding-top: var(--space-18); }
.form-top h1 { margin-bottom: var(--space-17); }
.lab { display: block; margin: 0 0 var(--space-3); font-size: var(--font-size-4); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--color-on-dark-label); }
.top-tel { --tel-mark: 48px; display: inline-flex; align-items: center; gap: var(--space-10); padding: var(--space-3) 0; font-size: var(--font-size-20); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: var(--color-brand-deep); white-space: nowrap; }
.top-tel::before { content: ""; flex: none; width: var(--tel-mark); height: var(--tel-mark); border-radius: var(--radius-round); background: var(--color-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / 24px no-repeat; }
.top-tel:hover { text-decoration: underline; text-underline-offset: 4px; }
html.text-big .top-tel { white-space: normal; }  /* bigger text only: see text-big in site.css */
html.text-big .a8c-plot .lbl { overflow-wrap: normal; }  /* bigger text: a map name breaks only between words, never inside one (Reviewer, kb-mwcan20m842bb). The frame clips it, so it can't make the page scroll sideways */
/* From 861px, beside the form, the number's column is too narrow for it at its usual size up to about 970px: there it
   shrinks to fit (user, q100; kb-mwws8a68f723k), and wherever it fits it keeps its usual size. 6.615 is the number's width
   in Manrope at 1px of font size, measured in all three engines; --tel-mark and the gap are the round phone mark beside it.
   Phones, with the form below, keep the usual size: the Phones section below puts it back */
@media (max-width: 1100px) {
  .top-call { container-type: inline-size; }
  .top-tel { font-size: min(var(--font-size-20), calc((100cqi - var(--tel-mark) - var(--space-10)) / 6.615)); }
}
.top-hours { margin: var(--space-3) 0 0; font-size: var(--font-size-10); font-weight: 700; }
.top-or { margin: var(--space-19) 0 0; max-width: 40ch; font-size: var(--font-size-9); color: var(--color-on-photo-text); }
.top-or b { color: var(--color-on-dark); }
.form-top-form { background: none; color: inherit; }
.form-top-form .card { margin: 0; }
@media (max-width: 1100px) { .form-top { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--space-22); } }

@media (max-width: 1189px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* the tile photos' sizes (sections.njk) follow this step and 539px below, tested in built-pages.test.js; the menu bar's 1189px step (site.css) is a separate rule */
@media (max-width: 1100px) { .steps-photo { gap: var(--space-20); } }

/* ===== Phones ===== */
@media (max-width: 860px) {
  .phero, .phero.short { min-height: 0; padding: var(--space-33) 0 var(--space-24); }
  .phero h1 { font-size: var(--font-size-19); }
  .phero .lead { font-size: var(--font-size-9); }
  .phero .intro { font-size: var(--font-size-8); margin-bottom: var(--space-16); }
  .phero .actions .btn { flex: 1 1 100%; }
  .hero > .standin, .phero > .standin { top: 72px; }
  .phero.with-form { padding-bottom: var(--space-23); }
  .form-top { grid-template-columns: 1fr; gap: var(--space-18); }
  .form-top-words { padding-top: 0; }
  .top-or { margin-top: var(--space-13); }
  .form-top-form .card { margin: 0; }
  .top-call { container-type: normal; }
  .top-tel { font-size: var(--font-size-20); }

  .tiles { gap: var(--space-8); }
  .tiles .t { padding: var(--space-8) var(--space-10) var(--space-10); font-size: var(--font-size-tile-phone); }
  .tiles.two { gap: var(--space-8); }
  .steps-photo { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
  .steps-photo .ph { min-height: 0; aspect-ratio: 16 / 10; }
  .a9b.two, .go-cards { grid-template-columns: 1fr; }
  .group-h { margin-bottom: var(--space-18); }

  .hero { min-height: 0; padding: var(--space-33) 0 var(--space-31); }
  .hero h1 { font-size: var(--font-size-19); }
  .hero .lead { font-size: var(--font-size-9); }
  .hero .intro { font-size: var(--font-size-8); margin-bottom: var(--space-16); }
  .hero .actions .btn { flex: 1 1 100%; }
  .accred { gap: var(--space-5); margin: var(--space-16) 0 var(--space-12); }
  .accred li { min-width: 0; flex: 1 1 40%; padding: var(--space-6) var(--space-8); font-size: var(--font-size-6); }
  .ticks { flex-direction: column; gap: var(--space-4); }

  .glance-strip { margin-top: calc(-1 * var(--space-24)); }
  .glance-strip .wrap { padding: 0 var(--space-12); }
  .strip { grid-template-columns: 1fr; border-radius: var(--radius-bar); }
  .strip li + li { border-left: 0; border-top: 1px solid var(--color-line); }
  .strip li, .strip a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-8); padding: var(--space-10) var(--space-13); min-height: 56px; }
  .strip li:has(> a) { display: block; }
  .strip .v { font-size: var(--font-size-11); }
  .strip .l { font-size: var(--font-size-6); }

  .work-c { padding-top: var(--space-8); }
  .band { margin: 0 var(--space-8); border-radius: var(--radius-lg); min-height: 0; display: block; padding: var(--space-38) 0 var(--space-8); }
  .band img { height: 300px; bottom: auto; }
  .band::after { display: none; }
  .band .wrap { padding: 0 var(--space-8); }
  .card-c { padding: var(--space-17) var(--space-14); box-shadow: var(--shadow-card-up); }
  .card-c h2 { font-size: var(--font-size-16); }
  .list { grid-template-columns: 1fr; padding: var(--space-12) var(--space-13); }

  .a9 { grid-template-columns: 1fr; grid-template-areas: "title" "body" "more"; }
  .a9-title { margin-bottom: var(--space-18); }
  .a9-more { margin: var(--space-20) 0 0; justify-self: start; }
  .a9b { grid-template-columns: 1fr; gap: var(--space-18); }
  .a9b .ph { aspect-ratio: 4 / 3; }
  .a9b .txt { margin: calc(-1 * var(--space-26)) var(--space-10) 0; padding: var(--space-13) var(--space-14) var(--space-14); }

  .s7c { grid-template-columns: 1fr; gap: var(--space-18); }
  .s7c-card { padding: var(--space-16) var(--space-14); }
  .badges { --badge: 84px; gap: var(--space-12); }

  .a10d { grid-template-columns: 1fr; gap: var(--space-16); }
  .a10d h2 { position: static; }
  .a10d li { grid-template-columns: 44px 1fr; gap: var(--space-10); padding: var(--space-13) 0; }
  .a10d .n { font-size: var(--font-size-17); }
  .a10d li b { font-size: var(--font-size-9); }
  .a10d li div > span { font-size: var(--font-size-7); }

  .a8c { grid-template-columns: 1fr; gap: var(--space-16); }
  .a8c-map { padding: var(--space-13) 0 var(--space-8); }
  .a8c-plot li.base .lbl { white-space: normal; width: 6.4em; text-align: center; }
  .a8c-plot li { --map-text: var(--font-size-3); }
  .a8c-plot li::before { width: 10px; height: 10px; left: -5px; top: -5px; }
  .map-frame, .area-map { border-radius: var(--radius-card); }
  .map-frame { padding: var(--space-16) var(--space-4) var(--space-17); }
  .map-note { left: 10px; bottom: 8px; font-size: var(--font-size-2); }

}
@media (max-width: 539px) {
  .a8c-map { padding: var(--space-12) 0 var(--space-6); }
  .a8c-plot li { --map-text: var(--font-size-2); letter-spacing: -.01em; }
  .a8c-plot li.base::before { width: 11px; height: 11px; left: -5.5px; top: -5.5px; }
}
@media (max-width: 389px) {
  .a9-more { justify-self: stretch; }
}
@media (max-width: 389px) {
  .a8c-map:not(.with-picture) { margin: 0 calc(-1 * var(--space-12)); }
  .badges { --badge: 72px; gap: var(--space-8); }
}

@media (max-width: 860px) { .a9b.group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-14); row-gap: var(--space-20); } }
@media (max-width: 539px) { .tiles, .tiles.two, .a9b.group { grid-template-columns: 1fr; } .a9b.group { gap: var(--space-18); } .tiles .ph { aspect-ratio: 16 / 9; } }
@media (max-width: 539px) {
  .top-tel { font-size: var(--font-size-page-title-phone); gap: var(--space-8); }
  .top-tel::before { width: 40px; height: 40px; background-size: 20px; }
  .top-hours { font-size: var(--font-size-8); }
}
@media (max-width: 389px) {
  .phero h1 { font-size: var(--font-size-page-title-phone); }
  .top-tel { font-size: var(--font-size-number-small); gap: var(--space-6); }
  .top-tel::before { width: 36px; height: 36px; background-size: 18px; }
}

/* ===== Section backgrounds =====
   A section takes its white or pale background from the page that uses it, so each page keeps
   Home's white / pale rhythm (Brief 2 settled 4). These come last so they win over a section's usual one. */
.block.bg-pale { background: var(--color-section-pale); }
.block.bg-white { background: var(--color-page); }
