/* A care-journey page (Maren, 2026-11-17; first: /pregnancy-postpartum):
   the photo head, the stepper's drawings, headings, equal-height text
   panels and motion, the sections after it and the closing row. Linked by _journey.php
   from inside the page, after inner.css or lotus.css, both themes; Lotus
   differences under .lotus. Siblings: page-photos.js (View more, motion,
   picks), first-visit.css (the stepper itself, the home page's, reused as is
   and only adjusted here under .pp-fv).

   The head runs the full width of the screen (Eric, 2026-11-17: "fullwidth
   paralax hero"), starts on a random photo and blurs one only when it is too
   small for the screen ("random hero ... only blur image if its too small"),
   and its photos are the page's only ones ("no other images on the pregnancy
   page besides hero"). */

/* ---------- the head: trail, title and buttons in white on the photos ---------- */
.pp-hero{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:clamp(420px,58svh,520px);background:#2A2E25;color:#fff;overflow:hidden;overflow:clip;
  --btn-bg:rgba(255,255,255,.94);--btn-bg-hi:#fff;--btn-fg:var(--btn-ink,#1E2119);
  --btn-gh-bg:rgba(30,33,25,.32);--btn-gh-bg-hi:rgba(30,33,25,.5);--btn-gh-line:rgba(255,255,255,.75);--btn-gh-line-hi:#fff;--btn-gh-fg:#fff}
.pp-hero-media{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;overflow:hidden}
/* the photos' frame is the head itself; the scroll moves it down at half the
   page's speed (page-photos.js), so its top edge only ever leaves the head
   above the screen and nothing is resized (no layout shift) */
.pp-hero-pan{position:absolute;top:0;right:0;bottom:0;left:0}
/* the slides lie on one another; the one showing (.is-on, first chosen by the
   server) fades in over the last */
.pp-hero-slide{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;opacity:0;transition:opacity 1.2s var(--ease,ease)}
.pp-hero-slide.is-on{opacity:1}
.pp-hero.is-pan .pp-hero-pan{will-change:transform}
.pp-hero.is-pan .pp-hero-copy{will-change:transform,opacity}
/* sharp, unless a photo is too small for this screen (Eric: "only blur
   image if its too small"): then the script in the head (_journey.php) marks
   its slide .is-soft and it gets a deliberate soft blur, so it reads as light
   and colour behind the words, never as a photo soft by accident. The slight
   scale keeps the blur's pale edge outside the frame. The words are never
   blurred. */
.pp-hero-img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 45%}
.pp-hero-slide.is-soft .pp-hero-img{-webkit-filter:blur(7px);filter:blur(7px);transform:scale(1.08)}
/* the shade: an even veil, darker at the foot where the words sit, and a soft
   pool of shadow behind the words themselves, as on the service pages */
.pp-hero-media::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(20,22,17,.30) 0%,rgba(20,22,17,.22) 40%,rgba(20,22,17,.58) 100%)}
.pp-hero-words{position:relative}
.pp-hero-words::before{content:"";position:absolute;z-index:-1;top:-76px;right:-60px;bottom:-32px;left:-60px;border-radius:56px;pointer-events:none;
  background:rgba(20,22,17,.5);filter:blur(36px);-webkit-filter:blur(36px)}
.pp-hero-copy{position:relative;width:100%;padding-top:96px;padding-bottom:32px}
@media (min-width:600px){.pp-hero-words{width:-webkit-fit-content;width:fit-content;max-width:100%}}
.pp-hero-crumbs{padding-top:0;text-shadow:0 1px 3px rgba(12,14,10,.45),0 0 18px rgba(12,14,10,.4)}
.pp-hero-crumbs ol,.pp-hero-crumbs a,.pp-hero-crumbs [aria-current],.pp-hero-crumbs a:hover,.pp-hero-crumbs a:focus-visible{color:#fff}
.pp-hero-crumbs li+li::before{border-color:rgba(255,255,255,.8)}
/* 12em, not 14em: "Pregnancy and Postpartum Care" is 1081px in Newsreader
   and 1035px in Georgia, its fallback, so at 14em (1075px) it took two lines
   once the font arrived and one before, and the head grew by a line (layout
   shift 0.04 to 0.07 on a desktop). At 12em it is two lines in both. Lotus
   draws it larger, so 12em there is the same 1075px as before. */
.pp-hero h1{color:#fff;font-size:2.6rem;font-size:clamp(2.6rem,11vw,4.8rem);line-height:1.02;letter-spacing:-.02em;max-width:12em;margin:4px 0 0;overflow-wrap:break-word;text-wrap:balance;
  text-shadow:0 2px 6px rgba(12,14,10,.22),0 4px 40px rgba(12,14,10,.38)}
.lotus .pp-hero h1{font-family:var(--display);font-weight:800;font-size:2.8rem;font-size:clamp(2.8rem,10.5vw,5.6rem);line-height:.98;letter-spacing:-.04em}
.pp-hero .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.pp-hero .btn-ghost-light{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.pp-hero :focus-visible{outline-color:#fff}
#main:has(.pp-hero)>.crumbs{display:none}   /* the trail is on the photo */
@media (max-width:599px){
  .pp-hero .actions{display:grid;grid-template-columns:1fr}
  .pp-hero .actions .btn{width:100%}
}
@media (min-width:921px){
  .pp-hero{min-height:clamp(460px,64svh,620px)}
  .pp-hero-copy{padding-top:120px;padding-bottom:56px}
}
/* the opening words start a step below the photo */
.pp-hero+.pg-grid{padding-top:clamp(48px,6vw,96px)}

/* ---------- the stepper: the home page's, with a drawing per step ----------
   first-visit.css is linked just before this file, so a rule here with the
   same weight as one there wins. The layout is the home card's (Eric: "same
   style as homepage"): on a desktop the heading, the numbered line names and
   Pause on the left, one step at a time on the right; on a phone the five
   thin lines and the card under them. What differs: the steps' headings are
   h2s (the page's outline) and their words are whole sections, held in
   .pp-fv-words (each step's words edit in place as their own part of the
   body), so the home card's h3 and text rules are restated for them; the h3s
   inside a step are its subheads. */
.pp-fv{margin-top:clamp(48px,6vw,88px)}
.pp-fv-title{font-family:var(--display);font-size:1.9rem;font-size:clamp(1.9rem,6.4vw,3rem);line-height:1.1;color:var(--ink);max-width:12em;margin:0}
.lotus .pp-fv-title{font-weight:800;letter-spacing:-.03em}
.pp-fv .fv-step h2{font-size:1.35rem;line-height:1.2;margin:0}
.pp-fv-words>*{margin:0}
.pp-fv-words>*+*{margin-top:10px}
.pp-fv-words>p,.pp-fv-words li{font-size:.96rem;line-height:1.6;color:var(--ink-2);max-width:40em}
.pp-fv-words>:first-child{margin-top:10px}
.pp-fv-words>h3,.pp-fv-words>h4{font-family:var(--body);font-weight:600;font-size:1rem;line-height:1.3;letter-spacing:0;margin-top:22px;color:var(--olive)}
.pp-fv-words>h3:first-child{margin-top:16px}
.pp-fv-words>ul,.pp-fv-words>ol{padding-left:1.2em}
.pp-fv-words a{color:var(--olive);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:rgba(56,61,49,.65)}
.pp-fv-words a:hover,.pp-fv-words a:focus-visible{text-decoration-color:currentColor}
/* the drawing plate: the line drawing (first-visit.css strokes and animates
   it, as on home) over its labels. The labels are three columns, one under
   each mark of the drawing, at the drawing's own width so they stay under
   their marks; a long one wraps to two lines and is then cut with an ellipsis
   (the full words show while it is being edited; three lines, so a phone's
   narrow column never cuts a short label), and every label keeps
   room for two lines, so the plate is the same height on every step and the
   words under it never move when the step changes.
   The card and its plate are one white (Eric, 2026-11-17: "make sure scrub
   has white bg"): no tinted box inside the card, the beige stays the section's. */
.pp-fv .fv-step{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;background:#fff}
.pp-fv .fv-art.pp-dg{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:none;margin:0;padding:24px 18px 18px;background:#fff}
.pp-dg>svg,.pp-dg-marks{width:100%;max-width:360px}
.pp-dg-marks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 6px;margin:8px 0 0;padding:0;list-style:none;text-align:center}
.pp-dg-marks li{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:2.6em;margin:0;padding:12px 0 0;
  font:500 .8rem/1.3 var(--body);color:var(--ink-2);overflow-wrap:anywhere;
  background:radial-gradient(circle,var(--copper) 2.4px,transparent 3px) 50% 0/6px 6px no-repeat}
.pp-dg-marks.rre-editing li{display:block;overflow:visible}
.pp-fv .fv-text{padding:20px 20px 24px}
.pp-fv .fv-n{margin:0 0 4px}
.pp-dg .dot.acc{fill:var(--copper)}
/* the resting state (no script, ?nofx=1): one card per step, stacked, never
   four narrow columns for long words */
.pp-fv:not(.live) .fv-steps{grid-template-columns:minmax(0,1fr)}
@media (min-width:600px){
  .pp-fv:not(.live) .fv-steps{grid-template-columns:minmax(0,1fr)}
  .pp-fv:not(.live) .fv-text{padding:28px 32px 32px}
}
@media (min-width:1100px){.pp-fv:not(.live) .fv-steps{grid-template-columns:minmax(0,1fr)}}
@media (max-width:920px){
  /* the drawing over the words, both full width: the card's own column
     instead of home's small drawing beside the heading */
  .pp-fv.live .fv-head>.pp-fv-title{grid-column:1/-1;grid-row:2;margin-bottom:12px}
  .pp-fv.live .fv-step{display:flex;padding:0}
  .pp-fv.live .fv-text{display:block}
  .pp-fv.live .fv-n{margin:0 0 4px}
  /* only the step showing is laid out; its words sit in the panel of one
     height (below), so every step is the same height. The steps move only on
     a tap or a swipe (page-photos.js holds the clock), so there is nothing
     to pause */
  .pp-fv.live .fv-step:not(.on){display:none}
  .pp-fv.live .fv-btn{display:none}
  .pp-fv.live .fv-step h2{font-size:1.22rem}
  /* three lines of room under the dot (the 12px top padding sits inside the
     box), so the plate is one height on every step */
  .pp-fv.live .pp-dg-marks li{min-height:calc(3.9em + 12px)}
  /* the drawing fills the card edge to edge ("fill frame on mobile"): no side
     inset, the labels at the same width so each stays under its mark; the
     viewBox keeps the aspect ratio and the drawing's own centring */
  .pp-fv.live .fv-step{align-items:stretch}   /* first-visit.css centres a live step; centred, the plate shrinks to the drawing's 320px */
  .pp-fv .fv-art.pp-dg{align-self:stretch;padding:22px 0 18px}
  .pp-dg>svg,.pp-dg-marks{max-width:none;height:auto}
  .pp-dg-marks li{padding:12px 6px 0}
  .pp-fv.live .pp-fv-words>p,.pp-fv.live .pp-fv-words li{font-size:.93rem;line-height:1.55}
  .pp-fv.live .pp-fv-words>h3{font-size:.98rem;margin-top:20px}
}
@media (min-width:921px){
  /* home's two columns as they are; the card is the drawing over the words.
     Every step sits in one grid cell, so the card is as tall as the longest
     step and never jumps; the plate takes the height a shorter step leaves,
     its drawing in the middle, so no card ends in a gap */
  .pp-fv.live .fv-step{align-items:stretch;padding:0;gap:0}
  /* the plate keeps one height on every step (the card is as tall as the
     longest step); the slack goes under the words, never into the drawing */
  .pp-fv .fv-art.pp-dg{flex:0 0 auto;min-height:320px;padding:40px 40px 32px}
  .pp-fv.live .fv-text{flex:1 1 auto}
  .pp-dg>svg,.pp-dg-marks{max-width:480px}
  .pp-dg-marks{margin-top:12px;column-gap:16px}
  .pp-dg-marks li{font-size:.86rem}
  .pp-fv .fv-text{padding:32px 40px 40px}
  .pp-fv.live .fv-step h2{font-size:1.9rem}
  .pp-fv.live .pp-fv-words>h3{font-size:1.06rem;margin-top:26px}
  .pp-fv.live .pp-fv-words>p{font-size:1rem}
  .pp-fv:not(.live) .fv-step h2{font-size:1.6rem}
}

/* ---------- one height for every step's words, and View more ----------
   Eric: every step's text panel is the same height, on a desktop and on a
   phone, so nothing moves when the step changes. page-photos.js adds
   .pp-clamp once the stepper is live and nobody is editing, then marks a
   step whose words run past the panel (.is-cut: a fade at the foot and its
   View more button shown). View more opens that step's words in place
   (.is-open); only that card grows, and the steps hold still while it is
   open. Without the script, with less motion asked for (no .live) or while
   signed in, every step shows all its words. */
html:not(.is-edit) .pp-fv.live.pp-clamp .fv-text{display:flex;flex-direction:column;flex:0 0 auto;height:var(--pp-th);box-sizing:border-box;overflow:hidden}
html:not(.is-edit) .pp-fv.live.pp-clamp .fv-text>*{flex:0 0 auto}
html:not(.is-edit) .pp-fv.live.pp-clamp .fv-text>.pp-fv-words{flex:1 1 auto;min-height:0;overflow:hidden}
html:not(.is-edit) .pp-fv.live.pp-clamp .fv-text.is-cut>.pp-fv-words{-webkit-mask-image:linear-gradient(#000 calc(100% - 2.6em),transparent);mask-image:linear-gradient(#000 calc(100% - 2.6em),transparent)}
html:not(.is-edit) .pp-fv.live.pp-clamp .fv-text.is-open{height:auto;overflow:visible}
html:not(.is-edit) .pp-fv.live.pp-clamp .fv-text.is-open>.pp-fv-words{overflow:visible;-webkit-mask-image:none;mask-image:none}
/* the panel's height (Eric: "same height text back with view more"):
   page-photos.js sets --pp-th to the tallest step's panel with its words
   capped (240px on a desktop, 320px on a phone, View more's room
   included: a cut step shows about 200px of words), so the panel hugs
   the words and a step only ever loses its foot to View more. These are the
   values it lands on for today's words, so the first paint is already close
   (no layout shift when the script measures). While it measures, .pp-sizing
   lets every panel take its natural height for one synchronous read. */
.pp-fv{--pp-th:410px}
@media (min-width:921px){.pp-fv{--pp-th:374px}}
html:not(.is-edit) .pp-fv.live.pp-clamp.pp-sizing .fv-text,html:not(.is-edit) .pp-fv.live.pp-clamp.pp-sizing .fv-text>.pp-fv-words{height:auto;overflow:visible;-webkit-mask-image:none;mask-image:none}
html:not(.is-edit) .pp-fv.live.pp-clamp.pp-sizing .pp-more{display:inline-flex}
.pp-more{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;min-height:44px;margin:6px 0 -10px;padding:0 2px;border:0;background:none;cursor:pointer;
  font:600 .95rem/1.2 var(--body);color:var(--olive);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;text-decoration-color:rgba(56,61,49,.45)}
.pp-more[hidden]{display:none}
.pp-more:hover,.pp-more:focus-visible{text-decoration-color:currentColor}
.pp-more::after{content:"";width:7px;height:7px;margin-top:-4px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
.pp-more[aria-expanded="true"]::after{margin-top:3px;transform:rotate(-135deg)}

/* ---------- the sections after it ---------- */
.pp-sec{padding-top:clamp(40px,5vw,72px)}
.pp-sec>.prose{max-width:46rem}
/* Eric, 2026-11-17: the long sections read too narrow on a wide screen (about
   half the container). From 1100px they take two thirds of it, capped at
   82ch, the same measure inner.css gives every single-column prose block. */
@media (min-width:1100px){.pp-sec>.prose{max-width:66.667%}}
.pp-sec.pg-faq{margin-top:0}

/* ---------- the closing row: Book and Call after the questions ----------
   Eric, 2026-11-17: the last question sat right on the footer's rule. A
   quiet contained row, a hairline over it, the room around it the spacing
   (64px on a phone, up to 112px on a desktop); never a photo. */
.pp-end{padding-top:clamp(48px,6vw,80px);padding-bottom:clamp(64px,8vw,112px)}
.pp-end-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;padding-top:28px;border-top:1px solid var(--line)}
.pp-end-h{margin:0;font-family:var(--display);font-size:1.6rem;font-size:clamp(1.6rem,4.4vw,2.2rem);line-height:1.1;color:var(--ink)}
.lotus .pp-end-h{font-weight:800;letter-spacing:-.03em}
.pp-end .actions{display:flex;flex-wrap:wrap;gap:12px;margin:0}  /* the classic theme gives .actions a 32px top margin; the row sets its own gap */
@media (max-width:599px){
  .pp-end .actions{display:grid;grid-template-columns:1fr;width:100%}
  .pp-end .actions .btn{width:100%}
}
.pp-words-all{margin-top:24px;font-size:.9rem}
.pp-words-all a{display:inline-flex;align-items:center;min-height:44px;color:var(--olive)}

/* ---------- the stepper's motion (Eric: "better scrub animations with some
   cooler animations"; still the autoplay stepper, never pinned to the scroll).
   Transform and opacity only, so nothing reflows. On the step coming in: the
   drawing draws itself (first-visit.css), its labels ride up one by one, then
   the number, heading, words and View more rise in a short stagger. Once
   drawn, one quiet part keeps moving (mm_jy_art: .beat, .breathe, .warm,
   .ripple). On the rail the number of the step showing swells into its
   filled badge and the bar under it fills (first-visit.js, --p). The
   draw-ins always finish, even while the steps are held (hover, focus,
   Pause, the phone hold): first-visit.css would freeze them at their start,
   so a step chosen with the mouse over it would show no drawing; only the
   idle loops rest while held. Nothing here with less motion asked for, no
   motion layer (html.fx) or while signed in: the step simply swaps, its
   drawing whole. */
@media (prefers-reduced-motion:no-preference){
  html.fx:not(.is-edit) .pp-fv.live .fv-step.on .fv-text>*,
  html.fx:not(.is-edit) .pp-fv.live .fv-step.on .pp-dg-marks li{animation:ppRise .55s var(--ease,ease) both}
  html.fx:not(.is-edit) .pp-fv.live .fv-step.on .pp-dg-marks li:nth-child(1){animation-delay:.35s}
  html.fx:not(.is-edit) .pp-fv.live .fv-step.on .pp-dg-marks li:nth-child(2){animation-delay:.6s}
  html.fx:not(.is-edit) .pp-fv.live .fv-step.on .pp-dg-marks li:nth-child(3){animation-delay:.85s}
  html.fx:not(.is-edit) .pp-fv.live .fv-step.on .fv-text>.fv-n{animation-delay:.05s}
  html.fx:not(.is-edit) .pp-fv.live .fv-step.on .fv-text>h2{animation-delay:.12s}
  html.fx:not(.is-edit) .pp-fv.live .fv-step.on .fv-text>.pp-fv-words{animation-delay:.24s}
  html.fx:not(.is-edit) .pp-fv.live .fv-step.on .fv-text>.pp-more{animation-delay:.34s}
  /* SVG parts turn about their own middle */
  .pp-dg .beat,.pp-dg .breathe,.pp-dg .warm,.pp-dg .ripple{transform-box:fill-box;transform-origin:50% 50%}
  html.fx .pp-fv.live .fv-step.on .d.beat{animation:fvDraw .9s var(--ease) var(--d,0s) both,ppBeat 2.6s ease-in-out calc(var(--d,0s) + 1.1s) infinite}
  html.fx .pp-fv.live .fv-step.on .d.breathe{animation:fvDraw .9s var(--ease) var(--d,0s) both,ppBreathe 3.4s ease-in-out calc(var(--d,0s) + 1s) infinite}
  html.fx .pp-fv.live .fv-step.on .d.warm{animation:fvDraw .9s var(--ease) var(--d,0s) both,ppWarm 3s ease-in-out calc(var(--d,0s) + 1s) infinite}
  html.fx .pp-fv.live .fv-step.on .d.ripple{animation:fvDraw .9s var(--ease) var(--d,0s) both,ppRipple 3.2s ease-in-out calc(var(--d,0s) + 1s) infinite}
  html.fx .pp-fv.live.held .fv-step *{animation-play-state:running}
  html.fx .pp-fv.live.held .fv-step .d.beat,html.fx .pp-fv.live.held .fv-step .d.breathe,
  html.fx .pp-fv.live.held .fv-step .d.warm,html.fx .pp-fv.live.held .fv-step .d.ripple{animation-play-state:running,paused}
  /* the rail: the step showing swells its number */
  .pp-fv.live .fv-tn{transition:transform .45s var(--ease,ease),background-color .3s,border-color .3s,color .3s}
  .pp-fv.live .fv-tab[aria-current="step"] .fv-tn{transform:scale(1.14)}
}
@keyframes ppRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes ppBeat{0%,60%,100%{transform:none}15%{transform:scale(1.12)}30%{transform:scale(.97)}45%{transform:scale(1.06)}}
@keyframes ppBreathe{0%,100%{transform:none}50%{transform:translateY(-2px) scaleX(1.04)}}
@keyframes ppWarm{0%{transform:none;opacity:1}60%{transform:translateY(-5px);opacity:.35}100%{transform:none;opacity:1}}
@keyframes ppRipple{0%,100%{transform:none;opacity:1}50%{transform:scale(1.07);opacity:.55}}

/* motion is a transform set in page-photos.js; with less motion asked for,
   or no script, the head sits as composed */
@media (prefers-reduced-motion:reduce){
  .pp-hero-pan,.pp-hero-copy{will-change:auto;transform:none!important;opacity:1!important}
  .pp-hero-slide,.pp-hero-slide.is-on{transition:none}
}

/* ---------- the title photos row (signed-in editors only) ----------
   _journey.php mm_jy_pool: the title photos small, under the head, so the
   whole set can be arranged in one place (editor.js Arrange adds its bar
   above the row and its buttons on each photo). Fixed tile size: the row
   never moves the page under it when a photo is added or taken out. */
.pp-pool{padding-top:18px;padding-bottom:30px}
.pp-pool-h{margin:0 0 10px;font-size:.9rem;line-height:1.45;color:var(--ink-2)}
.pp-pool-h strong{color:var(--ink);margin-right:4px}
.pp-pool-row{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:0;list-style:none}
.pp-pool-i{position:relative;flex:0 0 auto;width:220px;aspect-ratio:3/2;border-radius:10px;overflow:hidden;background:var(--paper)}
.pp-pool-i picture,.pp-pool-i img{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:600px){.pp-pool-i{width:calc(50% - 6px)}}
