/* /prenatal-postpartum. Built on /support's sheet (support.css): its tokens,
   cards, buttons and help-now box. This file adds the page's own pieces: the
   hero with its four stage tiles, the stage blocks, the desktop rail, the
   checklist and the questions. Pastel (owner, 5 November 2026: "Make the
   page colored in pastels"): each stage wears a pale tint of one of the
   approved accents (berry, violet, teal, blue; brand-tokens.css), with its
   cards white and its buttons and icons in that accent. Inter, soft
   rectangles, no shadows, no gradients. Nothing here reaches the shared
   chrome. */

.pp-page { max-width: 760px; }

.pp-hero {
  margin: 0 -16px;
  padding: 20px 20px 24px;
  background: var(--sp-tint);
  border-bottom: 1px solid var(--sp-tint-line);
}
.pp-crumbs { font-size: 15px; color: var(--sp-muted); }
.pp-crumbs a { color: var(--sp-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pp-hero h1 { margin: 14px 0 10px; font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--sp-ink); letter-spacing: -0.01em; }
.pp-lede { margin: 0; font-size: 17px; line-height: 1.55; color: var(--sp-ink); }
.pp-stages-h { margin: 20px 0 10px; font-size: 16px; font-weight: 600; }
.pp-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-stage {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 96px; padding: 14px;
  background: #fff; border: 1px solid var(--sp-tint-line); border-radius: 14px;
  color: var(--sp-ink); text-decoration: none;
}
.pp-stage-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--sp-tint); color: var(--sp-accent);
}
.pp-stage-svg { width: 20px; height: 20px; }
.pp-stage-text { display: flex; flex-direction: column; gap: 2px; }
.pp-stage-text strong { font-size: 16px; line-height: 1.3; font-weight: 700; }
.pp-stage-text span { font-size: 15px; line-height: 1.35; color: var(--sp-muted); }
.pp-stage:focus-visible, .pp-rail a:focus-visible, .pp-faq summary:focus-visible, .pp-checklist a:focus-visible, .pp-more a:focus-visible {
  outline: 3px solid var(--sp-accent); outline-offset: 2px;
}

.pp-now { margin-top: 20px; }
.pp-now > p { font-size: 16px; }

.pp-layout { margin-top: 8px; }
.pp-rail { display: none; }

.pp-stage-block { margin-top: 40px; scroll-margin-top: 96px; }
.pp-eyebrow {
  margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #35576b;
}
.pp-stage-h { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--sp-ink); }
.pp-stage-intro { margin: 8px 0 0; font-size: 16px; color: var(--sp-muted); }
.pp-section { margin-top: 28px; }
.pp-section h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; }
.pp-section .sp-name { font-size: 18px; }

/* Checklist */
.pp-checklist, .pp-faq { margin-top: 48px; scroll-margin-top: 96px; }
.pp-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.pp-step {
  padding: 18px; background: #fff;
  border: 1px solid var(--sp-line); border-left: 4px solid var(--sp-accent); border-radius: 14px;
}
.pp-step-when { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.pp-step-items { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.5; }
.pp-faq a, .pp-more a {
  color: var(--sp-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.pp-step-items a {
  color: var(--sp-ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--sp-accent); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.pp-step-items li::marker { color: var(--sp-accent); }

/* Questions */
.pp-faq-item {
  margin-top: 12px; background: #fff;
  border: 1px solid var(--sp-line); border-radius: 14px;
}
.pp-faq-item:first-of-type { margin-top: 18px; }
.pp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 14px 18px;
  font-size: 17px; line-height: 1.4; font-weight: 600; cursor: pointer; list-style: none;
}
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--sp-accent); border-bottom: 2px solid var(--sp-accent);
  transform: rotate(45deg); margin-top: -4px;
}
.pp-faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.pp-faq-item p { margin: 0; padding: 0 18px 18px; font-size: 16px; line-height: 1.6; }

.pp-more { margin: 20px 0 0; font-size: 16px; line-height: 1.8; }
.pp-body .premier-band { margin-top: 32px; }

@media (min-width: 640px) {
  .pp-stages { grid-template-columns: repeat(4, 1fr); }
  .pp-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 792px) {
  .pp-hero { margin: 0; padding: 28px 36px 32px; border: 1px solid var(--sp-tint-line); border-top: 0; border-radius: 0 0 20px 20px; }
  .pp-hero h1 { font-size: 40px; }
  .pp-lede { font-size: 18px; max-width: 680px; }
}

/* Desktop: a wide page, the rail beside the content and following it down. */
@media (min-width: 1100px) {
  .pp-page { max-width: 1180px; padding: 0 24px 56px; }
  .pp-hero { padding: 36px 48px 40px; }
  .pp-hero h1 { font-size: 44px; max-width: 900px; }
    .pp-now { display: grid; grid-template-columns: 1fr 1.6fr; grid-template-rows: auto 1fr; gap: 0 28px; align-items: start; }
  .pp-now > p { margin-top: 8px; }
  .pp-now h2, .pp-now > p { grid-column: 1; }
  .pp-now .sp-crisis-calls { grid-column: 2; grid-row: 1 / span 2; margin: 0; grid-template-columns: 1fr 1fr; }
  .pp-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
  .pp-rail {
    display: block; position: sticky; top: 96px; margin-top: 40px;
    max-height: calc(100vh - 120px); overflow: auto;
    padding: 18px; background: #fff; border: 1px solid var(--sp-line); border-radius: 14px;
  }
  .pp-rail-h { margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #35576b; }
  .pp-rail-list, .pp-rail-list ul { list-style: none; margin: 0; padding: 0; }
  .pp-rail-list > li { margin-top: 10px; }
  .pp-rail-list ul { margin-top: 2px; padding-left: 10px; border-left: 1px solid var(--sp-line); }
  .pp-rail a { display: block; padding: 4px 6px; color: var(--sp-ink); font-size: 15px; line-height: 1.4; text-decoration: none; border-radius: 6px; }
  .pp-rail a.pp-rail-stage { font-weight: 700; }
  .pp-rail ul a { color: var(--sp-muted); }
  .pp-steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) and (hover: hover) {
  .pp-rail a:hover, .pp-stage:hover strong { text-decoration: underline; text-underline-offset: 2px; }
}

/* "Coming up": filled on the server by inject-prenatal-events.js and hidden
   until it has something in it. */
.pp-events[hidden], .pp-events-link[hidden], .pp-rail a[hidden] { display: none; }
.pp-events { margin-top: 40px; scroll-margin-top: 96px; }
.pp-events-link {
  display: flex; align-items: center; min-height: 48px; margin-top: 14px;
  color: var(--sp-accent); font-size: 16px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.pe-group { margin-top: 22px; }
.pe-group-h { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; }
.pe-rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pe-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
  padding: 12px 16px; background: #fff;
  border: 1px solid var(--sp-line); border-radius: 12px;
}
.pe-when { font-size: 15px; font-weight: 700; color: #35576b; font-variant-numeric: tabular-nums; }
.pe-body a, .pe-name { font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--sp-accent); text-decoration: underline; text-underline-offset: 2px; }
.pe-name { color: var(--sp-muted); text-decoration: none; }
.pe-meta { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--sp-muted); }
.pe-meta .row-town { font-weight: 700; color: var(--sp-ink); }
.pe-register { font-weight: 600; color: var(--sp-ink); }
.pe-more { margin-top: 10px; }
.pe-more summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--sp-accent); text-decoration: underline; text-underline-offset: 3px;
}
.pe-body a:focus-visible, .pe-more summary:focus-visible, .pp-events-link:focus-visible, .pp-events-foot a:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 2px; }
.pp-events-foot { margin: 18px 0 0; font-size: 15px; color: var(--sp-muted); }
.pp-events-foot a { color: var(--sp-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 640px) {
  .pe-row { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 18px; }
}
@media (min-width: 1100px) {
  .pe-rows { grid-template-columns: 1fr 1fr; }
  .pe-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* --- Pastels (owner, 5 November 2026) ------------------------------------ */
.pp-body {
  --sp-ground: #fbf9fb;
  background: var(--sp-ground);
}
.pp-tone-pregnant { --pp-tint: #f9edf3; --pp-line: #ecd2df; --pp-accent: #a64f79; --pp-text: #7f3a5c; }
.pp-tone-birth    { --pp-tint: #f2eef8; --pp-line: #ddd4ec; --pp-accent: #6f5a9c; --pp-text: #5b4885; }
.pp-tone-baby     { --pp-tint: #e8f3f6; --pp-line: #badae3; --pp-accent: #146a81; --pp-text: #115a6e; }
.pp-tone-help     { --pp-tint: #ebf1f9; --pp-line: #c9d8ec; --pp-accent: #3a6dab; --pp-text: #2f5a8e; }

/* Hero: lavender blush, the stage tiles each in their own tone. */
.pp-hero { background: #f6eff7; border-color: #e6d9ea; }
.pp-crumbs a { color: #6f5a9c; }
.pp-stage { background: var(--pp-tint); border-color: var(--pp-line); }
.pp-stage-icon { background: #fff; color: var(--pp-accent); }
.pp-events-link { color: #6f5a9c; }

/* Radiant Community Centre, built in (owner, 5 November 2026). Their own
   wordmark: RADIANT in heavy, widely spaced capitals over "Community
   Centre", in their orange, on their pale yellow. */
.pp-partner {
  margin-top: 20px; padding: 18px 20px;
  background: #fff8e2; border: 1px solid #f1dfa3; border-radius: 20px;
  text-align: center;
}
.pp-partner-label { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #5e4a12; }
.pp-partner-mark {
  display: inline-flex; flex-direction: column; align-items: center;
  min-height: 44px; padding: 6px 10px; border-radius: 10px;
  color: #c4730f; text-decoration: none;
}
.pp-partner-word { font-size: 34px; line-height: 1.05; font-weight: 900; letter-spacing: .2em; margin-right: -.2em; }
.pp-partner-sub { margin-top: 4px; font-size: 16px; font-weight: 600; letter-spacing: .12em; color: #9e5809; }
.pp-partner-line { margin: 10px auto 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: #3d3320; }
.pp-partner-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px;
  color: #8a4f06; font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.pp-partner a:focus-visible { outline: 3px solid #8a4f06; outline-offset: 2px; }

/* Help now: white, framed in berry; the calls stay a strong deep teal. */
.pp-now { border-color: #ecd2df; }
.pp-now .sp-crisis-btn { background: #146a81; }

/* Coming up: soft butter yellow, a nod to Radiant's own colour. */
.pp-events {
  margin-left: -8px; margin-right: -8px; padding: 22px 18px 24px;
  background: #fff8e2; border: 1px solid #f1dfa3; border-radius: 20px;
}
.pp-events .pp-eyebrow { color: #7a5a0c; }
.pe-row { border-color: #f1dfa3; }
.pe-when { color: #7a5a0c; }
.pe-body a, .pe-more summary, .pp-events-foot a { color: #115a6e; }

/* Each stage is a pastel panel holding white cards in its accent. */
.pp-stage-block {
  margin-left: -8px; margin-right: -8px; padding: 22px 18px 26px;
  background: var(--pp-tint); border: 1px solid var(--pp-line); border-radius: 20px;
  --sp-accent: var(--pp-accent); --sp-tint: #fff; --sp-line: var(--pp-line);
}
.pp-stage-block .pp-eyebrow { color: var(--pp-text); }
.pp-stage-block .sp-section-icon { background: #fff; color: var(--pp-accent); }
.pp-stage-block .sp-section-intro { color: #4b4f4d; }
.pp-stage-block .sp-btn--soft { color: var(--pp-text); border-color: var(--pp-accent); }
@media (hover: hover) {
  .pp-stage-block .sp-btn--call:hover { background: var(--pp-text); }
}

/* Checklist in mint, questions in lavender. */
.pp-checklist {
  margin-left: -8px; margin-right: -8px; padding: 22px 18px 24px;
  background: #edf6f1; border: 1px solid #cfe5d8; border-radius: 20px;
}
.pp-checklist .pp-eyebrow { color: #2f6648; }
.pp-step { border-color: #cfe5d8; border-left-color: #3f7a5a; }
.pp-step-items a { text-decoration-color: #3f7a5a; }
.pp-step-items li::marker { color: #3f7a5a; }
.pp-faq {
  margin-left: -8px; margin-right: -8px; padding: 22px 18px 24px;
  background: #f2eef8; border: 1px solid #ddd4ec; border-radius: 20px;
}
.pp-faq .pp-eyebrow { color: #5b4885; }
.pp-faq-item { border-color: #ddd4ec; }
.pp-faq summary::after { border-color: #6f5a9c; }

.pp-rail a.pp-rail-stage { color: var(--sp-ink); }
.pp-rail-h { color: #5b4885 !important; }
.pp-more a { color: #6f5a9c; }

@media (min-width: 792px) {
  .pp-partner { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; gap: 0 28px; align-items: center; text-align: left; padding: 22px 28px; }
  .pp-partner-label { grid-column: 1; grid-row: 1; text-align: center; }
  .pp-partner-mark { grid-column: 1; grid-row: 2 / span 2; }
  .pp-partner-line { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .pp-partner-link { grid-column: 2; grid-row: 3; }
  .pp-stage-block, .pp-events, .pp-checklist, .pp-faq { margin-left: 0; margin-right: 0; padding: 28px 28px 32px; }
}
