/* =========================================================
   PARENT RESOURCES — /parents/ and its guides. Builds on styles.css.
   ========================================================= */
.page-parents { --pr-pre: #E5533F; --pr-ele: #7F6BA0; --pr-stu: #2F6F8F; --pr-sex: #416B50; --pr-art: #B5893A; }

/* ---------- hub hero ---------- */
.prhero { padding: clamp(130px, 15vw, 180px) 0 clamp(36px, 5vw, 60px); }
.prhero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.prhero .lede { max-width: 46ch; }
.prhero__pics { position: relative; aspect-ratio: 1 / .92; }
.prhero__pics figure { position: absolute; margin: 0; overflow: hidden; border: 6px solid var(--white); box-shadow: 0 24px 48px rgba(37, 39, 35, .16); }
.prhero__pics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prhero__pics figure:nth-child(1) { width: 58%; aspect-ratio: 4 / 5; left: 0; top: 0; border-radius: 999px 999px 24px 24px; transform: rotate(-3deg); z-index: 2; }
.prhero__pics figure:nth-child(2) { width: 52%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 24px 110px 24px 110px; transform: rotate(4deg); }
.prjump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.prjump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--charcoal); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.prjump a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.prjump a:hover { border-color: var(--charcoal); }

/* ---------- hub sections ---------- */
.prsec { padding: clamp(36px, 5vw, 64px) 0; scroll-margin-top: 80px; }
.prsec + .prsec { border-top: 1px solid var(--line); }
.prsec__h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 30px; margin-bottom: clamp(20px, 3vw, 30px); }
.prsec__k { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.prsec__k::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: var(--c); }
.prsec h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.prsec h2 em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: var(--c); letter-spacing: 0; }
.prsec__d { max-width: 46ch; margin: 0; color: var(--ink-soft); }

.prgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.prcard { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); color: var(--charcoal); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.prcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(37, 39, 35, .1); border-color: transparent; }
.prcard__v { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--c) 14%, #fff); }
.prcard__v > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.prcard:hover .prcard__v > img { transform: scale(1.04); }
.prcard__b { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.prcard__tag { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.prcard__t { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; line-height: 1.1; letter-spacing: -.02em; }
.prcard__d { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.prcard__go { margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--charcoal); }

/* a book "cover" drawn in CSS, so we never borrow artwork */
.prbook { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 2 / 3; transform: translate(-50%, -46%) rotate(-3deg); border-radius: 4px 12px 12px 4px;
  background: var(--bk, var(--c)); color: #fff; padding: 12% 10%; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .14), 0 18px 30px rgba(37, 39, 35, .25); transition: transform .4s ease; }
.prcard:hover .prbook { transform: translate(-50%, -48%) rotate(-1deg); }
.prbook b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.05; }
.prbook small { font-family: var(--font-display); font-weight: 700; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

/* big feature card (Talking About Sex) */
.prfeat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: var(--pr-sex); color: var(--ivory); text-decoration: none; }
.prfeat__img { position: relative; min-height: 320px; }
.prfeat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prfeat__b { padding: clamp(26px, 4vw, 50px); }
.prfeat__b .prsec__k { color: #CFE0C4; } .prfeat__b .prsec__k::before { background: #CFE0C4; }
.prfeat h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; color: var(--ivory); }
.prfeat h3 em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: #CFE0C4; }
.prfeat p { color: rgba(244, 240, 231, .85); }
.prfeat ol { list-style: none; counter-reset: m; margin: 18px 0 22px; padding: 0; display: grid; gap: 8px; }
.prfeat li { counter-increment: m; display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.prfeat li::before { content: counter(m); flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.prfeat .btn { background: var(--ivory); color: var(--charcoal); }
.prfeat:hover .btn { background: #fff; }
.prbooks { margin-top: clamp(18px, 3vw, 26px); }

/* ---------- guide pages ---------- */
.prdoc__hero { padding: clamp(130px, 15vw, 180px) 0 clamp(26px, 4vw, 40px); }
.prdoc__hero .container, .prdoc__body { max-width: 860px; }
.prdoc__crumb { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 20px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--forest); text-decoration: none; }
.prdoc__hero h1 { margin-bottom: 18px; }
.prdoc__hero .display em { color: var(--c); }
.prdoc__hero .lede { max-width: 54ch; }
.prdoc__img { margin: clamp(20px, 3vw, 30px) 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 7; }
.prdoc__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prdoc__body { padding-bottom: clamp(60px, 8vw, 110px); font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.prdoc__body h2 { margin: clamp(40px, 5vw, 56px) 0 14px; color: var(--charcoal); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.1; }
.prdoc__body h2 .n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 12px; border-radius: 12px; background: var(--c); color: #fff; font-size: 1.1rem; vertical-align: 4px; }
.prdoc__body h3 { margin: 26px 0 8px; color: var(--charcoal); font-size: 1.2rem; font-weight: 800; }
.prdoc__body strong { color: var(--charcoal); }
.prdoc__body ul, .prdoc__body ol { padding-left: 22px; }
.prdoc__body li { margin-bottom: 8px; }
.prtoc { margin: 0 0 10px; padding: 18px 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.prtoc p { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prtoc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.prtoc a { color: var(--charcoal); text-decoration: none; font-weight: 600; }
.prtoc a:hover { color: var(--forest); }
.prsay { margin: 18px 0; padding: 18px 22px; border-radius: 18px; background: color-mix(in srgb, var(--c) 10%, #fff); border-left: 5px solid var(--c); }
.prsay > b { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.prsay p { margin: 0 0 8px; font-family: "Instrument Serif", Georgia, serif; font-size: 1.25rem; line-height: 1.4; color: var(--charcoal); }
.prsay p:last-child { margin-bottom: 0; }
.prtip { margin: 22px 0; padding: 20px 22px; border-radius: 18px; background: var(--charcoal); color: var(--ivory); }
.prtip b { color: #CFE0C4; }
.prtip p { margin: 0; }
.prchecks { list-style: none; padding: 0 !important; }
.prchecks li { position: relative; padding-left: 34px; }
.prchecks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.prchecks li::after { content: ""; position: absolute; left: 7px; top: 10px; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.prstages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.prstages > div { padding: 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--c); font-size: 15.5px; line-height: 1.55; }
.prstages h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--charcoal); }
.prstages ul { margin: 0; padding-left: 18px !important; }

/* printable family agreement */
.pragree { margin: 26px 0; padding: clamp(22px, 4vw, 36px); border-radius: 22px; background: var(--white); border: 2px dashed color-mix(in srgb, var(--c) 50%, transparent); }
.pragree h2 { margin-top: 0 !important; }
.pragree h3 { margin-top: 20px; }
.pragree ul { list-style: none; padding: 0 !important; }
.pragree li { position: relative; padding-left: 32px; }
.pragree li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border: 2px solid var(--c); border-radius: 4px; }
.pragree__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.pragree__sign span { display: block; padding-top: 30px; border-bottom: 1.5px solid var(--charcoal); }
.pragree__sign small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.prprint { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.prnext { margin-top: 40px; padding: clamp(22px, 3vw, 30px); border-radius: 22px; background: var(--forest); color: var(--ivory); }
.prnext h2 { margin: 0 0 8px !important; color: var(--ivory) !important; font-size: 1.5rem !important; }
.prnext p { color: rgba(244, 240, 231, .85); margin: 0 0 14px; }
.prnext .btn { background: var(--ivory); color: var(--charcoal); }

/* ---------- Kids page banner ---------- */
.kpar__card { background: #E5533F !important; }
.kpar__card .eyebrow { color: rgba(251, 249, 244, .85); }
.kpar__card .display em { color: #FCE7B8; }
.kpar__pic { width: clamp(130px, 16vw, 210px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 6px solid rgba(251, 249, 244, .9); box-shadow: 0 16px 34px rgba(0, 0, 0, .18); }

@media (max-width: 900px) {
  .prgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prfeat { grid-template-columns: 1fr; }
  .prfeat__img { min-height: 220px; }
}
@media (max-width: 680px) {
  .prhero__grid { grid-template-columns: 1fr; }
  .prhero__pics { max-width: 360px; width: 100%; margin: 0 auto; }
  .prgrid, .prstages { grid-template-columns: 1fr; }
  .prtoc ol { columns: 1; }
  .pragree__sign { grid-template-columns: 1fr; }
  .kpar__pic { order: -1; width: 120px; }
}
@media print {
  .nav, .menu, .footer, .skip-link, .prdoc__hero, .prnoprint, .prnext { display: none !important; }
  .prdoc__body { padding: 0; }
  .pragree { border: 1px solid #999; }
  body.printing-agreement .prdoc__body > *:not(.pragree) { display: none !important; }
}

/* sex-talk series body text inside playbook sections */
.sxbody p { line-height: 1.7; }
.sxbody h3 { margin: 28px 0 10px !important; }
.sxbody .pbquote { --c: inherit; }
.page-playbook .prdoc__crumb { margin-bottom: 14px; }
.pbsec .prgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) { .pbsec .prgrid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .prcard__v { aspect-ratio: 16 / 9; } .prbook { width: 30%; padding: 8% 6%; } .prbook b { font-size: 1rem; } }

/* illustration instead of photos on the sex-talk series (keeps kids' faces off this topic) */
.prfeat__img--art { background: #F4F0E7; }
.prfeat__img--art img { object-fit: cover; }
.pbhero__art { justify-self: center; width: min(460px, 100%); aspect-ratio: 1; border-radius: 40px; overflow: hidden; box-shadow: 0 24px 48px rgba(37, 39, 35, .14); transform: rotate(2deg); }
.pbhero__art img { width: 100%; height: 100%; display: block; }
.pbfinish .pbfinish__art { border-radius: 32px !important; border: 0 !important; aspect-ratio: 1 !important; }
@media (max-width: 760px) { .pbhero__art { width: min(320px, 100%); } }

/* real book covers */
.prcard__v--book { background: #EFEBE3; }
.prcard__v > .prcover { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; filter: drop-shadow(0 12px 18px rgba(37, 39, 35, .22)); transition: transform .4s ease !important; }
.prcard:hover .prcard__v > .prcover { transform: translateY(-3px) scale(1.02); }

/* outside articles */
.prsub { margin: clamp(28px, 4vw, 40px) 0 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.prexts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 18px); }
.prext { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--c); color: var(--charcoal); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.prext:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 39, 35, .08); }
.prext__k { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.prext__t { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; line-height: 1.15; }
.prext__d { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.prext__go { margin-top: auto; padding-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { .prexts { grid-template-columns: 1fr; } }

/* personal note from Patrick + Emily (hero, right side) */
.prhero__grid { align-items: start; }
.prnote { position: relative; margin-top: 30px; padding: 26px 26px 24px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 44px rgba(37, 39, 35, .08); font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.prnote p { margin: 0 0 11px; }
.prnote em { font-family: "Instrument Serif", Georgia, serif; font-size: 1.12em; color: var(--charcoal); }
.prnote__pic { float: right; width: 42%; margin: -56px -14px 10px 16px; padding: 8px 8px 26px; background: #fff; transform: rotate(3deg); box-shadow: 0 16px 30px rgba(37, 39, 35, .18); border-radius: 3px; }
.prnote__pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.prnote__hi { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 1.6rem; color: var(--charcoal); line-height: 1.2; }
.prnote__vision { clear: both; margin: 14px 0 !important; padding: 12px 16px; border-radius: 12px; background: #EEF4EF; border-left: 4px solid var(--forest); font-family: "Instrument Serif", Georgia, serif; font-size: 1.15rem; line-height: 1.4; color: var(--charcoal); }
.prnote__vision strong { font-weight: 400; color: var(--forest); font-style: italic; }
.prnote__sign { margin: 12px 0 0 !important; }
.prnote__sign span { display: block; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 1.7rem; color: var(--forest); line-height: 1.1; }
@media (max-width: 680px) { .prnote { margin-top: 40px; } .prnote__pic { width: 46%; margin-top: -48px; } }
