/* One shared center for page banners and standalone actions at every size. */
#app{--page-column:720px}
#app[data-reference-layout=menu]{--page-column:760px}
#app > :is(.title-banner,.classroom-page-heading,.reference-heading){box-sizing:border-box!important;width:calc(100% - 32px)!important;max-width:var(--page-column)!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important;justify-content:center!important}
#app > :is(.title-banner,.classroom-page-heading,.reference-heading) :is(h1,p,.classroom-heading-copy){text-align:center!important}
#app > :is(button,a):not(.bubble):not(.card){display:flex;justify-content:center;align-items:center;text-align:center;max-width:var(--page-column);margin-left:auto!important;margin-right:auto!important}
#app > :is(button,a):is(.block,.important-tools-button,.menu-white-rectangle){box-sizing:border-box;width:calc(100% - 32px)!important}
#app :is(.actions,.announcement-toolbar,.menu-bottom-links){justify-content:center;text-align:center}
#app :is(button,a,summary):is(.primary,.purple,.outline,.secondary,.ann-new){text-align:center;justify-content:center}
#app > :is(.reference-tabs,.reference-compose,.reference-photo-grid,.class-menu-grid){box-sizing:border-box;width:calc(100% - 32px);max-width:var(--page-column);margin-left:auto!important;margin-right:auto!important}
#app[data-reference-layout=menu] .class-menu-grid{width:calc(100% - 32px)!important;max-width:var(--page-column)!important;margin-inline:auto!important}
/* White sticky notes frame the transparent Menu illustrations. */
#app[data-reference-layout=menu] .menu-square{background:#fff!important;background-image:none!important;border:1px solid #e4e8e2!important;border-radius:4px 6px 3px 5px!important;box-shadow:1px 4px 5px #253c2d30!important}
#app[data-reference-layout=menu] .menu-square > :is(.reference-menu-art,.art){background-color:transparent!important;mix-blend-mode:normal}
/* The calendar and full announcement board already center their complete surfaces. */
#app[data-calendar-reference=true]{--page-column:600px}
#app[data-page=updates] .ann-board{margin-inline:auto!important}
@media(min-width:700px){#app > .title-banner{max-width:var(--page-column)!important}}
#app :is(form,.card,.reference-paper,.page-pad) > :is(button,a).block{margin-left:auto!important;margin-right:auto!important;max-width:100%;justify-content:center;text-align:center}
#app form > button:not([type=button]){display:flex;margin-left:auto;margin-right:auto;justify-content:center;text-align:center}
/* Standalone celebration artwork keeps every balloon and confetti inside its image. */
#app[data-reference-layout=menu] .menu-square[data-go=signupMenu] > img.reference-menu-art{object-fit:contain!important;object-position:center!important;overflow:visible;clip-path:none!important;transform:none!important}
/* All submenu destinations use the same white pinned/taped stationery as Menu. */
#app[data-classroom-style]:not([data-classroom-style=""]) .reference-navigation-card.reference-paper{background:#fff!important;border:1px solid #e4e8e2!important;border-radius:4px 6px 3px 5px!important;box-shadow:1px 4px 5px #253c2d30!important;overflow:visible!important;isolation:isolate}
#app[data-classroom-style]:not([data-classroom-style=""]) .reference-navigation-card.reference-pin:before{display:none!important}
#app[data-classroom-style]:not([data-classroom-style=""]) .reference-navigation-card.reference-tape:before,#app[data-classroom-style]:not([data-classroom-style=""]) .reference-navigation-card.reference-tape:after{content:'';display:block;position:absolute;inset:auto;top:-8px;width:43px;height:16px;background:#bba5d4a6!important;border:1px solid #ad96c254;border-radius:0;clip-path:polygon(3% 0,96% 0,100% 22%,97% 48%,100% 76%,96% 100%,3% 100%,0 74%,3% 46%,0 20%);box-shadow:none!important;z-index:2;pointer-events:none}
#app[data-classroom-style]:not([data-classroom-style=""]) .reference-navigation-card.reference-tape:before{left:17px;transform:rotate(-12deg)}
#app[data-classroom-style]:not([data-classroom-style=""]) .reference-navigation-card.reference-tape:after{right:17px;transform:rotate(12deg)}
#app .reference-menu-choice{position:relative;background:#fff!important;background-image:none!important;border:1px solid #e4e8e2!important;border-radius:4px 6px 3px 5px!important;box-shadow:1px 4px 5px #253c2d30!important;overflow:visible!important;margin-top:10px}
#app .reference-menu-choice:before{content:'';position:absolute;left:calc(50% - 7px);top:-8px;width:14px;height:15px;border-radius:50%;background:radial-gradient(circle at 30% 22%,#c6f9ef,#38b9b5 50%,#0b737e);box-shadow:0 5px 0 -2px #19747c,2px 7px 3px #253a3840;pointer-events:none}
#app .reference-menu-choice.reference-choice-tape:before{left:calc(50% - 22px);width:44px;height:16px;top:-7px;border-radius:0;background:#bba5d4a6;box-shadow:none;transform:rotate(-8deg)}

/* Keep desktop classroom signs at their intended proportions. */
@media(min-width:800px){#app.home > .title-banner,#app[data-page=home] > .title-banner,#app.home > .original-banner,#app[data-page=home] > .original-banner{width:calc(100% - 32px)!important;max-width:620px!important;margin-inline:auto!important;flex:none!important}#app[data-page=home] .title-banner:before{background-size:100% 100%!important}}
#app[data-classroom-section=resources]{background:#e2f5f3!important;background-image:none!important}
#app[data-classroom-section=resources] .card{background:#fff!important}
.newsletter-saved-details{background:#f1eafa;border:1px solid #d6c6ec;border-radius:14px;padding:16px;margin:16px auto;max-width:800px}

/* Classroom banner illustrations are 3:1; preserve their shape on desktop. */
@media(min-width:800px){html body #app.home>.title-banner{width:calc(100% - 32px)!important;max-width:600px!important;aspect-ratio:3/1!important;min-height:0!important;height:auto!important;box-sizing:border-box!important;padding:28px 42px 18px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;margin:0 auto!important;background:transparent!important}html body #app.home>.title-banner::before{inset:0!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important}html body #app.home>.title-banner h1{line-height:1.2;max-width:90%;text-wrap:balance}}

html body #app[data-page=home]>.classroom-pencil-banner h1{font-size:clamp(28px,7.7vw,33px)}
