/* One grid for navigation; equal image, title and description rows. */
.site-header.compact-header--home .compact-home-actions{grid-template-columns:minmax(0,1fr) 504px;align-items:stretch;gap:32px}
.site-header.compact-header--home .site-brand-nav{display:flex;align-items:stretch}
.site-header.compact-header--home nav.primary-entries{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;height:100%;gap:10px}
.site-header.compact-header--home nav.primary-entries a{min-height:80px;padding:14px 10px;justify-content:center}
.site-header.compact-header--home .entry-label{font-size:16px;line-height:24px}
.site-header.compact-header--home .entry-description{font-size:11px;line-height:18px}
.site-header .social-links,.site-footer .social-links{display:grid;grid-template-columns:repeat(3,160px);gap:12px;width:504px;max-width:100%;align-items:stretch;margin:0}
.site-header .social-qr,.site-footer .social-qr{display:grid;grid-template-rows:160px auto;justify-items:center;width:160px;box-sizing:border-box;padding:4px;gap:12px;align-content:start}
.site-header .social-qr img,.site-footer .social-qr img{width:128px;height:128px;object-fit:contain;max-width:none;margin:0}
.site-header .social-label,.site-footer .social-label{display:grid;grid-template-rows:36px 16px;gap:4px;width:160px;max-width:none;font-size:11px;line-height:18px}
.site-header .social-title,.site-footer .social-title{display:block;font-size:11px;line-height:18px;white-space:nowrap}
.site-header .social-description,.site-footer .social-description{display:block;font-size:9px;line-height:16px;margin:0;white-space:nowrap}
.family-services .books-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;column-gap:32px;row-gap:0}
.family-services .family-service{display:grid;grid-template-rows:subgrid;grid-row:span 6;gap:0;align-content:start;padding-bottom:24px}
.family-service .a8-creative{grid-row:6;align-self:start}
.family-service noscript{display:none}
main>.a8-ad{box-sizing:border-box;width:calc(100% - 80px);max-width:1140px;margin:24px auto 0;padding:24px 0;border-top:1px solid #cad5d6}
@media(max-width:999px){
 .site-header.compact-header--home .compact-home-actions{display:grid;grid-template-columns:1fr;gap:24px}
 .site-header.compact-header--home nav.primary-entries{margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}
 .site-header.compact-header--home .social-links,.site-footer .social-links{margin:0 auto}
}
@media(max-width:600px){
 .site-header.compact-header--home nav.primary-entries{grid-template-columns:repeat(2,minmax(0,1fr));height:auto}
 .site-header .social-links,.site-footer .social-links{grid-template-columns:1fr;width:100%;gap:12px}
 .site-header .social-qr,.site-footer .social-qr{grid-column:auto!important;justify-self:stretch!important;width:100%;grid-template-columns:160px 1fr;grid-template-rows:160px;align-items:center;align-content:center;justify-items:start;gap:20px;padding:0}
 .site-header .social-label,.site-footer .social-label{width:auto;text-align:left;grid-template-rows:40px 18px;font-size:13px;line-height:20px}
 .site-header .social-title,.site-footer .social-title{font-size:13px;line-height:20px}
 .site-header .social-description,.site-footer .social-description{font-size:10px;line-height:18px}
 .family-services .books-grid{grid-template-columns:1fr;row-gap:24px}
 .family-services .family-service{display:block;grid-row:auto}
 .family-service noscript{display:none}
 main>.a8-ad{width:calc(100% - 40px)}
}

.social-qr .qr-image-frame{display:flex;align-items:center;justify-content:center;width:160px;height:160px;background:#fff}
.site-header .social-qr img[src*="threads-qr"],.site-footer .social-qr img[src*="threads-qr"]{width:158.3448px;height:158.3448px}
.site-header .social-qr img[src*="request-qr"],.site-footer .social-qr img[src*="request-qr"]{width:152.7273px;height:152.7273px}
.site-header .social-qr img[src*="openchat-qr"],.site-footer .social-qr img[src*="openchat-qr"]{width:131.9111px;height:131.9111px}
/* On phones, destinations stay tappable; readable QR codes stay in the footer. */
@media(max-width:600px){
 .site-header.compact-header--home .social-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .site-header.compact-header--home .social-qr{display:flex;align-items:center;justify-content:center;min-height:64px;padding:8px 2px;border:1px solid #dde5e8;border-radius:6px;background:#fff;gap:0;text-align:center}
 .site-header.compact-header--home .qr-image-frame{display:none}
 .site-header.compact-header--home .social-label{display:block;width:100%;text-align:center}
 .site-header.compact-header--home .social-title{font-size:clamp(9px,2.7vw,11px);line-height:18px}
 .site-header.compact-header--home .social-description{display:none}
}
@media(min-width:601px){
 .family-service .service-label{grid-row:1}
 .family-service h3{grid-row:2}
 .family-service .service-benefit{grid-row:3}
 .family-service .service-offer{grid-row:4}
 .family-service .service-terms{grid-row:5}
 .family-service noscript{display:none}
}

/* Fixed card and artwork frames: repeat two columns without a separate audio strip. */
.family-services .books-grid{gap:24px;align-items:stretch}
.family-services .family-service{border:1px solid #d8e2e3;border-radius:12px;background:#fff;padding:24px;box-sizing:border-box;min-width:0;grid-row:span 6;row-gap:0}
.family-service h3{font-size:22px;line-height:1.5;margin:4px 0 16px}
.family-service .a8-creative{display:flex;justify-content:center;align-items:center;width:100%;height:250px;margin:0;line-height:0}
.family-service .a8-creative>a,.family-service .a8-creative>a img{width:300px;max-width:100%;height:auto}
@media(max-width:600px){.family-services .family-service{display:flex;flex-direction:column;padding:20px}.family-service .a8-creative{margin-top:auto;height:250px}.family-service h3{font-size:21px}}
@media(min-width:1000px){.family-services .family-service{min-height:580px}}
@media(min-width:601px) and (max-width:999px){.family-services .family-service{min-height:700px}}
@media(min-width:601px){
 .family-services .books-grid{grid-auto-rows:1fr}
 .family-services .family-service{grid-row:auto;grid-template-rows:24px 66px minmax(80px,1fr) 52px 76px 250px;min-height:600px}
 .family-service .a8-creative{align-self:end}
}
@media(min-width:601px) and (max-width:999px){.family-services .family-service{grid-template-rows:24px 99px minmax(120px,1fr) 78px 104px 250px;min-height:725px}}
