/* Physio by Meg design system.
   ---------------------------------------------------------------------------
   Three fixed brand colours. Measured contrast:
     Spruce on Yellow 9.9:1   white on Spruce 11.6:1   Spruce on paper 11.2:1
     Court Green: 3.35:1 on white, 3.46:1 on Spruce. So Court Green is for
     rules, shapes and LARGE display text only (24px and up), never body text
     and never behind white text.
   Type: Archivo (variable width and weight). Display headings are condensed,
   heavy, slanted capitals; Manrope for text; Instrument Serif italic only for
   the "by" in the wordmark.
   Shape: the SLASH. A yellow diagonal sits behind Meg in the hero, the hero's
   lower edge is cut on the same slope, and thin slashes mark kickers and
   dividers. Rules are thin and square; buttons are pills. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --court: #0FA241;
  --spruce: #17411B;
  --yellow: #ECF665;
  --yellow-deep: #DDE84A;
  --spruce-lift: #1F5224;      /* hover surface on Spruce */
  --paper: #F7F8F1;
  --bone: #ECEEE2;
  --white: #FFFFFF;
  --tint: #E9F5EC;
  --ink: #17411B;
  --body: #233326;
  --muted: #55645A;
  --on-dark: #FFFFFF;
  --on-dark-soft: #D5E0D6;
  --line: #CDD5C8;
  --line-strong: #7B8A7D;
  --rule-dark: rgb(255 255 255 / 0.28);
  --danger: #A4281B;
  --danger-tint: #FBECEA;
  --warn-tint: #FFF8D6;
  --radius: 6px;
  --radius-sm: 3px;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --space: clamp(3.5rem, 8vw, 6.5rem);
  --gutter: max(1.25rem, calc((100vw - 78rem) / 2));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-bottom: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--body); font: 450 1.0625rem/1.6 var(--text); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-stretch: 108%; color: var(--ink); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 0.55em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 750; margin-top: 1.6em; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--spruce); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); border-radius: 2px; }
main:focus, .times:focus { outline: none; box-shadow: none; }
::selection { background: var(--yellow); color: var(--spruce); }

/* Layout */
.wrap { width: min(100% - 2.5rem, 78rem); margin-inline: auto; }
.narrow { max-width: 44rem; }
.page { padding-block: clamp(2rem, 5vw, 3.5rem) var(--space); }
.section { padding-block: var(--space); }
.section > h2:first-child, .split h2:first-child { margin-top: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--body); max-width: 36rem; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 0.5rem; top: -4rem; z-index: 20; background: var(--yellow); color: var(--spruce); padding: 0.75rem 1rem; font-weight: 800; border-radius: var(--radius-sm); }
.skip:focus { top: 0.5rem; }
.crumb { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.crumb a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumb a::before { content: "←"; margin-right: 0.5rem; transition: transform 0.25s var(--ease); }
.crumb a:hover::before { transform: translateX(-4px); }

/* Editorial type */
.kicker { font: 700 0.82rem/1.2 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 1rem; margin: 0 0 1.1rem; }
.kicker::before { content: ""; flex: none; width: 0.42rem; height: 1.7rem; background: var(--court); transform: skewX(-20deg); }
.on-dark .kicker::before, .hero .kicker::before { background: var(--yellow); }
.hero .kicker { color: var(--white); }
.display { font-size: clamp(3rem, 9vw, 6.6rem); font-weight: 900; font-stretch: 72%; font-style: italic; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.012em; margin: 0; }
/* One emphasised phrase per heading: yellow on dark, a yellow highlight on light */
.accent { font: inherit; background: var(--yellow); color: var(--spruce); padding: 0 0.12em 0 0.08em; margin-left: -0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.on-dark .accent, .hero .accent { background: none; color: var(--yellow); padding: 0; margin: 0; }
.cta .accent { background: var(--spruce); color: var(--yellow); }
.text-link { font-weight: 700; text-decoration-color: var(--court); text-decoration-thickness: 2px; }
.text-link:hover { background: var(--yellow); color: var(--spruce); }
.arrow-link { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 0.1rem; }
.arrow-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.arrow-link:hover::after { transform: translateX(6px); }

/* Buttons: pills, heavy type, an up-and-out arrow on the ones that take you somewhere */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 48px; padding: 0.6rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font: 800 0.98rem/1.2 var(--text); letter-spacing: 0.005em; text-decoration: none; cursor: pointer; text-align: center; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-large { min-height: 60px; padding-inline: 2.1rem; font-size: 1.1rem; }
.btn-primary { background: var(--yellow); color: var(--spruce); border-color: var(--yellow); }
.btn-primary:hover { background: var(--spruce); color: var(--yellow); border-color: var(--spruce); }
.on-dark .btn-primary:hover, .site-header .btn-primary:hover, .site-footer .btn-primary:hover, .book-bar .btn-primary:hover { background: var(--white); color: var(--spruce); border-color: var(--white); }
.btn-dark { background: var(--spruce); color: var(--yellow); border-color: var(--spruce); }
.btn-dark:hover { background: var(--white); color: var(--spruce); }
.btn-quiet { background: transparent; color: var(--spruce); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--spruce); background: var(--white); }
.on-dark .btn-quiet { color: var(--white); border-color: var(--rule-dark); }
.on-dark .btn-quiet:hover { background: var(--white); color: var(--spruce); border-color: var(--white); }
.btn-danger { background: var(--white); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-tint); }
.btn-arrow::after { content: "↗"; font-size: 1.15em; line-height: 1; transition: transform 0.25s var(--ease); }
.btn-arrow:hover::after { transform: translate(3px, -3px); }
/* Light pages keep a visible edge on the yellow button */
.page .btn-primary, .admin .btn-primary, .section:not(.on-dark) .btn-primary { border-color: var(--spruce); }
.page .btn-primary:hover, .admin .btn-primary:hover { border-color: var(--spruce); }

/* Header: part of the dark brand frame, not a white website bar */
.site-header { background: var(--spruce); color: var(--on-dark); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 2rem; padding-block: 1rem; }
.brand { font: 800 1.6rem/1 var(--display); font-stretch: 100%; letter-spacing: -0.035em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.22em; min-height: 44px; align-self: center; padding-top: 0.55rem; margin-right: auto; }
.site-header .brand { color: var(--white); }
.brand-by { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: normal; font-size: 1.12em; letter-spacing: -0.01em; color: inherit; }
.site-header .brand-by, .site-footer .brand-by { color: var(--yellow); }
.brand-mark { display: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; font: 650 1.02rem/1 var(--text); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.55rem; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header :focus-visible, .site-footer :focus-visible, .on-dark :focus-visible, .book-bar :focus-visible { outline-color: var(--yellow); box-shadow: 0 0 0 6px var(--spruce); }
.wide-only { display: none; }
@media (max-width: 47.99rem) {
  .site-header nav { order: 3; width: 100%; border-top: 1px solid var(--rule-dark); margin-top: 0.35rem; }
  .site-header .nav { justify-content: space-between; margin-inline: -0.75rem; }
  .has-bookbar .header-book { display: none; }
}
@media (min-width: 48rem) { .wide-only { display: inline; white-space: pre; } }

/* Phone: one booking action always in reach, instead of a button per section */
.book-bar { display: none; }
@media (max-width: 47.99rem) {
  .book-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: fixed; inset: auto 0 0 0; z-index: 10; background: var(--spruce); color: var(--white); padding: 0.6rem 1.25rem calc(0.6rem + env(safe-area-inset-bottom)); border-top: 3px solid var(--yellow); }
  .book-bar p { margin: 0; font-size: 0.85rem; line-height: 1.25; color: var(--on-dark-soft); }
  .book-bar strong { display: block; color: var(--white); font: 800 1rem/1.2 var(--display); }
  .has-bookbar .site-footer { padding-bottom: 6.5rem; }
}

/* Hero: slanted capitals, Meg cut out against the yellow slash, standing on a
   ground line cut to the same slope. No photograph box at all. */
.hero { background: var(--spruce); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: clamp(4.5rem, 11vw, 9.5rem); background: var(--paper); clip-path: polygon(0 82%, 100% 0, 100% 101%, 0 101%); z-index: 2; }
.hero-grid { display: grid; position: relative; }
.hero-text { position: relative; z-index: 4; padding: clamp(2rem, 6vw, 3rem) 1.25rem 0; }
.mega { font: 900 clamp(2.9rem, 13.1vw, 6.4rem)/0.86 var(--display); font-stretch: 68%; font-style: italic; text-transform: uppercase; letter-spacing: -0.008em; color: var(--white); margin: 0 0 1.4rem; }
.mega span { display: block; white-space: nowrap; }
.hero .lede { color: var(--white); max-width: 30rem; font-size: clamp(1.12rem, 1.7vw, 1.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin: 1.6rem 0 0; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--spruce); }
.strip { list-style: none; margin: 2.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 0; }
.strip li { font: 800 clamp(0.7rem, 2.9vw, 0.86rem)/1.2 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); display: flex; align-items: center; }
.strip li + li::before { content: ""; width: 2px; height: 1.9rem; background: var(--yellow); transform: skewX(-20deg); margin: 0 clamp(0.55rem, 2.4vw, 1.1rem); }
.hero-art { position: relative; height: 27rem; margin-top: 0.5rem; }
.slash { position: absolute; z-index: 1; bottom: -2rem; left: 50%; width: 46%; height: 108%; background: var(--yellow); transform: translateX(-34%) skewX(-24deg); }
.hero-art img { position: absolute; z-index: 3; bottom: 1.1rem; left: 50%; height: 96%; width: auto; max-width: none; transform: translateX(-50%); }
/* A soft contact shadow on the ground under her boots: no glow around the figure itself */
.ground-shadow { position: absolute; z-index: 2; bottom: 0.5rem; left: 50%; width: 13rem; height: 1.4rem; transform: translateX(-38%) rotate(-5deg); background: radial-gradient(closest-side, rgb(0 0 0 / 0.38), rgb(0 0 0 / 0)); }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); min-height: min(53rem, calc(100vh - 4.75rem)); padding-left: var(--gutter); }
  .hero-text { padding: clamp(3rem, 7vh, 5.5rem) 0 clamp(9rem, 15vw, 13rem); align-self: center; }
  .mega { font-size: clamp(4.6rem, 9.9vw, 10.2rem); margin-bottom: 1.75rem; }
  .hero-art { height: auto; margin: 0; }
  .slash { width: 46%; left: 30%; height: 90%; bottom: 0; transform: translateX(-30%) skewX(-26deg); }
  .hero-art img { height: 90%; bottom: clamp(1.6rem, 3.8vw, 3.4rem); left: 46%; }
  .ground-shadow { left: 46%; width: 20rem; height: 2rem; bottom: clamp(0.8rem, 2.9vw, 2.5rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s var(--ease) both; }
  .rise-2 { animation-delay: 0.08s; }
  .rise-3 { animation-delay: 0.16s; }
  .rise-4 { animation-delay: 0.24s; }
  .slash { animation: cut 0.9s var(--ease) both; }
  .hero-art img { animation: stride 1s var(--ease) 0.1s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(1.4rem); } }
  @keyframes cut { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
  @keyframes stride { from { opacity: 0; translate: -2rem 0; } }
  @view-transition { navigation: auto; }
}

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.sec-head > div { max-width: 46rem; }
.on-dark { background: var(--spruce); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .kicker { color: var(--white); }
.on-dark .kicker { color: var(--white); }
.on-dark .muted { color: var(--on-dark-soft); }
.on-bone { background: var(--bone); }

/* Services: numbered editorial rows, not cards */
.svc-list { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--spruce); }
.svc { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: baseline; padding: 1.4rem 0; border-top: 2px solid var(--spruce); text-decoration: none; color: var(--ink); position: relative; transition: background-color 0.3s var(--ease), padding 0.3s var(--ease); }
.svc-n { font: italic 900 2rem/1 var(--display); font-stretch: 70%; color: var(--court); }
.svc h2, .svc h3 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); font-weight: 850; font-stretch: 70%; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.92; margin: 0; }
.svc p { grid-column: 2 / -1; margin: 0.35rem 0 0; color: var(--body); max-width: 34rem; }
.svc-go { font: 400 1.8rem/1 var(--display); grid-row: 1; grid-column: 3; transition: transform 0.3s var(--ease); }
.svc:hover, .svc:focus-visible { background: var(--yellow); padding-inline: 1rem; }
.svc:hover .svc-go, .svc:focus-visible .svc-go { transform: translateX(6px); }
.svc:hover .svc-n { color: var(--spruce); }
@media (min-width: 56rem) {
  .svc { grid-template-columns: 5.5rem minmax(0, 1.25fr) minmax(0, 1fr) 3rem; gap: 2rem; padding: 2rem 0; align-items: center; }
  .svc p { grid-column: 3; margin: 0; }
  .svc-go { grid-column: 4; justify-self: end; font-size: 2.2rem; }
  .svc-n { font-size: 2.6rem; }
}

/* Appointments and prices: a full-width, high-contrast list */
.price-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--rule-dark); }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "meta book"; gap: 0.35rem 1.25rem; align-items: center; padding: 1.15rem 0; border-top: 1px solid var(--rule-dark); transition: background-color 0.25s var(--ease), padding 0.25s var(--ease); }
.price-name { grid-area: name; font: 750 clamp(1.25rem, 2.7vw, 2.05rem)/1.05 var(--display); font-stretch: 108%; letter-spacing: -0.03em; color: var(--white); }
.price-meta { grid-area: meta; font: 700 0.78rem/1.2 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); }
.price-amount { grid-area: price; font: italic 900 clamp(2.6rem, 6.4vw, 4.6rem)/0.9 var(--display); font-stretch: 72%; letter-spacing: -0.01em; color: var(--yellow); justify-self: end; }
.price-book { grid-area: book; justify-self: end; color: var(--white); font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; border-bottom: 2px solid var(--yellow); }
.price-book::after { content: "→"; transition: transform 0.25s var(--ease); }
.price-book:hover { color: var(--yellow); }
.price-book:hover::after { transform: translateX(5px); }
.price-list li:hover { background: var(--spruce-lift); padding-inline: 0.9rem; }
.price-note { margin: 1.5rem 0 0; color: var(--on-dark-soft); max-width: 46rem; font-size: 0.98rem; }
@media (min-width: 56rem) {
  .price-list li { grid-template-columns: minmax(0, 1fr) 9rem 9rem 7rem; grid-template-areas: "name meta price book"; gap: 2rem; padding: 1.5rem 0; }
  .price-amount { justify-self: end; }
}
/* The same list on a light page */
.price-list.on-light { border-color: var(--spruce); }
.price-list.on-light li { border-color: var(--spruce); border-top-width: 2px; }
.price-list.on-light { border-bottom-width: 2px; }
.price-list.on-light .price-name, .price-list.on-light .price-amount, .price-list.on-light .price-book { color: var(--ink); }
.price-list.on-light .price-meta { color: var(--muted); }
.price-list.on-light .price-book { border-color: var(--court); }
.price-list.on-light li:hover { background: var(--yellow); }
.price-desc { grid-column: 1 / -1; margin: 0; color: var(--muted); max-width: 38rem; font-size: 0.98rem; }

/* About: the photograph leads */
.about-grid { display: grid; gap: 2rem; align-items: end; }
.about-photo { margin: 0 calc(var(--gutter) * -1) 0; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-copy .display { margin-bottom: 1.25rem; }
.about-copy p { max-width: 32rem; }
.pull { font: 700 clamp(1.35rem, 2.6vw, 1.9rem)/1.2 var(--display); font-stretch: 100%; color: var(--ink); max-width: 26rem; margin: 0 0 1.25rem; letter-spacing: -0.03em; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 1.5rem; }
@media (min-width: 56rem) {
  .about-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4.5rem; }
  .about-photo { margin: 0 0 0 calc(var(--gutter) * -1); }
  .about-photo img { aspect-ratio: 5 / 4; }
}
.info { display: grid; margin: clamp(2.5rem, 6vw, 4rem) 0 0; border-top: 2px solid var(--spruce); }
.info > div { padding: 1.1rem 0; border-bottom: 1px solid var(--line-strong); }
.info dt { font: 800 0.75rem/1.2 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.info dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (min-width: 56rem) { .info { grid-template-columns: repeat(3, 1fr); gap: 0 3rem; } .info > div { border-bottom: 0; } }

/* Closing call to action: one flat field of yellow */
.cta { background: var(--yellow); color: var(--spruce); }
.cta-inner { display: grid; gap: 1.5rem; align-items: end; padding-block: clamp(3rem, 7vw, 5.5rem); }
.cta .display { font-size: clamp(3.4rem, 11.5vw, 9rem); }
.cta p { margin: 0; max-width: 26rem; font-weight: 600; }
@media (min-width: 56rem) { .cta-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; } .cta-side { padding-bottom: 0.6rem; } }
.cta-side { display: grid; gap: 1.25rem; justify-items: start; }

/* Inner page head */
.page-head { padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.75rem); }
.page-head .display { margin-bottom: 1.25rem; }
.page-head .lede { margin-bottom: 0; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
/* Labelled rows: a small label on the left, the text on the right */
.rows-ed { border-bottom: 2px solid var(--spruce); margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.rows-ed > div, .rows-ed > section { display: grid; gap: 0.5rem 3rem; padding: 1.6rem 0; border-top: 2px solid var(--spruce); }
.rows-ed h2, .rows-ed dt { font: 800 0.8rem/1.3 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0.35rem 0 0; font-stretch: normal; }
.rows-ed p, .rows-ed dd { margin: 0; max-width: 40rem; font-size: 1.1rem; }
.rows-ed p + p { margin-top: 0.9em; }
@media (min-width: 56rem) { .rows-ed > div, .rows-ed > section { grid-template-columns: 15rem minmax(0, 1fr); } }

/* Small spacing utilities (the security policy allows no inline styles) */
.u-mt { margin-top: 1.5rem; }
.u-mt-l { margin-top: clamp(2.5rem, 6vw, 4rem); }
.u-mt-0 { margin-top: 0; }
.u-pb { padding-bottom: var(--space); }
.u-pb-0 { padding-bottom: 0; }
.u-pt-s { padding-top: clamp(1.5rem, 4vw, 2.5rem); }

/* Option rows in the booking flow: ruled, not boxed */
.book-options { list-style: none; padding: 0; margin: 1.75rem 0; border-bottom: 2px solid var(--spruce); }
.book-options li { border-top: 2px solid var(--spruce); padding: 1.15rem 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.book-options li > div:first-child { flex: 1 1 14rem; }
.book-options strong { font: 750 1.2rem/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.option-desc { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.98rem; }
.option-end { display: flex; align-items: center; gap: 1.25rem; }
.option-end .price-amount { color: var(--ink); font-size: 2rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 0.35rem; display: flex; gap: 0.4rem; }
.steps li { flex: 1; border-top: 6px solid var(--line); padding-top: 0.4rem; font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.3rem; }
.steps .step-done { border-color: var(--court); color: var(--body); }
.steps .step-current { border-color: var(--spruce); color: var(--ink); font-weight: 700; }
.step-count { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }
@media (max-width: 34rem) { .steps .step-name { display: none; } .steps .step-current .step-name { display: inline; } }

.chosen { background: var(--bone); border-left: 4px solid var(--court); padding: 0.75rem 1rem; }

/* Calendar */
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 1.5rem; }
.cal-head h2 { margin: 0; font-size: 1.25rem; }
.cal-nav { display: flex; gap: 0.5rem; }
.cal-grid { list-style: none; padding: 0; margin: 0.75rem 0 0.5rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.cal-dow { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--muted); padding-bottom: 0.15rem; }
.cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.6rem; border-radius: var(--radius-sm); border: 2px solid transparent; text-decoration: none; line-height: 1.15; }
.cal-num { font: 700 1.1rem/1.1 var(--display); }
.cal-count { font-size: 0.72rem; font-weight: 600; }
.cal-day.is-free { background: var(--white); border-color: var(--court); color: var(--ink); }
.cal-day.is-free:hover { background: var(--tint); border-color: var(--spruce); }
.cal-day.is-selected { background: var(--spruce); border-color: var(--spruce); color: var(--white); }
.cal-day.is-selected .cal-count { color: var(--yellow); }
.cal-day.is-none { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 6px, rgb(0 0 0 / 0.045) 6px 8px); }
.cal-day.is-none .cal-num { font-weight: 400; text-decoration: line-through; }
.cal-key { font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.key-free { width: 1rem; height: 1rem; border: 2px solid var(--court); border-radius: 4px; background: var(--white); flex: none; }
.times { scroll-margin-top: 1rem; }
.times h3 { margin: 1.25rem 0 0.5rem; font-size: 1rem; }
.time-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr)); gap: 0.5rem; }
.time { display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--white); border: 2px solid var(--spruce); border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.time:hover { background: var(--yellow); }

/* Forms */
.form { display: grid; gap: 1.25rem; max-width: 32rem; }
.form .btn { justify-self: start; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 0.25rem; }
.optional { font-weight: 400; color: var(--muted); }
.hint { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.95rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; font: inherit; color: var(--body); background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.has-error input, .has-error textarea { border-color: var(--danger); }
.error { margin: 0 0 0.35rem; color: var(--danger); font-weight: 700; }
.choice { display: flex !important; align-items: center; gap: 0.75rem; font-weight: 400 !important; color: var(--body) !important; min-height: 48px; padding: 0.5rem 0.9rem; margin: 0.4rem 0 0 !important; background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; }
.choice:has(:checked) { border-color: var(--spruce); background: var(--tint); font-weight: 700 !important; }
.choice input { width: 1.4rem; height: 1.4rem; accent-color: var(--spruce); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inline-form { margin-bottom: 1rem; }
.error-summary { border: 3px solid var(--danger); background: var(--danger-tint); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.error-summary h2 { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--danger); }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--danger); font-weight: 700; }

/* Notices, summary, status */
.notice { border-left: 6px solid var(--spruce); background: var(--white); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.notice h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { border-color: var(--court); background: var(--tint); }
.notice-warn { border-color: #8A6D00; background: var(--warn-tint); }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.25rem 1.25rem; margin-block: 1.25rem; }
.summary > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { font-weight: 700; color: var(--ink); }
.summary dd { margin: 0; }
.summary .muted { display: block; font-size: 0.95rem; }
.ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; background: var(--yellow); color: var(--spruce); padding: 0.1rem 0.4rem; border-radius: 4px; }
.done-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.done-head h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.tick { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--yellow); color: var(--spruce); font-size: 1.8rem; font-weight: 800; display: grid; place-items: center; margin: 0; border: 3px solid var(--spruce); }
.done-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.next-list { padding-left: 1.2rem; }
.next-list li { margin-bottom: 0.5rem; }
.status { display: inline-block; font-weight: 700; padding: 0.25rem 0.8rem; border-radius: 999px; border: 2px solid var(--spruce); background: var(--tint); color: var(--ink); }
.status-cancelled, .status-no_show { border-color: var(--danger); background: var(--danger-tint); color: var(--danger); }
.contact-list > div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 700; color: var(--ink); }
.contact-list dd { margin: 0; }

/* Footer: closes the dark brand frame the header opens */
.site-footer { background: var(--spruce); color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5rem) 2rem; overflow: hidden; }
.site-footer a:not(.btn) { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.site-footer a:not(.btn):hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; } }
.site-footer .footer-h { font: 800 0.75rem/1.2 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); margin: 0 0 0.6rem; }
.footer-lede { font: 700 clamp(1.3rem, 2.4vw, 1.7rem)/1.15 var(--display); letter-spacing: -0.03em; margin: 0 0 1.5rem !important; max-width: 18rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li, .site-footer p { margin: 0; }
.site-footer .footer-brand { font: italic 900 clamp(3rem, 14.4vw, 13rem)/0.8 var(--display); font-stretch: 68%; letter-spacing: -0.01em; text-transform: uppercase; color: var(--court); margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; white-space: nowrap; }
.footer-brand .brand-by { font-size: 0.72em; letter-spacing: -0.02em; margin: 0 0.06em 0 0.02em; text-transform: lowercase; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule-dark); font-size: 0.85rem; color: var(--on-dark-soft); }

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

/* ---- Admin area: neutral surfaces, brand colours for navigation, actions and states ---- */
.admin { background: #F4F5F1; }
.admin-header { background: var(--white); border-bottom: 4px solid var(--court); }
.admin-header .nav a::after { background: var(--court); }
.admin .brand-by { color: var(--spruce); }
.admin-tag { font: 800 0.68rem/1 var(--text); font-stretch: normal; letter-spacing: 0.1em; text-transform: uppercase; background: var(--spruce); color: var(--white); padding: 0.3rem 0.5rem; border-radius: 2px; font-style: normal; align-self: center; margin-left: 0.4rem; }
.admin-main { padding-block: 1.5rem 4rem; max-width: 60rem; }
.admin-main > h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.btn-small { min-height: 44px; padding-inline: 1rem; font-size: 0.95rem; }
.signout { margin: 0; }
.login { margin-inline: auto; padding-top: 1rem; }
@media (max-width: 47.99rem) { .admin-header nav { order: 3; width: 100%; } .admin-header .nav { justify-content: flex-start; } }

.panels { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 50rem) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.panels .panel { margin-bottom: 0; }
.panel h2 { margin-top: 0; font-size: 1.35rem; }
.panel h3 { margin: 1.25rem 0 0.4rem; font-size: 1rem; font-family: var(--text); letter-spacing: 0; }
.panel > :last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; align-items: center; }
.facts { margin: 0 0 1rem; }
.facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts > div { grid-template-columns: 1fr; gap: 0; } }
.rows { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); align-items: center; min-height: 44px; }
.rows a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.history li { align-items: flex-start; padding-block: 0.7rem; }
.history li > span:last-child { text-align: right; font-size: 0.9rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); display: grid; }
.link-list a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* Form controls not covered by the public forms */
input[type="time"], input[type="date"], select { -webkit-appearance: none; appearance: none; height: 48px; display: block; }
select { padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--spruce) 50%), linear-gradient(135deg, var(--spruce) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%; background-size: 0.36rem 0.36rem; background-repeat: no-repeat; text-overflow: ellipsis; }
input[type="time"], input[type="date"], input[type="password"], select { width: 100%; min-height: 48px; padding: 0.5rem 0.7rem; font: inherit; color: var(--body); background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); }
.day-list { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.day-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 1rem 1rem; margin: 0; min-width: 0; }
.day-card legend { font: 700 1.15rem/1.2 var(--display); color: var(--ink); padding: 0 0.4rem; }
.day-card .choice { margin-bottom: 0.6rem !important; }
.period { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem; margin-top: 0.5rem; align-items: end; }
.period:has(.period-n) { grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1fr); }
.period input, .day-card, .panel, .form { min-width: 0; max-width: 100%; }
.period-n { font-size: 0.85rem; color: var(--muted); padding-bottom: 0.85rem; }
.period label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0 0.5rem; }
.choice-warn { border-color: #8A6D00 !important; background: var(--warn-tint) !important; }
.tabs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.9rem; border: 2px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--white); }
.tabs a[aria-current="true"] { background: var(--spruce); border-color: var(--spruce); color: var(--white); }
.time.is-static { border-style: dashed; border-color: var(--line-strong); font-weight: 600; }

/* Month calendar */
.month-grid .cal-day { min-height: 4.4rem; background: var(--white); border-color: var(--line); color: var(--ink); justify-content: flex-start; padding-top: 0.3rem; }
.month-grid .cal-day:hover { border-color: var(--spruce); }
.month-grid .cal-count { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.cal-appts { font-size: 0.66rem; font-weight: 600; background: var(--yellow); color: var(--spruce); border-radius: 4px; padding: 0 0.2rem; }
.m-off, .m-closed { background: repeating-linear-gradient(135deg, var(--white) 0 6px, #ECEEE8 6px 8px) !important; }
.m-off .cal-num, .m-closed .cal-num { font-weight: 400; }
.m-closed { border-color: var(--danger) !important; }
.m-closed .cal-count { color: var(--danger); }
.m-custom { border-color: var(--court) !important; border-width: 3px !important; }
.m-out { border-style: dashed !important; }
.m-out .cal-num { font-weight: 400; color: var(--muted); }
.m-today .cal-num { background: var(--spruce); color: var(--white); border-radius: 999px; padding: 0.1rem 0.45rem; }

/* ---- Intake form ---- */
.intake-form { max-width: 36rem; }
.intake-form h2 { margin: 1rem 0 0; font-size: 1.3rem; }
.choice-list { display: grid; gap: 0; }
.choice-top { align-items: flex-start !important; }
.choice-top input { margin-top: 0.15rem; }
.dob { display: flex; gap: 0.75rem; }
.dob label { font-weight: 400 !important; }
.dob input { min-height: 48px; padding: 0.6rem 0.8rem; font: inherit; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--body); width: 4.2rem; }
.dob div:last-child input { width: 5.8rem; }
.has-error .dob input { border-color: var(--danger); }
.qgroup { display: grid; gap: 1rem; }
.cond { display: none; border-left: 5px solid var(--court); padding-left: 1rem; }
.qgroup:has(.trig-1:checked) .cond-1, .qgroup:has(.trig-2:checked) .cond-2 { display: block; }
@supports not selector(:has(*)) { .cond { display: block; } }
.check-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.75rem; }
.check-head h2 { margin: 0; font-size: 1.3rem; }
.check-head a { display: inline-flex; align-items: center; min-height: 44px; }
.answers > div { grid-template-columns: 1fr; gap: 0.15rem; }
@media (min-width: 40rem) { .answers > div { grid-template-columns: 16rem 1fr; gap: 1rem; } }
.step-0 { color: var(--muted); }
.tag { display: inline-block; font-size: 0.85rem; padding: 0.1rem 0.55rem; border-radius: 999px; border: 2px solid var(--line-strong); color: var(--body); background: var(--white); }
.tag-ok { border-color: var(--court); background: var(--tint); color: var(--ink); }
.tag-wait { border-color: #8A6D00; background: var(--warn-tint); color: #4A3A00; }
.patient-rows li > span { text-align: right; }
.summary.flat { border: 0; padding: 0; margin: 0; }
button:disabled { opacity: 1; background: #E6E8E3; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.wide-form { max-width: 40rem; }
.checklist li { align-items: flex-start; padding-block: 0.6rem; }

/* Holding page shown while the site is closed to the public */
.holding { background: var(--spruce); color: var(--white); min-height: 100vh; display: grid; align-items: center; }
.holding main { width: min(100% - 2.5rem, 46rem); margin-inline: auto; padding-block: 3rem; }
.holding .brand { color: var(--white); margin-bottom: 2.5rem; }
.holding .brand-by { color: var(--yellow); }
.holding .display { color: var(--white); margin-bottom: 1.5rem; }
.holding .accent { background: none; color: var(--yellow); padding: 0; margin: 0; }
.holding .lede { color: var(--white); }
.holding :focus-visible { outline-color: var(--yellow); box-shadow: 0 0 0 6px var(--spruce); }

/* Agenda: a day or week of appointments, also the printed sheet */
.agenda-day { margin: 0 0 1.5rem; }
.agenda-day h3 { margin: 1.5rem 0 0.25rem; font-size: 1.2rem; }
.agenda-day h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.agenda-hours { margin: 0 0 0.5rem; }
.agenda { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--spruce); }
.agenda li { display: grid; grid-template-columns: 11rem 1fr; gap: 0.25rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.agenda-time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.agenda-what a { font-weight: 700; font-size: 1.08rem; display: inline-flex; align-items: center; min-height: 44px; margin-right: 0.5rem; }
.agenda-detail { display: block; }
.agenda-what .tag { margin: 0.3rem 0.3rem 0 0; }
.agenda-block { background: var(--bone); padding-inline: 0.75rem; }
.agenda-jump { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin: 2rem 0 1rem; }
.agenda-jump .field { margin: 0; }
@media (max-width: 34rem) { .agenda li { grid-template-columns: 1fr; } }

@media print {
  .admin-header, .skip, .no-print, .notice { display: none !important; }
  body.admin { background: #fff; color: #000; font-size: 11pt; }
  .admin-main { max-width: none; padding: 0; }
  .agenda a, .agenda-day h3 a { color: #000; text-decoration: none; min-height: 0; }
  .agenda li { break-inside: avoid; padding: 0.35rem 0; }
  .agenda-day { break-inside: avoid-page; }
  .agenda-block { background: none; padding-inline: 0; font-style: italic; }
  .tag { border: 1px solid #000; color: #000; }
}

/* Patient form: a quiet header with no site menu, and a small "saved" marker */
.header-note { margin: 0 0 0 auto; align-self: center; font: 700 0.85rem/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.saved { display: inline-block; margin: 0 0 0.75rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--bone); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 700; color: var(--ink); }

/* Patient notes */
.note-form textarea { width: 100%; }
.notes { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--spruce); }
.notes li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.note-meta { margin: 0 0 0.35rem; font-size: 0.92rem; color: var(--body); }
.note-text { margin: 0 0 0.4rem; white-space: normal; overflow-wrap: anywhere; }
.notes .text-link { display: inline-flex; align-items: center; min-height: 44px; }

/* A form link shown once for Meg to send herself */
.link-box input[readonly], .link-box textarea[readonly] { width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; font: 0.95rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); }
.link-box textarea[readonly] { font-family: var(--text); }
