/* Active Life Podiatry: "The Treatment Room". Ported from the concept (Sites/Concept/src/assets/css/site.css).
   One stylesheet shared by every template. Sections map 1:1 to WordPress
   block patterns / Divi sections (see POC-NOTES.md). */

/* Fonts: declared in theme.json (self-hosted, font-display: swap) and preloaded in inc/setup.php. */

:root {
  /* Colours, fonts, sizes and spacing follow the ALP style guide (claude.ai/artifact/W9XenRVziWSH8eaPsC1dTd),
     built from the 2022 brand guide. The token names are this theme's own; the comments give the guide's. */

  /* Grounds: lots of white (surface), very light grey for alternate sections (surface-subtle) */
  --putty: #ffffff;           /* white / surface */
  --putty-deep: #f5f5f5;      /* surface-subtle */
  --panel: #ffffff;
  --rule: #e0e0e0;            /* grey / line */
  --rule-strong: #4d4d4d;     /* ink-muted: input borders */

  /* Text: black (ink), and ink-muted for secondary text */
  --ink: #000000;
  --ink-soft: #4d4d4d;

  /* Deep bands (footer, "In pain?"): the deep forest green from before the style guide, which Amy prefers (9 Nov) */
  --couch: oklch(0.355 0.07 156);
  --couch-deep: oklch(0.29 0.055 158);
  --on-couch: oklch(0.955 0.012 140);
  --on-couch-soft: oklch(0.87 0.055 132);
  --rule-on-couch: oklch(1 0 0 / 0.16);

  /* Active Life Green: fills only (buttons, #TakeSteps band, accents), always with black text. Never text on white. */
  --brand-block: #40ad54;     /* green */
  --green: #006633;           /* green-dark: links and green text on white (7.12:1) */
  --green-cool: #00865c;      /* green-cool: kickers and green subtitles on white (4.6:1) */
  --lime: oklch(0.88 0.17 118);       /* the Book button and icons on the deep green (Amy, 9 Nov) */
  --lime-hover: oklch(0.83 0.18 120);
  --lime-ink: oklch(0.24 0.04 150);

  --star: #000000;            /* stars in ink, as the guide's rating badge */
  --focus: #000000;           /* 2px black ring, 2px offset; white on dark green */

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;

  /* Type scale: display 56, h1 40, h2 32, h3 22, lead 20, body 17, small 14, label 13 (px at desktop) */
  --fs-display: clamp(2.375rem, 1.85rem + 2.2vw, 3.5rem);
  --fs-h1: clamp(2rem, 1.75rem + 1.05vw, 2.5rem);
  --fs-h2: clamp(1.625rem, 1.45rem + 0.75vw, 2rem);
  --fs-h3: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-subhead: 1.5rem;       /* subtitle: 24px, the guide's line under a heading */
  --fs-pullquote: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --fs-small: 0.875rem;
  --fs-fine: 0.8125rem;

  /* Spacing: the guide's 4, 8, 12, 16, 24, 32, 48, 64 steps; sections 64px on desktop, 48px on mobile */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: clamp(3rem, 2.5rem + 2vw, 4rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 1.5rem);
  --max: 75rem;               /* 1200px content width */
  --measure: 40rem;

  /* Corners: square by default (photos, blocks); 4px buttons and inputs; 8px cards */
  --radius-photo: 0;
  --radius-panel: 8px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-header: 0 1px 0 #e0e0e0;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);

  --z-header: 40;
  --z-menu: 50;
  --z-bookbar: 45;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
  accent-color: var(--green);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--putty);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;          /* 17/28 */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
/* Figures in addresses, hours and dates line up (tabular). */
address, .hours, .meta, a[href^="tel:"], .facts dd, .footer-base, time { font-family: var(--font-display); font-stretch: 95%; font-variant-numeric: tabular-nums; }
svg { flex-shrink: 0; }
::selection { background: var(--brand-block); color: var(--ink); }

/* Headings: Archivo Bold, slightly condensed, as before the style guide (test-2); sizes as the guide (h1 40/46, h2 32/38, h3 22/28). */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.15; letter-spacing: -0.028em; }
h2 { font-size: var(--fs-h2); line-height: 1.19; }
h3 { font-size: var(--fs-h3); font-stretch: 92%; line-height: 1.27; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
:where(a:not(.btn)):hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:is(.areas, .spotlight, .site-footer, .mobile-menu) :focus-visible { outline-color: #ffffff; }
.takesteps :focus-visible { outline-color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--putty); padding: 0.75rem 1.25rem; border-radius: var(--radius-pill);
  font-weight: 700;
}
.skip-link:focus, .skip-link:hover { top: 0.75rem; color: var(--putty); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); max-width: 46rem; }
.section-head p { font-size: var(--fs-lead); color: var(--ink-soft); }
.section-head--split {
  max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-5);
}
.section-head--split > div { display: grid; gap: var(--space-4); max-width: 42rem; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.55; }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.5rem;                /* 48px, the guide's button height */
  border-radius: var(--radius-pill); border: 2px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.25;   /* button 16/20 */
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--putty); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--book { --btn-bg: var(--lime); --btn-ink: var(--lime-ink); --btn-line: var(--lime); }
.btn--book:hover { background: var(--lime-hover); color: var(--lime-ink); border-color: var(--lime-hover); }
.btn--on-couch { --btn-ink: var(--on-couch); --btn-line: var(--on-couch-soft); }
.btn--on-couch:hover { background: var(--on-couch); color: var(--couch-deep); border-color: var(--on-couch); }
.btn--lg { min-height: 3rem; padding-inline: 1.75rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-stretch: 95%; font-weight: 700; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid var(--lime); padding-top: 0.7rem; padding-bottom: 0.45rem;
}
.link-arrow .icon { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover { color: var(--green); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--putty); border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.25s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.header-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 var(--space-5); min-height: 4.5rem; }
/* The header row gets a little more room than the page column, so the menu, phone and Book fit on one line. */
.site-header .wrap { width: min(100% - 2 * var(--gutter), 86rem); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 3rem; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: nowrap; gap: 0 clamp(0.75rem, 1.3vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: inline-block; padding-block: 0.5rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-stretch: 92%; font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
  border-bottom: 3px solid transparent;   /* the guide's 3px green marker for hover and the current section */
}
.primary-nav a:hover { border-bottom-color: var(--brand-block); }
.primary-nav a[aria-current="page"], .primary-nav a.is-section { border-bottom-color: var(--brand-block); }
/* Sub-menus: open on hover or keyboard focus; the chevron button opens them for touch and screen readers. */
.primary-nav .has-sub { position: relative; display: flex; align-items: center; }
.subnav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 2.75rem; margin-left: 0.1rem;
  padding: 0; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
}
.subnav-toggle .icon { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease-out); }
.subnav-toggle:hover { color: var(--ink); }
.primary-nav .subnav {
  position: absolute; top: calc(100% + (4.5rem - 2.75rem) / 2); left: -1.25rem; z-index: 1; display: none; flex-direction: column; gap: 0;
  min-width: 17rem; padding: 0.6rem 1.25rem; background: var(--putty);
  border: 1px solid var(--rule); border-radius: 0 0 var(--radius-photo) var(--radius-photo);
  box-shadow: 0 18px 32px -18px oklch(0.25 0.035 156 / 0.45);
}
/* Invisible bridge over the gap, so the pointer can move down into the panel without it closing. */
.primary-nav .subnav::before { content: ""; position: absolute; inset: -1rem 0 100% 0; }
.primary-nav .subnav a {
  display: block; margin-inline: -0.75rem; padding: 0.6rem 0.75rem; border-bottom: 0; border-radius: 2px;
  font-weight: 500; line-height: 1.3; white-space: normal;
}
.primary-nav .subnav a:hover { background: var(--putty-deep); color: var(--green); }
.primary-nav .subnav a[aria-current="page"] { color: var(--green); font-weight: 700; }
/* Keyboard focus (not a mouse click, which leaves focus behind) keeps a panel open; hovering one menu closes the others. */
.primary-nav .has-sub:is(:hover, :has(:focus-visible), .is-open) > .subnav { display: flex; }
.primary-nav ul:has(> .has-sub:hover) > .has-sub:not(:hover) > .subnav { display: none; }
.primary-nav .has-sub.is-open .subnav-toggle .icon { transform: rotate(180deg); }
.primary-nav .has-sub.is-closed > .subnav { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-stretch: 92%; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.header-phone:hover { color: var(--green); }
.menu-toggle { display: none; }

/* Below 90rem the phone shows as an icon, so the menu keeps one line; below 78rem the menu folds into the Menu button. */
@media (max-width: 90rem) {
  .header-phone span { display: none; }
  .header-phone { width: 3rem; height: 3rem; justify-content: center; border-radius: var(--radius-pill); border: 2px solid var(--ink); }
}
@media (max-width: 78rem) {
  .primary-nav, .header-phone span { display: none; }
  .header-actions { margin-left: auto; }
  .header-phone { width: 3rem; height: 3rem; justify-content: center; border-radius: var(--radius-pill); border: 2px solid var(--ink); }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    min-height: 3rem; padding: 0 1rem; border: 2px solid var(--ink); border-radius: var(--radius-pill);
    background: transparent; color: var(--ink); font: 700 1rem/1 var(--font-display); font-stretch: 92%; cursor: pointer;
  }
}
@media (max-width: 68rem) { .site-header .btn--book { display: none; } }
@media (max-width: 26rem) { .brand img { height: 2.35rem; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--couch-deep); color: var(--on-couch);
  padding: var(--space-4) var(--gutter) var(--space-7); overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--space-6);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; }
.mobile-menu__top img { height: 2.35rem; width: auto; }
.mobile-menu .menu-close {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 3rem; padding: 0 1rem;
  background: transparent; color: var(--on-couch); border: 2px solid var(--on-couch-soft); border-radius: var(--radius-pill);
  font: 700 1rem/1 var(--font-display); cursor: pointer;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-on-couch); }
.mobile-menu li a:hover { color: #ffffff; text-decoration: underline; text-decoration-color: var(--brand-block); text-decoration-thickness: 3px; }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center; padding: 1rem 0;
  border-bottom: 1px solid var(--rule-on-couch); color: var(--on-couch); text-decoration: none;
  font: 700 1.5rem/1.2 var(--font-display); font-stretch: 88%;
}
/* Sub-pages: a quieter list under each section. */
.mobile-menu ul.mobile-menu__sub { border-top: 0; padding: 0.25rem 0 0.75rem; border-bottom: 1px solid var(--rule-on-couch); }
.mobile-menu li:has(> .mobile-menu__sub) > a { border-bottom: 0; }
.mobile-menu .mobile-menu__sub a { padding: 0.55rem 0; border-bottom: 0; color: var(--on-couch-soft); font: 500 1.0625rem/1.3 var(--font-body); }
.mobile-menu .mobile-menu__sub a:hover { color: #ffffff; text-decoration: underline; }
.mobile-menu .btn-row .btn { flex: 1 1 12rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: var(--space-4); font-size: var(--fs-small); color: var(--ink-soft); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { padding-block: 0.6rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--rule-strong); }
.breadcrumbs a { color: var(--ink-soft); display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }

/* ---------- Home hero ---------- */
.hero { padding-block: var(--space-7) var(--space-8); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6); align-items: start; }
.hero__copy { grid-column: 1 / span 5; display: grid; gap: var(--space-5); padding-bottom: var(--space-7); }
.hero__copy h1 { max-width: 13ch; font-size: var(--fs-display); line-height: 1.07; letter-spacing: -0.01em; }   /* display 56/60, the hero only; 13ch sets it on three lines, as test-2 */
.hero__copy .lead { max-width: 34ch; }
/* The photo starts level with the top of the heading and takes the wider column. */
.hero__media { grid-column: 6 / -1; position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 52% 45%; border-radius: var(--radius-photo); }
/* Several photos in the hero: stacked in one cell and crossfaded by site.js. Before the script runs, only the first shows. */
.hero-carousel { display: grid; }
.hero-carousel > .wp-block-image { grid-area: 1 / 1; margin: 0; }
.hero-carousel > .wp-block-image:not(:first-child) { visibility: hidden; opacity: 0; }
.hero-carousel.is-ready > .wp-block-image { visibility: hidden; opacity: 0; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.hero-carousel.is-ready > .wp-block-image.is-active { visibility: visible; opacity: 1; transition: opacity 0.9s ease; }
.hero-carousel__controls {
  grid-area: 1 / 1; align-self: end; justify-self: center; z-index: 1; margin: var(--space-3);
  display: flex; gap: 0.125rem; padding: 0 0.25rem; background: rgb(0 0 0 / 0.22); border-radius: 999px;
}
.hero-carousel__dot { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-carousel__dot::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgb(255 255 255 / 0.55); transition: background-color 0.2s; }
.hero-carousel__dot[aria-current="true"]::before, .hero-carousel__dot:hover::before { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hero-carousel.is-ready > .wp-block-image, .hero-carousel.is-ready > .wp-block-image.is-active { transition: none; }
}
.rating {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; min-height: 2.75rem;
  color: var(--ink); text-decoration: none; font-size: var(--fs-small);
}
.rating strong { font-family: var(--font-display); font-size: 1.125rem; }
.rating .stars { display: inline-flex; gap: 2px; color: var(--star); }
.rating .stars .icon { width: 1.05rem; height: 1.05rem; }
.rating:hover span { text-decoration: underline; }
.photo-caption {
  position: absolute; left: var(--space-4); bottom: var(--space-4);
  background: var(--panel); color: var(--ink); padding: 0.45rem 0.8rem; border-radius: var(--radius-panel);
  font-size: var(--fs-small); line-height: 1.35; max-width: calc(100% - 2rem);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: photo-in 1.1s var(--ease-out) both; }
  .hero__copy > * { animation: rise-in 0.8s var(--ease-out) both; }
  .hero__copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero__copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero__copy > *:nth-child(4) { animation-delay: 0.18s; }
}
@keyframes photo-in { from { clip-path: inset(8% 0 0 0 round var(--radius-photo)); opacity: 0.3; } to { clip-path: inset(0 0 0 0 round var(--radius-photo)); opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 56rem) {
  .hero { padding-block: var(--space-6) var(--space-7); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__copy, .hero__media { grid-column: 1 / -1; }
  .hero__copy { padding-bottom: 0; }
  .hero__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--rule); background: var(--putty); }
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, auto); /* sized to content, so each line fits on one row */
}
.trust li { display: flex; gap: 0.75rem; align-items: flex-start; padding: var(--space-5) var(--space-5) var(--space-5) 0; }
.trust li + li { padding-left: var(--space-5); border-left: 1px solid var(--rule); }
.trust .icon { width: 1.6rem; height: 1.6rem; color: var(--green); margin-top: 0.1rem; }
.trust strong { display: block; font-family: var(--font-display); font-stretch: 92%; font-size: 1.125rem; line-height: 1.25; }
.trust span { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.4; }
.trust a { color: inherit; text-decoration: none; }
.trust a strong { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.trust a:hover strong { text-decoration-thickness: 3px; }
@media (max-width: 56rem) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li, .trust li + li { padding: var(--space-4) var(--space-3) var(--space-4) 0; border-left: 0; }
  .trust li:nth-child(even) { padding-left: var(--space-4); border-left: 1px solid var(--rule); }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 24rem) { .trust ul { grid-template-columns: 1fr; } .trust li:nth-child(even) { padding-left: 0; border-left: 0; } .trust li + li { border-top: 1px solid var(--rule); } }

/* ---------- Spotlight: one service given its own panel on the home page (ultrasound, John, 23 Nov) ---------- */
.spotlight { padding-top: 0; }
.spotlight__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); background: var(--couch); color: var(--on-couch);
  border-radius: var(--radius-panel); overflow: hidden;
}
.spotlight__panel > .wp-block-image { margin: 0; }
.spotlight__panel > .wp-block-image img { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; display: block; }
.spotlight__body { padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); display: grid; gap: var(--space-4); align-content: center; }
.spotlight .spotlight__kicker { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); }
.spotlight h2 { color: var(--on-couch); max-width: 18ch; }
.spotlight p { color: var(--on-couch-soft); max-width: 52ch; }
.spotlight .spotlight__lead { font-size: var(--fs-lead); color: var(--on-couch); line-height: 1.55; }
.spotlight .spotlight__note { font-size: var(--fs-small); border-top: 1px solid var(--rule-on-couch); padding-top: var(--space-4); }
.spotlight .is-style-action { justify-self: start; }
.spotlight .is-style-action a { color: var(--on-couch); }
.spotlight .is-style-action a:hover { color: var(--lime); }
@media (max-width: 56rem) {
  .spotlight__panel { grid-template-columns: 1fr; }
  .spotlight__panel > .wp-block-image img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- Values: the three the team chose (John, 25 Nov), on About us. Each word set big, numbered in lime. ---------- */
.values { background: var(--couch); color: var(--on-couch); counter-reset: value; overflow: hidden; }
.values__head { display: grid; gap: var(--space-4); max-width: 40rem; }
.values .values__kicker { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); }
.values h2 { color: var(--on-couch); font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.01em; }
.values .values__intro { font-size: var(--fs-lead); color: var(--on-couch-soft); line-height: 1.55; }
.values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) clamp(1.5rem, 1rem + 2vw, 3rem); margin-top: var(--space-8); }
.values__item { counter-increment: value; display: grid; align-content: start; gap: var(--space-4); padding-top: var(--space-5); border-top: 3px solid var(--lime); }
.values__item::before {
  content: counter(value, decimal-leading-zero);
  font: 700 var(--fs-small)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; color: var(--lime);
}
.values h3 { color: var(--on-couch); font-size: clamp(2.25rem, 1.7rem + 2vw, 3.25rem); font-stretch: 85%; line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
.values__item p { color: var(--on-couch-soft); max-width: 34ch; line-height: 1.6; }
@media (max-width: 56rem) {
  .values__grid { grid-template-columns: 1fr; gap: var(--space-7); margin-top: var(--space-7); }
}

/* ---------- Symptom entry: "What brings you in?" ---------- */
.areas { background: var(--couch); color: var(--on-couch); }
.areas h2 { color: var(--on-couch); }
.areas .section-head p { color: var(--on-couch-soft); }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
.area-list li { border-top: 1px solid var(--rule-on-couch); }
.area-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule-on-couch); }
.area-list a {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: var(--space-4); align-items: center;
  padding: var(--space-5) var(--space-3) var(--space-5) 0; color: var(--on-couch); text-decoration: none;
  background: linear-gradient(90deg, oklch(1 0 0 / 0.07), oklch(1 0 0 / 0.07)) no-repeat 0 0 / 0% 100%;
  transition: background-size 0.45s var(--ease-out);
}
.area-list a:hover, .area-list a:focus-visible { background-size: 100% 100%; }
.area-list .area-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: oklch(1 0 0 / 0.08); color: var(--lime); }
.area-list .area-icon .icon { width: 1.75rem; height: 1.75rem; stroke-width: 1.6; }
.area-list strong { display: block; font-family: var(--font-display); font-stretch: 88%; font-size: var(--fs-pullquote); line-height: 1.15; }
.area-list span.area-hint { display: block; color: var(--on-couch-soft); font-size: var(--fs-small); margin-top: 0.2rem; }
.area-list .go { color: var(--lime); transition: transform 0.3s var(--ease-out); }
.area-list a:hover { color: var(--on-couch); }
.area-list a:hover .go { transform: translateX(4px); }
.areas__foot { margin-top: var(--space-6); color: var(--on-couch-soft); }
.areas__more { margin-top: var(--space-7); text-align: center; }
.areas__foot a { color: var(--on-couch); }
.areas__foot a:hover { color: #ffffff; text-decoration-thickness: 3px; }
@media (max-width: 48rem) {
  .area-list { grid-template-columns: 1fr; }
  .area-list li:nth-last-child(2) { border-bottom: 0; }
  .area-list a { grid-template-columns: 2.75rem minmax(0, 1fr) auto; padding-block: var(--space-4); }
  .area-list .area-icon { width: 2.75rem; height: 2.75rem; }
}

/* ---------- Service rows ----------
   Three services, one shape each: photo | what it is (name, description, treatments) | length, price and the way in. */
.pillars { display: grid; border-top: 1px solid var(--rule-strong); }
.pillar {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, clamp(11rem, 17vw, 15rem)) minmax(0, 1fr) minmax(0, 21.5rem);
  column-gap: clamp(var(--space-5), 3vw, var(--space-7));
  padding-block: var(--space-6); border-bottom: 1px solid var(--rule);
}
.pillar > :first-child { margin: 0; }
.pillar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-photo); }
.pillar__body, .pillar__aside { display: grid; gap: var(--space-3); }
.pillar__body > *, .pillar__aside > * { margin: 0; }
.pillar__body > h3 { font-size: var(--fs-subhead); }
.pillar__body > p { color: var(--ink-soft); max-width: 36rem; }
.pillar__aside > .is-style-action { padding-top: var(--space-3); }
.pillar h3 a { color: inherit; text-decoration: none; }
.pillar h3 a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 0.15em; }
/* Length and price read as a label: name above, the figure below. */
.pillar .facts { border-top: 0; }
.pillar .facts > div:first-child { padding-top: 0; }
.pillar .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; padding-block: var(--space-4); }
.pillar .facts dd { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.pillar .facts dd small { margin-top: 0.35rem; font-size: var(--fs-small); line-height: 1.45; }
.pillar .facts dd { font-size: 1.25rem; line-height: 1.25; }
/* Treatments: linked chips, so six of them read as a set rather than a paragraph of links. */
.pillar__links { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: var(--space-2) 0 0; }
.pillar__links li { margin: 0; }
.pillar__links a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.35rem 1rem;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius-pill); background: var(--panel);
  color: var(--ink); font-size: var(--fs-small); text-decoration: none; transition: border-color 0.2s var(--ease-out);
}
.pillar__links a:hover { border-color: var(--ink); }
@media (max-width: 64rem) {
  .pillar { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); row-gap: var(--space-5); }
  .pillar > :first-child { grid-row: span 2; }
  .pillar__aside { grid-column: 2; }
}
@media (max-width: 40rem) {
  .pillar { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); }
  .pillar > :first-child { grid-row: auto; }
  .pillar__aside { grid-column: auto; }
  .pillar img { aspect-ratio: 16 / 9; }
}

/* ---------- Team page: everyone, with a short intro ---------- */
.team-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; column-gap: var(--space-7); border-top: 1px solid var(--rule-strong); }
.team-list > li { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: var(--space-5); align-items: stretch; padding-block: var(--space-6); border-bottom: 1px solid var(--rule); }
.team-list > li > :first-child { align-self: start; }
.team-list img, .team-list .portrait-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-photo); }
/* Every card the same height, with the profile link pinned to the bottom so the links line up. */
.team-list__body { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.team-list__body > * { margin: 0; }
.team-list :is(h2, h3) { font-size: var(--fs-h3); }
.team-list__role { color: var(--green); font-family: var(--font-display); font-stretch: 92%; font-weight: 600; line-height: 1.3; }
.team-list__body > p:not([class]) { color: var(--ink-soft); }
.team-list__meta { font-size: var(--fs-small); color: var(--ink-soft); }
.team-list .link-arrow { margin-top: auto; }
.team-list .link-arrow:not(:first-child) { padding-top: var(--space-3); }
@media (max-width: 56rem) { .team-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } }
@media (max-width: 26rem) { .team-list > li { grid-template-columns: minmax(0, 6rem) minmax(0, 1fr); gap: var(--space-4); } }

/* ---------- Fact rows: the clinic's "label" ---------- */
.facts { margin: 0; display: grid; border-top: 1px solid var(--rule-strong); }
.facts > div { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--space-3); padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.4; }
.facts dd { margin: 0; font-family: var(--font-display); font-stretch: 92%; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.35; }
.facts dd small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: var(--fs-fine); }

/* ---------- Team ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5); }
.team a { color: inherit; text-decoration: none; display: grid; gap: var(--space-3); }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-photo); filter: saturate(0.92); transition: filter 0.3s var(--ease-out); }
.team a:hover img { filter: saturate(1.05); }
.team strong { display: block; font-family: var(--font-display); font-stretch: 90%; font-size: 1.125rem; line-height: 1.2; }
.team span { display: block; font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.35; margin-top: 0.15rem; }
.team a:hover strong { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
@media (max-width: 64rem) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* A team row placed inside a page's text column lines up with the text. */
.prose > .section > .wrap { width: 100%; }
/* ...and takes the text column's usual spacing instead of a full section's padding on top. */
.prose > .section:not(.band):not(.takesteps) { padding-block: 0; }
.team.team--few { grid-template-columns: repeat(auto-fill, minmax(0, 15rem)); }
@media (max-width: 34rem) {
  .team { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-3); scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
  .team li { scroll-snap-align: start; }
}

/* ---------- Reviews ---------- */
.reviews { background: var(--putty-deep); }
.reviews--plain { background: var(--putty); }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.review { margin: 0; display: grid; gap: var(--space-4); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 1.0625rem; }
.review--lead blockquote p { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.35rem); line-height: 1.3; letter-spacing: -0.015em; }
.review figcaption { font-size: var(--fs-small); color: var(--ink-soft); }
.review figcaption strong { color: var(--ink); font-family: var(--font-display); font-stretch: 92%; }
.review .stars { display: inline-flex; gap: 2px; color: var(--star); }
.review .stars .icon { width: 1rem; height: 1rem; }
.reviews__side { display: grid; gap: var(--space-6); }
.reviews__side .review { padding-top: var(--space-5); border-top: 1px solid var(--rule-strong); }
.reviews__summary { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--rule-strong); }
.reviews__score { display: flex; align-items: baseline; gap: 0.6rem; }
.reviews__score strong { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 56rem) { .reviews__grid { grid-template-columns: 1fr; } }
.reviews--page { background: var(--putty); padding-top: var(--space-5); }
.reviews--page > .wrap { display: grid; grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.reviews__score-card { position: sticky; top: var(--space-6); display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-6); background: var(--putty-deep); border-radius: var(--radius-panel); }
.reviews__big { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; }
.reviews__big strong { font-family: var(--font-display); font-stretch: 90%; font-size: clamp(3.5rem, 2.6rem + 3vw, 5rem); line-height: 0.9; letter-spacing: -0.03em; }
.reviews__out-of { color: var(--ink-soft); font-size: var(--fs-small); }
.reviews__score-card .stars { display: inline-flex; gap: 3px; color: var(--star); }
.reviews__score-card .stars .icon { width: 1.35rem; height: 1.35rem; }
.reviews__count { margin: 0 0 var(--space-2); color: var(--ink-soft); }
.reviews__body { display: grid; gap: var(--space-7); }
.reviews--page .reviews__wall blockquote p { font-family: inherit; font-weight: 400; font-stretch: normal; font-size: 1.125rem; line-height: 1.55; }
.reviews--page .review--lead { margin-top: -0.35rem; }
.reviews--page .review--lead { padding-bottom: var(--space-7); border-bottom: 1px solid var(--rule-strong); }
.reviews__wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-7); }
.reviews__wall .review { align-content: start; padding-left: var(--space-5); border-left: 3px solid var(--green); }
.reviews__note { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.reviews__cards { columns: 2 18rem; column-gap: var(--space-5); }
.review--card { break-inside: avoid; margin: 0 0 var(--space-5); padding: var(--space-5); gap: var(--space-3); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-panel); }
.review--card .stars .icon { width: 0.95rem; height: 0.95rem; }
.reviews--page .review--card blockquote p { font-family: inherit; font-weight: 400; font-stretch: normal; font-size: 1.0625rem; line-height: 1.55; margin: 0; }
.review--card figcaption time { color: var(--ink-soft); }
.review--card figcaption time::before { content: "\00b7"; margin-inline: 0.4em; }
@media (max-width: 56rem) {
  .reviews--page > .wrap { grid-template-columns: 1fr; gap: var(--space-7); }
  .reviews__score-card { position: static; }
  .reviews__wall { grid-template-columns: 1fr; }
}

/* ---------- Advice list ---------- */
.advice { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.advice a { color: inherit; text-decoration: none; display: grid; gap: var(--space-3); }
.advice img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-photo); }
.advice h3 { font-size: 1.3rem; }
.advice a:hover h3 { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.advice .meta { font-size: var(--fs-small); color: var(--ink-soft); }
@media (max-width: 56rem) {
  .advice { grid-template-columns: 1fr; gap: var(--space-5); }
  .advice a { grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-4); align-items: start; }
  .advice img { aspect-ratio: 1; }
  .advice h3 { font-size: 1.125rem; }
}

/* ---------- Clinics ---------- */
.clinics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
.clinic { display: grid; gap: var(--space-5); align-content: start; }
.clinic img, .clinic .photo-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-photo); }
.clinic-map {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-photo); overflow: hidden; isolation: isolate;
  display: grid; place-items: center; background: var(--putty-deep); font: inherit; z-index: 0;
}
/* OpenStreetMap's colours, greyed and tinted towards the site's greens. */
.clinic-map .leaflet-tile-pane { filter: grayscale(1) contrast(0.85) brightness(1.08); }
.clinic-map .leaflet-control-attribution { font-size: 0.75rem; background: oklch(1 0 0 / 0.85); color: var(--ink-soft); border-top-left-radius: 0.5rem; }
.clinic-map .leaflet-control-attribution a { color: inherit; }
.clinic-map__pin { display: grid; place-items: center; background: var(--brand-block); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px oklch(0 0 0 / 0.3); }
.clinic-map__pin svg { width: 20px; height: 20px; fill: var(--ink); }
.photo-placeholder {
  display: grid; place-items: center; text-align: center; padding: var(--space-5);
  background: #ffd6f2;
  border: 3px dashed #ff1fb4; color: #000; font-weight: 700; font-size: var(--fs-small);
}
.clinic address { font-style: normal; font-size: 1.0625rem; line-height: 1.5; }
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-family: var(--font-display); font-stretch: 92%; font-weight: 700; font-size: 1rem; padding-bottom: 0.4rem; }
.hours th, .hours td { text-align: left; padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
.hours th { font-weight: 400; color: var(--ink-soft); width: 45%; }
@media (max-width: 56rem) { .clinics { grid-template-columns: 1fr; } }
/* Side by side, the two clinics share rows (photo, name, address, hours, buttons), so a longer address on one side doesn't push the other's hours out of line. */
@media (min-width: 56.01rem) {
  .clinics:not(.clinics--one) { row-gap: var(--space-5); }
  .clinics:not(.clinics--one) > .clinic { grid-row: span 5; grid-template-rows: subgrid; gap: inherit; }
  /* A shorter hours table (Putney) keeps its own row height rather than stretching to match the other clinic's. */
  .clinics:not(.clinics--one) .hours { align-self: start; }
}

/* ---------- #TakeSteps close: the live site's green block ---------- */
.takesteps { background: var(--brand-block); color: var(--ink); }
.takesteps__grid { display: grid; gap: var(--space-6); justify-items: start; }
.takesteps h2 { color: var(--ink); max-width: 22ch; }
.takesteps h2 em { font-style: normal; }
.takesteps p { font-size: var(--fs-lead); max-width: 46ch; margin-top: var(--space-4); line-height: 1.6; }
.takesteps ul { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: var(--fs-lead); }
.takesteps li::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ink); margin-right: 0.7rem; transform: translateY(-0.12em); }
.takesteps .btn--book { background: var(--ink); color: var(--putty); border-color: var(--ink); }
.takesteps .btn--book:hover { background: var(--couch-deep); border-color: var(--couch-deep); color: var(--panel); }
.takesteps .btn--on-couch { color: var(--ink); border-color: var(--ink); }
.takesteps .btn--on-couch:hover { background: var(--ink); color: var(--putty); }

/* ---------- Footer ---------- */
.site-footer { background: var(--couch-deep); color: var(--on-couch-soft); padding-block: var(--space-8) calc(var(--space-7) + env(safe-area-inset-bottom)); font-size: var(--fs-small); }
.site-footer a { color: var(--on-couch); display: inline-block; padding-block: 0.3rem; }
.site-footer a:hover { color: #ffffff; text-decoration-thickness: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: var(--space-6); }
.footer-grid h2 { font-size: 1rem; color: var(--on-couch); font-stretch: 95%; letter-spacing: 0; margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-grid address { font-style: normal; }
.footer-brand img { height: 3rem; width: auto; margin-bottom: var(--space-4); }
.footer-base { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--rule-on-couch); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); list-style: none; margin: 0; padding: 0; }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 26rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile booking bar ---------- */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bookbar);
  display: none; gap: var(--space-3); padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--rule);
  box-shadow: 0 -10px 24px -18px oklch(0.25 0.035 156 / 0.45);
}
.book-bar .btn { flex: 1; min-height: 3.25rem; }
.book-bar .btn--call { flex: 0 0 auto; }
@media (max-width: 68rem) {
  .book-bar { display: flex; }
  .site-footer { padding-bottom: calc(var(--space-7) + 4.6rem + env(safe-area-inset-bottom)); }
}

/* ---------- Article / template pages ---------- */
/* Same pink as .placeholder: a page drafted for ALP's clinicians to check. */
.review-banner { background: rgb(255 31 180 / 0.7); color: #000; }
.review-banner p { margin: 0; padding-block: var(--space-3); font-size: var(--fs-small); line-height: 1.5; }
.page-head { padding-block: var(--space-6) var(--space-7); }
/* The heading starts level with the top of the photo, and the photo is wide enough not to leave a gap under short headers. */
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.page-head h1 { margin-top: 0; max-width: 16ch; }
.page-head .lead { margin-top: var(--space-5); max-width: 40ch; }
.page-head .lead + .lead { margin-top: var(--space-3); }
.page-head img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-photo); }
/* A head with only a title and buttons gets a letterbox photo, so there's no empty space under the buttons. */
.page-head__grid:not(:has(.lead, .facts, .author)) img { aspect-ratio: 2 / 1; }
/* A head with only a title (Insurance, Join us): the photo stays on the right but hangs down beside the start of
   the page text, so the text starts straight under the title instead of below the photo. */
@media (min-width: 56.01rem) {
  .page-head__grid:not(:has(.lead, .facts, .btn-row, .author)) { position: relative; }
  .page-head__grid:not(:has(.lead, .facts, .btn-row, .author)) > img { position: absolute; top: 0; right: 0; width: calc((100% - var(--space-7)) / 2.25); aspect-ratio: 4 / 5; z-index: 1; }
}
@media (max-width: 56rem) { .page-head__grid { grid-template-columns: 1fr; gap: var(--space-6); } }

.answer {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-panel); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  display: grid; gap: var(--space-3); max-width: var(--measure);
}
.answer h2 { font-size: 1.5rem; font-stretch: 92%; letter-spacing: -0.01em; }
.answer p { font-size: var(--fs-lead); line-height: 1.55; }

.layout-article { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--space-8); align-items: start; padding-bottom: var(--space-9); }
.layout-article__aside { position: sticky; top: 6rem; display: grid; gap: var(--space-5); }
@media (max-width: 64rem) {
  .layout-article { grid-template-columns: 1fr; gap: var(--space-6); }
  .layout-article__aside { position: static; order: -1; }
  .layout-article__aside .toc { display: none; }
  .layout-article--read .layout-article__aside { order: 0; }
  .layout-article--head-books .layout-article__aside { display: none; }
}

.book-panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-panel); padding: var(--space-5); display: grid; gap: var(--space-4); }
.book-panel h2 { font-size: 1.5rem; }
.book-panel .note, .book-note { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.45; }
.book-note { margin-top: var(--space-3); max-width: 34rem; }

.toc { font-size: var(--fs-small); }
.toc h2 { font-size: 1rem; font-stretch: 95%; letter-spacing: 0; margin-bottom: var(--space-3); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; border-top: 1px solid var(--rule); }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 1.6rem 1fr; padding: 0.7rem 0; color: var(--ink); text-decoration: none; line-height: 1.4; }
.toc a::before { content: counter(toc); color: var(--green); font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--green); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; scroll-margin-top: 6rem; font-size: var(--fs-subhead); }
.prose h3 { margin-top: 1.9em; }
.prose .steps h3, .prose .callout h3 { margin-top: 0; }
.prose .steps li + li, .prose .related li + li, .prose .people li + li { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
/* Plain lists (including the editor's own wp-block-list) indent their bullets; styled lists (is-style-*, components) set their own. */
.prose :where(ul, ol):where(:not([class]), [class="wp-block-list"]) { padding-left: 1.25rem; }
.prose :where(ul, ol)[class]:not([class="wp-block-list"]) { padding-left: 0; }
.prose :where(ul, ol):where(:not([class]), [class="wp-block-list"]) li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--green); }
.prose blockquote { margin: 1.6em 0; padding: 0; }
.prose blockquote p { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: var(--fs-pullquote); line-height: 1.3; }
.prose blockquote footer { margin-top: 0.6rem; font-size: var(--fs-small); color: var(--ink-soft); }
.callout { background: var(--putty-deep); border-radius: var(--radius-panel); padding: var(--space-5); }
.callout h3 { margin-top: 0 !important; font-size: var(--fs-h3); }
.callout--warn { background: #ffffff; border: 2px solid #e13d3a; }   /* the guide's red for states; red-ink for its heading */
.callout--warn h3 { color: #b8302d; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); }
.steps li { align-items: start; }
.steps li::before {
  content: counter(step); width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--couch); color: var(--on-couch); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.steps h3 { font-size: var(--fs-lead); font-weight: 600; line-height: 1.35; margin-bottom: 0.25rem; }
.steps li { align-items: center; }
.steps p { color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chips a, .chips span {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.35rem 0.95rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--rule-strong); color: var(--ink); text-decoration: none; font-size: var(--fs-small); background: var(--panel);
}
.chips a:hover { border-color: var(--ink); }

.faq { border-top: 1px solid var(--rule-strong); max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0; font-family: var(--font-display); font-stretch: 92%; font-weight: 700; font-size: 1.15rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.25s var(--ease-out); color: var(--green); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding-bottom: var(--space-5); color: var(--ink); }
.faq details > div > * + * { margin-top: 0.8em; }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-5); }
.person { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.person img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.person strong { display: block; font-family: var(--font-display); font-stretch: 92%; font-size: 1.1rem; line-height: 1.2; }
.person span { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.35; display: block; }
.person .person__link { display: inline-block; margin-top: 0.3rem; font-size: var(--fs-small); font-weight: 600; color: var(--green); text-underline-offset: 0.2em; }

.related { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule-strong); }
.related li { border-bottom: 1px solid var(--rule); }
.related a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-stretch: 92%; font-weight: 700; font-size: 1.1rem; }
.related a small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--ink-soft); }
.related a:hover { color: var(--green); }

.placeholder {
  /* Fluorescent pink on purpose: a gap ALP must fill should be impossible to miss, and never look like design. */
  display: inline; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 0.35em; border-radius: var(--radius-photo);
  background: rgb(255 31 180 / 0.7); color: #000;
  font-family: var(--font-body); font-weight: 700; font-size: 0.85em; letter-spacing: 0.01em;
}

.author { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.author img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.author strong { font-family: var(--font-display); font-stretch: 92%; font-size: 1.05rem; display: block; }
.author span { font-size: var(--fs-small); color: var(--ink-soft); display: block; line-height: 1.4; }

.refs { font-size: var(--fs-fine); color: var(--ink-soft); }
.refs li + li { margin-top: 0.5em; }

.band { background: var(--putty-deep); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }

/* Clinician profile */
.profile-head { padding-block: var(--space-6) var(--space-8); }
.profile-head__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-8); align-items: center; }
.profile-head__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 30%; border-radius: var(--radius-photo); }
.profile-head h1 { margin-top: var(--space-3); }
.profile-role { font-family: var(--font-display); font-stretch: 92%; font-weight: 600; font-size: var(--fs-lead); color: var(--green); margin-top: var(--space-3); }
.profile-quote { margin: var(--space-6) 0 0; }
.profile-quote p { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: var(--fs-pullquote); line-height: 1.3; }
@media (max-width: 56rem) { .profile-head__grid { grid-template-columns: 1fr; gap: var(--space-6); } .profile-head__photo img { aspect-ratio: 4 / 3; } }

/* Variant switcher (POC only, not part of the design) */
.poc-switch { font-size: var(--fs-small); background: var(--ink); color: var(--putty); }
.poc-switch .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; padding-block: 0.5rem; }
.poc-switch a { color: #ffffff; }
.poc-switch a[aria-current="true"] { color: var(--putty); text-decoration: none; font-weight: 700; }

/* Reduced motion: entrance animations only run under no-preference (see hero).
   Here, movement becomes instant while colour and opacity feedback stays. */
@media (prefers-reduced-motion: reduce) {
  .link-arrow .icon, .area-list .go, .faq summary .icon, .btn { transition-property: background-color, color, border-color; }
  .link-arrow:hover .icon, .area-list a:hover .go, .btn:active { transform: none; }
  .area-list a { transition: none; }
  .book-bar { transition: opacity 0.2s linear; }
  .book-bar.is-waiting { transform: none; visibility: hidden; }
}
@media print {
  .site-header, .book-bar, .site-footer, .poc-switch { display: none; }
  body { background: #fff; }
}

.nowrap { white-space: nowrap; }

/* Sticky bar waits until the page's own Book button has scrolled away (JS adds .is-waiting). */
.book-bar { transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out); }
.book-bar.is-waiting { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* Example-page notice (condition page is a proposal, not live content) */
.example-notice { margin-top: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--panel); border: 1.5px dashed var(--rule-strong); border-radius: var(--radius-panel); max-width: 52rem; }
.faq-source { color: var(--ink-soft); font-size: var(--fs-small); }

/* ---------- Conditions index ---------- */
.conditions-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--space-7) var(--space-8); padding-bottom: var(--space-9); }
.condition-group h2 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-h3); margin-bottom: var(--space-4); }
.condition-group .area-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--putty-deep); color: var(--green); }
.condition-group .area-icon .icon { width: 1.5rem; height: 1.5rem; }
.condition-planned { display: block; padding: var(--space-4) 0; color: var(--ink-soft); font-family: var(--font-display); font-stretch: 92%; font-weight: 600; font-size: 1.1rem; }
.condition-planned small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); }

/* =====================================================================
   WordPress adapter: maps core block markup onto the concept's classes.
   ===================================================================== */

/* Template parts must not trap the sticky header or fixed bar in a wrapper. */
.wp-block-template-part.part-header, .wp-block-template-part.part-footer { display: contents; }
.site-main { display: block; }
:where(.wp-block-group) { box-sizing: border-box; }
.wp-site-blocks { padding: 0; }
figure { margin: 0; }
.wp-block-image { margin: 0; }
.wp-block-image img { border-radius: var(--radius-photo); height: auto; }
.wp-element-caption, .wp-block-image figcaption { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 0.5rem; }
.link-button { background: none; border: 0; padding: 0.3rem 0; font: inherit; color: var(--on-couch); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.link-button:hover { color: #ffffff; text-decoration-thickness: 3px; }

/* Buttons: core Button block styles = the concept's buttons. */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.wp-block-button { margin: 0; }
.wp-block-button__link {
  --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: var(--radius-pill); border: 2px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink);
  font-family: var(--font-display); font-stretch: 95%; font-weight: 700; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.wp-block-button__link:hover { background: var(--ink); color: var(--putty); border-color: var(--ink); }
.wp-block-button__link:active { transform: translateY(1px); }
.is-style-book .wp-block-button__link, .wp-block-button.is-style-fill .wp-block-button__link { --btn-bg: var(--lime); --btn-ink: var(--lime-ink); --btn-line: var(--lime); }
.is-style-book .wp-block-button__link:hover { background: var(--lime-hover); color: var(--lime-ink); border-color: var(--lime-hover); }
.is-style-on-couch .wp-block-button__link { --btn-ink: var(--on-couch); --btn-line: var(--on-couch-soft); }
.is-style-on-couch .wp-block-button__link:hover { background: var(--on-couch); color: var(--couch-deep); border-color: var(--on-couch); }
.is-large .wp-block-button__link { min-height: 3.5rem; padding-inline: 1.75rem; font-size: 1.125rem; }
.is-style-call .wp-block-button__link::before, .btn--call-icon::before {
  content: ""; width: 1.15em; height: 1.15em; background: currentColor; flex-shrink: 0;
  -webkit-mask: var(--icon-phone) center / contain no-repeat; mask: var(--icon-phone) center / contain no-repeat;
}
:root {
  --icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.5h2.6l1.4 4.1-2 1.4a12 12 0 0 0 6.4 6.4l1.4-2 4.1 1.4v2.6a2 2 0 0 1-2.2 2A16.5 16.5 0 0 1 4.6 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.takesteps .is-style-book .wp-block-button__link { background: var(--ink); color: var(--putty); border-color: var(--ink); }
.takesteps .is-style-on-couch .wp-block-button__link, .takesteps .is-style-outline .wp-block-button__link { color: var(--ink); border-color: var(--ink); }

/* Paragraph styles */
.is-style-lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.55; }
.is-style-action a, a.is-style-action {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.3;
  text-decoration: none; border-bottom: 2px solid var(--lime); padding-top: 0.7rem; padding-bottom: 0.45rem;
}
.is-style-action a::after {
  content: ""; width: 1.25em; height: 1.25em; background: currentColor; transition: transform 0.25s var(--ease-out);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat;
}
.is-style-action a:hover { color: var(--green); }
.is-style-action a:hover::after { transform: translateX(3px); }
.areas .is-style-action a, .takesteps .is-style-action a { color: inherit; }

/* Panels (Group block styles). On the white ground, cards carry the guide's 1px grey line and 8px corners. */
.is-style-answer {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-panel); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  display: grid; gap: var(--space-3); max-width: var(--measure);
}
.is-style-answer h2, .is-style-answer h3 { font-size: 1.5rem; font-stretch: 92%; letter-spacing: -0.01em; margin-top: 0 !important; }
.is-style-answer p { font-size: var(--fs-lead); line-height: 1.55; }
.prose .is-style-answer > * + * { margin-top: 0; }
.is-style-callout, .is-style-callout-warn { background: var(--putty-deep); border-radius: var(--radius-photo); padding: var(--space-5) var(--space-6); }
:is(.is-style-callout, .is-style-callout-warn) > :last-child { margin-bottom: 0 !important; }
.is-style-callout-warn { background: #ffffff; border: 2px solid #e13d3a; }
.is-style-callout-warn :is(h2, h3) { color: #b8302d; }
:is(.is-style-callout, .is-style-callout-warn) > :first-child { margin-top: 0 !important; }
:is(.is-style-callout, .is-style-callout-warn) > * + * { margin-top: 0.8em; }
:is(.is-style-callout, .is-style-callout-warn) :is(h2, h3) { font-size: var(--fs-h3); }

/* FAQ: a group styled "FAQ" holding core Details blocks. */
.is-style-faq, .faq { border-top: 1px solid var(--rule-strong); max-width: var(--measure); }
.prose .is-style-faq > * + * { margin-top: 0; }
:is(.is-style-faq, .faq) .wp-block-details { border-bottom: 1px solid var(--rule); margin: 0; }
:is(.is-style-faq, .faq) .wp-block-details summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0; font-family: var(--font-display); font-stretch: 92%; font-weight: 700; font-size: 1.15rem; line-height: 1.3;
}
:is(.is-style-faq, .faq) .wp-block-details summary::-webkit-details-marker { display: none; }
:is(.is-style-faq, .faq) .wp-block-details summary::after {
  content: ""; width: 1.25em; height: 1.25em; flex-shrink: 0; background: var(--green); transition: transform 0.25s var(--ease-out);
  -webkit-mask: var(--icon-plus) center / contain no-repeat; mask: var(--icon-plus) center / contain no-repeat;
}
:is(.is-style-faq, .faq) .wp-block-details[open] summary::after { transform: rotate(45deg); }
:is(.is-style-faq, .faq) .wp-block-details > :not(summary) { margin: 0 0 0.8em; }
:is(.is-style-faq, .faq) .wp-block-details > :last-child:not(summary) { padding-bottom: var(--space-5); margin-bottom: 0; }
.wp-block-details summary { cursor: pointer; }

/* Lists */
.wp-block-list.is-style-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; border-top: 1px solid var(--rule-strong); }
.wp-block-list.is-style-steps > li {
  counter-increment: step; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--space-4); align-items: center;
  padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); margin: 0 !important;
  font-family: var(--font-display); font-stretch: 92%; font-weight: 600; font-size: var(--fs-lead); line-height: 1.35;
}
.wp-block-list.is-style-steps > li::before {
  content: counter(step); width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--couch); color: var(--on-couch); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.wp-block-list.is-style-related { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule-strong); }
.wp-block-list.is-style-related > li { border-bottom: 1px solid var(--rule); margin: 0 !important; }
.wp-block-list.is-style-related > li > a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0;
  color: var(--ink); text-decoration: none; font-family: var(--font-display); font-stretch: 92%; font-weight: 700; font-size: 1.1rem;
}
.wp-block-list.is-style-related > li > a::after {
  content: ""; width: 1.25em; height: 1.25em; flex-shrink: 0; background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat;
}
.wp-block-list.is-style-related > li > a:hover { color: var(--green); }
.wp-block-list.is-style-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.wp-block-list.is-style-chips > li { margin: 0 !important; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.35rem 0.95rem; border-radius: var(--radius-pill); border: 1.5px solid var(--rule-strong); background: var(--panel); font-size: var(--fs-small); }
.wp-block-list.is-style-chips > li > a { color: var(--ink); text-decoration: none; }
.related-block h2 { font-size: var(--fs-subhead); margin-bottom: var(--space-5); }
/* A heading leading into a related-links list: same size everywhere, with room above the list's rule. */
:is(h2, h3):has(+ .wp-block-list.is-style-related) { font-size: var(--fs-subhead); margin-bottom: var(--space-4); }
.related-block { margin-top: var(--space-8); }

/* Quotes */
.wp-block-quote { margin: 1.6em 0; padding: 0; border: 0; }
.wp-block-quote p { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: var(--fs-pullquote); line-height: 1.3; }
.wp-block-quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: var(--fs-small); color: var(--ink-soft); }
.wp-block-pullquote { padding: 0; margin: 1.6em 0; text-align: left; border: 0; }
.wp-block-pullquote blockquote { margin: 0; }

/* Tables */
.wp-block-table { margin: 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
/* Ruled rows like the fact lists: no cell boxes (WordPress's default borders are cleared), muted column labels, prices in the display face. */
.wp-block-table :is(thead, tfoot) { border: 0; }
.wp-block-table :is(th, td) { text-align: left; padding: 0.7rem 1rem 0.7rem 0; border: 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.4; }
.wp-block-table thead th { padding-block: 0.5rem; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--ink-soft); border-bottom: 1px solid var(--rule-strong); }
.wp-block-table td { font-family: var(--font-display); font-stretch: 95%; font-weight: 600; }
.wp-block-table td:first-child { font-family: var(--font-body); font-weight: 400; }
.wp-block-table :is(th, td):first-child { width: 50%; padding-right: var(--space-6); }
.wp-block-table :is(th, td):last-child { padding-right: 0; }
.wp-block-table tbody tr:last-child > * { border-bottom: 0; }
.wp-block-table figcaption { text-align: left; }

/* Prose inside block content */
.prose > :first-child { margin-top: 0; }
.prose .wp-block-image, .prose .wp-block-embed { margin-block: 1.6em; }
.prose .wp-block-image img { width: 100%; }
/* Logo row (Group block style "Logos"): small white tiles, each logo fitted inside at its own shape. */
.wp-block-group.is-style-logos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.25rem 2rem; }
.prose .is-style-logos > .wp-block-image { margin: 0; width: 8.5rem; display: grid; grid-template-rows: 2.5rem auto; justify-items: center; align-items: center; gap: 0.5rem; padding: 0.875rem 0.75rem 0.625rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-panel); }
.prose .is-style-logos > .wp-block-image img { width: auto; height: auto; max-width: 100%; max-height: 2.5rem; border-radius: 0; object-fit: contain; }
.prose .is-style-logos > .wp-block-image figcaption { margin: 0; font-size: var(--fs-fine); line-height: 1.3; color: var(--ink); text-align: center; }
.prose h4 { font-size: 1.15rem; font-stretch: 92%; margin-top: 1.6em; }
.prose .wp-block-buttons { margin-top: 1.4em; }
.prose hr, .wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--space-6); }
.prose .wp-block-column > * + * { margin-top: 1em; }
.wp-block-embed iframe { max-width: 100%; }
.wp-block-embed__wrapper { position: relative; }
.wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Page bodies */
.page-body { padding-bottom: var(--space-9); }
.page-head--text .page-head__grid { grid-template-columns: minmax(0, 1fr); }
.page-head--text h1 { max-width: 22ch; }
.page-head .facts { margin-top: var(--space-6); max-width: 34rem; }
.page-head .btn-row { margin-top: var(--space-6); }
.page-head .author { margin-top: var(--space-6); }
.profile-head .lead { margin-top: var(--space-5); }
.profile-head .facts { margin-top: var(--space-6); max-width: 36rem; }
.profile-head .btn-row { margin-top: var(--space-6); }
.layout-article .article-body > .prose + * { margin-top: var(--space-8); }
.layout-article .article-body > .prose > .is-style-answer:first-child { margin-bottom: var(--space-6); }
.portrait-placeholder { display: grid; place-items: center; aspect-ratio: 1; width: 100%; border-radius: 50%; background: var(--putty-deep); color: var(--ink-soft); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.team .portrait-placeholder { border-radius: var(--radius-photo); }
.author--team img { width: 4rem; height: 4rem; border-radius: 50%; }
.clinics--one { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
.location-content > *, .clinician-content > *, .landing-content > *, .front-content > * { margin: 0; }
:is(.location-content, .clinician-content, .landing-content) > :is(.page-head, .breadcrumbs) { margin-inline: auto; }
.clinician-content > .wp-block-group:not(.section) { padding-block: var(--space-8); }

/* Sections built from Group blocks in patterns */
.wp-block-group.section-head > * { margin: 0; }
.hero__media figcaption, .hero__media .wp-element-caption {
  position: absolute; left: var(--space-4); bottom: var(--space-4); margin: 0;
  background: var(--panel); color: var(--ink); padding: 0.45rem 0.8rem; border-radius: var(--radius-panel);
  font-size: var(--fs-small); line-height: 1.35; max-width: calc(100% - 2rem);
}
.hero__media { margin: 0; }
.split > .wp-block-group > * + * { margin-top: 1.1em; }
.split .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Lists of articles */
.post-list { padding-block: 0 var(--space-9); }
.advice--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.advice .photo-placeholder { aspect-ratio: 3 / 2; border-radius: var(--radius-photo); }
.pagination { margin-top: var(--space-7); }
.pagination ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.pagination :is(a, span) { display: inline-flex; align-items: center; justify-content: center; min-width: 3rem; min-height: 3rem; padding: 0 1rem; border: 2px solid var(--rule-strong); border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--putty); border-color: var(--ink); }

/* Search */
.site-search { margin-top: var(--space-6); max-width: 34rem; }
.wp-block-search__inside-wrapper { display: flex; gap: var(--space-3); }
.wp-block-search__label { display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.4rem; }
.wp-block-search__input, .contact-form :is(input, textarea, select) {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill);   /* input: 48px, ink-muted border, 4px corners */
  background: var(--panel); color: var(--ink); font: inherit;
}
.wp-block-search__button { min-height: 3rem; padding: 0 1.4rem; border: 2px solid var(--ink); border-radius: var(--radius-pill); background: transparent; color: var(--ink); font: 700 1.0625rem/1 var(--font-display); cursor: pointer; }
.wp-block-search__button:hover { background: var(--ink); color: var(--putty); }
.search-again { padding-bottom: var(--space-6); }

/* Contact form */
.contact-form { display: grid; gap: var(--space-4); max-width: 34rem; }
.contact-block > * + * { margin-top: var(--space-4); }
.contact-block > .contact-form { margin-top: var(--space-6); }
.contact-form .field { display: grid; gap: 0.4rem; margin: 0; }
.contact-form label { font-family: var(--font-display); font-stretch: 92%; font-weight: 700; }
.contact-form .field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.contact-form .field--check input { width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; margin-top: 0.2rem; accent-color: var(--ink); }
.contact-form .field--check label { font-family: inherit; font-weight: 400; font-stretch: normal; }
.contact-form .req { font-weight: 400; font-size: 0.9em; }
.contact-form :is(input, textarea, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: var(--space-4); border-radius: var(--radius-panel); font-weight: 700; }
.form-notice--ok { background: var(--panel); border-left: 4px solid var(--green); }
.form-notice--error { background: #fff; color: #b8302d; border: 2px solid #e13d3a; }   /* the guide's red-ink text, red border */

/* Newsletter sign-up (footer of every page, and a brand-green panel on the contact page) */
.newsletter { display: grid; gap: var(--space-3); max-width: 30rem; }
.newsletter__title { font-size: 1rem; letter-spacing: 0; margin: 0; }
.newsletter__intro { margin: 0; }
.newsletter__fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.newsletter .field { display: grid; gap: 0.3rem; margin: 0; }
.newsletter .field--wide { grid-column: 1 / -1; }
.newsletter label { font-family: var(--font-display); font-stretch: 92%; font-weight: 700; font-size: var(--fs-fine); }
.newsletter input { width: 100%; min-height: 3rem; padding: 0.55rem 0.8rem; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); background: var(--panel); color: var(--ink); font: inherit; }
.newsletter input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.newsletter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin: var(--space-2) 0 0; }
.newsletter__privacy { font-size: var(--fs-fine); }
.newsletter .form-notice { margin: 0; color: var(--ink); }
.newsletter--footer { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--rule-on-couch); }
.newsletter--footer .newsletter__title, .newsletter--footer label { color: var(--on-couch); }
.newsletter--footer .newsletter__intro strong { color: #ffffff; }
.newsletter--footer input { border-color: transparent; }
.newsletter--footer input:focus-visible { outline-color: #ffffff; }
.newsletter--page { max-width: 40rem; background: var(--brand-block); color: var(--ink); padding: var(--space-6); border-radius: var(--radius-panel); gap: var(--space-4); }
.newsletter--page .newsletter__title { font-size: var(--fs-h3); color: var(--ink); }
.newsletter--page .newsletter__intro { font-size: var(--fs-lead); line-height: 1.5; }
.newsletter--page input { border-color: transparent; }
.newsletter--page :focus-visible { outline-color: var(--ink); }
.newsletter--page .btn--book { background: var(--ink); color: var(--putty); border-color: var(--ink); }
.newsletter--page .btn--book:hover { background: var(--couch-deep); border-color: var(--couch-deep); color: var(--panel); }
.newsletter--page a { color: var(--ink); }
@media (max-width: 26rem) { .newsletter__fields { grid-template-columns: 1fr; } .newsletter--page { padding: var(--space-5); } }

/* Cookie bar */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--panel); border-top: 1px solid var(--rule);
  box-shadow: 0 -10px 24px -18px oklch(0.25 0.035 156 / 0.45); padding: var(--space-4) 0 calc(var(--space-4) + env(safe-area-inset-bottom));
}
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; justify-content: space-between; }
.consent p { font-size: var(--fs-small); max-width: 52rem; }
.consent__actions { display: flex; gap: var(--space-3); }
.consent__actions .btn { min-width: 7rem; }
body.has-consent-bar .book-bar { visibility: hidden; }

/* Editor-only previews keep the page ground */
.alp-block-preview { pointer-events: none; }

/* Loose blocks in full-width templates (location, clinician, landing) line up with the page column. */
:is(.location-content, .clinician-content, .landing-content) > :not(section):not(.section):not(.trust):not(.wp-block-group.alignfull):not(.page-head):not(.breadcrumbs) {
  margin-inline: max(var(--gutter), (100% - var(--max)) / 2);
  max-width: var(--measure);
}
:is(.location-content, .clinician-content, .landing-content) > :not(section):not(.section):not(.page-head) + :not(section):not(.section):not(.page-head) { margin-top: 1.1em; }
:is(.location-content, .clinician-content, .landing-content) > :is(h2, .wp-block-heading) { margin-top: var(--space-8); }
:is(.location-content, .clinician-content, .landing-content) > :not(section):not(.section):last-child { margin-bottom: var(--space-9); }
:is(.location-content, .clinician-content, .landing-content) > .contact-form { margin-top: var(--space-5); }

/* A #TakeSteps band placed inside page content still runs edge to edge. */
html, body { overflow-x: clip; }
.prose > .takesteps {
  width: 100vw; max-width: none;
  margin-left: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2));
  margin-top: var(--space-8);
}
.page-body:has(> .prose > .takesteps:last-child) { padding-bottom: 0; }

/* Team page: the live portraits sit beside the bio scale, not full column width. */
.slug-about-us .prose .wp-block-image img { width: 100%; max-width: 15rem; aspect-ratio: 1; object-fit: cover; }
/* Beside a column of text (What makes us different?), the photo fills its column so the two sides are a similar height. */
.slug-about-us .split .wp-block-image img { max-width: none; aspect-ratio: 3 / 2; }
/* A portrait photo beside text is shown square, cropped from near the top so faces stay in (the team photo on About). */
.split figure.wp-block-image.is-portrait img { max-width: none; aspect-ratio: 1; object-position: 50% 20%; }
.slug-about-us .prose h3 { margin-top: var(--space-4); }

/* Service pages: the live "Meet our specialists" portraits stay portrait-sized in the text column. */
.tpl-page-service .prose .wp-block-image img { max-width: 22rem; }
/* Photos between sections (#69): the full text column, cropped to one landscape shape so portraits don't tower. */
.tpl-page-service .prose > figure.wp-block-image.size-large img { max-width: none; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }
/* A clinician's headshot box (photo, a line about them, a link to their profile) is a compact card: the photo sits
   left with the text beside it, so it lines up with the callouts above instead of leaving a narrow photo on its own. */
.tpl-page-service .prose > figure.wp-block-image.size-alp-square { float: left; width: 9rem; margin: 1.6em var(--space-5) var(--space-3) 0; }
.tpl-page-service .prose > figure.size-alp-square img { max-width: none; width: 100%; aspect-ratio: 1; object-fit: cover; }
.tpl-page-service .prose > figure.size-alp-square + p { margin-top: 1.6em; min-height: 6.5rem; } /* with the link, as tall as the photo, so a second card starts below the first */
.tpl-page-service .prose > figure.size-alp-square ~ .is-style-action { margin-top: var(--space-3); }
.tpl-page-service .prose > figure.size-alp-square ~ .is-style-action + * { clear: both; }

/* Text-only pages (a heading with no photo, e.g. privacy, terms): the text fills the page width. */
main:has(.page-head--text) .page-body > .prose, main:has(.page-head--text) .page-body > .prose > .is-style-faq { max-width: none; }
