/* Shared notebook canvas and bounded sections for the requested audience pages. */
body:is(.parents-page,.educators-page,.matematik-page){background-color:#f8f5ef!important;background-image:linear-gradient(#0d1b2f0b 1px,transparent 1px),linear-gradient(90deg,#0d1b2f0b 1px,transparent 1px)!important;background-size:96px 96px!important;background-position:center top!important}
body:is(.parents-page,.educators-page,.matematik-page) main{background:transparent!important}
body:is(.parents-page,.educators-page,.matematik-page) main>section{box-sizing:border-box;width:min(1320px,calc(100% - 56px))!important;max-width:1320px!important;margin-left:auto!important;margin-right:auto!important;margin-top:32px;margin-bottom:32px;border-radius:26px;overflow:clip}
body:is(.educators-page,.matematik-page) main>section>.container{width:100%;max-width:none;box-sizing:border-box;padding-inline:32px}
@media(max-width:760px){body:is(.parents-page,.educators-page,.matematik-page) main>section{width:calc(100% - 24px)!important;margin-block:22px;border-radius:20px}body:is(.educators-page,.matematik-page) main>section>.container{padding-inline:18px}}


.matematik-page #hero h1{font-size:clamp(32px,3.2vw,46px);line-height:1.1;text-wrap:balance}.matematik-page .math-age{white-space:nowrap}.matematik-page #hero .lesson-preview{aspect-ratio:auto;height:auto}.matematik-page #hero .lesson-preview img{display:block;width:100%;height:auto;object-fit:contain}.matematik-page #lesson-parts .lesson-card:first-child .lesson-preview{aspect-ratio:auto;height:auto}.matematik-page #lesson-parts .lesson-card:first-child .lesson-preview img{display:block;width:100%;height:auto;object-fit:contain}

/* Keep these illustrations in normal flow: base previews position images absolutely. */
.matematik-page #hero .lesson-preview img,.matematik-page #lesson-parts .lesson-card:first-child .lesson-preview img{position:static!important;inset:auto!important;transform:none!important;width:100%!important;height:auto!important;max-height:none!important}.matematik-page #hero .lesson-preview,.matematik-page #lesson-parts .lesson-card:first-child .lesson-preview{height:auto!important;min-height:0!important;aspect-ratio:auto!important}
