/* Linnbrook: a modern theme for a busy town lettings and sales office.
   Light by decision (D51): one look, whatever the visitor's device prefers. Host Grotesk alone, tabular figures for
   prices.
   Corner rule: cards 12px; photographs, fields and buttons 8px; chips and avatars fully round. One accent: green.
   Motion: quick and small, under 400 ms, only transform and opacity, and none at all under reduced motion. */

@font-face {
  font-family: 'Host Grotesk';
  src: url('../fonts/millrace/host-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
/* A fallback tuned to Host Grotesk's measured width and height, so the page does not jump when it loads. */
@font-face {
  font-family: 'Host Grotesk fallback';
  src: local('Arial');
  size-adjust: 106.3%;
  ascent-override: 95%;
  descent-override: 30%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --m-page: #ffffff;
  --m-surface: #f3f5f4;
  --m-surface-2: #e9eeec;
  --m-line: #e1e6e4;
  --m-field: #8a9490;
  --m-ink: #111816;
  --m-ink-2: #4a5551;
  --m-accent: #0b7a4b;
  --m-accent-deep: #08613b;
  --m-accent-ink: #075a37;
  --m-tint: #e3f2ea;
  --m-error: #b42318;
  --m-error-tint: #fdf0ee;
  --m-font: 'Host Grotesk', 'Host Grotesk fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --m-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --m-r-card: 12px;
  --m-r: 8px;
  --m-gutter: clamp(16px, 3.5vw, 40px);
  --m-space: clamp(48px, 5.5vw, 88px);
  --m-shadow: 0 1px 2px rgba(17, 24, 22, 0.05), 0 8px 24px rgba(17, 24, 22, 0.08);
  --m-bar-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--m-page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.m-body {
  margin: 0;
  background: var(--m-page);
  color: var(--m-ink);
  font-family: var(--m-font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--m-tint);
  color: var(--m-accent-ink);
}

a {
  color: inherit;
}

p {
  margin: 0 0 1em;
}

img {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--m-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.m-main:focus {
  outline: none;
}

.m-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--m-gutter);
}

.m-skip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: var(--m-r);
  background: var(--m-ink);
  color: var(--m-page);
}

.m-notice {
  margin: 0;
  padding: 10px var(--m-gutter);
  background: var(--m-tint);
  color: var(--m-accent-ink);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.m-small {
  font-size: 0.875rem;
  color: var(--m-ink-2);
}

/* ───────────── Type ───────────── */

.m-h1,
.m-h2,
.m-h3,
.m-hero-title {
  margin: 0;
  color: var(--m-ink);
  text-wrap: balance;
}

.m-h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.m-h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.m-h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}

.m-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--m-accent-ink);
  font-weight: 560;
  text-decoration: none;
}

.m-link::after {
  content: '\2192';
  transition: transform 160ms var(--m-ease);
}

.m-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.m-link:hover::after {
  transform: translateX(2px);
}

/* ───────────── Buttons, fields, chips ───────────── */

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--m-r);
  font-family: var(--m-font);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--m-ease), border-color 150ms var(--m-ease), color 150ms var(--m-ease), transform 100ms var(--m-ease), box-shadow 150ms var(--m-ease);
}

.m-btn--solid {
  background: var(--m-accent);
  color: #ffffff;
}

.m-btn--solid:hover {
  background: var(--m-accent-deep);
}

.m-btn--line {
  background: var(--m-page);
  border-color: var(--m-line);
  color: var(--m-ink);
  box-shadow: 0 1px 2px rgba(17, 24, 22, 0.05);
}

.m-btn--line:hover {
  border-color: var(--m-field);
}

.m-btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.m-btn:active {
  transform: scale(0.98);
}

.m-input,
.part-input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--m-field);
  border-radius: var(--m-r);
  background: var(--m-page);
  color: var(--m-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  transition: border-color 150ms var(--m-ease), box-shadow 150ms var(--m-ease);
}

select.m-input,
select.part-input {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111816' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

textarea.part-input {
  min-height: 7em;
  resize: vertical;
}

.m-input:hover,
.part-input:hover {
  border-color: var(--m-ink-2);
}

.m-input:focus-visible,
.part-input:focus-visible {
  outline: none;
  border-color: var(--m-accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 75, 0.25);
}

.m-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--m-tint);
  color: var(--m-accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.m-tag--agreed {
  background: var(--m-surface-2);
  color: var(--m-ink);
}

/* The BER band, in the colours of the energy scale, with dark text so every band reads. */
.m-ber {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.5;
  color: #10261b;
  background: #d7eadf;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.m-ber--a {
  background: #b8e3c6;
}
.m-ber--b {
  background: #d4ebb8;
}
.m-ber--c {
  background: #eef0b0;
  color: #2b2a0d;
}
.m-ber--d {
  background: #fbe2a8;
  color: #3a2706;
}
.m-ber--e {
  background: #fbd0a8;
  color: #3e1d05;
}
.m-ber--f,
.m-ber--g {
  background: #f7c1b9;
  color: #3f0f0a;
}

/* ───────────── The shared form parts ───────────── */

.part-form {
  display: grid;
  gap: 18px;
}

.part-fields {
  display: grid;
  gap: 18px;
}

.part-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.part-label,
.part-filter > label,
.part-filter > legend {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--m-ink);
}

.part-optional {
  font-weight: 400;
  color: var(--m-ink-2);
}

.part-hint {
  margin: -2px 0 8px;
  font-size: 0.875rem;
  color: var(--m-ink-2);
}

.part-error {
  margin: 6px 0 0;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--m-error);
}

.part-field--error .part-input {
  border-color: var(--m-error);
  box-shadow: 0 0 0 1px var(--m-error);
}

.part-choices {
  display: grid;
  gap: 8px;
}

.part-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.part-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--m-accent);
}

.part-errors {
  padding: 16px 18px;
  border: 1px solid var(--m-error);
  border-radius: var(--m-r);
  background: var(--m-error-tint);
}

.part-errors-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--m-error);
}

.part-errors ul {
  margin: 0;
  padding-left: 1.2em;
}

.part-errors a {
  color: var(--m-error);
  font-weight: 560;
}

.part-notice {
  padding: 14px 16px;
  border-radius: var(--m-r);
  background: var(--m-surface);
  border: 1px solid var(--m-line);
}

.part-privacy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--m-ink-2);
}

.part-submit {
  justify-self: start;
}

/* ───────────── Top bar ───────────── */

.m-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--m-line);
  view-transition-name: m-bar;
}

@supports (backdrop-filter: blur(8px)) {
  .m-bar {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

.m-bar-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: var(--m-bar-h);
}

.m-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 680;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--m-ink);
}

.m-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.m-mark rect {
  fill: var(--m-accent);
}

.m-mark path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4.5;
  stroke-linecap: round;
}

.m-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--m-r);
  font-size: 0.95rem;
  font-weight: 520;
  color: var(--m-ink-2);
  text-decoration: none;
  transition: background-color 140ms var(--m-ease), color 140ms var(--m-ease);
}

.m-nav a:hover {
  background: var(--m-surface);
  color: var(--m-ink);
}

.m-nav a[aria-current='page'] {
  background: var(--m-tint);
  color: var(--m-accent-ink);
}

.m-bar-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.m-bar-signin {
  font-weight: 560;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.m-bar-signin:hover {
  color: var(--m-accent-ink);
}

.m-menu {
  display: none;
}

@media (max-width: 1000px) {
  .m-nav,
  .m-bar-end {
    display: none;
  }
  .m-bar-row {
    display: flex;
    justify-content: space-between;
  }
  .m-menu {
    display: block;
  }
}

.m-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.m-menu summary::-webkit-details-marker {
  display: none;
}

.m-menu[open] summary {
  background: var(--m-surface);
}

.m-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 12px var(--m-gutter) 24px;
  background: var(--m-page);
  border-bottom: 1px solid var(--m-line);
  box-shadow: 0 12px 24px rgba(17, 24, 22, 0.08);
}

.m-menu[open] .m-menu-panel {
  animation: m-drop 180ms var(--m-ease);
}

@keyframes m-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.m-menu-panel ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.m-menu-panel li a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--m-line);
  font-size: 1.15rem;
  font-weight: 560;
  text-decoration: none;
}

.m-menu-panel li a[aria-current='page'] {
  color: var(--m-accent-ink);
}

.m-menu-panel .m-btn {
  width: 100%;
}

.m-menu-panel p {
  margin: 14px 0 0;
  font-weight: 560;
}

/* ───────────── Sections ───────────── */

.m-section {
  padding-top: var(--m-space);
}

.m-section--tight {
  padding-top: clamp(28px, 3vw, 44px);
}

.m-main > :last-child {
  padding-bottom: var(--m-space);
}

.m-section--surface {
  margin-top: var(--m-space);
  padding-bottom: var(--m-space);
  background: var(--m-surface);
}

.m-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
  margin-bottom: 20px;
}

.m-head-links {
  display: flex;
  gap: 20px;
  margin: 0;
}

.m-measure {
  max-width: 44rem;
}

.m-text .m-measure > p:first-of-type {
  font-size: 1.125rem;
  color: var(--m-ink);
}

.m-text p {
  color: var(--m-ink-2);
}

.m-list {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.m-placeholder .m-measure {
  padding: 20px 22px;
  border: 1px dashed var(--m-field);
  border-radius: var(--m-r-card);
  background: var(--m-surface);
}

.m-placeholder-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--m-ink);
  color: var(--m-page);
  font-size: 0.875rem;
  font-weight: 600;
}

.m-placeholder .m-measure > p:first-of-type {
  font-size: 0.875rem;
  color: var(--m-page);
}

/* ───────────── The first screen: search ───────────── */

.m-hero {
  padding: clamp(32px, 5vw, 72px) 0 clamp(8px, 1.5vw, 20px);
  text-align: center;
}

.m-hero-title {
  margin-inline: auto;
  max-width: 18ch;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.m-hero-intro {
  margin: 12px auto 28px;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--m-ink-2);
}

.m-search {
  max-width: 940px;
  margin-inline: auto;
  text-align: left;
}

.m-tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.m-tabs input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.m-tabs label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 2px 8px;
  border-bottom: 2px solid transparent;
  font-size: 1.05rem;
  font-weight: 620;
  color: var(--m-ink-2);
  cursor: pointer;
  transition: border-color 150ms var(--m-ease), color 150ms var(--m-ease);
}

.m-tabs input:checked + label {
  color: var(--m-ink);
  border-bottom-color: var(--m-accent);
}

.m-tabs input:focus-visible + label {
  outline: 2px solid var(--m-accent);
  outline-offset: 2px;
}

.m-tabs-n {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--m-ink-2);
  font-variant-numeric: tabular-nums;
}

.m-seg {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--m-surface);
}

.m-seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.m-seg label,
.m-seg--links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--m-ink-2);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--m-ease), color 150ms var(--m-ease), box-shadow 150ms var(--m-ease);
}

.m-seg input:checked + label,
.m-seg--links a[aria-current='page'] {
  background: var(--m-page);
  color: var(--m-ink);
  box-shadow: 0 1px 3px rgba(17, 24, 22, 0.12);
}

.m-seg input:focus-visible + label {
  outline: 2px solid var(--m-accent);
  outline-offset: 2px;
}

.m-seg-n {
  min-width: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--m-tint);
  color: var(--m-accent-ink);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* One bar, divided into fields: each field is a label over a borderless choice. */
.m-search-row {
  display: grid;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  background: var(--m-page);
  box-shadow: var(--m-shadow);
  padding: 6px;
}

.m-field {
  padding: 8px 12px 6px;
  border-radius: var(--m-r);
  transition: background-color 150ms var(--m-ease);
}

.m-field + .m-field {
  border-top: 1px solid var(--m-line);
}

.m-field:hover,
.m-field:focus-within {
  background: var(--m-surface);
}

.m-field label {
  display: block;
  margin: 0 0 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--m-ink-2);
}

.m-input--bare {
  min-height: 30px;
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: right 2px center;
  font-weight: 560;
}

.m-input--bare:hover {
  border-color: transparent;
}

.m-input--bare:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--m-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.m-search-go {
  min-height: 52px;
  margin-top: 6px;
}

@media (min-width: 700px) {
  .m-search-row {
    grid-template-columns: 1.6fr 1fr 1fr auto;
    align-items: center;
  }
  .m-field + .m-field {
    border-top: 0;
    border-left: 1px solid var(--m-line);
    border-radius: 0;
  }
  .m-field + .m-field:hover,
  .m-field + .m-field:focus-within {
    border-radius: var(--m-r);
  }
  .m-search-go {
    margin: 0 0 0 6px;
    padding: 0 30px;
  }
}

.m-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 2px;
  padding: 0;
  list-style: none;
}

.m-quick a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--m-line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 520;
  color: var(--m-ink-2);
  text-decoration: none;
  transition: border-color 140ms var(--m-ease), color 140ms var(--m-ease), background-color 140ms var(--m-ease);
}

.m-quick a:hover {
  border-color: var(--m-accent);
  color: var(--m-accent-ink);
  background: var(--m-tint);
}

/* ───────────── Cards ───────────── */

.m-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

@media (min-width: 1100px) {
  .m-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  /* Three or six homes sit in rows of three, so no row ends half empty. */
  .m-cards:has(> :nth-child(3):last-child),
  .m-cards:has(> :nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.m-card {
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  background: var(--m-page);
  transition: transform 180ms var(--m-ease), box-shadow 180ms var(--m-ease), border-color 180ms var(--m-ease);
}

.m-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--m-shadow);
  border-color: transparent;
}

.m-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--m-r-card);
}

.m-card-pic,
.m-row-pic,
.m-area-pic,
.m-post-pic,
.m-split-pic,
.m-record-pic,
.m-article-pic {
  display: block;
  overflow: hidden;
  border-radius: var(--m-r);
  background: var(--m-surface);
}

.m-card-pic {
  aspect-ratio: 4 / 3;
}

.m-card-pic img,
.m-row-pic img,
.m-area-pic img,
.m-post-pic img,
.m-split-pic img,
.m-record-pic img,
.m-article-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--m-ease);
}

a:hover .m-card-pic img,
a:hover .m-row-pic img,
a:hover .m-area-pic img,
a:hover .m-post-pic img {
  transform: scale(1.03);
}

.m-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 12px 6px 6px;
}

.m-card-body .m-tag {
  margin-bottom: 6px;
}

.m-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  margin: 0;
}

.m-price-v {
  font-size: 1.25rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.m-price-q {
  font-size: 0.875rem;
  color: var(--m-ink-2);
}

.m-price--lg .m-price-v {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
}

.m-card-title {
  font-weight: 560;
  font-size: 0.97rem;
}

.m-card-addr {
  font-size: 0.9rem;
  color: var(--m-ink-2);
}

.m-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 8px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--m-line);
  list-style: none;
  font-size: 0.875rem;
  color: var(--m-ink-2);
  font-variant-numeric: tabular-nums;
}

.m-card-body .m-facts {
  margin-top: auto;
}

/* On a phone a card lies on its side, so more homes fit on a screen. */
@media (max-width: 599px) {
  .m-cards {
    gap: 10px;
  }
  .m-card-link {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
  }
  .m-card-pic {
    aspect-ratio: 1;
    align-self: start;
  }
  .m-card-body {
    padding: 2px 4px 2px 0;
  }
  .m-card-body .m-facts {
    border-top: 0;
    padding-top: 4px;
    margin-top: 6px;
  }
}

/* ───────────── Results: rows ───────────── */

.m-rows {
  display: grid;
  gap: 12px;
}

@media (min-width: 980px) {
  .m-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.m-row {
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  background: var(--m-page);
  transition: transform 180ms var(--m-ease), box-shadow 180ms var(--m-ease), border-color 180ms var(--m-ease);
}

.m-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--m-shadow);
  border-color: transparent;
}

.m-row-link {
  display: grid;
  grid-template-columns: minmax(108px, 36%) 1fr;
  gap: 14px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--m-r-card);
}

.m-row-pic {
  aspect-ratio: 4 / 3;
  align-self: start;
}

.m-row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 4px 6px 4px 0;
}

.m-row-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 2px;
}

.m-row-when {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--m-accent-ink);
}

@media (max-width: 520px) {
  .m-row-link {
    grid-template-columns: 112px 1fr;
    gap: 12px;
  }
  .m-row-pic {
    aspect-ratio: 1;
  }
  .m-row .m-facts {
    border-top: 0;
    padding-top: 4px;
    margin-top: 4px;
  }
}

.m-pagehead--results {
  padding-bottom: 20px;
}

.m-results-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}

.m-seg--links {
  margin: 0;
}

.m-toolbar {
  position: static;
  top: var(--m-bar-h);
  z-index: 20;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--m-line);
  border-bottom: 1px solid var(--m-line);
}

.m-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}

.m-filters .part-filter > label {
  font-size: 0.875rem;
  color: var(--m-ink-2);
  margin-bottom: 4px;
}

.m-filters .m-input {
  min-height: 42px;
  font-size: 0.95rem;
}

.m-more {
  position: relative;
}

.m-more summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  font-weight: 560;
  font-size: 0.95rem;
  list-style: none;
  cursor: pointer;
  background: var(--m-page);
  transition: border-color 140ms var(--m-ease);
}

.m-more summary:hover {
  border-color: var(--m-field);
}

.m-more summary::-webkit-details-marker {
  display: none;
}

.m-more-n {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--m-accent);
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

.m-more-panel {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  background: var(--m-page);
  box-shadow: var(--m-shadow);
}

.m-more[open] .m-more-panel {
  animation: m-drop 180ms var(--m-ease);
}

.part-filter-checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.m-more-end {
  margin: 0;
}

.m-filters-go {
  min-height: 42px;
}

@media (min-width: 700px) {
  .m-toolbar {
    position: sticky;
  }
}

@media (min-width: 1000px) {
  .m-filters {
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto auto;
  }
  .m-more-panel {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 25;
    width: 320px;
  }
}

.m-resultsbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  margin: 20px 0 16px;
}

.m-count {
  margin: 0;
  color: var(--m-ink-2);
}

.m-count strong {
  color: var(--m-ink);
  font-weight: 650;
}

.m-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 0.9rem;
}

.m-sort-k {
  margin-right: 4px;
  color: var(--m-ink-2);
}

.m-sort a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--m-ink-2);
  text-decoration: none;
  transition: background-color 140ms var(--m-ease), color 140ms var(--m-ease);
}

.m-sort a:hover {
  background: var(--m-surface);
  color: var(--m-ink);
}

.m-sort a[aria-current='true'] {
  background: var(--m-ink);
  color: var(--m-page);
}

.m-results[aria-busy='true'] {
  opacity: 0.55;
  transition: opacity 150ms var(--m-ease);
}

.m-empty {
  padding: 32px;
  border: 1px dashed var(--m-field);
  border-radius: var(--m-r-card);
  text-align: center;
}

.m-empty p {
  max-width: 44ch;
  margin-inline: auto;
  color: var(--m-ink-2);
}

.m-alert {
  display: grid;
  gap: 16px 40px;
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--m-r-card);
  background: var(--m-surface);
}

.m-alert .part-form {
  max-width: 40rem;
}

@media (min-width: 900px) {
  .m-alert {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    padding: 32px;
  }
}

/* ───────────── Services, steps, figures ───────────── */

.m-services {
  display: grid;
  gap: 16px;
}

.m-service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 28px;
  border-radius: var(--m-r-card);
  background: var(--m-surface);
}

.m-service p {
  color: var(--m-ink-2);
  max-width: 44ch;
}

.m-service--accent {
  background: var(--m-tint);
}

@media (min-width: 800px) {
  .m-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.m-steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: m-step;
}

.m-steps li {
  position: relative;
  counter-increment: m-step;
  padding-top: 48px;
}

.m-steps li::before {
  content: counter(m-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--m-accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 650;
}

.m-steps p {
  margin: 0;
  color: var(--m-ink-2);
}

@media (min-width: 800px) {
  .m-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .m-steps li::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 44px;
    right: 0;
    height: 1px;
    background: var(--m-line);
  }
  .m-steps li:last-child::after {
    content: none;
  }
}

.m-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
}

.m-figures div {
  padding: 16px 18px;
  border-left: 1px solid var(--m-line);
}

.m-figures div:first-child {
  border-left: 0;
}

.m-figures dd {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.m-figures dt {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--m-ink-2);
}

/* ───────────── Split, areas, records, news ───────────── */

.m-split {
  display: grid;
  gap: 24px;
  align-items: center;
}

.m-split-pic {
  aspect-ratio: 16 / 10;
  border-radius: var(--m-r-card);
}

.m-split-text p {
  color: var(--m-ink-2);
  max-width: 44ch;
}

@media (min-width: 900px) {
  .m-split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.m-areas {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.m-area {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}

.m-area-pic {
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  border-radius: var(--m-r-card);
}

.m-area-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.m-area-n {
  font-size: 0.9rem;
  color: var(--m-ink-2);
}

.m-area:hover .m-area-name {
  color: var(--m-accent-ink);
}

.m-records {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 800px) {
  .m-records {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .m-records {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.m-record {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
}

.m-record-pic {
  width: 72px;
  height: 56px;
}

.m-record > span:last-child {
  display: grid;
  gap: 2px;
}

/* The Sold / Let chip keeps its own width instead of stretching across the grid cell (E10, 12 Nov 2026). */
.m-record .m-tag {
  justify-self: start;
}

.m-record-v {
  font-weight: 560;
  font-size: 0.95rem;
}

.m-record-k {
  font-size: 0.875rem;
  color: var(--m-ink-2);
}

.m-news {
  display: grid;
  gap: 24px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.m-post {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.m-post-pic {
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-radius: var(--m-r-card);
}

.m-post-date {
  font-size: 0.875rem;
  color: var(--m-ink-2);
  font-variant-numeric: tabular-nums;
}

.m-post-title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.m-post-sum {
  font-size: 0.93rem;
  color: var(--m-ink-2);
}

.m-post:hover .m-post-title {
  color: var(--m-accent-ink);
}

/* ───────────── Team, offices, FAQ, forms, CTA ───────────── */

.m-team {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.m-person {
  padding: 20px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
}

.m-person .m-h3 {
  margin: 14px 0 0;
}

.m-person-role {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--m-accent-ink);
}

.m-person p:last-child {
  margin-bottom: 0;
  font-size: 0.93rem;
  color: var(--m-ink-2);
}

.m-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--m-tint);
  color: var(--m-accent-ink);
  font-weight: 650;
  font-size: 1.05rem;
  object-fit: cover;
}

.m-avatar--sm {
  width: 44px;
  height: 44px;
  font-size: 0.95rem;
}

.m-office {
  display: grid;
  gap: 20px 32px;
  padding: 24px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
}

.m-office address {
  font-style: normal;
  color: var(--m-ink-2);
}

.m-office-phone {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.m-office-phone a {
  text-decoration: none;
}

.m-hours {
  margin: 0;
}

.m-hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--m-line);
  font-size: 0.93rem;
}

.m-hours dt {
  color: var(--m-ink-2);
}

.m-hours dd {
  margin: 0;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  .m-office {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.m-faq {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.m-faq details {
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  background: var(--m-page);
}

.m-faq summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  font-weight: 560;
  list-style: none;
  cursor: pointer;
}

.m-faq summary::-webkit-details-marker {
  display: none;
}

.m-faq summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--m-ink-2);
  border-bottom: 2px solid var(--m-ink-2);
  transform: rotate(45deg);
  transition: transform 180ms var(--m-ease);
}

.m-faq details[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}

.m-faq details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--m-ink-2);
}

.m-formcard {
  max-width: 44rem;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  background: var(--m-page);
  box-shadow: 0 1px 2px rgba(17, 24, 22, 0.04);
}

.m-formcard .m-h2 {
  margin-bottom: 8px;
}

.m-formcard-intro {
  color: var(--m-ink-2);
}

.m-cta {
  display: grid;
  gap: 16px 32px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--m-r-card);
  background: var(--m-tint);
}

.m-cta p {
  margin: 6px 0 0;
  color: var(--m-ink-2);
}

@media (min-width: 800px) {
  .m-cta {
    grid-template-columns: 1fr auto;
  }
}

.m-repair {
  display: grid;
  gap: 24px;
}

.m-repair .m-formcard p {
  color: var(--m-ink-2);
}

.m-emergency {
  padding: 24px;
  border-radius: var(--m-r-card);
  background: var(--m-surface);
}

.m-emergency-item {
  padding: 10px 0;
  border-top: 1px solid var(--m-line);
}

.m-emergency-t {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 650;
}

.m-emergency-item p {
  margin: 0;
}

@media (min-width: 1000px) {
  .m-repair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ───────────── Page heads ───────────── */

.m-pagehead {
  padding: clamp(24px, 4vw, 48px) 0 8px;
}

.m-pagehead-intro {
  margin: 10px 0 0;
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--m-ink-2);
}

.m-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.m-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--m-ink-2);
}

.m-crumbs li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--m-field);
}

.m-crumbs a {
  color: var(--m-ink-2);
  text-decoration: none;
}

.m-crumbs a:hover {
  color: var(--m-accent-ink);
  text-decoration: underline;
}

.m-updated {
  margin-top: 24px;
}

/* ───────────── A listing ───────────── */

.m-listing-top {
  padding-top: clamp(16px, 2.5vw, 28px);
}

.m-listing-head {
  display: grid;
  gap: 12px 32px;
  margin-bottom: 20px;
}

.m-listing-title {
  margin-top: 8px;
}

.m-listing-addr {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: var(--m-ink-2);
}

.m-listing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

@media (min-width: 900px) {
  .m-listing-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .m-listing-price {
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (min-width: 1000px) {
  .m-jump {
    display: none;
  }
}

.part-gallery {
  margin-bottom: 8px;
}

.part-gallery-track {
  aspect-ratio: 4 / 3;
  border-radius: var(--m-r-card);
  background: var(--m-surface);
  scrollbar-width: none;
}

.part-gallery-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 700px) {
  .part-gallery-track {
    aspect-ratio: 16 / 9;
    max-height: 72vh;
  }
}

.part-gallery-video {
  position: relative;
  background: var(--m-ink);
}

.part-gallery-video video {
  object-fit: contain;
}

.part-gallery-video figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--m-page);
  font-size: 0.875rem;
  font-weight: 560;
}

.part-gallery-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.part-gallery-count {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--m-ink-2);
  font-variant-numeric: tabular-nums;
}

.part-gallery-prev,
.part-gallery-next {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  background: var(--m-page);
  color: var(--m-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 560;
  cursor: pointer;
  transition: border-color 140ms var(--m-ease), transform 100ms var(--m-ease);
}

.part-gallery-prev:hover:not(:disabled),
.part-gallery-next:hover:not(:disabled) {
  border-color: var(--m-field);
}

.part-gallery-prev:active:not(:disabled),
.part-gallery-next:active:not(:disabled) {
  transform: scale(0.97);
}

.part-gallery-prev:disabled,
.part-gallery-next:disabled {
  color: var(--m-field);
  cursor: default;
}

.part-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
}

.part-gallery-thumbs a {
  position: relative;
  display: block;
  width: 88px;
  height: 60px;
  overflow: hidden;
  border-radius: var(--m-r);
  opacity: 0.7;
  transition: opacity 150ms var(--m-ease);
}

.part-gallery-thumbs a:hover,
.part-gallery-thumbs a[aria-current='true'] {
  opacity: 1;
}

.part-gallery-thumbs a[aria-current='true'] {
  box-shadow: inset 0 0 0 2px var(--m-accent);
}

.part-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.part-gallery-thumb-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1px 6px;
  background: rgba(17, 24, 22, 0.75);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 560;
}

.m-listing {
  display: grid;
  /* One column on a phone that is never wider than the screen: the photos' strip scrolls inside itself. */
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 24px;
}

@media (min-width: 1000px) {
  .m-listing {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
  }
}

/* The contact card stays in view only where the window is tall enough to show all of it, button included. */
@media (min-width: 1000px) and (min-height: 940px) {
  .m-listing-side {
    position: sticky;
    top: calc(var(--m-bar-h) + 20px);
  }
}

.m-keyfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin: 0;
}

.m-keyfacts div {
  padding: 12px 14px;
  border-radius: var(--m-r-card);
  background: var(--m-surface);
}

.m-keyfacts dt {
  font-size: 0.875rem;
  color: var(--m-ink-2);
}

.m-keyfacts dd {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.m-keyfacts .m-ber {
  font-size: 0.875rem;
}

.m-listing-section {
  margin-top: 32px;
}

.m-listing-section p {
  max-width: 68ch;
  color: var(--m-ink-2);
}

.m-listing-section .m-lede {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--m-ink);
}

.m-checks {
  display: grid;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-checks li {
  position: relative;
  padding-left: 28px;
}

.m-checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.25em;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--m-tint);
}

.m-checks li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: calc(0.25em + 3px);
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--m-accent);
  border-bottom: 2px solid var(--m-accent);
  transform: rotate(45deg);
}

@media (min-width: 700px) {
  .m-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.part-advert {
  margin: 0 0 10px;
  padding: 4px 16px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
}

.part-advert-line {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 2fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--m-line);
  font-size: 0.95rem;
}

.part-advert-line:last-child {
  border-bottom: 0;
}

.part-advert-line dt {
  color: var(--m-ink-2);
}

.part-advert-line dd {
  margin: 0;
  font-weight: 560;
}

.part-advert-detail {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--m-ink-2);
}

.m-contact {
  padding: 22px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  background: var(--m-page);
  box-shadow: var(--m-shadow);
  scroll-margin-top: calc(var(--m-bar-h) + 16px);
}

.m-contact-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-contact-person p {
  margin: 0;
}

.m-contact-name {
  font-weight: 620;
}

.m-contact-call {
  width: 100%;
  margin: 16px 0 20px;
  font-variant-numeric: tabular-nums;
}

.m-contact .m-h3 {
  padding-top: 18px;
  border-top: 1px solid var(--m-line);
}

.m-closed p {
  color: var(--m-ink-2);
}

/* ───────────── Articles, sent ───────────── */

.m-article-pic {
  aspect-ratio: 16 / 9;
  margin: 16px 0 28px;
  border-radius: var(--m-r-card);
}

.m-article .m-measure p {
  font-size: 1.06rem;
  line-height: 1.7;
}

.m-article .m-h3 {
  margin-top: 1.4em;
}

.m-next {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: m-next;
}

.m-next li {
  position: relative;
  counter-increment: m-next;
  padding: 6px 0 6px 40px;
}

.m-next li::before {
  content: counter(m-next);
  position: absolute;
  left: 0;
  top: 5px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--m-tint);
  color: var(--m-accent-ink);
  font-size: 0.875rem;
  font-weight: 650;
}

.m-email {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  background: var(--m-surface);
}

.m-email-subject {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--m-line);
  font-weight: 650;
}

/* ───────────── Footer ───────────── */

.m-footer {
  margin-top: var(--m-space);
  padding: clamp(36px, 4vw, 56px) 0 28px;
  background: var(--m-surface);
  font-size: 0.95rem;
}

.m-footer-grid {
  display: grid;
  gap: 28px 32px;
  padding-bottom: 28px;
}

@media (min-width: 700px) {
  .m-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .m-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.5fr;
  }
}

.m-footer-about address {
  margin: 14px 0 4px;
  font-style: normal;
  color: var(--m-ink-2);
}

.m-footer-about p {
  margin: 0 0 2px;
}

.m-footer-h {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--m-ink);
}

.m-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-footer li {
  padding: 3px 0;
}

.m-footer a {
  color: var(--m-ink-2);
  text-decoration: none;
}

.m-footer a:hover {
  color: var(--m-accent-ink);
  text-decoration: underline;
}

.m-footer .m-logo,
.m-footer .m-btn {
  color: var(--m-ink);
}

.m-footer .m-btn--solid {
  color: #ffffff;
}

.m-footer .m-btn:hover {
  text-decoration: none;
}

.m-footer-news .part-form {
  gap: 12px;
}

.m-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--m-line);
  font-size: 0.88rem;
  color: var(--m-ink-2);
}

.m-footer-base p {
  margin: 0;
}

.m-footer-base ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.m-sample {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--m-ink-2);
}

/* ───────────── Motion ───────────── */

/* Parts settle in as they arrive: the shared script marks only what starts below the window, so the first screen
   never waits, and the page is complete and still without the script. */
.is-waiting {
  opacity: 0;
  transform: translateY(10px);
}

.is-waiting.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 280ms var(--m-ease), transform 280ms var(--m-ease);
}

.m-cards > .is-waiting:nth-child(4n + 2).is-revealed,
.m-rows > .is-waiting:nth-child(2n).is-revealed,
.m-news > .is-waiting:nth-child(2).is-revealed,
.m-areas > .is-waiting:nth-child(2).is-revealed,
.m-team > .is-waiting:nth-child(2).is-revealed {
  transition-delay: 30ms;
}

.m-cards > .is-waiting:nth-child(4n + 3).is-revealed,
.m-news > .is-waiting:nth-child(3).is-revealed,
.m-areas > .is-waiting:nth-child(3).is-revealed,
.m-team > .is-waiting:nth-child(3).is-revealed {
  transition-delay: 60ms;
}

.m-cards > .is-waiting:nth-child(4n).is-revealed,
.m-team > .is-waiting:nth-child(4).is-revealed {
  transition-delay: 90ms;
}

/* Pages cross-fade where the browser can, with the top bar held still. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 160ms var(--m-ease) both m-out;
}

::view-transition-new(root) {
  animation: 220ms var(--m-ease) both m-in;
}

@keyframes m-out {
  to {
    opacity: 0;
  }
}

@keyframes m-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .is-waiting {
    opacity: 1;
    transform: none;
  }
  .m-card:hover,
  .m-row:hover,
  a:hover .m-card-pic img,
  a:hover .m-row-pic img,
  a:hover .m-area-pic img,
  a:hover .m-post-pic img,
  .m-btn:active {
    transform: none;
  }
}

@media print {
  .m-bar,
  .m-toolbar,
  .m-footer-news,
  .part-gallery-bar,
  .part-gallery-thumbs {
    display: none;
  }
  .is-waiting {
    opacity: 1;
    transform: none;
  }
}

/* ───────────── The website's assistant (lane sites-assistant, 12 Nov 2026) ─────────────
   Crisp, like the rest of the product-minded site: a green button by the stated corner rule (8px), a white card of a
   panel (12px) with a cool grey head carrying a small green "online" dot, chat bubbles (the visitor's in the green
   tint), and suggested questions as fully round chips. A sheet from the bottom on a phone. One short rise as it
   opens; still under reduced motion (the block above stills every animation). Where the button sits, its size on a
   phone and when it steps aside are the engine's (engine.css, "ask"): this dresses it only. */
.m-ask-button {
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: var(--m-r);
  background: var(--m-accent);
  color: #ffffff;
  font: 600 0.95rem/1 var(--m-font);
  text-decoration: none;
  box-shadow: var(--m-shadow);
  transition:
    background-color 150ms var(--m-ease),
    box-shadow 150ms var(--m-ease);
}
.m-ask-button:hover {
  background: var(--m-accent-deep);
  box-shadow: 0 1px 2px rgba(17, 24, 22, 0.06), 0 12px 28px rgba(17, 24, 22, 0.14);
}
.m-ask-button:focus-visible {
  outline: 2px solid var(--m-accent);
  outline-offset: 3px;
}
.m-ask-mark {
  display: inline-flex;
}
.m-ask-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 60px);
  z-index: 36;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 32px));
  max-height: min(660px, calc(100dvh - 112px));
  background: var(--m-page);
  color: var(--m-ink);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  box-shadow: 0 1px 2px rgba(17, 24, 22, 0.06), 0 24px 56px rgba(17, 24, 22, 0.16);
  overflow: hidden;
  font: 400 0.95rem/1.5 var(--m-font);
}
.m-ask-panel:not([hidden]) {
  animation: m-ask-in 200ms var(--m-ease);
}
@keyframes m-ask-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}
.m-ask-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 10px 12px 16px;
  background: var(--m-surface);
  border-bottom: 1px solid var(--m-line);
}
.m-ask-head .part-ask-heading {
  flex: 1;
  min-width: 0;
}
.m-ask-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 650 1.02rem/1.25 var(--m-font);
}
.m-ask-title::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--m-accent);
  box-shadow: 0 0 0 3px var(--m-tint);
}
.m-ask-who {
  margin: 4px 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--m-ink-2);
}
.m-ask-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: var(--m-r);
  background: transparent;
  color: var(--m-ink);
  cursor: pointer;
  transition:
    background-color 150ms var(--m-ease),
    border-color 150ms var(--m-ease);
}
.m-ask-close:hover {
  background: var(--m-page);
  border-color: var(--m-line);
}
.m-ask-close:focus-visible,
.m-ask-q:focus-visible,
.m-ask-send:focus-visible {
  outline: 2px solid var(--m-accent);
  outline-offset: 2px;
}
.m-ask-body {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}
.m-ask-about {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  font-size: 0.88rem;
  line-height: 1.4;
}
.m-ask-about-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--m-accent-ink);
}
.m-ask-off {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--m-r);
  background: var(--m-surface);
}
.m-ask-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.m-ask .part-ask-msg-who {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.m-ask .part-ask-msg {
  max-width: 86%;
  overflow-wrap: anywhere;
}
.m-ask .part-ask-msg--visitor {
  align-self: flex-end;
  padding: 9px 13px;
  border-radius: var(--m-r-card) var(--m-r-card) 4px var(--m-r-card);
  background: var(--m-tint);
  color: var(--m-ink);
}
.m-ask .part-ask-msg--assistant {
  align-self: flex-start;
  padding: 9px 13px;
  border-radius: var(--m-r-card) var(--m-r-card) var(--m-r-card) 4px;
  background: var(--m-surface);
}
.m-ask .part-ask-msg--assistant.is-error {
  background: var(--m-error-tint);
  color: var(--m-error);
}
.m-ask .part-ask-msg--note {
  align-self: stretch;
  max-width: none;
  font-size: 0.875rem;
  color: var(--m-ink-2);
}
.m-ask .part-ask-msg--form {
  align-self: stretch;
  max-width: none;
}
.m-ask .part-ask-msg-text p {
  margin: 0;
}
.m-ask .part-ask-msg-text p + p,
.m-ask .part-ask-msg-text p + ul,
.m-ask .part-ask-msg-text ul + p {
  margin-top: 8px;
}
.m-ask .part-ask-msg-text ul {
  margin: 0;
  padding-left: 18px;
}
.m-ask .part-ask-step {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--m-accent-ink);
}
.m-ask .part-ask-step::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.m-ask-suggest {
  margin-top: 14px;
}
.m-ask-suggest-label {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--m-ink-2);
}
.m-ask-suggest ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.m-ask-q {
  padding: 7px 13px;
  border: 1px solid var(--m-line);
  border-radius: 999px;
  background: var(--m-page);
  color: var(--m-ink);
  font: 500 0.875rem/1.3 var(--m-font);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms var(--m-ease),
    background-color 150ms var(--m-ease);
}
.m-ask-q:hover {
  border-color: var(--m-accent);
  background: var(--m-tint);
}
.m-ask-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--m-line);
}
.m-ask-text {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 140px;
  padding: 10px 12px;
  border: 1px solid var(--m-field);
  border-radius: var(--m-r);
  background: var(--m-page);
  color: var(--m-ink);
  font: inherit;
  resize: none;
}
.m-ask-text:hover {
  border-color: var(--m-ink-2);
}
.m-ask-text:focus-visible {
  outline: 2px solid var(--m-accent);
  outline-offset: 1px;
}
.m-ask-send {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--m-r);
  background: var(--m-accent);
  color: #ffffff;
  font: 600 0.92rem/1 var(--m-font);
  cursor: pointer;
  transition: background-color 150ms var(--m-ease);
}
.m-ask-send:hover {
  background: var(--m-accent-deep);
}
.m-ask-compose.is-busy .m-ask-send {
  opacity: 0.6;
  cursor: progress;
}
.m-ask-person {
  margin: 0;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--m-line);
  background: var(--m-surface);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--m-ink-2);
}
.m-ask-person a {
  color: var(--m-accent-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.m-ask .part-ask-card {
  padding: 14px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-card);
  background: var(--m-page);
  box-shadow: 0 1px 2px rgba(17, 24, 22, 0.05);
}
.m-ask .part-ask-card-title {
  margin: 0;
  font-weight: 650;
}
.m-ask .part-ask-card-note {
  margin: 2px 0 12px;
  font-size: 0.875rem;
  color: var(--m-ink-2);
}
.m-ask .part-ask-card .part-form,
.m-ask .part-ask-card .part-fields {
  gap: 14px;
}
.m-ask-submit {
  width: 100%;
}
.m-ask .part-ask-sent {
  padding: 12px 14px;
  border-radius: var(--m-r);
  background: var(--m-tint);
  color: var(--m-ink);
}
.m-ask .part-ask-sent p {
  margin: 0 0 4px;
  font-weight: 600;
}
.m-ask .part-ask-sent a {
  color: var(--m-accent-ink);
}
.m-ask-home {
  width: 100%;
  margin: -12px 0 20px;
}
.m-ask-home svg {
  color: var(--m-accent);
}
@media (max-width: 600px) {
  .m-ask-panel {
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 88dvh;
    border-width: 1px 0 0;
    border-radius: var(--m-r-card) var(--m-r-card) 0 0;
  }
  .m-ask.is-open .m-ask-button {
    visibility: hidden;
  }
}
@media print {
  .m-ask {
    display: none;
  }
}
