/* Site template. Mobile first, no JavaScript.
   Every colour, font, size, corner, shadow and spacing value comes from the
   theme (site/theme.ts) through /css/theme.css, which is loaded first.
   Layout variants are classes on the sections (hero-split, services-rows...)
   and theme options are classes on <body> (t-buttons-pill, t-cards-soft...).

   Colour contexts: dark bands (photo and statement heroes, the call to
   action band and panel) redefine the colour tokens to the secondary
   colour's text colour, and cards inside them put the theme's own back, so
   every component reads its colours from the same few tokens wherever it is. */

:root {
  --mark-bg: #fff1b8;
  --mark-ink: #4d3a00;
  --max: 72rem;
  /* The theme's own colours, kept for cards inside dark bands. */
  --t-text: var(--text);
  --t-muted: var(--muted);
  --t-label: var(--label);
  --t-primary: var(--primary);
  --t-on-primary: var(--on-primary);
  --t-line: var(--line);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--step-4); line-height: 1.08; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p, ul, ol, dl { margin: 0 0 1rem; }

a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--primary); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

main:focus { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Containers: the page column, and the narrow one for reading */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.narrow-block { max-width: var(--narrow); margin-inline: auto; }

/* Sections: one gap between them, everywhere */
.section { padding-block: var(--space); position: relative; }
.section > .wrap > :last-child { margin-bottom: 0; }

/* Dark contexts */
:is(.hero-photo, .hero-statement, .cta-band, .cta-panel .cta-inner) {
  --text: var(--on-secondary);
  --muted: var(--on-secondary);
  --label: var(--on-secondary);
  --primary: var(--on-secondary);
  --on-primary: var(--secondary);
  --line: color-mix(in srgb, var(--on-secondary) 28%, var(--secondary));
  color: var(--text);
}
.card {
  --text: var(--t-text);
  --muted: var(--t-muted);
  --label: var(--t-label);
  --primary: var(--t-primary);
  --on-primary: var(--t-on-primary);
  --line: var(--t-line);
  color: var(--text);
}

/* Section label and heading */
.label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 0.875rem;
}
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section-head h2 { margin-bottom: 0; }
.section-head-centred { text-align: center; margin-inline: auto; }
.section-intro { margin-top: 1rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.section-intro p:last-child { margin-bottom: 0; }
.more { margin-top: 2rem; font-weight: 600; }

/* Section backgrounds and the edges between them (theme sections, dividers) */
.tone-plain { --tone: var(--bg); }
.tone-alt { --tone: var(--alt); background: var(--alt); }
.tone-tint { --tone: var(--tint); background: var(--tint); }
.tone-alt, .tone-tint { z-index: 1; }
.t-dividers-line .section + .section { border-top: 1px solid var(--line); }
.t-dividers-hairline .section + .section::before {
  content: "";
  display: block;
  width: calc(min(100%, var(--max)) - 2 * var(--gutter));
  margin: calc(-1 * var(--space)) auto var(--space);
  border-top: 1px solid var(--line);
}
.t-dividers-wave .tone-alt::before, .t-dividers-wave .tone-tint::before,
.t-dividers-wave .tone-alt::after, .t-dividers-wave .tone-tint::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-size: 28px 14px;
  background-repeat: repeat-x;
}
.t-dividers-wave .tone-alt::before, .t-dividers-wave .tone-tint::before {
  top: -14px;
  background-image: radial-gradient(circle at 50% 100%, var(--tone) 10px, transparent 10.5px);
}
.t-dividers-wave .tone-alt::after, .t-dividers-wave .tone-tint::after {
  bottom: -14px;
  background-image: radial-gradient(circle at 50% 0, var(--tone) 10px, transparent 10.5px);
}
.t-dividers-slant .tone-alt::before, .t-dividers-slant .tone-tint::before,
.t-dividers-slant .tone-alt::after, .t-dividers-slant .tone-tint::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3vw;
  background: var(--tone);
}
.t-dividers-slant .tone-alt::before, .t-dividers-slant .tone-tint::before { top: calc(-3vw + 1px); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.t-dividers-slant .tone-alt::after, .t-dividers-slant .tone-tint::after { bottom: calc(-3vw + 1px); clip-path: polygon(0 0, 100% 0, 0 100%); }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100%;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 0.5rem; }

/* Banner shown on every page while the site is not live */
.demo-banner {
  background: var(--mark-bg);
  color: var(--mark-ink);
  font-size: var(--step--1);
  border-bottom: 1px solid var(--line);
}
.demo-banner p { margin: 0; padding-block: 0.5rem; }

/* Header: split (logo left, navigation right), centred, minimal.
   Phones: the brand and a Menu button; the links open below it. */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand nav";
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
}
.brand {
  grid-area: brand;
  text-decoration: none;
  justify-self: start;
  min-width: 0;
}
.brand-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  font-size: var(--step-1);
  line-height: 1.2;
}
.brand-short { display: none; }
@media (max-width: 29.99rem) {
  .brand-name { font-size: 1.0625rem; }
  .brand:has(.brand-short) .brand-full { display: none; }
  .brand-short { display: block; }
}
.brand-logo { max-height: 3rem; width: auto; }
.site-nav { grid-area: nav; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding-block: 0.625rem;
  text-decoration: none;
  font-size: 0.9375rem;
}
.nav-list a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--primary);
}
.nav-wide { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after { top: 5px; }
.nav-menu[open] .nav-toggle-icon { background: transparent; }
.nav-menu[open] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-menu[open] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }
.nav-menu[open] > .nav-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0.5rem var(--gutter) 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px -20px var(--text);
}
.nav-menu .nav-list li + li { border-top: 1px solid var(--line); }
.header-book {
  display: none;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.55rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-button);
  text-decoration: none;
}
.header-book:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

@media (min-width: 60rem) {
  .nav-menu { display: none; }
  .nav-wide { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
  .nav-wide a { padding-block: 0.5rem; }
  .header-split .header-inner { grid-template-columns: auto 1fr; gap: 2rem; padding-block: 1rem; }
  .header-split .header-inner:has(.header-book) { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav book"; }
  .header-split .nav-wide { justify-content: flex-end; }
  .header-split .header-book, .header-centred .header-book { display: inline-block; grid-area: book; justify-self: end; }
}

@media (min-width: 60rem) {
  .header-centred .header-inner { grid-template-columns: 1fr; grid-template-areas: "brand" "nav"; justify-items: center; text-align: center; padding-block: 1.5rem 0.75rem; }
  .header-centred .header-inner:has(.header-book) { grid-template-columns: 1fr auto 1fr; grid-template-areas: ". brand book" "nav nav nav"; }
  .header-centred .brand { justify-self: center; }
  .header-centred .brand-name { font-size: var(--step-2); }
  .header-centred .nav-wide { justify-content: center; }
}

.header-minimal { border-bottom: 0; }
.header-minimal .nav-list a { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
@media (min-width: 60rem) {
  .header-minimal .header-inner { grid-template-columns: auto 1fr; padding-block: 1.25rem; }
  .header-minimal .nav-wide { justify-content: flex-end; }
}

/* Page head: breadcrumbs, h1, lead. The content follows close under it. */
.page-head { padding-top: clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { max-width: 24ch; }
.page-head.narrow h1 { max-width: none; }
.lead {
  max-width: 44rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
}
.lead p:last-child { margin-bottom: 0; }
.after-head { padding-top: clamp(2rem, 4vw, 3rem); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: "/";
  padding-inline: 0.5rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
/* A booking step's "Step 2 of 4", in the breadcrumbs' place and size, so every step's heading sits where a content page's does. */
.page-head .eyebrow { margin: 0 0 1.5rem; font-size: var(--step--1); color: var(--muted); }

/* Chip and ticks */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--label);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.3;
}
:is(.hero-photo, .hero-statement) .chip { background: transparent; }
/* Chip colours (theme chip): filled with the accent, or in the highlighted phrase's style. */
.t-chip-accent .hero .chip { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.t-chip-highlight .hero .chip { color: var(--primary); border-color: currentColor; }
.t-chip-highlight.t-highlight-underline .hero .chip { color: var(--text); border-color: var(--accent); }
.t-chip-highlight.t-highlight-marker .hero .chip { color: var(--t-text); background: var(--marker); border-color: var(--marker); }
.t-chip-highlight .hero:is(.hero-photo, .hero-statement) .chip { color: var(--hl-dark); background: transparent; border-color: var(--hl-dark); }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 0.625rem; align-items: start; }
.tick { width: 1.25rem; height: 1.25rem; margin-top: 0.15em; color: var(--primary); }
.hero-ticks { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: var(--step--1); font-weight: 600; }
.hero-ticks li { display: flex; gap: 0.5rem; }

/* Hero: split, photo with overlay, statement; with or without a panel */
.hero { padding-block: calc(var(--space) * 0.9) var(--space); position: relative; }
.hero-text h1 { max-width: 20ch; margin-bottom: 1.25rem; font-size: var(--step-5); line-height: 1.04; }
.hero-text .lead { max-width: 40rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
@media (min-width: 60rem) {
  .hero-has-panel .hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .hero-has-example .hero-grid { grid-template-columns: 6fr 6fr; }
  .hero-has-panel .hero-text h1 { font-size: var(--step-4); }
}
.hero-split .hero-img { aspect-ratio: 4 / 3; border-radius: var(--radius-image); }

.hl { color: var(--primary); }
.t-highlight-underline .hl { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
.t-highlight-marker .hl { color: var(--t-text); background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); padding-inline: 0.05em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* On dark bands: the accent where it is readable there (worked out by the theme), else a fine underline. */
:is(.hero-photo, .hero-statement) .hl { color: var(--hl-dark); background: none; text-decoration: var(--hl-dark-line); text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }

.hero-photo {
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(30rem, 72vh, 44rem);
  background: var(--secondary);
}
.hero-photo .hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-photo .hero-img { height: 100%; aspect-ratio: auto; }
.hero-photo .hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--secondary); opacity: 0.8; }
.hero-photo .hero-text { padding-top: calc(var(--space) * 0.5); }

.hero-statement {
  background: var(--secondary);
  padding-block: calc(var(--space) * 1.3);
}
.t-pattern-dots .hero-statement, .t-pattern-grid .hero-statement, .t-pattern-diagonal .hero-statement, .t-pattern-rings .hero-statement {
  background-image: url("/images/designed/pattern-secondary.svg");
}
.hero-statement:not(.hero-has-panel) .hero-text { max-width: 56rem; }

/* Summary card (hero panel) */
.summary-card { padding: calc(var(--pad) * 1.25); }
.summary-kicker { display: flex; gap: 0.5rem; align-items: center; color: var(--label); font-weight: 600; font-size: var(--step--1); margin-bottom: 0.75rem; }
.summary-kicker .icon { width: 1.25rem; height: 1.25rem; flex: none; }
.summary-name { font-size: var(--step-2); margin-bottom: 1.25rem; }
.summary-rows { margin: 0 0 1.25rem; }
.summary-rows > div { padding-block: 0.875rem; border-top: 1px solid var(--line); }
.summary-rows dt { font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.25rem; }
.summary-rows dd { margin: 0; }
.summary-rows .plain { margin: 0; }
.summary-card .actions { margin: 0; }
.summary-card .button { width: 100%; text-align: center; }

/* Example figure: browser frame, phone frame, caption */
.example { margin: 0; }
.example-frames { position: relative; padding-bottom: 8%; padding-right: 6%; }
.browser-frame {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--raised);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.browser-bar { display: flex; gap: 0.375rem; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--line); }
.phone-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26%;
  border: 0.375rem solid var(--t-text);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--t-text);
  box-shadow: var(--card-shadow);
}
.frame-img { width: 100%; }
.example figcaption { margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }

/* Buttons: solid, outline, pill, raised (theme buttons). At most one solid
   and one outline in a group. */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.button {
  display: inline-block;
  font: inherit;
  cursor: pointer;
  padding: 0.8rem 1.35rem;
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-button);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.button:hover { color: var(--bg); background: var(--text); border-color: var(--text); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.button-secondary:hover { color: var(--bg); background: var(--text); }
/* outline: a quieter, tailored button. The main button is still solid: one solid and one outline per group in every theme. */
.t-buttons-outline .button { border-width: 1px; padding: 0.9rem 1.5rem; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.t-buttons-raised .button:not(.button-secondary) { box-shadow: 4px 4px 0 var(--text); }
.t-buttons-raised .button:not(.button-secondary):hover { box-shadow: 2px 2px 0 var(--text); transform: translate(2px, 2px); }
:is(.hero-photo, .hero-statement, .cta-band, .cta-panel .cta-inner) .button:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
:is(.hero-photo, .hero-statement, .cta-band, .cta-panel .cta-inner) .button-secondary:hover { background: var(--on-secondary); color: var(--secondary); border-color: var(--on-secondary); }
.t-buttons-raised :is(.hero-photo, .hero-statement, .cta-band, .cta-panel .cta-inner) .button:not(.button-secondary) { box-shadow: 4px 4px 0 var(--accent); }

/* Cards: border, corners, raised surface and shadow from the theme */
.card {
  background: var(--raised);
  border: var(--card-border) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: var(--pad);
}
.t-cards-flat :is(.tone-alt, .tone-tint) .card { background: var(--bg); }
.card > :last-child { margin-bottom: 0; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--muted); }

/* Icon tile */
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: calc(var(--radius) + 0.125rem);
  background: var(--tile);
  color: var(--t-primary);
  margin-bottom: 1rem;
}
.icon { width: 1.5rem; height: 1.5rem; }

/* Features: a grid of cards with icons */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
}
.feature p { margin: 0; }

/* Facts: a strip of one to six figures or promises. Rows always balance, so
   no fact is left alone on a row: on phones two across, or one column for an
   odd count; then three across (five are three and two, centred); five
   across on wide screens only when no value would wrap (facts-fit, from the
   build). Values sit at the top of each fact, so a row's values line up.
   The centred second row of three and two cannot line its dividers up with
   the first row's, so it has none (scripts/axe.ts measures this). */
.facts {
  --cols: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1rem;
  margin: 0;
}
.facts-1, .facts-3, .facts-5 { --cols: 1; }
@media (min-width: 40rem) {
  .facts-3, .facts-5, .facts-6 { --cols: 3; }
  .facts-4 { --cols: 4; }
  .facts-5 .fact:nth-child(n + 4) { border-left-color: transparent; }
}
@media (min-width: 64rem) {
  .facts-5.facts-fit { --cols: 5; }
  .facts-5.facts-fit .fact:nth-child(n + 4) { border-left-color: var(--line); }
}
.fact { flex: 0 0 calc((100% - (var(--cols) - 1) * 1rem) / var(--cols)); min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 0.25rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.fact dd { order: -1; }
.fact dd { overflow-wrap: break-word; }
.facts { padding-block: 1.75rem; border-block: 1px solid var(--line); }
.fact dd { margin: 0; font-family: var(--font-heading); font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); font-size: var(--step-3); line-height: 1.1; color: var(--text); }
.fact dt { color: var(--muted); font-size: var(--step--1); }
/* The facts strip sits close to its neighbours, on the page background, so it reads as part of the page and not as its end. */
.section-facts { padding-block: calc(var(--space) * 0.4); background: none; }
.hero:has(+ .section-facts) { padding-bottom: calc(var(--space) * 0.5); }
.section-facts + .section { padding-top: calc(var(--space) * 0.75); }
.t-dividers-line :is(.section-facts, .section-facts + .section) { border-top: 0; }
.t-dividers-hairline :is(.section-facts, .section-facts + .section)::before { display: none; }

/* Steps: numbered cards */
.step-cards {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
  line-height: 1;
  color: var(--t-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}
.step p { margin: 0; }
.step-cards-compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-bottom: 1rem; }

/* Pricing */
.price-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 48rem) {
  .price-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .price-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.price-grid-1 { max-width: 30rem; margin-inline: auto; }
.price-card { padding: calc(var(--pad) * 1.25); }
.price-card-featured { border: 2px solid var(--primary); }
.price-name { font-size: var(--step-1); margin-bottom: 0.25rem; }
.price-summary { margin-bottom: 1rem; }
.price { margin: 0.5rem 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.price-amount { font-family: var(--font-heading); font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); font-size: var(--step-4); line-height: 1; color: var(--text); }
.price-unit { color: var(--muted); font-size: var(--step--1); }
.price-card .ticks li { color: var(--text); }
.price-note { font-size: var(--step--1); }
.price-card .actions { margin-top: 1.5rem; }
.price-card .button { width: 100%; text-align: center; }
.page-pricing { margin-bottom: 2.5rem; }
.page-pricing .price-grid-1 { margin-inline: 0; }

/* FAQ accordion (details and summary, no JavaScript) */
.faq-list { border-top: 1px solid var(--line); margin-bottom: 1rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.125rem 0;
  font-weight: 600;
  font-size: var(--step-0);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
}
.faq[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq summary:hover { color: var(--primary); }
.faq-answer { padding: 0 2.5rem 1.25rem 0; color: var(--muted); }
.faq-answer > :last-child { margin-bottom: 0; }

/* Balanced card grids: the column count comes from the number of cards
   (cols-*, src/templates/components.ts) and the last row is centred. */
:is(ul, ol).balanced { --cols: 1; --gap: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
:is(ul, ol).balanced > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (min-width: 40rem) { :is(ul, ol).balanced:not(.cols-1) { --cols: 2; } }
@media (min-width: 60rem) { :is(ul, ol).balanced.cols-3 { --cols: 3; } :is(ul, ol).balanced.cols-4 { --cols: 4; } }

/* Images: plain, rounded, framed (theme images) */
.figure { margin: 0; }
.figure-wide { margin-bottom: 2rem; }
.figure-img { width: 100%; background: var(--line); border-radius: var(--radius-image); }
.t-images-framed :is(.figure > .figure-img, .hero-split .hero-img, .services-rows .service-img) {
  box-shadow: 0.75rem 0.75rem 0 var(--accent);
  border: 1px solid var(--text);
}
.t-images-framed :is(.figure, .hero-split .hero-media, .services-rows .service-media) { margin-right: 0.75rem; margin-bottom: 0.75rem; }

/* Services: cards, list, rows (theme layout.services) */
.services { list-style: none; padding: 0; margin: 0; }
.service-title { font-size: var(--step-1); }
.service-title a { text-decoration: none; }
.service-title a:hover { text-decoration: underline; }
.service p { color: var(--muted); margin: 0; }

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}
.services-cards .service { padding: 0; overflow: hidden; }
.services-cards .service-img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.services-cards .service-body { padding: var(--pad); }
.services-cards .service-media + .service-body .icon-tile { margin-top: calc(-1 * var(--pad) - 1.375rem); position: relative; box-shadow: 0 0 0 4px var(--raised); }

.services-list { display: grid; gap: 0 3rem; }
@media (min-width: 48rem) { .services-list { grid-template-columns: 1fr 1fr; } }
.services-list .service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.services-list .icon-tile { margin: 0; }

.services-rows { display: grid; gap: calc(var(--space) * 0.75); }
.services-rows .service { display: grid; gap: 1.25rem; align-items: center; }
.services-rows .service-img { aspect-ratio: 3 / 2; object-fit: cover; }
.services-rows .service-title { font-size: var(--step-2); }
@media (min-width: 48rem) {
  .services-rows .service { grid-template-columns: 2fr 3fr; gap: 3rem; }
  .services-rows .service:nth-child(even) { grid-template-columns: 3fr 2fr; }
  .services-rows .service:nth-child(even) .service-media { order: 2; }
}

/* About: image left, image right, text only (theme layout.about) */
.about { display: grid; gap: 2rem; align-items: center; }
.about-text { max-width: 44rem; }
@media (min-width: 60rem) {
  .about-image-right { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .about-image-left { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .about-image-left .about-media { order: -1; }
}
.about-text .section-head { margin-bottom: 1.25rem; }
.about-text > p:first-of-type { font-size: var(--step-1); line-height: 1.5; }
.about-text .prose > p:first-of-type { font-size: inherit; }

/* Specification panel */
.spec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  margin: 1.5rem 0;
}
.spec-row {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
}
.spec-row:first-child { border-top: 0; }
.spec dt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.spec dd { margin: 0.125rem 0 0; font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) {
  .spec-row { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; }
  .spec dd { margin: 0; }
}

/* Project and article cards, gallery */
.item-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.item-card { border-top: 1px solid var(--line); padding-top: 1rem; }
.card-title { font-size: var(--step-1); }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.item-card-media { margin-bottom: 0.75rem; }
.item-card p { color: var(--muted); margin: 0.25rem 0 0; }
.item-meta {
  color: var(--muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.page-head .item-meta { margin-top: 0.5rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.prose h2 { margin-top: 2.5rem; font-size: var(--step-2); }
.prose > h2:first-child, .prose > .block:first-child h2 { margin-top: 0; }

/* Reading columns */
.prose { max-width: 44rem; }
.narrow .prose { max-width: none; }
.prose-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) {
  .prose-grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
}
.block { margin-bottom: 2.5rem; }
.block:last-child { margin-bottom: 0; }
.split { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .split { grid-template-columns: 1fr 1fr; } }

.note {
  border-left: 3px solid var(--accent);
  padding: 0.875rem 1.125rem;
  background: var(--raised);
  max-width: 44rem;
  margin-bottom: 2rem;
}
.note p:last-child { margin: 0; }

/* Lists of links */
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
}
.link-list a { display: inline-block; padding-block: 0.25rem; }
.plain { list-style: none; padding: 0; }
.related { padding-top: 0; }

/* Draft notice on legal pages */
.draft-note {
  border: 2px dashed var(--mark-ink);
  background: var(--mark-bg);
  color: var(--mark-ink);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
}
.draft-note p { margin: 0; }

/* Visible marker for copy still to be supplied (launch check fails on it) */
.placeholder {
  background: var(--mark-bg);
  color: var(--mark-ink);
  outline: 1px dashed var(--mark-ink);
  padding: 0 0.25em;
  font-size: 0.9em;
}

/* Call to action: text beside the call card. band: full-width secondary;
   panel: a contained secondary panel; split: the page background with a rule. */
.cta { padding-block: var(--space); }
.cta-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .cta-inner { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.cta-text h2 { max-width: 22ch; }
.cta-text p { max-width: 38rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.cta-text > :last-child { margin-bottom: 0; }
.cta-band { background: var(--secondary); }
.cta-panel .cta-inner {
  background: var(--secondary);
  border-radius: calc(var(--radius) * 2);
  padding: clamp(1.5rem, 5vw, 3.5rem);
}
.t-pattern-dots .cta-panel .cta-inner, .t-pattern-grid .cta-panel .cta-inner, .t-pattern-diagonal .cta-panel .cta-inner, .t-pattern-rings .cta-panel .cta-inner {
  background-image: url("/images/designed/pattern-secondary.svg");
}
.cta-split > .wrap > .cta-inner { border-top: 1px solid var(--line); padding-top: var(--space); }
.t-dividers-hairline .section + .cta-split > .wrap > .cta-inner { border-top: 0; padding-top: 0; }
.t-dividers-hairline .section + .cta-split::before {
  content: "";
  display: block;
  width: calc(min(100%, var(--max)) - 2 * var(--gutter));
  margin: calc(-1 * var(--space)) auto var(--space);
  border-top: 1px solid var(--line);
}

/* Call card */
.call-card { padding: calc(var(--pad) * 1.25); }
.call-card-title { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); margin-bottom: 0.5rem; }
.call-number { margin-bottom: 0.25rem; }
.call-number a { font-family: var(--font-heading); font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); font-size: var(--step-3); line-height: 1.15; text-decoration: none; color: var(--text); }
.call-number a:hover { text-decoration: underline; }
.call-email { margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.call-card .card-sub { font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 1.25rem 0 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding-block: 0.25rem; color: var(--text); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.hours li span:first-child { color: var(--muted); }
.call-card .actions { margin-top: 1.5rem; }
.call-card .button { width: 100%; text-align: center; }

/* Footer: columns, centred, compact (theme layout.footer) */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-columns .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.site-footer address { font-style: normal; }
.site-footer .plain a { display: inline-block; padding-block: 0.3rem; }
.site-footer .plain li + li { margin-top: 0; }
.footer-base {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-block: 1.25rem 2rem;
  color: var(--muted);
  font-size: var(--step--1);
}
.footer-base p { margin: 0; }

.footer-centred { text-align: center; background: var(--alt); padding-top: var(--space); }
.footer-centred .footer-grid { justify-items: center; }
@media (min-width: 48rem) { .footer-centred .footer-grid { grid-template-columns: repeat(3, minmax(0, 18rem)); justify-content: center; } }

.footer-compact { padding-top: 1.75rem; font-size: var(--step--1); }
.footer-compact .footer-grid { gap: 1rem 2.5rem; }
.footer-compact h2 { margin-bottom: 0.25rem; }
.footer-compact p, .footer-compact ul { margin-bottom: 0.25rem; }
@media (min-width: 48rem) { .footer-compact .footer-grid { grid-template-columns: repeat(3, auto); justify-content: space-between; } }
.footer-compact .footer-base { margin-top: 1rem; padding-block: 0.75rem 1.25rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Contact form */
.contact-form { max-width: 36rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.375rem; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: var(--step--1); color: var(--muted); margin: 0 0 0.375rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--muted);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
}
.contact-form textarea { resize: vertical; min-height: 10rem; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 0;
  border-color: var(--text);
}
.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  align-items: start;
}
.field-check .error-message,
.field-check .hint { grid-column: 1 / -1; }
.field-check .hint { grid-column: 2; }
.field-check input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--primary);
}
.field-check label { font-weight: 400; margin: 0; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--error); }
.field-error { border-left: 4px solid var(--error); padding-left: 0.875rem; }
.error-message { color: var(--error); font-weight: 600; margin: 0 0 0.375rem; }
.error-summary {
  border: 3px solid var(--error);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--surface);
}
/* The same heading in every form's summary (h2 on the contact page and the booking pages), with no space above it. */
.error-summary #error-summary-title { font-size: var(--step-1); line-height: 1.25; margin: 0 0 0.5rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: var(--error); font-weight: 600; }
.notice { padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: var(--surface); }
.notice p:last-child { margin: 0; }
.notice h2 { font-size: var(--step-1); line-height: 1.25; margin: 0 0 0.5rem; }
/* The contact page's notice or error summary, above the contact details. */
.form-messages { max-width: 40rem; }
.notice-sent { border-left: 4px solid var(--ok); }
.notice-problem { border-left: 4px solid var(--error); }
/* Honeypot: off-screen, not display:none, so simple bots still fill it in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Bookings and callbacks */
.booking > * { max-width: 40rem; }
.booking h2 { font-size: var(--step-1); margin-top: 2rem; }
.contact-form input[type="date"],
.contact-form input[type="time"],
.contact-form input[type="number"] {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--muted);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}
.contact-form input[type="number"] { max-width: 8rem; }
fieldset.field { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
/* fieldset.field drops every border, so a group of options in error gets its bar back here, like any other field. */
fieldset.field-error { border-left: 4px solid var(--error); padding-left: 0.875rem; }
fieldset.field legend { font-weight: 600; margin-bottom: 0.5rem; padding: 0; }
.legend-large { font-size: var(--step-1); }
.radios { display: grid; gap: 0.5rem; }
.radios-inline { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.radio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.75rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.625rem 0.875rem;
}
.radio input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--primary); }
.radio label { font-weight: 400; margin: 0; }
.radio .hint { grid-column: 2; margin: 0; }
.radio:has(input:checked) { border-color: var(--text); }
.radio:has(input:focus-visible) { outline: 3px solid var(--primary); }
.day-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.day-link, .day-full {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.day-link { font-weight: 600; text-decoration: none; border-color: var(--muted); }
.day-link:hover { border-color: var(--text); text-decoration: underline; }
.day-full { color: var(--muted); }
.day-free { font-weight: 400; color: var(--muted); }
.field-pair { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }
.field-pair label { font-weight: 400; }
.call-aside { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.call-aside p { margin: 0 0 0.5rem; }
.booking-alt { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.admin > * { max-width: 48rem; }
.admin textarea { font-family: ui-monospace, monospace; font-size: var(--step--1); min-height: 0; }

/* Draft previews and the publish and discard pages (email pipeline) */
.draft-banner { background: var(--mark-bg); color: var(--mark-ink); border-bottom: 3px solid var(--mark-ink); }
.draft-banner .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.75rem; }
.draft-banner p { margin: 0; }
.draft-banner a { color: var(--mark-ink); font-weight: 600; }
.flow-page h1 span { display: block; font-size: 0.6em; font-weight: 400; margin-top: 0.25rem; }
.flow-page form { margin: 1.75rem 0; }
.flow-en { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; }

/* A home section's own buttons, under its content */
.section-actions { margin-top: 2rem; }
.section-actions .actions { margin: 0; }
.section-centred .section-actions .actions { justify-content: center; }
