/* Public entry controls use the original cream, mint and terracotta palette. */
html[data-start-view="landing"]:not([data-landing-ready]) #landing{visibility:hidden}
.public-landing .topbar>.brand{order:1}.public-landing .topbar>.header-tools{order:2}.public-landing .topbar>.menu-toggle{order:3}
@media(max-width:760px){.public-landing .navigation-panel{display:none}.public-landing:has(.menu-toggle[aria-expanded="true"]) .navigation-panel:not([hidden]){display:block}}
.public-landing .mobile-shortcuts{display:none}
.sound-preference [data-sound-preference-label]{display:none}.sound-preference{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:8px;border-radius:50%}
.account-header-menu>.account-header-trigger{display:grid;place-items:center;width:44px;height:44px;padding:0;box-sizing:border-box;max-width:44px;background:#f8f0e2;border-color:#ded6c8}.account-header-panel{background:#f8f0e2;border-color:#ded6c8}
.header-tools>.account-entry{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:1px solid #ded6c8;border-radius:50%;background:#f8f0e2;color:#173333}.header-tools>.account-entry[hidden]{display:none!important}.account-entry-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.account-entry-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){body:not(:has(#account.classroom-active.active .dashboard-frame)) .topbar{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;padding:12px 0}body:not(:has(#account.classroom-active.active .dashboard-frame)) .header-tools{flex-wrap:nowrap;gap:6px;margin:0;margin-inline-start:auto}body:not(.public-landing):not(:has(#account.classroom-active.active .dashboard-frame)) .topbar .brand-copy{display:none}.topbar .menu-toggle{width:44px;min-width:44px;min-height:44px;padding:8px}.topbar .menu-toggle>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
.language-picker{position:relative;flex:none}.language-picker>summary{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 10px;list-style:none;border:1px solid #ded6c8;border-radius:12px;color:#173333;background:#f8f0e2;font-size:.8rem;cursor:pointer}.language-picker>summary::-webkit-details-marker{display:none}.language-picker svg,.public-account-entry svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.language-picker .language-picker-chevron{width:14px;height:14px}.language-picker>.language-switcher{position:absolute;inset-inline-end:0;top:calc(100% + 8px);z-index:100;display:grid;min-width:172px;padding:8px;gap:4px;background:#f8f0e2;border:1px solid #ded6c8;border-radius:14px;box-shadow:0 12px 32px #17333312}.language-picker .language-label{display:none}.language-picker .language-button{min-height:44px;padding:10px 14px;text-align:start;border-radius:8px}.language-picker .language-button.active{background:#e8f2ed;color:#173333}.public-account-entry{display:none;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:1px solid #ded6c8;border-radius:50%;background:#f8f0e2;color:#173333}.public-landing .public-account-entry{display:flex}.public-landing .header-tools :is(.account-header-menu,.account-entry,.child-chip,.sound-preference,.teacher-notification){display:none!important}.account-header-trigger>span:not(.account-header-icon){display:none}.account-header-trigger{width:44px;height:44px;padding:8px;border-radius:50%}.public-landing .topbar{border-radius:0;background:transparent;box-shadow:none;border-width:0 0 1px;padding:18px 0;gap:20px}.public-landing .header-tools{gap:10px}.public-landing .brand-copy small{display:none}.public-landing .language-picker>summary{background:transparent}.public-landing .nav-item:not([data-view=landing]):not([data-view=lessons]):not([data-view=materials]):not([data-view=account]){display:none}.public-account-entry:focus-visible,.language-picker summary:focus-visible{outline:3px solid #b94f35;outline-offset:3px}
@media(max-width:700px){.public-landing .topbar{display:flex;flex-wrap:nowrap;align-items:center;padding:12px 0;gap:8px;min-height:68px}.public-landing .header-tools{flex-wrap:nowrap;gap:6px;margin:0;margin-inline-start:auto;width:auto}.public-landing .brand{min-width:0;gap:8px}.public-landing .brand-mark{width:34px;height:34px;flex:none}.public-landing .brand-copy{font-size:1rem}.public-landing .menu-toggle{min-width:44px;width:44px;padding:8px}.public-landing .menu-toggle span{display:none}.public-landing .language-picker>summary{gap:4px;padding:8px}.public-landing .language-picker-chevron{display:none}.public-landing .landing-hero{gap:24px;padding-top:16px}.public-landing .landing-copy h1{font-size:clamp(2rem,9vw,2.7rem);line-height:1.45}.public-landing .landing-actions{gap:10px}.public-landing .landing-actions>.course-context{flex-basis:100%;font-size:.8rem}}

.upcoming-content .access-door{grid-template-rows:auto auto 1fr;gap:12px;cursor:default}.upcoming-content .access-door:hover{transform:none;box-shadow:none}.upcoming-content h3{margin:0;font-size:1.25rem}.upcoming-content .access-door p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.8}.upcoming-content .access-door{text-align:start}

.upcoming-content .access-door{display:flex;flex-direction:column;overflow:hidden;padding:0 20px 20px;gap:12px}.upcoming-art{width:calc(100% + 40px);max-width:none;margin:0 -20px 4px;aspect-ratio:3/2;height:auto;object-fit:cover}.upcoming-content .access-door p{flex:1}
/* Public and authentication headers must not inherit a full-width tools row inside flex. */
@media(max-width:700px){
 body:not(:has(#account.classroom-active.active .dashboard-frame)) .topbar>.header-tools{width:auto;flex:0 0 auto;min-width:0}
 body:not(:has(#account.classroom-active.active .dashboard-frame)) .topbar>.brand{flex:0 0 auto;min-width:0}
 body:not(:has(#account.classroom-active.active .dashboard-frame)):has(#account.active) .topbar{padding:10px 12px;gap:12px}
 body:not(:has(#account.classroom-active.active .dashboard-frame)):has(#account.active) .topbar .brand-copy{display:inline-flex;font-size:1rem}
 body:not(:has(#account.classroom-active.active .dashboard-frame)):has(#account.active) .topbar .brand-copy small{display:none}
 body:not(:has(#account.classroom-active.active .dashboard-frame)):has(#account.active) .topbar .brand-mark{width:34px;height:34px;flex:none}
}
body:not(:has(#account.classroom-active.active .dashboard-frame)):has(#account.active) .header-tools>.account-entry{display:none!important}

.header-tools .page-back-button {display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:12px;border:0;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer;flex:0 0 auto;}
.page-back-button svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;}
.page-back-button span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.page-back-button:hover {background:#214e430a;}
.page-back-button:focus-visible {outline:2px solid #b94f35;outline-offset:2px;}
html[dir=rtl] .page-back-button svg {transform:scaleX(-1);}
@media(max-width:420px){body .topbar .header-tools {gap:4px!important;}body .topbar {gap:4px!important;}.topbar .language-picker>summary {gap:4px;padding:6px;}.topbar .language-picker-chevron {display:none;}.topbar .brand-mark {width:34px;height:34px;}}
@media(max-width:360px){body .topbar .brand-copy {display:none!important;}}
@media(max-width:360px){body:has(#account.active):not(:has(#account .dashboard-frame)) .topbar .brand-copy {display:inline-flex!important;}body:has(#account.active):not(:has(#account .dashboard-frame)) .topbar .menu-toggle {display:none;}}
/* A single, calm mobile masthead for the public introduction. */
@media(max-width:700px){
 body.public-landing .app-shell{margin-top:0}
 body.public-landing .topbar{position:sticky;top:0;z-index:70;min-height:68px;margin:0 -14px 16px;padding:10px 14px!important;gap:8px!important;background:#f8f0e2;border:0;border-bottom:1px solid #ded6c8;box-shadow:none;isolation:isolate}
 body.public-landing .topbar>.brand{gap:8px;min-height:44px;letter-spacing:normal}
 body.public-landing .topbar .brand-mark{width:36px;height:36px;border-radius:11px;box-shadow:none;font-size:1.4rem}
 body.public-landing .topbar .brand-copy{font-size:1.05rem;line-height:1.4;white-space:nowrap}
 body.public-landing .topbar>.header-tools{margin:0;margin-inline-start:auto;gap:6px!important}
 body.public-landing .topbar :is(.menu-toggle,.public-account-entry,.language-picker>summary,.page-back-button){height:44px;min-height:44px;border:1px solid #ded6c8;border-radius:12px;background:#fffcf5;box-shadow:none}
 body.public-landing .topbar .language-picker>summary{padding:8px;gap:5px}
 body.public-landing .topbar .menu-toggle[aria-expanded=true]{background:#24665c;color:#fff;border-color:#24665c}
 body.public-landing .navigation-panel:not([hidden]){display:block;position:fixed;inset-inline:14px;inset-block:auto;top:76px;z-index:65;width:auto;height:auto;max-height:calc(100dvh - 92px);overflow:auto;margin:0;padding:12px;border:1px solid #ded6c8;border-radius:16px;background:#fffcf5;box-shadow:0 16px 36px #1733331a}
 body.public-landing .navigation-panel>:not(.nav){display:none}
 body.public-landing .navigation-panel .nav{display:grid;grid-template-columns:1fr;gap:6px;padding:0}
 body.public-landing .navigation-panel .nav-item{border-radius:10px;min-height:48px;padding:12px 16px}
}
