/* =========================================================
   Bowl of Cherries Wellbeing — stylesheet
   Calm, warm, boutique-wellness. Airy, serif headings, soft cards.
   ========================================================= */

:root {
  /* ROUND M2 (Notebook theme): --cream is now the sampled aged-paper tone from
     the notebook paper (was flat #FBF7F2; sampled from the original
     bg-2-notebook.jpg — the M4 clean paper bg-6-safeband.jpg measures within
     1.01:1 of it, so the sample still stands). --blossom is renamed --paper-tint and
     is now a soft paper-tan tint (was pink #F2D5DA) — every "tinted fill" site-
     wide (bands, hover states, selected-day fallback, placeholder gradient)
     inherits the new tone automatically. --paper-line is the new sketch-brown
     hairline for card borders / dashed dividers. --border-soft moved from a
     cherry-tinted rgba to a paper-line-tinted rgba for the same reason. */
  --cream: #F7ECD4;
  --ink: #3A3335;
  --cherry: #A62639;
  --cherry-dark: #8a1f30;
  --paper-tint: #ECD9AE;
  --paper-line: #B9A98C;
  /* ROUND M5 (Wyatt: faint notebook dashes back, but never touching a
     letter): the ruling is no longer baked into the paper photo — ruling.js
     draws document-anchored dash rows computed from measured text geometry,
     so every segment keeps --rule-clearance of empty paper around every
     glyph, at every width, by construction. These four knobs are the whole
     tuning surface (px values read by ruling.js):
     spacing = row rhythm, alpha = faintness, clearance = the guaranteed
     text gap, inset = page-edge margin, minseg = shortest dash run drawn. */
  --rule-spacing: 44;
  --rule-alpha: 0.5;
  --rule-clearance: 14;
  --rule-inset: 32;
  --rule-minseg: 40;
  /* ROUND M6: --wash-alpha fades the paper toward flat cream (0 = full
     texture, 1 = flat). Ships at 0; the ?tune panel (tuner.js, Wyatt-only,
     localStorage-gated) drives it live so Wyatt can pick a value to bake. */
  --wash-alpha: 0;
  /* ROUND M8 (Wyatt compared via the tuner and chose white): service cards
     ship white. --card-bg stays as the knob; the ?tune panel's switch now
     flips TO the header tan for future comparison. Only .card uses it. */
  --card-bg: var(--white);
  /* ROUND M2.1 (desk): leaf deepened #7A8B6F -> #566249 — the readability
     verifier measured the old leaf at 2.6-3.0:1 on the notebook paper
     (kicker + day-of-week labels), under WCAG AA. Deep moss clears 4.5:1
     everywhere leaf is used while keeping the green identity. */
  --leaf: #566249;
  --white: #FFFFFF;
  --border-soft: rgba(185, 169, 140, 0.45);
  /* M67b: literal paper-sheet border for the /new-client packet — a
     touch cooler/lighter than --paper-line so a stack of white sheets
     reads distinctly from the tan card/hairline language elsewhere. */
  --sheet-border: #d8cdbb;
  --shadow-soft: 0 1px 2px rgba(58, 51, 53, 0.04), 0 6px 20px rgba(58, 51, 53, 0.05);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw-prose: 68ch;
  --maxw-page: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* ROUND M4.2: on mobile the background sizes against the body box; on
     pages shorter than the screen (404) the texture stopped at the content
     edge and flat --cream showed below — a visible band. Full-height body
     keeps one sheet to the bottom. */
  min-height: 100vh;
  /* ROUND M4 (Wyatt 2026-07-30: "no ruled line may touch a letter; one even
     sheet"): the paper image is regenerated with a completely clean interior —
     corner botanicals + cherries + dashed perimeter frame only, ZERO interior
     ruled lines — so no crop at any viewport can put a rule through text.
     Fixed attachment on desktop keeps one sheet framing the window; the mobile
     override below still re-anchors to top/scroll (iOS ignores fixed). */
  /* M16 REVERTED (Kayleigh, 2026-08-01): a desk experiment (bg-7-rightfix,
     erase+mirror surgery) shipped WITHOUT her approval and removed flowers
     Justine had approved — reverted to the untouched bg-6. STANDING
     LESSON (same family as the Round-6c tuner-values loss on City Side):
     approved artwork is sacred; repairs CONNECT what exists, never remove
     or replace it, and nothing ships without the owner's explicit go.
     The real fix runs on Wyatt's Mac via gpt-image-1 masked edit
     (HQ/CHERRIES-BG-FIX-PROMPT-FOR-WYATT.txt) and comes back for
     Kayleigh+Justine review. bg-7-rightfix.jpg stays on disk, unused. */
  /* M17 FINAL (Kayleigh, 2026-08-01): bg-9-finished = bg-6 + KAYLEIGH'S OWN
     ChatGPT repair of the two broken right-edge flower clusters (upper
     cluster joined into one connected sprig, lower sprig's stray bud
     connected + dashes no longer cut petals). Patched in by lifting ONLY
     her two repaired zones onto the pristine bg-6 — pixel-diff proven 0
     changes outside them. bg-6 and every candidate stay on disk. */
  /* M38 (Kayleigh, 2026-08-02): bg-10 = bg-9 + HER second ChatGPT rework of
     the upper-right flower cluster ("looks patched together" -> one
     continuous sprig). ChatGPT regenerated a whole new sheet, so ONLY the
     cluster zone (x1270-1536, y225-575) was lifted, paper-tone-normalized
     (ratios ~1.00) and feather-composited onto pristine bg-9 — pixel-diff
     proven 0 changes outside the zone. bg-9 and all candidates stay on disk. */
  /* M62 (Wyatt: "Remove flowers when pancake forms"): the body shorthand
     only paints ≤760px (the ≥761 media sets background-image: none; the
     desktop sheet lives on #paper-sheet) — and the pancake zone is
     flowerless, so phones carry the plain tile with the same M3
     anchoring. The artwork ships only on #paper-sheet ≥900px. */
  background: var(--cream) url('theme/bg-plain-paper.jpg') center center / cover no-repeat fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* M19 LOCK (Kayleigh: "lock it at 100"): BACKGROUND FIT baked — on desktop
   the whole sheet fits exactly in the band between the header's bottom edge
   (77px = 76 min-height + 1px border) and the viewport bottom, so the
   header never cuts the top artwork. Mobile (≤760) keeps its own M3
   anchoring, untouched. ruling.js scales --rule-spacing by the same
   squeeze factor at draw time (M19 note there); the M18 tuner section is
   retired — leftover cherries_bg_squeeze browser values are inert. */
/* M61: on desktop the sheet moved OFF the body onto #paper-sheet (a real
   position: fixed layer, defined next to #paper-wash) — iPhone/iPad Safari
   ignore background-attachment: fixed (the M3 lesson), and once iPads
   earned the desktop layout (M60's 900px header floor) their flowers
   scrolled away with the page. The layer reproduces the M19 lock exactly:
   it IS the band between the header's bottom edge (77px) and the viewport
   bottom, with the sheet stretched 100%/100% across it. The body keeps
   only the cream tone here; phones (≤760) keep the approved M3
   body-background anchoring, sheet layer hidden. */
@media (min-width: 761px) {
  body { background-image: none; }
  /* #paper-sheet's display: block lives next to its definition further
     down — an enable here would lose the cascade to the later
     display: none base rule (same specificity, later wins). */
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--cherry); text-decoration: none; }
a:hover { text-decoration: underline; }
/* M53: every enabled button is clickable — always show the hand.
   Disabled buttons are excluded, and more specific rules (a closed
   day-cell's not-allowed) still win. Owner pages inherit this too. */
button:not(:disabled) { cursor: pointer; }

.container {
  max-width: var(--maxw-page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
}

section { padding: 3.5rem 0; }
.section-tight { padding: 2rem 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--cherry);
  color: var(--white);
}
.btn-primary:hover { background: var(--cherry-dark); }

.btn-secondary {
  background: transparent;
  color: var(--cherry);
  border-color: var(--cherry);
}
.btn-secondary:hover { background: var(--paper-tint); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* ROUND M4.2: verifiers caught page text ghosting through the 0.92
     translucent bar and colliding with nav labels (worse in engines that
     skip backdrop-filter). Chrome is now opaque; the hairline border still
     separates it from the sheet. */
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--paper-line);
}
/* ROUND M4.2: at 390px the 1.3rem wordmark ran the final 'g' of "Wellbeing"
   into the hamburger (verifier finding, every mobile shot). Shrink only on
   narrow screens; 44px tap targets are untouched. */
@media (max-width: 430px) {
  .wordmark { font-size: 1.05rem; gap: 0.45rem; }
}
/* M58: at 320-350px (small/older phones) even the 1.05rem wordmark pushed
   the hamburger 10px past the viewport (pre-existing, found in the width
   sweeps). One more step down clears it with margin to spare. */
@media (max-width: 350px) {
  .wordmark { font-size: 0.92rem; gap: 0.3rem; }
  .wordmark-logo { width: 28px; height: 28px; }
}

nav.main-nav { display: flex; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  /* M10: tightened so the nav-cta fits beside Contact at 1280 (bar walks left
     toward the wordmark). M10.1 desk fix: 1rem still wrapped at 1280 (measured
     deficit 55px) — 0.8rem gap + 0.9rem links clears it with ~10px spare.
     Links stay uniform, so the cta matches them per Kayleigh's direction.
     M21 (Kayleigh): Contact link removed (redundant with the consult cta) —
     the freed width lets the gap breathe back to 1rem; verified single-line
     at 1280 with healthy wordmark clearance. */
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav.main-nav a {
  color: var(--ink);
  font-size: 0.9rem; /* M10.1: was 0.95rem — see gap note above */
  font-weight: 500;
  padding: 0.5rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--cherry);
  border-color: var(--cherry);
  text-decoration: none;
}
nav.main-nav a.nav-cta { color: var(--cherry); font-weight: 600; white-space: nowrap; }

.hamburger {
  display: none;
  /* appearance reset: without it WebKit shrinks the native button to ~34px,
     under the 44px tap-target minimum (verifier finding, v1 round) */
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 0.6rem;
  cursor: pointer;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 150ms ease, opacity 150ms ease;
}
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  /* ROUND M3: iOS Safari doesn't honor background-attachment:fixed (it
     jumps/blanks while scrolling), so on phones the paper anchors to the top
     and scrolls with the page — the sketched corners still frame the hero,
     which is what's on screen first. */
  body {
    background-attachment: scroll;
    background-position: top center;
  }
  nav.main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1.5rem;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  nav.main-nav li { border-bottom: 1px solid var(--border-soft); }
  nav.main-nav li:last-child { border-bottom: none; }
  nav.main-nav a {
    display: block;
    padding: 0.9rem 0.2rem;
    min-height: 44px;
  }
  .hamburger { display: inline-flex; }
}

/* ---------- Hero ----------
   Notebook theme, ROUND M4: every page's top section is a transparent .hero
   band sitting directly on the body's clean paper (bg-6-safeband.jpg — corner
   botanicals + cherries + dashed perimeter frame, no interior rules), so no
   wash is needed anywhere.
   .hero-page widens the h1 measure for plain page titles (home keeps the
   original 18ch wrapped-tagline treatment); .thankyou widens it further for
   the long dynamic confirmation sentence. */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  /* ROUND M4: paper lives on <body> and is clean, so the hero needs no
     repaint and no wash — transparent keeps the sheet seamless. */
  background: transparent;
  text-align: center;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }
.hero-logo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  box-shadow: 0 6px 22px rgba(58, 51, 53, 0.18);
  border: 3px solid var(--white);
}
.hero .kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--leaf);
  margin-bottom: 1rem;
}
.hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
/* ROUND M4.2: at ~1180-1300px wide, 30ch let "Imagine the possibility of
   wellbeing." (contact) and the what-is title run their last glyphs onto the
   top-right cherry sketch (measured 1.01:1 on the stem pixels). 26ch wraps
   them to two centered lines that clear the art at every width. */
.hero-page h1 { max-width: 26ch; }
.hero.thankyou h1 { max-width: 44ch; }
.hero .sub {
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Excerpt / manifesto ---------- */
.excerpt {
  text-align: center;
}
.excerpt p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink);
}
.excerpt .read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--cherry);
}

.manifesto p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.75;
}
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--cherry);
  text-align: center;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 1.75rem 1rem;
  margin: 2.5rem 0;
  line-height: 1.5;
}

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  transition: transform 150ms ease, box-shadow 150ms ease;
  display: block;
  height: 100%;
}
/* M55 LOCK (Wyatt, via the M54 ?tune mock): hover = the whole box grows
   4%, no lift. One law for every clickable card — the link-cards share it. */
a.card:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 24px rgba(58, 51, 53, 0.09);
  text-decoration: none;
}
.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0.6em; color: var(--ink); }
.card .arrow { color: var(--cherry); font-weight: 600; }

/* ---------- Numbered steps ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .step-grid { grid-template-columns: 1fr; }
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--paper-tint);
  color: var(--cherry-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ---------- Closing band ---------- */
/* ROUND M4: the M3 per-section cream washes are gone — the regenerated
   paper has no interior rules, so text sits directly on one even sheet.
   Washes were the source of the hero/section tonal seam. Do not re-add
   per-section overlays; if contrast ever needs help, use ONE uniform
   full-page layer so no seam can exist. */

.band {
  /* ROUND M4: a translucent tint here read as a shade band against the now
     even sheet. The band keeps its moment with dashed hairlines instead —
     same language as .pull-quote and the dashed card tops. */
  background: transparent;
  border-top: 1px dashed var(--paper-line);
  border-bottom: 1px dashed var(--paper-line);
  text-align: center;
  padding: 3rem 0;
}
.band p {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
}

/* ---------- CTA card ---------- */
.cta-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.cta-card p { font-family: var(--font-serif); font-size: 1.15rem; }

/* ---------- Placeholder image blocks ---------- */
.ph {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, var(--paper-tint) 0%, var(--cream) 100%);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23A62639' stroke-opacity='0.12' stroke-width='4'%3E%3Ccircle cx='75' cy='120' r='30'/%3E%3Ccircle cx='125' cy='115' r='30'/%3E%3Cpath d='M75 90 Q90 40 115 30'/%3E%3Cpath d='M125 85 Q118 45 115 30'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--paper-tint) 0%, var(--cream) 100%);
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: min(60%, 220px), cover;
  overflow: hidden;
  min-height: 200px;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--leaf);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
.ph--hero { aspect-ratio: 16 / 9; }
.ph--portrait { aspect-ratio: 3 / 4; max-width: 340px; }
.ph--video { aspect-ratio: 16 / 9; }
.ph--wide { aspect-ratio: 21 / 9; }

/* ---------- Video placeholder grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------- Link / resource cards ---------- */
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .link-card-grid { grid-template-columns: 1fr; }
}
.link-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.75rem;
  display: block;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
/* M51: nothing in these cards ever underlines — titles stay ink, the
   link words stay cherry (M50). M55 LOCK (Wyatt): hover = the whole box
   grows 4%, identical to the home service cards' law. */
.link-card h3, .link-card strong { color: var(--ink); }
.link-card p, .link-card span { color: var(--cherry); }
.link-card:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 24px rgba(58, 51, 53, 0.09);
  text-decoration: none;
}

/* ---------- Credentials list ---------- */
.credentials-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.credentials-list li {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-top: 2px dashed var(--paper-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  max-width: 32rem;
  margin: 0 auto;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.7rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 150ms ease;
}
.field input:focus {
  outline: none;
  border-color: var(--cherry);
}
.field-pair-note {
  font-size: 0.9rem;
  font-weight: 600;
  margin: -0.4rem 0 0.75rem;
}
.hint-inline {
  font-weight: 400;
  color: var(--leaf);
  font-size: 0.85rem;
}
.req {
  color: var(--cherry);
  font-weight: 700;
  margin-left: 0.15em;
}
.form-error {
  background: var(--paper-tint);
  border: 1px solid var(--cherry);
  color: var(--cherry-dark);
  border-radius: 0.7rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.privacy-line {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.8;
  margin-top: 1rem;
  text-align: center;
}
/* honeypot: hidden from real users, still in tab/DOM flow for basic bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* .nc-info-grid is a 2-column grid — an injected line must span both
   columns or it displaces a sibling field into the wrong cell. */
.nc-info-grid .email-suggest { grid-column: 1 / -1; }

/* ---------- M65/M67b: New client sign-up (/new-client/<service>) ----------
   M67b (Wyatt ruling: paper sheets) — REDESIGNED to literal white paper
   sheets on the desk, styled after pdf_packet.py's own rendered output (the
   architect-written PDF this page's signature now generates): a centered
   packet header opens sheet 1, bold underlined document headings, full
   verbatim paragraphs (no scrollbox — a sheet is exactly as tall as its
   text), a muted version+sha footer per document, and a signature block
   with the typed name rendered large over a rule, echoing the PDF's own
   Signature section. The old scrolling .legal-doc-card treatment is gone
   entirely — replaced below by .nc-sheet. */
/* M68 LOCK (Wyatt via the ?tune PAPER WIDTH knob): "paper: width=1100px"
   — sheets baked at 68.75rem; knob retired. */
.nc-page { max-width: 68.75rem; margin: 0 auto; }
.nc-sheets {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.nc-sheet {
  background: var(--white);
  border: 1px solid var(--sheet-border);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  padding: 2.4rem 2.6rem;
}
@media (max-width: 700px) {
  .nc-sheet { padding: 1.5rem 1.25rem; }
}
.nc-packet-header {
  text-align: center;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--paper-line);
}
.nc-packet-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.nc-packet-meta { font-size: 0.9rem; color: var(--ink); opacity: 0.75; margin: 0; }
.nc-doc-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 1.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--paper-line);
}
.nc-doc-para {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1rem;
}
.nc-doc-version {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--paper-line);
}
.nc-inventory { margin-bottom: 2rem; }
.nc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
.nc-info-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .nc-info-grid { grid-template-columns: 1fr; }
}
.nc-signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--paper-line);
}
.nc-sig-field { margin: 1.5rem 0 1.1rem; }
.nc-sig-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.nc-sig-input {
  width: 100%;
  min-height: unset;
  border: none;
  border-bottom: 1px solid var(--paper-line);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  padding: 0.4rem 0.2rem 0.6rem;
  color: var(--ink);
}
.nc-sig-input:focus { outline: none; border-bottom-color: var(--cherry); }
.nc-sig-recorded { text-align: center; margin: 1.6rem 0; }
.nc-sig-recorded-name {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-line);
  padding: 0 1rem 0.4rem;
  margin: 0 0 0.5rem;
}
.nc-sig-recorded-date { font-size: 0.9rem; color: var(--ink); opacity: 0.75; margin: 0; }
/* Checkbox + label pairs (Well-being Inventory / signature agreement) —
   deliberately its OWN class, not nested in .field, whose `input` rule
   is sized for text inputs. */
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}
.check-field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--cherry);
  flex-shrink: 0;
  cursor: pointer;
}
.confirm-line { color: var(--leaf); font-weight: 600; font-size: 1.05rem; }

/* ---------- YouTube card ---------- */
.yt-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.75rem;
  max-width: 28rem;
  margin: 1.5rem auto 0;
}
.yt-card .yt-icon { flex-shrink: 0; }
/* ROUND M4.2: the YouTube URL overflowed the card on 390px (verifier
   finding: last digits sliced at the card edge). Let the text column shrink
   and the URL wrap anywhere. */
.yt-card > div { min-width: 0; }
/* M52: the URL text lives in a <span> since the M50 whole-card-anchor
   conversion — it must stay breakable or the social-split 1fr tracks
   grow content-sized and the two cards go unequal/oversized (the M4.2
   regression, rediscovered). */
.yt-card a, .yt-card span { overflow-wrap: anywhere; }

/* M23: two social cards (YouTube + LinkedIn) splitting the yt-card's old
   area side by side. Cards stack at the link-card-grid's 700px breakpoint. */
.social-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
/* M51: content centered in the wide split cards (they read unbalanced
   left-packed at full grid width — Wyatt's centering call). */
.social-split .yt-card { max-width: none; margin: 0; justify-content: center; }
@media (max-width: 700px) {
  .social-split { grid-template-columns: 1fr; }
}

/* M23: single link-card used outside a grid (mindfulness meditation-doc
   card) — sized like the yt-card it sits in place of. */
.doc-card { max-width: 28rem; margin: 1.5rem auto 0; }

/* ---------- Success / thank you ---------- */
.thankyou {
  text-align: center;
  padding: 4rem 0;
}
.thankyou .big-check {
  font-size: 2.5rem;
  color: var(--leaf);
  margin-bottom: 1rem;
}
.thankyou-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--ink);
  font-size: 0.9rem;
}
.site-footer a { color: var(--ink); font-weight: 600; }
.site-footer .foot-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* M43 LOCK (Wyatt's public-header slider picks, 2026-08-03, on his
   ~2056px screen: "pub wm-off 194px, nav-gap 60px, nav-off 177px") with
   the EDGE GUARDRAIL he approved: his values apply as-is on wide screens;
   on narrower laptops the clamps stop the logo/menu AT the screen edge
   instead of sliding off (naive 194/177 puts the logo fully off-screen
   and adds 103px of sideways scroll at 1280). The clamp floor lands on
   Kayleigh's M39/M40 1280 geometry exactly (logo left 22px, menu 24px
   from the right edge — her picks 52/30/50, 2026-08-02, still recorded
   here). M42's slider panel retired per house ritual (public-tune.js
   deleted + include removed; stale cherries_hdr_* localStorage values
   are inert). Desktop only — the phone header keeps its M10-era layout;
   owner mode keeps its own M37 locks.
   History: M39 tuner → M40 lock (Kayleigh) → M41 edge-anchor experiment
   REVERTED (Wyatt: massive center gap) → M42 tuner (Wyatt) → M43 lock. */
@media (min-width: 761px) {
  body:not(.owner-page) .wordmark {
    margin-left: clamp(-194px, calc((1180px - 100vw) / 2 - 2px), -2px);
  }
  nav.main-nav:not(.nav-owner) ul {
    gap: 60px;
    transform: translateX(clamp(0px, calc((100vw - 1180px) / 2), 177px));
  }
}

/* M58 (Wyatt's ruling; the block ABOVE is his M37/M43-perfected header and
   is UNTOUCHED — it owns every viewport ≥1600px, where it renders his
   single-row look: a fixed 1503px-wide composition, wordmark→links 500px,
   60px gaps, insets (vw/2-760 | vw/2-743) growing evenly with the screen.
   Measured 1600-2560 before this round; that zone runs the original rules
   verbatim. WHAT M58 ADDS: below 1600px — where the original composition
   never fit and wrapped — the SAME 1503px plate renders scaled as one
   piece (words, gaps, margins together, a photographed-smaller version of
   his header) via transform: scale(100vw/1600). M60 LOCK (Wyatt via the
   M59 ?tune cutoff finder): the plate holds down to 900px — "pancake-
   below=900px" — so iPads in landscape and small windows keep his full
   composition; below 900 the approved phone menu takes over.
   Public pages only; the owner header keeps its own M36 rules. */
@media (min-width: 900px) and (max-width: 1599.98px) {
  body:not(.owner-page) .site-header { overflow: hidden; }
  body:not(.owner-page) .site-header .container {
    width: 1503px;
    max-width: none;
    padding: 0;
    margin: 0;
    position: relative;
    left: calc(50vw - 751.5px);
    transform: scale(calc(100vw / 1600px));
    transform-origin: 50% 50%;
  }
  body:not(.owner-page) .wordmark { margin-left: 0; }
  nav.main-nav:not(.nav-owner) ul {
    transform: none;
    flex-wrap: nowrap;
  }
}
/* M58/M60: below the 900px scaling floor (Wyatt's M59 tuner pick), public
   pages use the approved phone menu (same rules as the ≤760 block, which
   remains for the owner header's own threshold). The wordmark/ul overrides
   neutralize the ≥761 composition block's offsets, which would otherwise
   shift the wordmark and the open dropdown sideways in this zone. */
@media (max-width: 899.98px) {
  body:not(.owner-page) .wordmark { margin-left: 0; }
  body:not(.owner-page) nav.main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1.5rem;
  }
  body:not(.owner-page) nav.main-nav.open { display: flex; }
  body:not(.owner-page) nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    transform: none;
  }
  body:not(.owner-page) nav.main-nav li { border-bottom: 1px solid var(--border-soft); }
  body:not(.owner-page) nav.main-nav li:last-child { border-bottom: none; }
  body:not(.owner-page) nav.main-nav a {
    display: block;
    padding: 0.9rem 0.2rem;
    min-height: 44px;
  }
  body:not(.owner-page) .hamburger { display: inline-flex; }
}

/* M34/M35: owner-mode header — wordmark far left, the three app tabs
   CENTERED, "View website ↗" + Logout pinned far right. Scoped entirely
   to .nav-owner / body.owner-page (owner pages only) — the public header
   is untouched.
   M36 LOCK (Kayleigh's slider picks, 2026-08-02: "wm-off 80px,
   tabs-off -118px, right-off 80px"): baked as literals, tuner panel
   retired (owner-tune.js deleted; stale cherries_own_* localStorage
   values are inert — nothing reads them). Desktop only. */
@media (min-width: 761px) {
  body.owner-page .wordmark { margin-left: -80px; }
  nav.main-nav.nav-owner { flex: 1; }
  nav.nav-owner ul { justify-content: center; position: relative; width: 100%; }
  nav.nav-owner li.nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transform: translateX(-118px);
  }
  nav.nav-owner li.nav-right {
    position: absolute;
    right: -80px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.9rem;
  }
}
@media (max-width: 760px) {
  /* M36 phone owner header (fixed design, no sliders): small wordmark up
     top, the three tabs ALWAYS visible as their own row under the bar,
     and the hamburger opens a small dropdown holding just View website ↗
     + Logout. */
  body.owner-page .wordmark-logo { width: 30px; height: 30px; }
  body.owner-page .wordmark span { font-size: 1rem; }
  nav.main-nav.nav-owner {
    display: block;
    padding: 0;
  }
  nav.nav-owner ul {
    flex-direction: row;
    justify-content: center;
    gap: 0.25rem;
  }
  nav.nav-owner li { border-bottom: none; }
  nav.nav-owner li.nav-tabs { display: flex; gap: 0.25rem; }
  nav.nav-owner li.nav-tabs a {
    display: inline-block;
    padding: 0.55rem 0.55rem;
    min-height: 0;
    font-size: 0.88rem;
  }
  nav.nav-owner li.nav-right { display: none; }
  nav.main-nav.nav-owner.open li.nav-right {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0.75rem;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 0.4rem 1rem;
    z-index: 60;
  }
  nav.nav-owner li.nav-right a { padding: 0.7rem 0.2rem; display: block; }
  /* the always-visible tabs row overlays the page top — give it back */
  body.owner-page main { margin-top: 46px; }
}
nav.nav-owner a.nav-ghost { color: var(--ink); opacity: 0.6; }
nav.nav-owner a.nav-ghost:hover,
nav.nav-owner a.nav-ghost:focus-visible { opacity: 1; }

/* SCHEDULE PICKER */
.booking-widget { max-width: 40rem; margin: 0 auto; }

.slot-taken-banner { max-width: 32rem; margin-left: auto; margin-right: auto; }

.day-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
  margin: 1.5rem 0;
}
@media (max-width: 600px) {
  .day-strip { grid-template-columns: repeat(4, 1fr); }
}

.day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 56px;
  padding: 0.5rem 0.25rem;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.day-cell .day-dow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--leaf);
}
.day-cell .day-md {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.day-cell.is-open {
  border-color: var(--cherry);
}
.day-cell.is-open:hover {
  border-color: var(--cherry);
  transform: translateY(-1px);
}
.day-cell.is-open .day-md { color: var(--cherry-dark); }

.day-cell.is-selected {
  background: var(--cherry);
  border-color: var(--cherry);
}
.day-cell.is-selected .day-dow,
.day-cell.is-selected .day-md {
  color: var(--white);
}

.day-cell.is-closed,
.day-cell:disabled {
  background: var(--paper-tint);
  opacity: 0.55;
  cursor: not-allowed;
}
.day-cell:disabled:hover { transform: none; }

.slot-panel { margin: 1.5rem 0; }

.slot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.slot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6em 1.1em;
  background: var(--white);
  border: 1px solid var(--cherry);
  border-radius: 999px;
  color: var(--cherry);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.slot-pill:hover { background: var(--paper-tint); transform: translateY(-1px); }
.slot-pill.is-selected {
  background: var(--cherry);
  color: var(--white);
}

.booking-form-wrap { margin-top: 1.5rem; }
.selected-slot-line {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cherry-dark);
  margin-bottom: 1rem;
}

/* ---------- Consult type chips (radio mechanics) ---------- */
.consult-type-group {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}
.chip-radio {
  position: relative;
  display: inline-flex;
  cursor: pointer;  /* M53: reads as a button — always show the hand */
}
.chip-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6em 1.2em;
  background: var(--white);
  border: 1px solid var(--cherry);
  border-radius: 999px;
  color: var(--cherry);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}
.chip-input:checked + .chip-label {
  background: var(--cherry);
  color: var(--white);
}
.chip-input:focus-visible + .chip-label {
  outline: 2px solid var(--cherry-dark);
  outline-offset: 2px;
}

/* M64 — /bookings service picker: same chip look, but plain LINKS (no
   radio input/JS — GET ?service= navigates the page) instead of the
   :checked-driven mechanics above. Shares .consult-type-group's layout. */
.chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6em 1.2em;
  background: var(--white);
  border: 1px solid var(--cherry);
  border-radius: 999px;
  color: var(--cherry);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.chip-link.is-selected {
  background: var(--cherry);
  color: var(--white);
}
.chip-link:focus-visible {
  outline: 2px solid var(--cherry-dark);
  outline-offset: 2px;
}

/* ---------- 404 ---------- */
.error-page {
  text-align: center;
  padding: 5rem 0;
}
.error-page .pit {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.text-leaf { color: var(--leaf); }
.small-note { font-size: 0.9rem; color: var(--ink); opacity: 0.75; }

/* ---------- ROUND M6: paper wash + local tuner ---------- */
/* Uniform full-page cream layer between the paper photo and the ruling
   (z -2 sits under ruling.js's z -1) — the ONE-layer wash the M4 comment
   reserved, now on a knob. opacity 0 in production: zero visitor impact. */
/* M61: the desktop paper sheet as a screen-pinned layer (see the M19/M61
   note at the top of the file). display: block only ≥761px. Sits UNDER
   #paper-wash. 100%/100% across the 77px-to-bottom band = the M19 math. */
#paper-sheet {
  display: none;
  position: fixed;
  top: 77px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -3;
  background: url('theme/bg-10-sketchfix.jpg') center center / 100% 100% no-repeat;
  pointer-events: none;
}
@media (min-width: 761px) {
  #paper-sheet { display: block; }
}
/* M62 LOCK (Wyatt: "Remove flowers when pancake forms"): below the
   header's 900px floor the sheet is the plain flowerless tile (extracted
   from the sheet's own interior in M60) — same layer, same geometry,
   artwork only where the full/plate header lives (≥900px). The ≤760
   phone zone gets the same treatment via the body shorthand's tile. */
@media (min-width: 761px) and (max-width: 899.98px) {
  #paper-sheet { background-image: url('theme/bg-plain-paper.jpg'); }
}
#paper-wash {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--cream);
  opacity: var(--wash-alpha, 0);
  pointer-events: none;
}
/* Tuner panel: only exists in the DOM when tuner.js is activated via ?tune
   (persisted in localStorage while Wyatt browses; visitors never see it). */
#tuner-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  width: 240px;
}
#tuner-panel .tuner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 32px;
}
#tuner-panel .tuner-title {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--leaf);
}
#tuner-panel button.tuner-close {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
#tuner-panel input[type="range"] { width: 100%; accent-color: var(--cherry); }
#tuner-panel input[type="checkbox"] { accent-color: var(--cherry); width: 1.1rem; height: 1.1rem; }
/* M14: "Photo spacing" section (Above/Below sliders + preset chips) —
   chips reuse the panel's pill/border language. */
#tuner-panel .tuner-chips { gap: 0.4rem; }
#tuner-panel .tuner-chip {
  flex: 1;
  background: var(--paper-tint);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.4rem;
  cursor: pointer;
}
#tuner-panel .tuner-chip:hover { background: var(--white); }

/* ---------- M11: photo slots (real photos, Builder C) ----------
   .photo-slot replaces a .ph--wide placeholder when a page has real
   photos. Shares .ph's radius / border / soft shadow. --wide is
   full-width with the image's natural aspect; --tall is centered at
   max-width 400px (mirrors the about portrait look). photos.js swaps
   --wide/--tall per photo as the arrows cycle. */
.photo-slot {
  position: relative;
  margin: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--paper-tint);
}
.photo-slot img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-slot--tall {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
/* M12 (Kayleigh): center the photo between the words above and below.
   Measured on /yoga at 1280: 112px above the figure (hero pad 48 +
   section-tight pad 32 + sub-line tail) vs 0px below it. The scoped
   rule pulls the figure up 2rem (cancels the section-tight top pad)
   and adds 5rem below -> exactly 80px of air on BOTH sides on all
   three photo pages. Scoped to first-in-prose so any future mid-page
   slot keeps normal flow margins.
   M14 (Kayleigh): "Photo spacing" tuner (?tune, tuner.js) drives this
   via --photo-gap-above/--photo-gap-below so Kayleigh can pull the
   photo closer to the words above (page below follows automatically).
   margin-top subtracts the fixed 112px structural gap from the desired
   total, so it nets out to exactly --photo-gap-above of visible air;
   the structural gap below is 0px, so margin-bottom IS the visible air
   directly. Defaults (80px/80px) resolve to margin-top: -32px (-2rem)
   and margin-bottom: 80px (5rem) -- byte-identical to the pre-M14 rule
   above, i.e. today's shipped 80px/80px on all three photo pages
   (verified on 8819). */
.prose > .photo-slot:first-child {
  /* M15 LOCK (Kayleigh: "24px for both above and below... lock every
     page at 24/24"): tuner values BAKED as literals (24-112 = -88;
     below = 24). The M14 sliders are retired from tuner.js; any
     leftover browser localStorage values are inert. */
  margin-top: -88px;
  margin-bottom: 24px;
}
/* M14 (Kayleigh): about's portrait wrapper (templates/about.html) used to
   be an inline style="margin: 0 auto 2rem; max-width: 340px;" — now a
   class so the same tuner-driven --photo-gap-above/-below vars can reach
   it (it sits outside .prose, so M12/M14's `.prose > .photo-slot` rule
   above doesn't reach it — see the about.html comment).
   Baseline math (about's hero has no .sub line, unlike yoga/mindfulness/
   coaching, so its structural gap differs from M12's 112px):
     hero padding-bottom .............. 3rem  = 48.00px
   + section-tight padding-top ........ 2rem  = 32.00px
   + h1 margin-bottom (0.6em) ......... h1 is clamp(2.1rem,4.5vw,3.1rem);
     at >=~1102px viewport width (incl. the 1280 reference width M12 used)
     it's pinned at its 3.1rem ceiling, so 0.6em = 0.6 * 3.1rem = 1.86rem
                                          = 29.76px
   -----------------------------------------------------------------
     structural gap above the wrapper ............ 109.76px
   margin-top pulls that down to the shared --photo-gap-above default of
   80px: 80 - 109.76 = -29.76px (-1.86rem). Confirmed by rendering on
   8819 at 1280px: computed gap gap = 80px. Below ~1102px viewport width
   the h1 shrinks (fluid vw clamp) so the exact px gap narrows slightly;
   this mirrors the same reference-width assumption M12's fixed 112px
   already makes.
   Bottom margin: about's own default stays 32px (today's 2rem, unchanged
   at rest) — deliberately NOT the 80px the other three pages use — so
   the tuner's "Below" slider only pushes it once Kayleigh actually moves
   it (var() fallback only applies while --photo-gap-below is unset). */
.about-portrait-wrap {
  /* M15 LOCK (Kayleigh): about locked to the same 24/24 as every photo
     page (24 - 109.76 = -85.76). She reported the M14 sliders didn't
     visibly move this page — moot now that the values are baked, but
     the bake itself is measurement-verified on /about. */
  margin: 0 auto 24px;
  max-width: 340px;
  margin-top: -85.76px;
}
.photo-slot__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.photo-slot__arrow--prev { left: 0.75rem; }
.photo-slot__arrow--next { right: 0.75rem; }
.photo-slot__arrow::before {
  /* cherry chevron glyph, drawn (no text content) */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--cherry);
  border-right: 2px solid var(--cherry);
}
.photo-slot__arrow--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.photo-slot__arrow--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.photo-slot__arrow:hover { background: var(--white); }
.photo-slot__counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--leaf);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
@media (max-width: 760px) {
  .photo-slot__arrow {
    width: 44px;
    height: 44px;
  }
}
