/* Medical Health and Vitality — site stylesheet.
   Plain CSS, no build step. Fonts are self-hosted in assets/fonts/. */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/lora-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/lora-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --background: #FAF9F6;
  --surface-white: #FFFFFF;
  --surface-soft: #E7EFF4;
  --brand-soft: #C5D9E7;
  --accent-blush: #EEE5E2;
  --action-blue: #41647A;
  --text-primary: #293C47;
  --text-secondary: #526575;
  --border: #DDE4E8;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 75rem;                            /* 1200px content width */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --gap: clamp(1.5rem, 2.6vw, 2rem);        /* between columns */
  --section: clamp(2.75rem, 6.5vw, 5rem);   /* 44px mobile to 80px desktop */
  --radius: 6px;

  --arrow: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 12%27%3E%3Cpath d=%27M0 6h14M9.5 1.5 14 6l-4.5 4.5%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.5%27/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.875rem, 3.4vw, 2.625rem); line-height: 1.15; }
h3 { font-size: 1.5rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--action-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  background: var(--action-blue);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Actions ---------- */

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--action-blue);
  box-shadow: inset 0 0 0 1px var(--action-blue);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { background: var(--text-primary); box-shadow: inset 0 0 0 1px var(--text-primary); }

.button-outline { background: transparent; color: var(--action-blue); }
.button-outline:hover { background: var(--action-blue); box-shadow: inset 0 0 0 1px var(--action-blue); color: #fff; }

.arrow-link {
  color: var(--action-blue);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}
/* The arrow is drawn in a run of non-breaking spaces, so it always stays on
   the same line as the last word of the link. */
.arrow-link::after {
  content: "\00a0\00a0\00a0\00a0\00a0\00a0";
  background: currentColor;
  -webkit-mask: var(--arrow) right center / 1rem 0.75rem no-repeat;
  mask: var(--arrow) right center / 1rem 0.75rem no-repeat;
}
.arrow-link:hover { color: var(--text-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

/* Marks where a detail the practice has not yet confirmed will appear.
   Written by scripts/build.py in preview builds only: a release build
   cannot contain it. */
.pending {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  background: var(--surface-white);
  border: 1px dashed var(--action-blue);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--surface-white);
  border-bottom: 1px solid var(--border);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.375rem;
}

.logo { display: block; flex: 0 1 auto; }
.logo img { width: 21.875rem; }

.masthead-aside { display: flex; align-items: center; gap: 1.5rem; }
.masthead-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: nowrap;
}
.masthead-note .arrow-link { font-size: 0.9375rem; }
.masthead-phone {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--text-primary);
  text-decoration: none;
}
.masthead-phone:hover { color: var(--action-blue); }

/* "Make a booking" appears in the masthead on wide screens and beside the
   Menu button on narrow ones. */
.button-small { padding: 0.6rem 1.1rem; font-size: 0.9375rem; }
.nav-booking { display: none; }

.site-nav { border-top: 1px solid var(--border); }

.menu-button { display: none; }

.nav-list {
  display: flex;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.9375rem;
}
.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--text-primary);
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.nav-link:hover,
.nav-toggle[aria-expanded="true"] { color: var(--action-blue); }
.nav-link[aria-current="page"],
.nav-link.is-current { box-shadow: inset 0 -2px 0 var(--action-blue); }

/* Dropdown indicator: a small chevron that turns when the list is open. */
.nav-toggle::after,
.menu-button::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.nav-toggle[aria-expanded="true"]::after,
.menu-button[aria-expanded="true"]::after { margin-top: 0.15rem; transform: rotate(225deg); }

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -1.25rem;
  min-width: 17rem;
  padding: 0.5rem 0;
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.has-sub.is-open > .nav-sub,
html:not(.js) .has-sub:hover > .nav-sub,
html:not(.js) .has-sub:focus-within > .nav-sub { display: block; }

.nav-sub a {
  display: block;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-sub a:hover { color: var(--action-blue); background: var(--background); }
.nav-sub a[aria-current="page"] { color: var(--action-blue); font-weight: 500; }

/* ---------- Hero ---------- */

.hero { padding-block: var(--section); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: center;
}

/* Sized with the text column so the first line always fits on one line. */
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.625rem);
  line-height: 1.1;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 span { white-space: nowrap; }

.hero-lead {
  max-width: 32em;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero .actions { margin-top: 2rem; }

/* The homepage image, uncropped and never wider than 700px. A short note can
   be shown beneath it (HERO label in scripts/build.py); none is at present. */
.hero-figure { width: 100%; max-width: 43.75rem; justify-self: end; }
.hero-photo { width: 100%; border-radius: var(--radius); }
.hero-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: right;
}

/* ---------- Practice introduction ---------- */

.practice {
  background: var(--accent-blush);
  padding-block: var(--section);
}

.practice-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: var(--gap);
}

.practice h2 { grid-column: 6 / -1; grid-row: 1; margin-top: -0.2em; }

.practice-portrait { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.practice-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.practice-portrait figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.practice-portrait figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1875rem;
}

.practice-body { grid-column: 6 / -1; grid-row: 2; max-width: 38rem; margin-top: 1.5rem; }
.practice-body p + p { margin-top: 1.1rem; }
.practice-body .actions { gap: 0.75rem 2rem; margin-top: 1.75rem; }

.serif-lead {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.9vw, 1.375rem);
  line-height: 1.5;
}

/* ---------- Services ---------- */

.services { padding-block: var(--section); scroll-margin-top: 1rem; }

.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { max-width: 34em; margin-top: 0.75rem; color: var(--text-secondary); }

/* Four services, two by two, each with its photograph beside the text. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem clamp(2rem, 4.5vw, 3.5rem);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 1.75rem;
  align-items: start;
}
.service img { grid-row: 1 / span 3; }
.service h3 { margin-top: 0; font-size: 1.375rem; }

.service img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  border-radius: var(--radius);
}
.service img.is-framed { border: 1px solid var(--border); }

.service p { margin-top: 0.5rem; font-size: 1rem; line-height: 1.6; color: var(--text-secondary); }
.service .arrow-link { display: inline-block; margin-top: 0.9rem; }
/* The whole item is one link target; the visible action stays a single link. */
.service .arrow-link::before { content: ""; position: absolute; inset: 0; }
.service:hover h3 { color: var(--action-blue); }

.services-all { margin-top: clamp(2rem, 4.5vw, 3rem); text-align: center; }

/* ---------- Planning your visit ---------- */

.visit {
  background: var(--surface-soft);
  padding-block: var(--section);
  scroll-margin-top: 1rem;
}
.visit h2 { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.visit-item { padding-top: 1.25rem; border-top: 1px solid var(--brand-soft); }
.visit-item h3 { margin-bottom: 0.6rem; }
.visit-item p { font-size: 1rem; line-height: 1.6; }
.visit-detail { margin-top: 0.35rem; }
.visit-links { display: grid; justify-items: start; gap: 0.6rem; margin-top: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface-white);
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--gap);
}
.footer-brand img { width: 11rem; margin-bottom: 0.75rem; }
.site-footer h2 {
  margin-bottom: 0.6rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.7;
  color: var(--text-primary);
}
.footer-contact p + p { margin-top: 0.6rem; }
.footer-pages ul { columns: 2; column-gap: var(--gap); }
.site-footer a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--brand-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.site-footer a:hover { color: var(--action-blue); text-decoration-color: currentColor; }
.footer-privacy { max-width: 44em; margin-top: clamp(2rem, 4vw, 3rem); font-size: 0.875rem; }
.footer-privacy + .footer-legal { margin-top: 1.25rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}

/* ---------- Inner pages: page heading ---------- */

.page-head { padding-block: clamp(2.25rem, 5.5vw, 4.25rem); }
.page-head.has-photo .page-head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: center;
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3.125rem); line-height: 1.12; }
.page-parent { margin-bottom: 0.6rem; font-size: 0.9375rem; font-weight: 500; }
.page-parent a { color: var(--action-blue); text-decoration: none; }
.page-parent a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.page-lead {
  max-width: 36em;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.page-lead + .page-lead { margin-top: 0.9rem; }
.page-head .actions { margin-top: 1.75rem; }

/* Original photograph, cropped to the same shape as the service images and
   never shown wider than 480px. */
.page-photo {
  width: 100%;
  max-width: 30rem;
  justify-self: end;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  border-radius: var(--radius);
}
.page-photo.is-framed { border: 1px solid var(--border); }

/* ---------- Inner pages: content ---------- */

.section { padding-block: var(--section); }
.page-head + .section { padding-top: 0; }

/* Headed blocks of information, three across. */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem var(--gap);
  align-items: start;
}
.topic-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-grid.is-one { grid-template-columns: minmax(0, 1fr); }
.topic { padding-top: 1.25rem; border-top: 1px solid var(--brand-soft); }
.topic h2 { margin-bottom: 0.75rem; font-size: 1.5rem; line-height: 1.25; }
.topic p { max-width: 38em; font-size: 1rem; line-height: 1.6; }
.topic p + p, .topic p + ul, .topic ul + p, .topic p + table, .topic table + p,
.topic p + .actions, .topic ul + .actions { margin-top: 0.85rem; }
.topic .visit-links { margin-top: 0.85rem; }
.topic h3 { margin: 1.5rem 0 0.6rem; font-size: 1.1875rem; line-height: 1.35; }
.topic[id] { scroll-margin-top: 1.5rem; }
.topic-grid + .topic-grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.ticks li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 1rem;
  line-height: 1.55;
  break-inside: avoid;
}
.ticks li + li { margin-top: 0.45rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--action-blue);
}
.ticks.is-columns { max-width: 50rem; columns: 2; column-gap: var(--gap); }

.text-link {
  color: var(--action-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.text-link:hover { color: var(--text-primary); }

.info-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.info-table th, .info-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
.info-table th { padding-right: 1.5rem; font-weight: 500; }
.info-table td:last-child { text-align: right; white-space: nowrap; }
.info-table small { display: block; font-size: 0.875rem; font-weight: 400; color: var(--text-secondary); }

/* Consultation fees: Consultation, Duration, Fee. */
.fee-table thead th { padding-top: 0; font-size: 0.875rem; font-weight: 400; color: var(--text-secondary); }
.fee-table thead th:last-child { padding-right: 0; text-align: right; }
.fee-table td { white-space: nowrap; }
.fee-table td:not(:last-child) { padding-right: 1.5rem; }

/* Links to the other services, beneath a service page. */
.related {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.related h2 { font-size: 1.25rem; line-height: 1.4; }
.related ul { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }

/* About Us: the biography sits in the practice section. */
.credentials { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--text-secondary); }
.qualifications { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--brand-soft); }
.qualifications h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.qualifications strong { font-weight: 500; }

/* Privacy Policy: one readable column, no wider than 800px. */
.policy { max-width: 50rem; }
.policy p, .policy li { font-size: 1rem; line-height: 1.65; }
.policy h2 { margin: 2.5rem 0 0.75rem; font-size: 1.5rem; line-height: 1.25; }
.policy h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1875rem; line-height: 1.35; }
.policy > :first-child { margin-top: 0; }
.policy p + p, .policy p + ul, .policy p + ol, .policy ul + p, .policy ol + p { margin-top: 0.85rem; }
.policy ol { padding-left: 1.4rem; list-style: decimal; }
.policy ol li + li { margin-top: 0.45rem; }
.policy strong { font-weight: 500; }
.policy-date { font-size: 0.9375rem; color: var(--text-secondary); }
.policy .policy-date + p { margin-top: 0.85rem; }

/* ---------- Services: two columns ---------- */

@media (max-width: 61.99rem) {
  /* Services: photograph above the text, still two by two. */
  .service-grid { gap: 2.25rem var(--gap); }
  .service { display: block; }
  .service h3 { margin-top: 1.25rem; font-size: 1.5rem; }

  .practice h2, .practice-body { grid-column: 5 / -1; }

  /* Hero stacks: headline wraps naturally, photograph follows the actions. */
  .hero-inner { display: block; }
  .hero h1 { font-size: clamp(1.875rem, 9.2vw, 3.25rem); }
  .hero h1 span { white-space: normal; }
  .hero-figure { justify-self: auto; margin-top: 2.25rem; }

  .page-head.has-photo .page-head-inner { display: block; }
  .page-photo { justify-self: auto; margin-top: 2rem; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticks.is-columns { columns: 2; }
}

/* ---------- Navigation collapses to a Menu button ---------- */

@media (max-width: 52rem) {
  .logo img { width: 18rem; }

  .masthead-booking { display: none; }
  .site-nav > .wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; }
  .js .menu-button { flex: 1; }
  .nav-booking { display: inline-block; margin-block: 0.5rem; }
  .nav-list { flex-basis: 100%; }

  .js .menu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    background: none;
    border: 0;
    color: var(--text-primary);
    font: 500 1rem/1.3 var(--sans);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .js .nav-list { display: none; }
  .js .site-nav.is-open .nav-list { display: block; }

  .nav-list { display: block; padding-bottom: 0.75rem; font-size: 1rem; }
  .nav-item { border-top: 1px solid var(--border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.75rem 0; box-shadow: none; }
  .nav-link[aria-current="page"], .nav-link.is-current { box-shadow: none; color: var(--action-blue); font-weight: 500; }
  .nav-sub {
    position: static;
    min-width: 0;
    padding: 0 0 0.75rem 1rem;
    border: 0;
  }
  html:not(.js) .nav-sub { display: block; }
  .nav-sub a { padding: 0.4rem 0; color: var(--text-secondary); }
}

/* ---------- Single column ---------- */

@media (max-width: 47.99rem) {
  body { font-size: 1rem; }

  .hero-lead { margin-top: 1.1rem; font-size: 1.0625rem; }
  .hero .actions { margin-top: 1.5rem; }
  .hero-figure { margin-top: 2rem; }

  .practice-inner { display: block; }
  .practice h2 { margin-top: 0; }
  .practice-portrait {
    display: flex;
    align-items: flex-end;
    gap: 1.1rem;
    margin-top: 1.5rem;
  }
  .practice-portrait img { flex: none; width: 48%; max-width: 15rem; }
  .practice-portrait figcaption { margin-top: 0; padding-bottom: 0.15rem; }

  .visit-grid { display: block; }
  .visit-item + .visit-item { margin-top: 1.75rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  .page-lead { margin-top: 1rem; font-size: 1.0625rem; }
  .page-head .actions { margin-top: 1.5rem; }
  .topic-grid, .topic-grid.is-two { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .related { display: block; }
  .related ul { display: grid; justify-items: start; margin-top: 0.75rem; }
}

/* ---------- Services: compact single column ---------- */

@media (max-width: 35.99rem) {
  .masthead { padding-block: 1rem; }
  .masthead-aside { display: none; }
  .logo img { width: min(19rem, 100%); }

  .service-grid { display: block; }
  .service {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    padding-block: 1.25rem;
    border-top: 1px solid var(--border);
  }
  .service:last-child { border-bottom: 1px solid var(--border); }
  .service img { grid-row: 1 / span 3; aspect-ratio: 1; }
  .service h3 { margin-top: -0.15rem; font-size: 1.25rem; }
  .service p { margin-top: 0.3rem; font-size: 0.9375rem; line-height: 1.5; }
  .service .arrow-link { margin-top: 0.55rem; font-size: 0.9375rem; }

  .services-all .button { display: block; }

  .ticks.is-columns { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
