/* The three reflective parenting guides, in the same reading room as every other guide
   (guide.css + guide-reader.js):
     /resources/parenting-the-child-in-front-of-you   (body.p-parent)
     /resources/when-your-nervous-system-is-full      (body.p-nervous)
     /resources/grieving-the-life-you-imagined        (body.p-grief)
   All three share body.pg. These guides are read by tired, tender people, so the paper here is
   quiet: soft letters instead of pinned notices, no swinging, very little tilt.
   - "Keep this close" is a letter left on the table, always showing above the chapters;
   - the bottom line is a folded note with a sage ribbon, always showing after them;
   - mist chapters are a taped note; navy chapters are a calm dusk card with numbered questions;
   - the short sentences to say out loud are paper slips with a soft quote mark;
   - card grids are index cards with a coloured top edge.
   Each page adds its own small piece in its own file. No drawn pictures. */

/* the illustrated two-column hero wrapper no longer holds a picture: let the words run full width */
.pg .parenting-hero-grid { display: block; margin-bottom: 0; }
.pg .guide-hero .pack-hero-copy > p:not(.lede):not(.crumbs) { margin-top: 12px; }

/* ---------- Keep this close: a letter on the table ---------- */
.pg .guide-sections > .pg-keep {
  position: relative; margin: 6px 0 22px; padding: 34px clamp(22px, 4vw, 40px) 28px;
  border: 0; border-radius: 4px; background: #fffdf6;
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(143, 165, 198, .22) 33px 34px);
  background-position: 0 70px;
  box-shadow: 0 1px 1px rgba(60, 40, 10, .06), 0 24px 36px -24px rgba(60, 40, 10, .5);
}
.pg .guide-sections > .pg-keep::before { /* a soft corner of tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 120px; height: 24px; margin-left: -60px;
  background: linear-gradient(180deg, rgba(240, 226, 184, .92), rgba(228, 210, 160, .88)); box-shadow: 0 1px 2px rgba(60, 40, 10, .12);
}
.pg .guide-sections > .pg-keep > h2,
.pg .guide-sections > .pg-bottom > h2 {
  margin: 0 0 12px; padding: 0; font: 400 clamp(30px, 3vw, 36px)/1.05 var(--f-hand); color: var(--gold-dark); letter-spacing: 0;
}
.pg .guide-sections > :is(.pg-keep, .pg-bottom) > h2::before { display: none; }
.pg .guide-sections > .pg-keep p { margin: 0; font-size: clamp(18px, 1.8vw, 20px); line-height: 1.7; color: var(--navy); }
.pg .guide-sections > .pg-keep p strong { font-weight: 600; }

/* ---------- Bottom line: a folded note with a ribbon ---------- */
.pg .guide-sections > .pg-bottom {
  position: relative; margin: 30px 0 6px; padding: 36px clamp(22px, 4vw, 40px) 30px;
  border: 0; border-radius: 6px; background: linear-gradient(180deg, #f6f8f1 0%, #eef2e6 100%);
  box-shadow: 0 1px 1px rgba(60, 40, 10, .06), 0 24px 36px -24px rgba(60, 40, 10, .5);
}
.pg .guide-sections > .pg-bottom::before { /* ribbon */
  content: ""; position: absolute; top: -4px; right: clamp(22px, 6vw, 60px); width: 22px; height: 54px; background: var(--sage);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.pg .guide-sections > .pg-bottom::after { /* the fold */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(93, 110, 70, .22) 20% 80%, transparent);
}
.pg .guide-sections > .pg-bottom > h2 { color: var(--sage-ink); padding-right: 40px; }
.pg .guide-sections > .pg-bottom p { position: relative; z-index: 1; margin: 0; font-size: clamp(17.5px, 1.7vw, 19px); line-height: 1.72; color: var(--navy); }
.pg .guide-sections > .pg-bottom p strong { font-weight: 600; }

/* ---------- chapter panels ---------- */
/* mist: a taped note */
.pg .pg-panel.content-card--mist {
  position: relative; margin: 14px 2px 6px; padding: 30px clamp(18px, 3vw, 30px) 22px; border: 0; border-radius: 6px;
  background: linear-gradient(180deg, #f5f7fb, #eef2f8); box-shadow: 0 1px 1px rgba(60, 40, 10, .06), 0 20px 30px -22px rgba(60, 40, 10, .5);
}
.pg .pg-panel.content-card--mist::before,
.pg .pg-panel.content-card--mist::after {
  content: ""; position: absolute; top: -8px; width: 76px; height: 22px; background: linear-gradient(180deg, rgba(240, 226, 184, .92), rgba(228, 210, 160, .88));
  box-shadow: 0 1px 2px rgba(60, 40, 10, .12);
}
.pg .pg-panel.content-card--mist::before { left: -10px; rotate: -28deg; top: 0; }
.pg .pg-panel.content-card--mist::after { right: -10px; rotate: 28deg; top: 0; }
.pg .pg-panel.content-card--mist > p:first-child { margin-top: 0; }

/* navy: a calm dusk card with numbered questions */
.pg .pg-panel.observe-panel {
  position: relative; overflow: hidden; margin: 10px 0 4px; padding: clamp(22px, 4vw, 36px); border-radius: 26px; color: #efe9da;
  background:
    radial-gradient(1.5px 1.5px at 9% 8%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 38% 4%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 72% 9%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 94% 22%, rgba(255,255,255,.5), transparent),
    radial-gradient(620px 300px at 88% 0%, rgba(247, 206, 120, .14), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-lift);
}
.pg .pg-panel.observe-panel > p { color: #efe9da; font-size: 17px; }
.pg .pg-panel.observe-panel a:not(.btn) { color: #f6dc9a; }
.pg .pg-panel.observe-panel .observe-list { gap: 10px; margin: 6px 0 18px; }
.pg .pg-panel.observe-panel .observe-list:last-child { margin-bottom: 0; }
.pg .pg-panel.observe-panel .observe-list > li {
  padding: 14px 14px 14px 56px; border-radius: 14px; background: rgba(255, 252, 245, .07); box-shadow: inset 0 0 0 1px rgba(239, 233, 218, .14);
  color: #efe9da; font-size: 16.5px; line-height: 1.6;
}
.pg .pg-panel.observe-panel .observe-list > li::before {
  left: 12px; top: 13px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #f3d78e; color: var(--navy); font: 600 15px/1 var(--f-display);
}
.pg .pg-panel.observe-panel .observe-list strong { color: #fff; }

/* ---------- slips: the sentences to say, and the short truths set apart ---------- */
.pg .guide-sections .accordion-body .content-card:not(.pg-panel) {
  position: relative; margin: 20px 0; padding: 18px 22px 18px 58px; border: 0; border-radius: 4px 16px 16px 4px;
  background: #fffaf0; box-shadow: inset 4px 0 0 var(--gold), 0 14px 22px -18px rgba(60, 40, 10, .55);
}
.pg .guide-sections .accordion-body .content-card:not(.pg-panel)::before {
  content: "\201C" / ""; position: absolute; left: 16px; top: 4px; font: 400 54px/1 var(--f-display); color: rgba(215, 164, 62, .55);
}
.pg .guide-sections .accordion-body .content-card:not(.pg-panel) p { font-size: 17.5px; line-height: 1.62; color: var(--navy); margin: 0; }
.pg .guide-sections .accordion-body .content-card:not(.pg-panel) p strong { font-weight: 600; }
.pg .guide-sections .accordion-body .pg-panel .content-card:not(.pg-panel) { background: rgba(255, 255, 255, .7); }

/* grids of index cards and tiles */
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) { gap: 18px; margin: 16px 0 20px; }
.pg .guide-sections .accordion-body .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) > :is(article, .content-card, .icon-tile) {
  --c: var(--gold);
  position: relative; margin: 0; padding: 24px 20px 18px; border: 1px solid #ecdfc2; border-radius: 4px 4px 16px 4px; background: #fff;
  box-shadow: 0 1px 0 #efe4cb, 0 16px 26px -20px rgba(60, 40, 10, .5);
}
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) > :is(article, .content-card, .icon-tile)::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px; border-radius: 4px 4px 0 0; background: var(--c);
}
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) > :nth-child(4n+2) { --c: var(--blue); }
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) > :nth-child(4n+3) { --c: var(--sage); }
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) > :nth-child(4n+4) { --c: var(--brick); }
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) h3 { margin: 0 0 8px; padding: 0; font-size: 18.5px; line-height: 1.32; color: var(--navy); }
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) h3::after { display: none; }
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) p { font-size: 15.8px; line-height: 1.62; color: var(--text); }
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) p:last-child { margin-bottom: 0; }
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) ul:not([class]) > li { font-size: 15.8px; }

/* a small handwritten line that introduces a chapter's content */
.pg .pg-kicker { margin: 0 0 6px; font: 400 clamp(23px, 2.3vw, 26px)/1.15 var(--f-hand) !important; color: var(--gold-dark) !important; }

/* the urgent-help card after the related guides stays plain and clear */
.pg .guide-content > .parenting-section, .pg .gr-main > .parenting-section { margin-block: 24px; }

@media (max-width: 720px) {
  .pg .guide-sections .accordion-body :is(.grid-2, .grid-3) { grid-template-columns: 1fr; }
  .pg .guide-sections .accordion-body .content-card:not(.pg-panel) { padding: 16px 16px 16px 46px; }
  .pg .guide-sections .accordion-body .content-card:not(.pg-panel)::before { left: 10px; font-size: 44px; }
}
@media print {
  .pg .guide-sections > :is(.pg-keep, .pg-bottom), .pg .pg-panel, .pg .guide-sections .accordion-body .content-card { box-shadow: none; border: 1px solid #ccc; background: #fff; }
  .pg .pg-panel.observe-panel, .pg .pg-panel.observe-panel :is(p, li, strong) { color: #000; }
}

/* related guides read like the other guides' bookshelf: no underline, the usual small line */
.pg.pg .related-card strong { text-decoration: none; }
.pg.pg .related-card span { font-size: 14.5px; line-height: 1.5; }
.pg .guide-sections > .pg-keep p { line-height: 34px; }
.pg .guide-sections .accordion-body :is(.grid-2, .grid-3) p + p { margin-top: 10px; }
