.family-garden { background: #fff9e9 url('assets/parents/garden-background.png') center / 100% 100% no-repeat; }
.family-benefits, .family-resources, .family-faq {
  color: #082e68;
  background-color: transparent;
  background-image: none;
  background-repeat: no-repeat;
  background-size: 100% auto;
  scroll-margin-top: 20px;
}
.family-benefits .container, .family-resources .container, .family-faq .container { max-width: 1480px; }
.family-benefits .heading h2, .family-resources .heading h2, .family-faq .heading h2 {
  font-size: clamp(30px, 3.4vw, 49px);
  letter-spacing: -1.3px;
  line-height: 1.12;
}
.family-benefits .heading p, .family-resources .heading p, .family-faq .heading p { font-size: clamp(15px, 1.35vw, 20px); margin-top: 7px; }
.family-benefits { min-height: 51.5vw; padding: clamp(35px, 4.5vw, 70px) 0 55px; background-position: center top; }
.family-benefits-content { width: 52%; margin-left: auto; }
.family-benefits .heading { margin-bottom: 23px; }
.family-benefits .heading h2 { font-size: clamp(29px, 3.15vw, 46px); }
.tales-benefits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tales-benefits-grid article { background: #fffcf5f5; border: 1px solid #fff9; border-radius: 27px; padding: 20px 15px 22px; text-align: center; box-shadow: 0 7px 15px #55472210; }
.tales-benefits-grid h3 { margin: 7px 0 4px; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.2; font-weight: 900; letter-spacing: -.5px; }
.tales-benefits-grid p { margin: 0 auto; max-width: 260px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.3; }
.reference-crop { position: relative; display: block; overflow: hidden; aspect-ratio: var(--crop-w) / var(--crop-h); }
.reference-crop img { position: absolute; width: calc(1024 / var(--crop-w) * 100%); max-width: none; height: auto; left: calc(var(--crop-x) / var(--crop-w) * -100%); top: calc(var(--crop-y) / var(--crop-h) * -100%); }
.benefit-illustration { width: min(80%, 185px); margin: 0 auto; filter: brightness(1.07); mix-blend-mode: multiply; }
.family-mobile-art { display: none; }
.family-resources { min-height: 53vw; padding: 35px 0 75px; background: #fff9e9; }
.family-resources .heading { margin-bottom: 30px; }
.family-resources .heading, .family-faq .heading { isolation: isolate; }
.family-faq .heading::before { content: ""; position: absolute; z-index: -1; inset: -18px 0; background: radial-gradient(ellipse, #fff9e9f5 25%, #fff9e9c9 50%, transparent 75%); pointer-events: none; }
.parent-resource-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.parent-resource-card { display: flex; flex-direction: column; min-width: 0; border: 6px solid #fffdf3; border-radius: 26px; background: #fffcf1; box-shadow: 0 7px 18px #55562c22; overflow: hidden; }
.resource-illustration { flex: none; width: 100%; border-radius: 17px; }
.parent-resource-copy { display: flex; flex: 1; flex-direction: column; align-items: center; padding: 12px 17px 9px; text-align: center; }
.resource-tag { display: inline-block; padding: 4px 14px; border-radius: 999px; color: #693013; background: #ffd29a; font-size: 13px; font-weight: 800; }
.prompts .resource-tag { background: #ffc4df; color: #682550; }
.printables .resource-tag { background: #c5e5ad; color: #225c3a; }
.parent-resource-copy h3 { margin: 10px 0 6px; font-size: clamp(21px, 2.25vw, 31px); font-weight: 900; line-height: 1.1; letter-spacing: -.7px; }
.parent-resource-copy p { margin: 0 0 18px; max-width: 295px; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.3; }
.resource-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: auto; padding: 11px 16px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(#ff668e, #f13f73); font-weight: 900; font-size: clamp(14px, 1.3vw, 18px); box-shadow: 0 4px 9px #dc47701a; transition: background .2s, transform .2s; }
.resource-button:hover { background: #dc285e; transform: translateY(-2px); }
.resource-button > span { font-size: 22px; line-height: 1; }
.family-faq { min-height: 48vw; padding: 40px 0 85px; background-position: center bottom; }
@media (min-width: 761px) {
  .family-faq {
    /* Show only the FAQ scene, below the baked-in resource-section edge. */
    background: #fff9e9 url('assets/parents/garden-background.png') center bottom / 100% 349.091% no-repeat;
    padding-top: 74px;
  }
  .family-faq::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 44px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 24C180 80 280 42 420 22S690 3 835 32s225 18 365-8V0H0Z' fill='%23fff9e9'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
}
.family-faq .heading { margin-bottom: 28px; }
.family-faq-list { display: grid; gap: 9px; width: 59%; margin-left: auto; }
.family-faq details { background: #fffffff5; border: 1.5px solid transparent; border-radius: 25px; padding: 10px 20px; box-shadow: 0 5px 14px #64764112; }
.family-faq details[open] { background: #fff4f8f5; border-color: #ff6795; padding-top: 13px; padding-bottom: 15px; }
.family-faq summary { align-items: center; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.25; }
.family-faq summary::after { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(#ff81a3, #ed3b72); color: #fff; font-size: 24px; font-weight: 800; }
.family-faq details p { margin: 7px 36px 0 0; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.4; }
.parent-resource-dialog { width: min(610px, calc(100% - 32px)); max-height: 85dvh; overflow: auto; padding: 35px; border: 2px solid #fff; border-radius: 26px; color: #082e68; background: #fffaf0; box-shadow: 0 20px 90px #072c6850; }
.parent-resource-dialog::backdrop { background: #09234499; backdrop-filter: blur(4px); }
.resource-close { float: right; display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 50%; color: #b32050; background: #ffe0ea; font-size: 27px; line-height: 1; }
.resource-dialog-kicker { display: block; padding-top: 6px; color: #b32050; font-weight: 800; font-size: 14px; }
.parent-resource-dialog h2 { margin: 14px 0; font-size: 30px; line-height: 1.1; font-weight: 900; }
.parent-resource-dialog p, .parent-resource-dialog li { line-height: 1.5; }
.parent-resource-dialog li + li { margin-top: 12px; }
.parent-resource-dialog ol { padding-left: 22px; }
.conversation-prompts { list-style: none; padding: 0; }
.conversation-prompts li { padding: 12px 16px; border-radius: 15px; background: #ffe6ee; font-weight: 700; }
.printable-activity { margin: 20px 0; padding: 18px; border: 1px solid #d3c9b9; background: #fff; }
.printable-activity h3 { margin: 20px 0 8px; font-size: 18px; }
.drawing-space { height: 180px; border: 1px dashed #687685; border-radius: 10px; }
.writing-space { height: 46px; border-bottom: 1px solid #687685; margin-bottom: 20px; }
.printable-activity small { display: block; margin-top: 20px; }
@media (min-width: 1700px) {
  .family-benefits, .family-resources, .family-faq { display: flex; align-items: center; }
  .family-benefits .container, .family-resources .container, .family-faq .container { width: 100%; }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .family-benefits-content { width: 54%; }
  .family-benefits { padding-top: 30px; }
  .tales-benefits-grid { gap: 12px; }
  .tales-benefits-grid article { padding: 14px 10px 16px; border-radius: 23px; }
  .benefit-illustration { width: 140px; max-width: 85%; }
  .parent-resource-cards { gap: 12px; }
  .parent-resource-copy { padding: 10px 10px 7px; }
  .family-faq-list { width: 60%; }
}
@media (max-width: 760px) {
  .family-garden { background: #fff9e9; }
  .family-benefits, .family-resources, .family-faq { min-height: 0; background-image: none; }
  .family-benefits { padding: 0 0 40px; }
  .family-mobile-art { display: block; background-image: url('assets/parents/garden-background.png'); background-repeat: no-repeat; }
  .benefits-art { height: clamp(300px, 96vw, 530px); background-size: 210% auto; background-position: left top; margin-bottom: 20px; mask-image: linear-gradient(#000 85%, transparent); }
  .family-benefits-content { width: 100%; }
  .family-benefits .heading h2 { font-size: 34px; }
  .tales-benefits-grid { gap: 12px; }
  .tales-benefits-grid article { padding: 16px 10px; background: #fffefa; border: 1px solid #f2e7d4; }
  .tales-benefits-grid h3 { font-size: 18px; }
  .benefit-illustration { width: min(100%, 155px); }
  .family-resources { padding: 35px 0 45px; }
  .parent-resource-cards { grid-template-columns: 1fr; max-width: 440px; margin: auto; gap: 23px; }
  .parent-resource-copy { padding: 12px 20px 14px; }
  .parent-resource-copy h3 { font-size: 27px; }
  .parent-resource-copy p { font-size: 17px; }
  .resource-button { font-size: 16px; }
  .family-faq { padding: 30px 0 50px; }
  .family-faq .heading { margin-bottom: 14px; }
  .faq-art { height: clamp(300px, 86vw, 460px); background-size: 230% auto; background-position: left bottom; margin: 0 -18px 18px; mask-image: linear-gradient(transparent, #000 8%, #000 85%, transparent); }
  .family-faq-list { width: 100%; }
  .family-faq details { border-radius: 20px; padding: 12px 15px; }
  .family-faq details p { margin-right: 0; }
  .parent-resource-dialog { padding: 25px; }
}
@media print {
  body.printing-activity > :not(main), body.printing-activity main > :not(#resource-printables) { display: none !important; }
  body.printing-activity { background: white; }
  body.printing-activity #resource-printables { position: static; display: block; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; box-shadow: none; overflow: visible; background: white; }
  body.printing-activity #resource-printables::backdrop { background: transparent; }
  body.printing-activity .resource-close, body.printing-activity #print-activity, body.printing-activity .resource-dialog-kicker { display: none; }
  body.printing-activity .drawing-space { height: 250px; }
}
