/*
 * ChiroMed site styles.
 *
 * One off-white ground, one dark, one accent. Photographs are square-edged and carry
 * the colour. Type never sits on a person. Every two-column layout hangs off the same
 * vertical axis, and there is one solid button per screen.
 */
@import url('fonts/fonts.css');

:root {
  --paper: #fafaf8;
  --night: #251828;     /* stairs portrait panel, footer */
  --ink: #2a1b30;
  --plum: #4b2a5c;      /* the logo's purple, grown up */
  --orchid: #8a5aa0;    /* focus rings only */
  --muted: #5d5462;
  --line: rgba(42, 27, 48, .14);
  --on-night: #efeaf0;
  --on-night-muted: #bdb2c1;
  --line-night: rgba(239, 234, 240, .2);
  --photo: #ecedea;     /* what shows before a photograph has loaded */
  --radius: 3px;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gut: clamp(20px, 4.6vw, 76px);
  --gap: clamp(20px, 3.4vw, 56px);
  --sec: clamp(76px, 10.5vw, 164px);
  --head-h: 84px;

  /* The axes: where column 6 and column 8 of a 12-column grid begin. */
  --c5: calc((100% - 11 * var(--gap)) * 5 / 12 + 4 * var(--gap));
  --c7: calc((100% - 11 * var(--gap)) * 7 / 12 + 6 * var(--gap));

  /* The same axes for panels that bleed to the edge of the page. */
  --edge: calc(max(0px, (100cqw - 1600px) / 2) + var(--gut));
  --inner: calc(min(100cqw, 1600px) - 2 * var(--gut));
  --bleed5: calc(var(--edge) + (var(--inner) - 11 * var(--gap)) * 5 / 12 + 4 * var(--gap));
  --bleed7: calc(var(--edge) + (var(--inner) - 11 * var(--gap)) * 7 / 12 + 6 * var(--gap));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.page { container-type: inline-size; }
#main:focus, #done-title:focus { outline: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- Type: four display sizes, three text sizes, two weights of each ---------- */
.d1, .d2, .d3, .d-sub, .d4, .price-sum, .numeral {
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
}
h1, h2, .d2, .d3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.d1 { font-size: clamp(46px, 6.5vw, 108px); line-height: 1.01; letter-spacing: -.022em; }
.d2, .d3, .price-sum { font-size: clamp(33px, 3.9vw, 60px); line-height: 1.08; letter-spacing: -.016em; }
.d-sub { font-size: clamp(25px, 2.5vw, 36px); line-height: 1.15; letter-spacing: -.012em; }
.d4 { font-size: clamp(22px, 1.95vw, 28px); line-height: 1.22; letter-spacing: -.008em; font-weight: 350; }
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; max-width: 30em; }
.small { font-size: 16px; line-height: 1.55; color: var(--muted); }
.label { font-size: 16px; color: var(--muted); }
.prose { max-width: 35em; }
.prose p + p { margin-top: 1em; }

/* The opening quote hangs in the margin, so the words line up with everything else. */
blockquote .d3 { text-indent: -.4em; }
.bq-by { display: block; margin-top: 16px; font-style: normal; font-size: 16px; color: var(--muted); }
.bg-night .bq-by { color: var(--on-night-muted); }

/* Standalone links only, so they can carry a full touch target. */
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; color: var(--plum);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color .15s;
}
.link:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1600px; margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.bg-paper { background: var(--paper); }
.bg-night { background: var(--night); color: var(--on-night); }
.bg-night .link { color: var(--on-night); }
.bg-night .link:hover { color: #fff; }

.photo { position: relative; overflow: hidden; background: var(--photo); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip img { transform: scaleX(-1); }

/* ---------- Buttons: one solid button per screen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; max-width: 100%; min-height: 56px; padding: 6px 34px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-size: 17px; font-weight: 500; line-height: 1.1; letter-spacing: .005em; text-align: center; text-decoration: none; text-wrap: balance;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: var(--on-night); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-line-light { border-color: var(--line-night); color: var(--on-night); }
.btn-line-light:hover { border-color: var(--on-night); }
.btn-sm { min-height: 46px; padding: 6px 22px; font-size: 16px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head.on-night { background: var(--night); color: var(--on-night); }
.site-head.on-night.scrolled { border-bottom-color: var(--line-night); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: var(--head-h); }
.logo { flex: none; display: block; padding-block: 9px; text-decoration: none; }
.word { display: block; font: 380 28px/1 var(--serif); letter-spacing: -.014em; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 clamp(18px, 2.1vw, 34px); }
.nav a { position: relative; padding: 10px 0; font-size: 16px; text-decoration: none; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; border-radius: var(--radius); }
.lang:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Quiet while the hero's own button is on screen; the single primary after that. */
.site-head.quiet .btn-primary { background: transparent; color: var(--ink); border-color: var(--line); }
.site-head.quiet .btn-primary:hover { border-color: var(--ink); }
.site-head.on-night .btn-primary { background: var(--on-night); color: var(--night); }
.site-head.on-night .btn-primary:hover { background: #fff; }
.site-head.no-cta .btn-primary { display: none; }
.site-head .btn { max-width: 24ch; }
.burger { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; }
.burger span, .burger span::before { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; }
.burger span::before { content: ''; position: absolute; top: 8px; }
.burger span { transform: translateY(-4px); }

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: flex; flex-direction: column; padding: 18px var(--gut) 34px; overflow: auto;
}
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.menu nav { margin-top: 30px; display: flex; flex-direction: column; }
.menu nav a {
  font: 300 36px/1.1 var(--serif); letter-spacing: -.012em; text-decoration: none;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.menu-foot { margin-top: auto; padding-top: 30px; display: grid; gap: 10px; }

.actionbar { display: none; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: var(--bleed5) minmax(0, 1fr); column-gap: var(--gap); min-height: calc(100svh - var(--head-h)); }
.hero-text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(24px, 3vw, 44px) 0 clamp(40px, 5vw, 76px) var(--edge);
}
.hero-text .lead { margin-top: clamp(22px, 2.3vw, 34px); }
.hero-btn { margin-top: clamp(26px, 2.8vw, 40px); }
.hero-next { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 12px; font-size: 16px; color: var(--muted); }
.next-slot {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.next-slot:hover { color: var(--plum); text-decoration-thickness: 2px; }
.hero-photo img { object-position: 54% 40%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: appear 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > *:nth-child(2) { animation-delay: .08s; }
  .hero-text > *:nth-child(3) { animation-delay: .16s; }
  .hero-text > *:nth-child(4) { animation-delay: .24s; }
  /* Pages cross-fade where the browser can; elsewhere they simply load. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Proof ---------- */
.proof { display: grid; gap: 34px var(--gap); }
.creds li { padding: 5px 0; }
.creds .cred-link { padding: 0 0 6px; }

/* ---------- Conditions: an index beside the photograph ---------- */
.cond { display: grid; grid-template-columns: var(--bleed5) minmax(0, 1fr); column-gap: var(--gap); }
.cond-photo { min-height: 820px; }
.cond-photo img { object-position: 50% 20%; }
.cond-text { padding: var(--sec) var(--edge) var(--sec) 0; }
.idx { margin-top: clamp(30px, 3.6vw, 54px); }
.idx li {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 4px var(--gap); align-items: baseline;
  padding: clamp(16px, 1.6vw, 23px) 0; border-top: 1px solid var(--line);
}
.idx li:last-child { border-bottom: 1px solid var(--line); }
.idx-v { font-size: 16px; line-height: 1.5; color: var(--muted); }
.cond-foot { margin-top: 26px; max-width: 34em; }

/* ---------- Steps: the order carried by plain numerals ---------- */
.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -3px;
  font: 300 clamp(25px, 2.5vw, 36px)/1 var(--serif); font-variant-numeric: lining-nums; color: var(--plum);
}
.steps h3 { font: 350 clamp(22px, 1.95vw, 28px)/1.22 var(--serif); letter-spacing: -.008em; margin-bottom: 6px; }
.steps p { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px var(--gap); }
.steps-row li { padding-top: 52px; }
.steps-col { display: grid; gap: clamp(24px, 2.8vw, 40px); }
.steps-col li { padding-left: 62px; }

.visit-head { display: grid; gap: 14px var(--gap); align-items: end; padding-block: var(--sec) clamp(36px, 4vw, 60px); }
.visit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.wide-photo { height: clamp(300px, 47vw, 720px); }
.steps-wrap { padding-block: clamp(40px, 4.4vw, 68px) var(--sec); }

.visit { display: grid; gap: 34px var(--gap); align-items: start; }
.visit-photo { aspect-ratio: 4 / 5; }
.visit-photo img { object-position: 60% 40%; }

/* ---------- Full-bleed panels: the photograph leads ---------- */
.split { display: grid; }
.split-photo { min-height: 760px; }
.split-text { padding: var(--sec) var(--gut); display: flex; flex-direction: column; justify-content: center; }
.hanna { grid-template-columns: var(--bleed7) minmax(0, 1fr); column-gap: var(--gap); }
.hanna .split-text { padding: var(--sec) 0 var(--sec) var(--edge); }
.hanna .split-photo { min-height: 880px; }
/* A calmer grade, closer to the pale photographs. */
.hanna .split-photo img { object-position: 46% 26%; filter: saturate(.78) contrast(.97); }
.hanna-list { margin-top: clamp(30px, 3.6vw, 52px); }
.hanna-list li { padding: 7px 0; color: var(--on-night-muted); }

.preg { grid-template-columns: var(--bleed7) minmax(0, 1fr); column-gap: var(--gap); }
.preg .split-photo { min-height: 820px; }
.preg .split-photo img { object-position: 50% 32%; }
.preg .split-text { padding: var(--sec) var(--edge) var(--sec) 0; }
.preg-note { margin-top: 26px; }
.preg-note strong { display: block; font-weight: 500; margin-bottom: 3px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 44px var(--gap); align-items: start; }
.q-list { margin-top: clamp(30px, 3.6vw, 52px); }
.q-small { padding: 22px 0; border-top: 1px solid var(--line); }
.q-small:last-child { border-bottom: 1px solid var(--line); }
.q-small p { font: 350 clamp(20px, 1.6vw, 23px)/1.35 var(--serif); }
.more { margin-top: clamp(26px, 3vw, 40px); }
.more > summary { display: inline-flex; cursor: pointer; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px var(--gap); margin-top: 20px; }

/* ---------- Practical ---------- */
.practical { display: grid; gap: 56px var(--gap); }
.prices { margin-top: 26px; }
.price-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center;
  gap: 4px clamp(18px, 3vw, 42px);
  padding: clamp(18px, 2vw, 28px) 0; border-top: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 1px solid var(--line); }
.price-meta { grid-column: 1; }
.price-row .price-sum { grid-row: 1 / span 2; grid-column: 2; white-space: nowrap; }
.price-row .btn { grid-row: 1 / span 2; grid-column: 3; }
.place dt { font-size: 16px; color: var(--muted); margin-top: 20px; }
.place dd { margin-top: 2px; }
.place dt:first-child { margin-top: 26px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: var(--on-night); padding-block: var(--sec) 40px; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 26px 60px; align-items: flex-end; justify-content: space-between; padding-bottom: clamp(48px, 6vw, 90px); border-bottom: 1px solid var(--line-night); }
.foot-cols { display: grid; gap: 34px var(--gap); padding-top: clamp(38px, 4vw, 60px); }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px var(--gap); }
.foot-links h3 { font-size: 16px; font-weight: 400; color: var(--on-night-muted); margin-bottom: 8px; }
.foot-links a { text-decoration: none; display: inline-block; padding: 8px 0; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { margin-top: clamp(38px, 4vw, 60px); color: var(--on-night-muted); font-size: 16px; }

/* ---------- Inner pages ---------- */
.pagehead { display: grid; grid-template-columns: var(--bleed5) minmax(0, 1fr); column-gap: var(--gap); min-height: clamp(460px, 68svh, 760px); }
.pagehead-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 3vw, 44px) 0 clamp(50px, 6vw, 96px) var(--edge);
}
.pagehead .lead { margin-top: clamp(20px, 2.2vw, 32px); }
.pagehead.plain { display: block; min-height: 0; padding: clamp(44px, 7vw, 112px) 0 clamp(36px, 4.6vw, 70px); }
.contact-big { display: grid; gap: 22px var(--gap); align-items: start; }
.contact-big a { display: inline-block; padding-block: 6px; text-decoration: none; }
.contact-big a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.block { display: grid; gap: 14px var(--gap); padding-block: clamp(30px, 3.8vw, 56px); }
.block:first-child { padding-top: 0; }
.block:last-child { padding-bottom: 0; }
.list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px var(--gap); max-width: 44em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px var(--gap); }
.facts dt { font-size: 16px; color: var(--muted); }
.facts dd { font: 300 clamp(25px, 2.5vw, 36px)/1.15 var(--serif); letter-spacing: -.012em; margin-top: 4px; }
.page-break { margin-block: clamp(36px, 4.6vw, 70px); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 62px; padding: 14px 0; cursor: pointer; list-style: none;
  font: 350 clamp(21px, 1.8vw, 25px)/1.25 var(--serif); letter-spacing: -.006em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 13px; height: 13px; background:
  linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat,
  linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 34px 24px 0; max-width: 38em; color: var(--muted); }

/* Map: a third party loads only on request, and the space is never empty. */
.map-panel { padding-block: clamp(56px, 7vw, 104px); }
.map-row { display: flex; flex-wrap: wrap; gap: 26px 60px; align-items: flex-end; justify-content: space-between; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map { width: 100%; height: clamp(320px, 42vw, 620px); border: 0; display: block; filter: grayscale(1) contrast(.92) brightness(1.04); }

/* ---------- Booking ---------- */
.book { display: grid; gap: 40px var(--gap); align-items: start; padding-bottom: clamp(40px, 5vw, 80px); }
.book-step { padding-block: clamp(30px, 3.6vw, 50px); border-top: 1px solid var(--line); }
.book-step:first-child { border-top: 0; padding-top: 0; }
.book-step > legend { float: left; width: 100%; }
.book-step > legend + * { clear: both; }
.book-step > legend, .step-title { display: block; padding: 0; font: 300 clamp(25px, 2.5vw, 36px)/1.15 var(--serif); letter-spacing: -.012em; margin-bottom: 20px; }
.choice { display: grid; gap: 10px; }
.choice label {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 2px 16px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.choice label:hover { border-color: var(--plum); }
.choice input {
  appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; grid-row: 1 / span 2;
  border: 1px solid var(--muted); border-radius: 50%; display: grid; place-content: center; cursor: pointer;
}
.choice input::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--plum); transform: scale(0); transition: transform .12s; }
.choice input:checked::before { transform: scale(1); }
.choice input:checked { border-color: var(--plum); }
.choice label:has(input:checked) { border-color: var(--plum); background: #fff; }
.choice-name { font: 350 clamp(22px, 1.95vw, 28px)/1.22 var(--serif); }
.choice-sum { grid-row: 1 / span 2; grid-column: 3; font: 300 clamp(25px, 2.5vw, 36px)/1 var(--serif); font-variant-numeric: lining-nums; white-space: nowrap; }
.choice-meta { grid-column: 2; font-size: 16px; color: var(--muted); }

.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-weight: 500; text-transform: capitalize; }
.cal-nav { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-content: center; transition: border-color .15s; }
.cal-nav:hover:not(:disabled) { border-color: var(--plum); }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }
.cal-nav svg { width: 15px; height: 15px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { font-size: 14px; color: var(--muted); text-align: center; padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; min-height: 44px; border-radius: var(--radius); font-variant-numeric: tabular-nums; font-size: 16px;
  display: grid; place-content: center; transition: background-color .15s, color .15s, box-shadow .15s;
}
.cal-day:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--plum); }
.cal-day:disabled { color: rgba(42, 27, 48, .3); cursor: default; }
.cal-day[aria-pressed="true"] { background: var(--plum); color: #fff; }
.times-head { font-weight: 500; margin-bottom: 12px; min-height: 28px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.slot {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; background: transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.slot:hover { border-color: var(--plum); }
.slot[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 56px; padding: 0 16px; font: inherit; font-size: 18px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s;
}
.field input:hover { border-color: var(--muted); }
.field input:focus { outline: 2px solid var(--orchid); outline-offset: 0; border-color: transparent; }
.field .err { display: none; margin-top: 6px; font-size: 16px; font-weight: 400; color: #a3262b; }
.field.bad input { border-color: #a3262b; }
.field.bad .err { display: block; }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

.summary { position: sticky; top: calc(var(--head-h) + 24px); }
.sum-rows { margin: 12px 0 22px; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.sum-rows > div:last-child { border-bottom: 1px solid var(--line); }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.summary .btn { width: 100%; }
.summary .btn[aria-disabled="true"] { background: rgba(75, 42, 92, .4); cursor: not-allowed; }
.summary .small { margin-top: 16px; }
.summary .small:empty { display: none; }

.done { display: grid; gap: 44px var(--gap); padding-bottom: clamp(40px, 5vw, 80px); }
.done-card dl > div { padding: 15px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.done-card dl > div:last-child { border-bottom: 1px solid var(--line); }
.done-card dt { color: var(--muted); }
.done-card dd { font-weight: 500; }
.signoff { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 36px; }
.signoff-photo { width: 96px; height: 120px; }
/* Tight on Hanna's face; the full frame is too small to read at this size. */
.signoff-photo img { inset: auto; left: -99px; top: -75px; width: 320px; height: auto; max-width: none; filter: saturate(.78) contrast(.97); }
.signoff-by { display: block; margin-top: 6px; font: 400 16px/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }
.notes { display: grid; gap: 20px; margin-top: 18px; }
.notes h4 { margin: 0 0 4px; font: 350 clamp(20px, 1.6vw, 23px)/1.25 var(--serif); }
.notes h3 { font: 350 clamp(20px, 1.6vw, 23px)/1.25 var(--serif); margin-bottom: 4px; }
.notes p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Small pieces ---------- */
.capfirst { display: block; }
.capfirst::first-letter { text-transform: uppercase; }
.after-list { margin-top: 18px; }
.preg-lead { margin-top: 22px; }
.about-head { padding-top: clamp(40px, 5vw, 80px); }
.about-lead { margin-top: 26px; color: var(--on-night-muted); }
.steps-title { margin-bottom: clamp(30px, 3.6vw, 52px); }
.prices-flush { margin-top: 0; }
.price-meta span { display: block; }
.page-quote { margin-top: clamp(56px, 7vw, 110px); max-width: 1100px; }
.book-head { padding-block: clamp(26px, 3.4vw, 54px); }
.book-lead { margin-top: clamp(14px, 1.6vw, 22px); }
.book-visits { display: flex; flex-wrap: wrap; gap: 14px clamp(32px, 4vw, 64px); margin-top: clamp(20px, 2.4vw, 32px); }
.book-visits dd { margin-top: 4px; color: var(--muted); }
/* The clinic's booking system. A frame cannot size itself to what is in it, so this is
   taller than its longest step measured at these widths. Phones go to the system itself.
   It turns dark on a computer set to dark mode; inside a frame that preference is the frame's
   color-scheme, so this keeps it light like the page. Its own day/night switch still works. */
.book-frame { display: block; width: 100%; height: 1500px; border: 0; background: #fff; color-scheme: light; }
.book-open { display: none; }
.book-note { margin-top: 18px; }
.book-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.book-page { padding-bottom: clamp(40px, 5vw, 80px); }
.done-head { padding-bottom: clamp(30px, 3.6vw, 52px); }
.done-lead, .not-found-lead { margin-top: clamp(20px, 2.2vw, 32px); }
.contact-note { margin-top: 14px; }
.shell { padding-bottom: var(--sec); }
.result + .result { margin-top: 28px; }
.result h2 { margin: 0 0 4px; font: 350 clamp(22px, 1.95vw, 28px)/1.22 var(--serif); }
.result a { text-decoration: none; }
.result a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Its room is held from the start, at the width of the longest date, so the free time
   arriving moves nothing and the line wraps exactly as it will. */
.hero-next[data-empty] { visibility: hidden; }
#hero-slots { display: inline-flex; min-width: 16.5em; min-height: 44px; }
.cal-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.times-note { font-size: 16px; color: var(--muted); }
.form-error { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #a3262b; border-radius: var(--radius); color: #a3262b; font-size: 16px; line-height: 1.45; }
.summary .btn[disabled] { background: rgba(75, 42, 92, .4); cursor: progress; }

/* ---------- The two-column axis, on wide screens ---------- */
@media (min-width: 1181px) {
  .proof, .reviews, .practical, .block, .visit, .visit-head, .foot-cols, .contact-big { grid-template-columns: var(--c5) minmax(0, 1fr); }
  .practical > div:first-child { order: 2; }
  .practical .prices { margin-top: 26px; }
  .book, .done { grid-template-columns: var(--c7) minmax(0, 1fr); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .head-actions { margin-left: auto; }
  .summary { position: static; }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --head-h: 68px; }
  body { padding-bottom: 76px; }
  body.no-bar { padding-bottom: 0; }
  .book-frame { display: none; }
  .book-open { display: flex; width: 100%; }
  .word { font-size: 26px; }
  .head-row { gap: 6px; }
  .head-actions { gap: 4px; }
  .head-actions .btn { display: none; }

  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .actionbar .btn { padding: 6px 12px; min-height: 52px; }
  body.no-bar .actionbar { display: none; }

  .hero, .pagehead, .cond, .split, .hanna, .preg { display: flex; flex-direction: column; min-height: 0; }
  .hero-photo { order: -1; height: 47svh; min-height: 300px; }
  .hero-text { padding: 26px var(--gut) 40px; }
  .hero-btn { display: none; }
  .hero-next { margin-top: 14px; }

  .proof > :first-child { order: 2; }
  .cond-photo { min-height: 0; aspect-ratio: 4 / 4.2; }
  .cond-text { padding: 48px var(--gut) 60px; }
  .idx li { grid-template-columns: minmax(0, 1fr); }
  .steps-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps-row li { padding: 0 0 0 52px; }
  .steps-wrap { padding-block: 36px 64px; }
  .visit-head { padding-top: 64px; }
  .visit-photo { aspect-ratio: 1.2; margin-inline: calc(var(--gut) * -1); }

  .split-photo, .hanna .split-photo, .preg .split-photo { min-height: 0; aspect-ratio: 4 / 4.4; }
  .hanna .split-photo { order: -1; aspect-ratio: 4 / 5; }
  .split-text, .hanna .split-text, .preg .split-text { padding: 54px var(--gut) 62px; }
  .list-2, .more-grid, .fields-2, .facts, .foot-links { grid-template-columns: minmax(0, 1fr); }

  .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .price-row .price-sum { grid-column: 2; grid-row: 1; }
  .price-meta { grid-column: 1 / -1; }
  .price-row .btn { grid-column: 1 / -1; grid-row: auto; margin-top: 10px; }

  .foot-cta .btn { width: 100%; }
  .map-actions, .map-actions .btn { width: 100%; }

  .pagehead .photo { order: -1; height: 40svh; min-height: 250px; }
  .pagehead-text { padding: 26px var(--gut) 44px; }
  .pagehead.plain { display: block; }

  .cal-wrap { grid-template-columns: minmax(0, 1fr); }
  .choice label { padding: 16px; }
  .done-card dl > div { grid-template-columns: 96px minmax(0, 1fr); }
}
