/* Cliff Plumbing and Heating: page CSS on top of the taste kit (public/assets, loaded first).
   Tokens, grid, type, buttons, nav, footer and motion are the kit's; this file adds only what the kit
   leaves to the page: the fonts, the client's logo size, small rules inside visuals, and the inner pages,
   which keep their own content flow (the one-section-per-screen box is the home page's). */

/* Red Hat Display and Red Hat Text, SIL OFL 1.1 (fonts/*-OFL.txt), Latin subset, weights 400-500 */
@font-face {
  font-family: "Red Hat Display";
  src: url("/fonts/red-hat-display-latin-wght.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("/fonts/red-hat-text-latin-wght.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- shared */
/* the client's logo carries its name in small type under CLIFF: shown tall enough to read */
.nav__logo img { height: 40px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 32px; } }
.footer .nav__logo img { height: 48px; }
.footer address { font-style: normal; }
/* a tablet and a phone: the footer's links fit their screen (the close takes the screen before them on a phone) */
@media (max-width: 1023px) { .footer .grid { row-gap: var(--s-5); } .closing__links { gap: var(--s-5); } }
@media (max-width: 639px) { .footer__lede { display: none; } .footer ul { gap: var(--s-2); } .footer :is(h3, h4):not(.closing__cta *) { margin-bottom: var(--s-2); } }
/* the contact page is the quote request: the bar keeps only Call there */
body:has(.contact-form) .actionbar .btn--primary { display: none; }

/* ---------------------------------------------------------------- home page */
/* hero (2026-11-21): the words on the page ground, the supplied three-job image beside them whole, at its
   own 1024:572 shape (about 740px wide at 1440, under the file's 1024), centred on the words. Below 1024
   it sits under the words at full width, so the hero grows past one screen there. */
.hero--work .hero__media { height: auto; aspect-ratio: 1024 / 572; align-self: center; }
.hero--work h1 { font-size: clamp(40px, 4.4vw, 68px); }
.hero__text > .hero__gas { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-5) 0 0; font-size: var(--t-small); color: var(--muted); }
.hero__gas > img { width: 28px; height: 30px; flex: none; }
@media (max-width: 1023px) {
  .hero--work .hero__media { flex: none; min-height: 0; align-self: stretch; width: 100%; }
  main > .hero.hero--work { height: auto; min-height: 0; }
  main > .hero.hero--work > .wrap { height: auto; }
}

/* services: each service beside its own job photograph, a 4:5 crop at most 200px wide (the files are 420px) */
main ul.service-rows { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: 0; }
main ul.service-rows > li { max-width: none; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-6); align-items: center; padding: var(--s-5) 0; border-top: 1px solid var(--line); }
main ul.service-rows > li:last-child { border-bottom: 1px solid var(--line); }
.service-rows__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.service-rows__photo > img { width: 100%; height: 100%; object-fit: cover; }
main .service-rows__text > * { max-width: 60ch; }
main .service-rows__text h3 { margin: 0 0 var(--s-2); font-size: 28px; }
main .service-rows__text h3 a { color: inherit; text-decoration: none; }
main .service-rows__text h3 a:hover { color: var(--action); }
main .service-rows__text p { margin: 0 0 var(--s-3); }
@media (max-width: 639px) {
  main ul.service-rows > li { grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
  main .service-rows__text h3 { font-size: 22px; }
}
/* the business name sits in the h1 as a small line above the headline */
.hero__brand { display: block; font-family: var(--font-text); font-size: var(--t-label); font-weight: 500; line-height: 1.4; letter-spacing: 0.01em; color: var(--muted); margin-bottom: var(--s-3); }

/* a link on its own line under a row or a heading is a 44px target */
.rows > li > .link { grid-column: 1; justify-self: start; min-height: 44px; }
.section-head--split > .link { min-height: 44px; }

/* the work: a picture wall of six photographs, two rows of three, cropped 3:2 (shown at the files' own width) */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.wall > li > a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.wall img { width: 100%; height: 100%; object-fit: cover; }
/* four photographs sit in one row of four, not three and one */
@media (min-width: 1024px) { .wall:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* each tile names the job and the town under the photograph */
.wall { row-gap: var(--s-4); }
main .wall__cap { margin: var(--s-2) 0 0; font-size: var(--t-small); line-height: 1.4; color: var(--muted); }
@media (max-width: 1023px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the tablet held upright: the reviews and about keep their photograph beside the words (7 and 5 columns), so
   each stays one screen and the photograph is shown at about its own size; the footer's three columns fill the row */
@media (min-width: 640px) and (max-width: 1023px) {
  #reviews .review-rows { grid-column: 1 / span 7; }
  #reviews .photo-reviews { grid-column: 8 / -1; --ratio: 0px; }
  #about .grid.fill { display: grid; }
  #about :is(.about-facts, .areas) { grid-column: 1 / span 7; }
  #about .frame--fill { grid-column: 8 / -1; grid-row: 1 / span 2; height: 100%; min-height: 0; }
  .footer .footer__col { grid-column: auto / span 4; }
}

/* the reviews as rows: the stars and the date on one line under the words */
.review-rows > li { row-gap: var(--s-2); }
.review-rows__meta { display: flex; flex-wrap: wrap; gap: var(--s-3); color: var(--muted); font-size: var(--t-small); }
.stars { color: var(--ink); letter-spacing: 0.1em; }
.stars-empty { color: var(--line-strong); }

/* photographs beside a list: at the files' own 2:3, and beside the reviews as tall as the three rows */
.photo-tall { --ratio: 150%; }
/* home page sections after the hero size to their content instead of one full screen each (the kit's
   rhythm left half-empty screens between them); a 72px gap (48px on a phone) separates two sections'
   content, tightened from 96/64 on 2026-11-21 */
main:has(> .hero) > :is(section, .section):not(.hero, .section--hero) {
  height: auto; min-height: 0; padding: 72px 0 0;
}
main:has(> .hero) > :is(section, .section):not(.hero, .section--hero):last-child { padding-bottom: 72px; }
main:has(> .hero) > :is(section, .section):not(.hero, .section--hero) > .wrap { height: auto; }
main:has(> .hero) > :is(section, .section):not(.hero, .section--hero) > .wrap > .fill { flex: 0 0 auto; }
@media (max-width: 639px) {
  main:has(> .hero) > :is(section, .section):not(.hero, .section--hero) { padding-top: var(--s-7); }
  main:has(> .hero) > :is(section, .section):not(.hero, .section--hero):last-child { padding-bottom: var(--s-7); }
}
/* the hero ends with its content instead of filling the whole first screen, so the reviews start
   under it rather than after an empty band */
@media (min-width: 1024px) {
  main > .hero.hero--work { height: auto; min-height: 0; padding-bottom: var(--s-6); }
  main > .hero.hero--work > .wrap { height: auto; }
}
.photo-reviews { --ratio: 106%; }
/* a phone: the reviews take two screens; the photograph fills what the three rows leave (shown at about its own size) */
@media (max-width: 639px) { .photo-reviews { --ratio: 190%; } }

/* about: the facts, the makers' logos and the call link in one column; the areas as two short columns */
.about-facts { display: grid; gap: var(--s-6); align-content: start; }
.logos { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; }
.logos img { height: 32px; width: auto; }
@media (max-width: 639px) { .about-facts .logos { gap: var(--s-5); flex-wrap: nowrap; } .about-facts .logos img { height: 28px; } #about .grid { row-gap: var(--s-7); } }
.areas > .t-label { color: var(--muted); margin-bottom: var(--s-3); }
.areas > ul > li { padding-block: var(--s-1); }
@media (max-width: 1023px) { .areas > ul { columns: 2; column-gap: var(--gutter); } }

/* the close is the home page's: inner pages end on their own contact band */
body:not(:has(main > .hero)) .closing__cta { display: none; }
/* the close: three photographs side by side down to the links (one 420px file across the page would be blown up) */
.close__media.close__wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: none; }
.close__wall > img { position: static; width: 100%; height: 100%; min-height: 0; object-fit: cover; }

/* ---------------------------------------------------------------- inner pages
   Every page but the home page: the sections take their content's height under the fixed bar. */
main:not(:has(> .hero)) { padding-top: var(--nav); }
main:not(:has(> .hero)) > :is(section, .section) { height: auto; min-height: 0; padding: var(--s-9) 0; display: block; }
main:not(:has(> .hero)) > :is(section, .section) > .wrap { height: auto; display: block; }
main:not(:has(> .hero)) > :is(section, .section) > :is(.split, .contact-grid) { display: grid; }
@media (max-width: 639px) { main:not(:has(> .hero)) > :is(section, .section) { padding: var(--s-8) 0; } }
/* the footer without the home page's close: its links only, as tall as they are */
body:not(:has(main > .hero)) footer.closing { height: auto; min-height: 0; padding-top: var(--s-8); }
body:not(:has(main > .hero)) footer.closing > .wrap { display: block; height: auto; }

main:not(:has(> .hero)) :is(p, ul, ol, dl) { margin: 0 0 var(--s-4); }
main:not(:has(> .hero)) :is(p, dd, li) { max-width: 65ch; }
main:not(:has(> .hero)) h2 { font-size: clamp(26px, 1.4vw + 18px, 40px); margin: var(--s-7) 0 var(--s-4); }
main:not(:has(> .hero)) h3 { font-size: 22px; line-height: 1.25; margin: var(--s-6) 0 var(--s-3); }
main:not(:has(> .hero)) :is(.section > .wrap, .split > div) > :first-child { margin-top: 0; }
/* links in running text: underlined, the line darkening on hover */
main:not(:has(> .hero)) :is(p, li, dd) a:not(.btn) { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur, 150ms) var(--ease, ease); }
main:not(:has(> .hero)) :is(p, li, dd) a:not(.btn):hover { text-decoration-color: currentColor; }

.page-head { padding: var(--s-8) 0 var(--s-7); background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax); }
.page-head h1 { font-size: clamp(32px, 2.2vw + 18px, 52px); line-height: 1.08; margin: 0; }
.page-head h1 + * { margin-top: var(--s-5); }
.page-head > :last-child { margin-bottom: 0; }
.narrow > * { max-width: 46rem; }
.wrap.narrow > .logos { max-width: none; }
.lead { font-size: var(--t-lead); line-height: 1.5; }
.section-sand { background: var(--surface); }
.muted { font-size: var(--t-small); }
main .checklist { list-style: disc; padding-left: 1.25em; }
main .checklist > li { padding-block: var(--s-1); }
main .checklist > li::marker { color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: var(--s-5) 0; }
main .show-more { text-align: center; max-width: none; }

/* text beside photos */
.split { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-8); align-items: start; } }
.split-photo .photo { max-width: 420px; }
.split-photo .photo img { max-height: 32rem; object-fit: cover; }

/* photographs and captions (the gallery keeps each job's place in its caption) */
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--r-md); }
.photo figcaption { font-size: var(--t-small); color: var(--muted); margin-top: var(--s-2); }
.photo-row, .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); margin: var(--s-6) 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .photo-row, .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .photo-row, .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery .photo img, .photo-row .photo img { aspect-ratio: 2 / 3; object-fit: cover; }
main .gallery > li, main .photo-row .photo { max-width: none; }

/* /services rows */
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.service-list > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: none; }
.service-list img { width: 100%; max-width: 420px; height: 160px; object-fit: cover; border-radius: var(--r-md); }
main .service-list h2 { font-size: 28px; margin: 0 0 var(--s-2); }
.service-list p:last-child { margin-bottom: 0; }
.service-list p:last-child a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
@media (min-width: 640px) {
  .service-list > li { grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-6); }
  .service-list img { height: auto; aspect-ratio: 3 / 4; }
}

main:not(:has(> .hero)) .logos { margin: var(--s-5) 0 0; padding: 0; }
main:not(:has(> .hero)) .logos img { height: 48px; }

/* review cards (the reviews page and the service pages) */
.review-list { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-5); }
main .review-list > li { max-width: none; }
.review { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); height: 100%; background: var(--bg); }
.review-meta { font-size: var(--t-small); color: var(--muted); margin: 0 0 var(--s-2); }
main .review-title { font-size: 22px; line-height: 1.3; margin: 0; }
.review-stars { margin: var(--s-2) 0 0; font-size: 18px; line-height: 1; }
main .review-text { margin: var(--s-4) 0 0; }
/* Google reviews keep their own paragraph breaks; Lewis's reply sits under the review */
.review--google .review-text { white-space: pre-line; }
main .review-reply { margin: var(--s-4) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-small); }
.google-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); margin: 0; }
.google-rating__score { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--ink); }
.google-rating .stars { font-size: 20px; }
/* the hero's review line: the count is the business's strongest point, so it sits above the buttons */
.hero__proof { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-height: 44px; color: var(--ink); text-decoration: none; }
/* the Google rating link is a 44px target too */
.google-rating .link { display: inline-flex; align-items: center; min-height: 44px; }
/* the areas line under the hero's lead */
.hero__text > .hero__areas { margin-top: var(--s-3); font-weight: 500; }
.hero__proof .stars { color: color-mix(in oklab, var(--accent) 75%, var(--ink)); font-size: 20px; }
.hero__proof:hover strong, .hero__proof:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
/* the review section after the hero: one large number, the Google rating, then three Google reviews */
.proof__stat { display: grid; gap: var(--s-5); align-content: start; }
.proof__stat > h2 { margin: 0; }
.proof__number { display: block; font-size: clamp(96px, 14vw, 200px); line-height: 0.85; letter-spacing: -0.04em; color: var(--accent); margin-bottom: var(--s-3); }
.proof__stat > p { margin: 0; color: var(--muted); }
@media (max-width: 1023px) { .proof .review-rows { grid-column: 1 / -1; } }
/* review motion: the big number ticks up (motion.js, data-m-count) and grows into place, and the three
   reviews rise in turn as the section scrolls in. The Google stars here stay static (2026-11-28): a
   scroll-linked fill rests part-way when the visitor stops scrolling and read as a 2-star rating. Scroll-linked parts need
   animation-timeline (Chrome, Edge, Safari 26); other browsers and reduced motion show everything at rest. */
@keyframes cliff-stars-fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cliff-rise { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes cliff-grow { from { opacity: .3; scale: .86; } to { opacity: 1; scale: 1; } }
@media screen and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .hero__proof .stars { animation: cliff-stars-fill 650ms steps(5, jump-start) 1000ms both; }
  @supports (animation-timeline: view()) {
    html:not([data-motion="off"]) .proof__number { transform-origin: 0 100%; animation: cliff-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    html:not([data-motion="off"]) .proof .review-rows > li { animation: cliff-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    html:not([data-motion="off"]) .proof .review-rows > li:nth-child(2) { animation-range: entry 15% entry 85%; }
    html:not([data-motion="off"]) .proof .review-rows > li:nth-child(3) { animation-range: entry 30% entry 100%; }
  }
}

/* the contact band at the foot of inner pages, on the inverse ground */
main:not(:has(> .hero)) > .contact-band { padding: var(--s-9) 0; }
.contact-band h2 { margin-top: 0; }
.contact-band a:not(.btn) { color: var(--ink); }

/* contact page */
.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-8); align-items: start; }
  .contact-grid .contact-details { order: 2; }
}
.contact-details { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); }
main .contact-details h2 { font-size: 22px; margin: 0 0 var(--s-2); }
.contact-details dl { margin: 0; }
.contact-details dt { font-size: var(--t-small); font-weight: 500; color: var(--muted); margin-top: var(--s-4); }
.contact-details dd { margin: 0; }
.contact-details address { font-style: normal; }
.big-link { font-family: var(--font-display); font-size: 32px; letter-spacing: var(--display-tracking); }

/* the contact form: the kit's field look (48px, one radius, labels above); errors in ink, marked with the accent */
.contact-form .field { margin-bottom: var(--s-5); }
.contact-form label { display: block; font-weight: 500; margin-bottom: var(--s-2); }
.contact-form .hint { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; min-height: 48px; padding: 12px var(--s-4);
  border: 1px solid color-mix(in oklab, var(--ink) 60%, var(--bg)); border-radius: var(--r-sm); background: var(--bg); color: var(--ink);
  transition: border-color 140ms var(--ease, ease);
}
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--ink); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in oklab, var(--action) 25%, transparent); outline: none; transition: none; }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: -2px; }
main .field-error { font-size: var(--t-small); font-weight: 500; margin: var(--s-2) 0 0; }
.form-grid { display: grid; gap: 0 var(--s-5); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status, .error-summary { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); background: var(--surface); }
.form-status p { margin: 0 0 var(--s-2); }
.form-status p:last-child { margin-bottom: 0; }
.form-status-success { border-left-color: var(--ink); }
main .error-summary h2 { font-size: 20px; margin: 0 0 var(--s-2); }
.error-summary ul { margin: 0; padding-left: 1.25em; list-style: disc; }
main .form-smallprint { font-size: var(--t-small); margin-top: var(--s-5); }

/* the Ideal page: Ideal's banner, its three feature icons, then each boiler type beside its product picture */
.ideal-banner { display: block; width: 100%; height: auto; border-radius: var(--r-lg); background: var(--ink); }
main ul.ideal-features { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
main ul.ideal-features > li { display: flex; flex-direction: row; align-items: center; gap: var(--s-4); max-width: none; font-weight: 500; }
main ul.ideal-features img { width: 64px; height: 64px; flex: none; }
@media (max-width: 639px) { main ul.ideal-features { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); } main ul.ideal-features img { width: 48px; height: 48px; } }
.ideal-type { margin-top: var(--s-8); align-items: center; }
main .ideal-type h3 { margin-top: 0; }
.ideal-product { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }

/* the Uponor page: Uponor's logo over the heading, the room picture beside the text, the four steps as pictures */
main .uponor-logo { display: block; width: auto; height: 48px; margin-bottom: var(--s-5); }
.uponor-room { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
main ol.uponor-steps { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
main ol.uponor-steps > li { max-width: none; }
main ol.uponor-steps img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 266; object-fit: cover; border-radius: var(--r-md, 8px); border: 1px solid var(--line); }
main ol.uponor-steps h3 { margin: var(--s-4) 0 var(--s-2); font-size: 22px; }
.uponor-steps__n { color: var(--accent); }
main ol.uponor-steps p { margin: 0; }
@media (max-width: 1023px) { main ol.uponor-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { main ol.uponor-steps { grid-template-columns: minmax(0, 1fr); } main .uponor-logo { height: 36px; } }

/* the Services panel: each card's one line under its name, the call line set apart at the foot of the links */
.nav__menu .menu-card { align-content: start; }
.menu-card__blurb { color: var(--muted); font-size: var(--t-small); line-height: 1.4; margin-top: calc(-1 * var(--s-2)); }
.menu-col .menu-col__call { margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
@media (max-width: 1023px) { .nav.is-open .menu-card__blurb { display: none; } }

/* the accreditation strip under the reviews: one line of text beside the four logos */
.accreds__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-8); padding: var(--s-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
main .accreds__text { margin: 0; max-width: 46ch; }
.accreds__row .logos { margin: 0; flex: 0 1 auto; gap: var(--s-5) var(--s-7); }
@media (max-width: 1023px) { .accreds__row .logos { flex: 1 1 100%; } }

/* legal text */
.prose > * { max-width: 46rem; }
main .prose h2 { font-size: 28px; }
main .prose ul { list-style: disc; padding-left: 1.25em; }

/* Analytics consent banner (2026-11-25): sits above the phone action bar (--bar), equal Reject and Accept. */
.cookie-banner {
  position: fixed; z-index: 50; left: var(--gut, 16px); right: var(--gut, 16px);
  bottom: var(--s-3); translate: 0 calc(-1 * var(--bar, 0px)); max-width: 560px; margin-inline: auto;
  display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: 14px;
  background: var(--bg); color: var(--ink); box-shadow: 0 8px 28px color-mix(in oklab, var(--ink) 18%, transparent); font-size: 15px; line-height: 1.5;
}
@media (prefers-reduced-motion: no-preference) { .cookie-banner { transition: translate 240ms var(--ease, ease); } }
:root:has(> body > nav.actionbar[data-bar="hidden"]) .cookie-banner { translate: 0 0; }
@media (min-width: 640px) { .cookie-banner { left: auto; margin-inline: 0; max-width: 400px; } }
.cookie-banner p { margin: 0; }
.cookie-banner__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.cookie-banner .btn { width: 100%; min-height: 44px; }
.footer__link-button { background: none; border: 0; padding: 12px 0; margin: -12px 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.footer__link-button:hover { text-decoration: underline; }
.footer__link-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Hallmark polish (2026-11-28): html clips sideways overflow like body (gate 34); headings balance
   their lines and break a long word rather than overflow (F3, gate 50); buttons answer a press (26b). */
html, body { overflow-x: clip; }
main :is(h1, h2, h3) { text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
@media (prefers-reduced-motion: no-preference) { .btn:active { translate: 0 1px; } }
/* review titles: beat the inner pages' h3 leading (main:not(:has(> .hero)) h3) so two-line titles read at 1.3 (gate 75) */
main:not(:has(> .hero)) .review-title, main .review-title { line-height: 1.3; }
