/* Goober kit, composed for Marlow & Finch Homes.
 * The kit's own tokens mapped onto this site's tokens (design-guide/tokens.json), a small kit base
 * (icons, fields, buttons, honeypot), then the four kit components unchanged in behaviour:
 * enquiry-slideout, form-steps, gallery-carousel, reviews-google. Restyled in the styling pass.
 */
:root {
  --color-deep: var(--color-forest);
  --color-field: var(--color-stone);
  --color-ink-soft: var(--color-slate);
  --color-line: color-mix(in srgb, var(--color-ink) 18%, transparent);
  --color-error: #9b2c1f;
  --radius-button: 0;
  --focus-ring: 2px solid currentColor;
  --focus-offset: 3px;
  --motion-duration: 700ms;
  --motion-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 40px -24px rgba(30, 42, 36, 0.22);
}

.gk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.gk-ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: square; stroke-linejoin: miter;
}
.gk-mark { width: 1.25em; height: 1.25em; flex: none; }
.gk-stars { display: inline-flex; gap: 2px; }
.gk-stars .gk-ico { fill: currentColor; stroke: none; }
.gk-vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gk-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 52px; padding: 0 var(--space-5);
  font: 700 0.9375rem/1.2 var(--font-body); letter-spacing: 0.06em;
  border: 1.5px solid currentColor; border-radius: 0; background: transparent; color: inherit;
  text-decoration: none; cursor: pointer;
}
.gk-btn--primary { border-color: transparent; background: var(--color-brass); color: var(--color-forest); }
.gk-btn--outline { background: transparent; }
.gk-btn--block { display: flex; width: 100%; }

.gk-field { display: grid; gap: var(--space-2); }
.gk-field__label { font-size: var(--t-small); font-weight: 700; }
.gk-field__input {
  width: 100%; min-height: 52px; padding: var(--space-3) var(--space-4);
  font: inherit; color: var(--color-ink);
  border: 1px solid color-mix(in srgb, var(--color-ink) 35%, transparent); border-radius: 0; background: var(--color-white);
}
.gk-field__error { display: flex; gap: var(--space-2); align-items: center; margin: 0; font-size: var(--t-small); color: var(--color-error); }

/* ===== kit: enquiry-slideout ===== */
/*
 * Goober kit: enquiry-slideout. Prefix .gk-slide. Tokens only (kit/goober/tokens.md).
 * The kit owns: the panel's behaviour (slide from the edge on transform only, scrim of tone not shadow, focus kept
 * inside, the page inert and still behind it), and the no-script fallback as a plain section.
 * The designer owns the panel's tone, the title, the trust line and which form sits inside.
 */

/* Keep the scrollbar's space even while the page is locked, so nothing jumps sideways when the panel opens. */
html {
  scrollbar-gutter: stable;
}

html.gk-locked {
  overflow: hidden;
}

.gk-slide {
  font-family: var(--font-body);
  color: var(--color-ink);
}

/* ---------- No script: a plain section where it sits on the page ---------- */
.gk-slide__panel {
  width: min(100% - 2 * var(--gutter), 40rem);
  margin-inline: auto;
  padding-block: var(--space-8);
}

.gk-slide__scrim,
.gk-slide__close {
  display: none;
}

.gk-slide__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.gk-slide__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-h3);
  line-height: 1.15;
  color: var(--color-ink);
}

.gk-slide__lead {
  margin: var(--space-3) 0 0;
  color: var(--color-ink-soft);
}

.gk-slide__trust {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-button);
  background: var(--color-field);
  font-size: var(--t-small);
  font-weight: 600;
}

.gk-slide__body {
  margin-top: var(--space-5);
}

.gk-slide__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-2);
  margin: var(--space-5) 0 0;
  font-size: var(--t-small);
  color: var(--color-ink-soft);
}

.gk-slide__call a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
}

.gk-slide__call a:hover span {
  text-decoration: underline;
}

.gk-slide__call a:focus-visible,
.gk-slide__close:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* ---------- With scripts on (the html.js flag): a dialog that slides in from the right edge ---------- */
html.js .gk-slide {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  transition: visibility 0s linear var(--motion-duration);
}

html.js .gk-slide.is-open {
  visibility: visible;
  transition-delay: 0s;
}

html.js .gk-slide__scrim {
  display: block;
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-deep) 58%, transparent);
  opacity: 0;
  transition: opacity var(--motion-duration) var(--motion-easing);
}

html.js .gk-slide.is-open .gk-slide__scrim {
  opacity: 1;
}

html.js .gk-slide__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 34rem);
  margin: 0;
  padding: var(--space-6) clamp(var(--space-5), 4vw, var(--space-7)) var(--space-7);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-paper);
  transform: translateX(100%);
  transition: transform var(--motion-duration) var(--motion-easing);
}

html.js .gk-slide.is-open .gk-slide__panel {
  transform: none;
}

html.js .gk-slide__panel:focus {
  outline: none;
}

html.js .gk-slide__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-field);
  color: var(--color-ink);
  cursor: pointer;
}

html.js .gk-slide__close:hover {
  background: color-mix(in srgb, var(--color-field) 80%, var(--color-ink));
}

@media (prefers-reduced-motion: reduce) {
  html.js .gk-slide,
  html.js .gk-slide__scrim,
  html.js .gk-slide__panel {
    transition: none;
  }
}

/* ===== kit: form-steps ===== */
/*
 * Goober kit: form-steps. Prefix .gk-qq; fields are .gk-field in kit-base.css. Tokens only (kit/goober/tokens.md).
 * The kit owns: one question per step, answer cards (tone, a tick when chosen, never a border), the typed answer,
 * the fit note, progress that is read aloud, Back and Next, and a form whose height never changes between steps
 * (the steps share one grid cell, so nothing below the form moves). The designer owns the questions, the icons,
 * the card tone and the form's surroundings.
 */
.gk-qq {
  display: grid;
  gap: var(--space-5);
  container-type: inline-size;
  font-family: var(--font-body);
  color: var(--color-ink);
}

/* ---------- Progress ---------- */
.gk-qq__count {
  margin: 0;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--color-ink-soft);
}

.gk-qq__count-name:not(:empty)::before {
  content: ": ";
}

.gk-qq__meter {
  height: var(--space-1);
  margin-top: var(--space-2);
  overflow: hidden;
  border-radius: 10em;
  background: color-mix(in srgb, var(--color-ink) 10%, transparent);
}

.gk-qq__meter-fill {
  display: block;
  height: 100%;
  background: var(--color-primary);
  transform-origin: left center;
  transform: scaleX(var(--gk-qq-progress, 0.25));
  transition: transform var(--motion-duration) var(--motion-easing);
}

/* ---------- Steps ---------- */
.gk-qq__steps {
  display: grid;
  gap: var(--space-7);
}

.gk-qq__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gk-qq__q {
  float: left;
  width: 100%;
  margin: 0 0 var(--space-2);
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
}

.gk-qq__q:focus {
  outline: none;
}

.gk-qq__q:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.gk-qq__help {
  clear: both;
  margin: 0 0 var(--space-4);
  font-size: var(--t-small);
  color: var(--color-ink-soft);
}

.gk-qq__opts,
.gk-qq__fields {
  clear: both;
  display: grid;
  gap: var(--space-3);
}

.gk-qq__opts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@container (min-width: 40em) {
  .gk-qq__opts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (min-width: 30em) {
  .gk-qq__fields {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
}

/* ---------- Answer cards: tone, not borders; a tick (not colour alone) when chosen ---------- */
.gk-qq__opt {
  position: relative;
  display: block;
}

.gk-qq__radio {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.gk-qq__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
  min-height: calc(44px + var(--space-6));
  padding: var(--space-3) var(--space-6) var(--space-3) var(--space-3);
  border-radius: var(--radius);
  background: var(--color-field);
  font-weight: 500;
  line-height: 1.25;
  transition: background-color var(--motion-duration) var(--motion-easing);
}

.gk-qq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6em;
  height: 2.6em;
  border-radius: var(--radius-button);
  background: var(--color-paper);
  color: var(--color-primary);
}

.gk-qq__icon svg {
  width: 1.6em;
  height: 1.6em;
}

.gk-qq__tick {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 1.1em;
  height: 1.1em;
  color: var(--color-primary);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity var(--motion-duration) var(--motion-easing),
    transform var(--motion-duration) var(--motion-easing);
}

.gk-qq__opt:hover .gk-qq__card {
  background: color-mix(in srgb, var(--color-field) 86%, var(--color-ink));
}

.gk-qq__radio:checked + .gk-qq__card {
  background: color-mix(in srgb, var(--color-primary) 14%, var(--color-paper));
  font-weight: 700;
}

.gk-qq__radio:checked + .gk-qq__card .gk-qq__tick {
  opacity: 1;
  transform: none;
}

.gk-qq__radio:focus-visible + .gk-qq__card {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* ---------- The typed answer, the fit note, the prompt to pick ---------- */
.gk-qq__other {
  margin-top: var(--space-4);
}

.gk-qq__fit {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--color-accent) 20%, var(--color-paper));
  font-size: var(--t-small);
}

.gk-qq__fit a {
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.gk-qq__pick {
  margin: var(--space-3) 0 0;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--color-error);
}

.gk-qq__after {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  font-size: var(--t-small);
  color: var(--color-ink-soft);
}

.gk-qq__after .gk-ico {
  margin-top: 0.1em;
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Back, Next, Send ---------- */
.gk-qq__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}

.gk-qq__next,
.gk-qq__send {
  margin-left: auto;
}

.gk-qq__send[aria-busy="true"] {
  cursor: progress;
  opacity: 0.75;
}

/* No script: every step shows, the progress and Back/Next step aside, the form posts as it is. */
html:not(.js) .gk-qq__progress,
html:not(.js) .gk-qq__back,
html:not(.js) .gk-qq__next {
  display: none;
}

/* ---------- With scripts on (the html.js flag): one step at a time in one grid cell ---------- */
html.js .gk-qq__steps {
  gap: 0;
}

html.js .gk-qq__step {
  grid-area: 1 / 1;
  transition:
    opacity var(--motion-duration) var(--motion-easing),
    transform var(--motion-duration) var(--motion-easing),
    visibility 0s linear var(--motion-duration);
}

html.js .gk-qq__step:not(.is-on) {
  opacity: 0;
  transform: translateX(1.5rem);
  visibility: hidden;
}

html.js .gk-qq.is-back .gk-qq__step:not(.is-on) {
  transform: translateX(-1.5rem);
}

html.js .gk-qq__step.is-on {
  transition-delay: 0s;
}

html.js .gk-qq__other:not(.is-shown) {
  visibility: hidden;
}

html.js .gk-qq.is-first .gk-qq__back {
  visibility: hidden;
}

html.js .gk-qq:not(.is-last) .gk-qq__send,
html.js .gk-qq.is-last .gk-qq__next {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .gk-qq__meter-fill,
  .gk-qq__card,
  .gk-qq__tick,
  html.js .gk-qq__step {
    transition: none;
  }
}

/* Before the script has run (scripts on): show the first step only, so the form never flashes empty or all at once. */
html.js .gk-qq:not([data-gk-ready]) .gk-qq__step:first-child {
  opacity: 1;
  transform: none;
  visibility: visible;
}

html.js .gk-qq:not([data-gk-ready]) .gk-qq__back {
  visibility: hidden;
}

/* A narrow form: the icon sits above the words so each card keeps its words on two or three short lines. */
@container (max-width: 26em) {
  .gk-qq__card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
  }
}

/* ===== kit: gallery-carousel ===== */
/*
 * Goober kit: gallery-carousel. Prefix .gk-gal. Tokens only (kit/goober/tokens.md).
 * The kit owns: the full width strip that starts on the page edge and stays a real scroller (keyboard, screen reader,
 * touch), drag for a mouse, arrows on every width, captions inside the gutter, no layout shift (every frame has its
 * size from the image's own width and height). The designer owns the frame height, the type and the section tone.
 */
.gk-gal {
  --gk-gal-edge: max(var(--gutter), (100% - var(--page-max)) / 2);
  padding-block: var(--space-8);
  font-family: var(--font-body);
  color: var(--color-ink);
}

.gk-gal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
  padding-inline: var(--gk-gal-edge);
}

.gk-gal__intro {
  max-width: 40rem;
}

.gk-gal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: 1.1;
  color: var(--color-ink);
}

.gk-gal__lead {
  margin: var(--space-3) 0 0;
  font-size: var(--t-lead);
  color: var(--color-ink-soft);
}

.gk-gal__arrows {
  display: flex;
  gap: var(--space-3);
}

.gk-gal__arrow {
  display: grid;
  place-items: center;
  width: calc(44px + var(--space-1));
  height: calc(44px + var(--space-1));
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color var(--motion-duration) var(--motion-easing), opacity var(--motion-duration) var(--motion-easing);
}

.gk-gal__arrow:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-ink) 8%, transparent);
}

.gk-gal__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.gk-gal__arrow:focus-visible,
.gk-gal__track:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* The strip: starts on the page's left edge, runs off the right edge of the screen. */
.gk-gal__track {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gk-gal-edge);
  scrollbar-width: none;
  padding-inline: var(--gk-gal-edge);
  cursor: grab;
}

.gk-gal__track::-webkit-scrollbar {
  display: none;
}

.gk-gal__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.gk-gal__list {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The trailing space after the last photo, so it can come fully into view. */
.gk-gal__list::after {
  content: "";
  flex: none;
  width: 1px;
}

.gk-gal__item {
  flex: none;
  scroll-snap-align: start;
}

.gk-gal__fig {
  margin: 0;
}

.gk-gal__fig img {
  display: block;
  width: auto;
  height: clamp(16rem, 38vw, 34rem);
  max-width: 86vw;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-field);
  -webkit-user-drag: none;
}

.gk-gal__cap {
  margin-top: var(--space-3);
  font-size: var(--t-small);
  color: var(--color-ink-soft);
}

.gk-gal__cap strong {
  color: var(--color-ink);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .gk-gal__arrow {
    transition: none;
  }
}

/* ===== kit: reviews-google ===== */
/*
 * Goober kit: reviews-google. Prefix .gk-rvg. Tokens only (kit/goober/tokens.md); the Google marks keep Google's own
 * colours from the sprite. The kit owns: the summary cell linked to the listing, the card anatomy (name, date, stars,
 * verified mark, G, Read more), arrows on every width, the keyboard and drag, Read more measured after the fonts and
 * on every resize. The designer owns the section's tone, the card tone, the type and the heading.
 */
.gk-rvg {
  padding-block: var(--space-8);
  background: var(--color-field);
  font-family: var(--font-body);
  color: var(--color-ink);
}

.gk-rvg__in {
  width: min(100% - 2 * var(--gutter), var(--page-max));
  margin-inline: auto;
}

.gk-rvg__title {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: 1.1;
  color: var(--color-ink);
}

.gk-rvg__grid {
  display: grid;
  gap: var(--space-5);
}

/* ---------- Summary cell ---------- */
.gk-rvg__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "word word"
    "stars mark"
    "based based";
  align-items: center;
  gap: var(--space-1) var(--space-3);
  justify-self: start;
  color: inherit;
  text-decoration: none;
}

.gk-rvg__word {
  grid-area: word;
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gk-rvg__stars {
  grid-area: stars;
  font-size: var(--t-h3);
}

.gk-rvg__based {
  grid-area: based;
  font-size: var(--t-small);
}

.gk-rvg__based strong {
  font-weight: 700;
}

.gk-rvg__wordmark {
  grid-area: mark;
  width: 4.5rem;
  height: 1.5rem;
}

.gk-rvg__summary:hover .gk-rvg__based {
  text-decoration: underline;
}

.gk-rvg__summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-button);
}

/* Stars below the review's own rating fade back. */
.gk-rvg .gk-stars[data-rating="4"] .gk-ico:nth-child(n + 5),
.gk-rvg .gk-stars[data-rating="3"] .gk-ico:nth-child(n + 4),
.gk-rvg .gk-stars[data-rating="2"] .gk-ico:nth-child(n + 3),
.gk-rvg .gk-stars[data-rating="1"] .gk-ico:nth-child(n + 2) {
  opacity: 0.25;
}

/* ---------- Carousel ---------- */
.gk-rvg__carousel {
  position: relative;
  min-width: 0;
}

.gk-rvg__track {
  /* Positioned, so the screen reader only text inside each card is contained by the scroller, not the page. */
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-1);
  scrollbar-width: none;
  /* Room for the cards' soft shadow inside the scroller, given back below so the section keeps its rhythm. */
  padding: var(--space-2) var(--space-1) var(--space-8);
  margin-bottom: calc(-1 * var(--space-6));
  border-radius: var(--radius);
}

.gk-rvg__track::-webkit-scrollbar {
  display: none;
}

.gk-rvg__track:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.gk-rvg__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.gk-rvg__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 22rem);
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A white card on a coloured section, lifted by the one light soft shadow; never a border. */
.gk-rvg__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.gk-rvg__who {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
}

.gk-rvg__avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 16%, var(--color-paper));
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--t-lead);
}

.gk-rvg__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gk-rvg__meta {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.gk-rvg__name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gk-rvg__date {
  font-size: var(--t-small);
  color: var(--color-ink-soft);
}

.gk-rvg__g {
  align-self: start;
  width: 1.4rem;
  height: 1.4rem;
}

.gk-rvg__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--t-lead);
}

.gk-rvg__verified {
  width: 1.05rem;
  height: 1.05rem;
}

.gk-rvg__text {
  margin: 0;
}

.gk-rvg__text p {
  margin: 0;
  line-height: 1.55;
}

/* Clamped only once the script can offer Read more; with no script every review reads in full. */
html.js .gk-rvg__text:not(.is-open) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.gk-rvg__more {
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  cursor: pointer;
}

.gk-rvg__more:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.gk-rvg__more:focus-visible,
.gk-rvg__arrow:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Arrows: on every width. Under the track on a phone, over its edges on a desktop. */
.gk-rvg__arrows {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

.gk-rvg__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-paper);
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color var(--motion-duration) var(--motion-easing), opacity var(--motion-duration) var(--motion-easing);
}

.gk-rvg__arrow:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-paper) 85%, var(--color-ink));
}

.gk-rvg__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 61.99em) {
  .gk-rvg__arrows {
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 62em) {
  .gk-rvg__grid {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: center;
    gap: var(--space-6);
  }

  .gk-rvg__summary {
    grid-template-columns: 1fr;
    grid-template-areas: "word" "stars" "based" "mark";
    justify-items: center;
    justify-self: center;
    gap: var(--space-2);
    text-align: center;
  }

  .gk-rvg__stars {
    font-size: var(--t-h2);
  }

  .gk-rvg__based {
    font-size: var(--t-body);
  }

  .gk-rvg__wordmark {
    width: 6.5rem;
    height: 2.2rem;
  }

  .gk-rvg__list {
    grid-auto-columns: calc((100% - 2 * var(--space-4)) / 3);
  }

  .gk-rvg__carousel {
    padding-inline: var(--space-6);
  }

  .gk-rvg__arrow {
    position: absolute;
    /* The middle of the cards: the carousel's height less the shadow room the track keeps below them. */
    top: calc(var(--space-2) + (100% + var(--space-6) - var(--space-2) - var(--space-8)) / 2 - 44px / 2);
    z-index: 2;
  }

  .gk-rvg__arrow[data-prev] {
    left: 0;
  }

  .gk-rvg__arrow[data-next] {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gk-rvg__arrow {
    transition: none;
  }
}

/* =====================================================================================
 * Marlow & Finch restyle of the kit (behaviour, keyboard handling and reduced motion untouched).
 * Linen, stone, forest and brass; Libre Caslon Text for the large words; sharp corners; no borders on cards.
 * ===================================================================================== */

/* Fields and buttons inside the kit */
.gk-btn { color: var(--color-forest); transition: background-color 400ms var(--motion-easing), color 400ms var(--motion-easing); }
.gk-btn--primary { border-color: var(--color-brass); }
.gk-btn--primary:hover { background: var(--color-brass-pale); border-color: var(--color-brass-pale); }
.gk-btn--outline:hover { background: var(--color-forest); color: var(--color-linen); border-color: var(--color-forest); }
.gk-btn .gk-ico { width: 18px; height: 18px; transition: transform 400ms var(--motion-easing); }
.gk-btn--primary:hover .gk-ico { transform: translateY(-2px); }
.gk-field__label { color: var(--color-forest); font-weight: 700; }
.gk-field__input { border-color: color-mix(in srgb, var(--color-forest) 30%, transparent); background: var(--color-white); }
.gk-field__input:focus { outline: 2px solid var(--color-forest); outline-offset: 0; border-color: var(--color-forest); }
.gk-field__error .gk-ico { width: 18px; height: 18px; }

/* Step form: answer cards in stone, chosen in forest with a tick; brass progress */
.gk-qq__count { color: var(--color-slate); letter-spacing: 0.02em; }
.gk-qq__meter { height: 2px; border-radius: 0; background: var(--color-stone); }
.gk-qq__meter-fill { background: var(--color-brass); }
.gk-qq__q { font-weight: 400; color: var(--color-forest); }
.gk-qq__card { border-radius: 0; background: var(--color-linen); color: var(--color-ink); }
.gk-qq__opt:hover .gk-qq__card { background: var(--color-stone); }
.gk-qq__radio:checked + .gk-qq__card { background: var(--color-forest); color: var(--color-linen); }
.gk-qq__radio:checked + .gk-qq__card .gk-qq__icon { color: var(--color-brass); }
.gk-qq__radio:focus-visible + .gk-qq__card { outline: 2px solid var(--color-forest); outline-offset: 2px; }
.gk-qq__icon { color: var(--color-brass-deep); }
.gk-qq__icon .gk-ico { width: 26px; height: 26px; stroke-width: 1.5; }
.gk-qq__fit, .mf-suburb__note { padding: var(--space-3) var(--space-4); background: var(--color-stone); color: var(--color-ink); font-size: var(--t-small); }
.gk-qq__fit a, .mf-suburb__note a { font-weight: 700; color: var(--color-forest); white-space: nowrap; }
.mf-suburb { margin-top: var(--space-4); }
.mf-suburb__note { margin: 0; }
.gk-qq__after { color: var(--color-slate); }
.gk-qq__after .gk-ico { color: var(--color-brass-deep); }

/* Enquiry slide out: a linen panel, the offer as the title */
html.js .gk-slide__panel { background: var(--color-linen); }
html.js .gk-slide__scrim { background: color-mix(in srgb, var(--color-forest) 62%, transparent); }
.gk-slide__title { font-weight: 400; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem); line-height: 1.15; color: var(--color-forest); }
.gk-slide__lead { color: var(--color-ink); }
.gk-slide__trust { border-radius: 2px; background: var(--color-white); color: var(--color-ink); }
html.js .gk-slide__close { border-radius: 0; background: var(--color-stone); color: var(--color-forest); }
html.js .gk-slide__close:hover { background: var(--color-forest); color: var(--color-linen); }
.gk-slide .gk-qq__card { background: var(--color-white); }
.gk-slide__call { color: var(--color-slate); }
.gk-slide__call a { color: var(--color-forest); }

/* Gallery reel: square arrows on linen */
.gk-gal__arrow { border-radius: 0; border: 1px solid var(--color-forest); background: transparent; color: var(--color-forest); transition: background-color 400ms var(--motion-easing), color 400ms var(--motion-easing); }
.gk-gal__arrow:hover:not(:disabled) { background: var(--color-forest); color: var(--color-linen); }
.gk-gal__arrow:disabled { opacity: 0.35; }
.gk-gal__fig img { border-radius: 0; }

/* Reviews: a stone field, the summary in forest, the reviews set large in Caslon on linen */
.gk-rvg { background: var(--color-stone); }
.gk-rvg__title { font-weight: 400; color: var(--color-forest); }
.gk-rvg__summary { border-radius: 0; background: var(--color-forest); color: var(--color-linen); padding: var(--space-6) var(--space-5); }
.gk-rvg__word { font-family: var(--font-display); font-weight: 400; color: var(--color-linen); }
.gk-rvg__stars, .gk-rvg__card .gk-stars { color: var(--color-brass); }
.gk-rvg__based { color: color-mix(in srgb, var(--color-linen) 90%, transparent); }
.gk-rvg__wordmark { background: var(--color-white); padding: 4px 8px; box-sizing: content-box; border-radius: 2px; }
.gk-rvg__card { border-radius: 0; background: var(--color-linen); box-shadow: none; }
.gk-rvg__avatar { border-radius: 0; background: var(--color-forest); color: var(--color-linen); font-family: var(--font-display); }
.gk-rvg__name { color: var(--color-forest); }
.gk-rvg__date { color: var(--color-slate); }
.gk-rvg__text p { font-family: var(--font-display); font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.5; color: var(--color-ink); }
.gk-rvg__more { color: var(--color-forest); font-weight: 700; }
.gk-rvg__arrow { border-radius: 0; border-color: var(--color-forest); background: var(--color-linen); color: var(--color-forest); }
.gk-rvg__arrow:hover:not(:disabled) { background: var(--color-forest); color: var(--color-linen); }
.gk-rvg__summary { justify-self: stretch; }
@media (min-width: 62em) {
  .gk-rvg__summary { justify-self: stretch; padding: var(--space-7) var(--space-4); }
  .gk-rvg__stars { font-size: 1.5rem; }
  .gk-rvg__word { font-size: 3.5rem; line-height: 1; }
}
@media (max-width: 61.99em) {
  .gk-rvg__summary { justify-self: start; }
}

/* Form progress: the gold frame fills one side per step (top, right, base, left) around the step count */
.gk-qq__progress { position: relative; padding: var(--space-3) var(--space-4); }
.gk-qq__meter.mf-frame-meter { position: absolute; inset: 0; height: auto; margin: 0; overflow: visible; background: none; }
.mf-fm { position: absolute; background: var(--color-brass); transition: transform var(--motion-duration) var(--motion-easing); }
.mf-fm::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.mf-frame-meter::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--color-stone); }
.mf-fm--t { top: 0; left: 0; right: 0; height: 2px; transform-origin: left center; transform: scaleX(clamp(0, calc(var(--gk-qq-progress, 0.2) * 4), 1)); }
.mf-fm--r { top: 0; right: 0; bottom: 0; width: 2px; transform-origin: center top; transform: scaleY(clamp(0, calc(var(--gk-qq-progress, 0.2) * 4 - 1), 1)); }
.mf-fm--b { bottom: 0; left: 0; right: 0; height: 2px; transform-origin: right center; transform: scaleX(clamp(0, calc(var(--gk-qq-progress, 0.2) * 4 - 2), 1)); }
.mf-fm--l { top: 0; left: 0; bottom: 0; width: 2px; transform-origin: center bottom; transform: scaleY(clamp(0, calc(var(--gk-qq-progress, 0.2) * 4 - 3), 1)); }
