/* Bright Path visual direction; the product remains Learning Lab & Play. */
body.homepage-visible{background:#f5fbff;color:#132650;font-family:ui-rounded,'Arial Rounded MT Bold','Trebuchet MS',system-ui,sans-serif}
body.homepage-visible>header{background:#fff;border-bottom:1px solid #e1edf4;max-width:1280px;margin:auto;padding:10px 28px;min-height:68px}
body.homepage-visible>header .top-note{display:none}
body.homepage-visible>header .brand-wordmark{color:#132650}
body.homepage-visible>header .brand-wordmark b{color:#147e86}
body.homepage-visible>main{max-width:1280px;padding:16px 28px 32px}
#home.bright-path{--ink:#132650;--mint:#d9f1e7;--line:#d8e6ef;--yellow:#ffe18b}
#home.bright-path .compact-hero{background:#e7f6ff;border-radius:22px;padding:18px 24px;min-height:142px;position:relative;overflow:hidden;align-items:center;margin-bottom:12px}
#home.bright-path .compact-hero>div:first-child{width:56%;position:relative;z-index:1}
#home.bright-path .compact-hero h1{max-width:520px;font-size:clamp(27px,3.3vw,42px);line-height:1.06;letter-spacing:-1.2px;color:#10224f}
#home.bright-path .compact-hero .intro{color:#365279;font-size:16px;line-height:1.4;max-width:400px}
#home.bright-path .compact-hero-tiles{width:43%;position:absolute;right:0;top:0;bottom:0;padding:0;display:block}
#home.bright-path .compact-hero-tiles img{width:100%;height:100%;object-fit:cover;object-position:40% center;border-radius:0 22px 22px 0}
#home.bright-path .stage-tabs{gap:10px;margin:10px 0 14px}
#home.bright-path .stage-tabs button{border:1px solid #cbdfe9;background:white;color:#15294e;border-radius:18px;min-width:160px;min-height:48px}
#home.bright-path .stage-tabs button[aria-selected=true]{background:#0879ce;color:white;border-color:#0879ce;box-shadow:0 3px 8px #1592e622}
#home.bright-path .stage-tabs button[aria-selected=true] span{color:white}
#home.bright-path .section-heading{display:flex;margin:0 0 4px;gap:8px;align-items:baseline}
#home.bright-path .section-heading h2{font-size:25px;letter-spacing:-.7px;color:#132650}
#home.bright-path .section-heading>span{font-size:13px;color:#4c6481}
#home.bright-path .home-category-links{margin-bottom:8px;gap:8px}
#home.bright-path .home-category-links a{background:#fff;border-color:#dce9f2;border-radius:24px;color:#183258;padding:0 17px;min-height:44px}
#home.bright-path .home-category-links a:hover{background:#dcefff}
#home.bright-path .category-heading{border-top:1px solid #e0ecf3;padding-top:12px;margin-bottom:9px}
#home.bright-path .category-heading h2{color:#183258;font-size:21px;letter-spacing:-.4px}
#home.bright-path .category-heading p{color:#4c6481;font-size:13px}
#home.bright-path .app-shelf{gap:14px}
#home.bright-path .learning-card{background:#fff;border:1px solid #e0eaf0;border-radius:20px;overflow:hidden;padding:14px;min-height:206px;gap:6px;box-shadow:0 3px 7px #243d5a06;color:#132650;position:relative}
#home.bright-path .learning-card:hover{border-color:#92c8e9;background:#fafdff;box-shadow:0 5px 12px #24527812}
#home.bright-path .learning-card strong{font-size:19px;letter-spacing:-.4px;color:#132650}
#home.bright-path .learning-card>span:not(.learning-icon):not(.lab-card-example){color:#425f83;font-size:13px;line-height:1.35}
#home.bright-path .learning-card>b{color:#126cad;font-size:12px;padding-top:4px}
#home.bright-path .learning-card>.learning-icon{background:#e2f3ff;color:#19659c;width:40px;height:40px;margin-bottom:18px;border-radius:12px}
#home.bright-path .learning-card:nth-child(3n+2)>.learning-icon{background:#fff1c8}
#home.bright-path .learning-card:nth-child(3n)>.learning-icon{background:#dcf2e8}
#home.bright-path .learning-card .lab-card-example{display:block;width:110px;height:72px;right:12px;top:8px}
#home.bright-path .learning-card.bright-illustrated{padding:0 14px 12px;gap:5px}
#home.bright-path .bright-card-art{display:block;width:calc(100% + 28px);max-width:none;height:110px;object-fit:cover;object-position:center 45%;margin:0 -14px 5px;background:#e6f6fb}
#home.bright-path .bright-illustrated>.learning-icon,#home.bright-path .bright-illustrated>.lab-card-example{display:none}
#home.bright-path .shelf-note{color:#4c6481}
.home-parent-guide-link{min-height:44px;display:inline-flex;align-items:center;padding:0 10px;color:#17365d;font-size:14px;text-decoration:none;white-space:nowrap}
.home-parent-guide-link:hover{text-decoration:underline}
#home .home-parent-guide{border:1px solid #d3e6ef;border-radius:18px;background:white;margin:24px 0 12px;padding:0 18px;color:#304b70;scroll-margin-top:16px}
#home .home-parent-guide summary{min-height:48px;padding:13px 0;cursor:pointer;box-sizing:border-box;color:#16335a;font-weight:bold}
#home .home-parent-guide h2{font-size:21px;color:#132650}
#home .home-parent-guide p{max-width:850px;font-size:15px;line-height:1.6;margin-bottom:16px}
.home-parent-guide-link:focus-visible,#home .home-parent-guide summary:focus-visible{outline:3px solid #0879ce;outline-offset:3px}
@media(max-width:1099px){body.homepage-visible>header{flex-wrap:wrap}#home.bright-path .compact-hero{min-height:130px}}
@media(max-width:699px){
 body.homepage-visible>header{padding:8px 16px;gap:4px 8px}
 body.homepage-visible>main{padding:12px max(16px,env(safe-area-inset-right)) 24px max(16px,env(safe-area-inset-left))}
 body.homepage-visible>header .brand{flex-basis:calc(100% - 100px)}
 .home-parent-guide-link{padding:0 5px;font-size:13px}
 #home.bright-path .compact-hero{padding:14px;min-height:130px;border-radius:18px;margin-bottom:10px}
 #home.bright-path .compact-hero>div:first-child{width:67%}
 #home.bright-path .compact-hero h1{font-size:27px;letter-spacing:-.8px;line-height:1.06}
 #home.bright-path .compact-hero .intro{font-size:13px;max-width:185px}
 #home.bright-path .compact-hero-tiles{display:block;width:36%;opacity:.95}
 #home.bright-path .stage-tabs{margin:8px 0 12px;gap:8px}
 #home.bright-path .stage-tabs button{min-width:0;font-size:15px;padding:7px 10px;border-radius:15px}
 #home.bright-path .section-heading h2{font-size:22px}
 #home.bright-path .section-heading>span{display:none}
 #home.bright-path .home-category-links{gap:6px;margin-bottom:4px}
 #home.bright-path .home-category-links a{padding:0 12px}
 #home.bright-path .category-heading{padding-top:9px}
 #home.bright-path .category-heading h2{font-size:19px}
 #home.bright-path .app-shelf{gap:10px}
 #home.bright-path .learning-card{min-height:190px;padding:10px;gap:6px;border-radius:16px}
 #home.bright-path .learning-card strong{font-size:17px;line-height:1.2}
 #home.bright-path .learning-card>span:not(.learning-icon):not(.lab-card-example){font-size:13px}
 #home.bright-path .learning-card>.learning-icon{margin-bottom:8px}
 #home.bright-path .learning-card .lab-card-example{position:relative;width:100%;height:72px;top:auto;right:auto;order:-1}
 #home.bright-path .learning-card:not(.bright-illustrated)>.learning-icon{display:none}
 #home.bright-path .learning-card.bright-illustrated{padding:0 10px 10px}
 #home.bright-path .bright-card-art{width:calc(100% + 20px);height:95px;margin:0 -10px 4px}
}
@media(max-width:22.49em){#home.bright-path .compact-hero>div:first-child{width:100%}#home.bright-path .compact-hero-tiles{display:none}#home.bright-path .learning-card{min-height:0}#home.bright-path .bright-card-art{height:140px}body.homepage-visible>header .brand{flex-basis:100%}}
#home.bright-path.home-large-text .compact-hero>div:first-child{width:100%}
#home.bright-path.home-large-text .compact-hero-tiles{display:none}
@media(prefers-reduced-motion:reduce){#home.bright-path *{scroll-behavior:auto;transition:none}}
/* One persistent shortcut: never hidden behind the settings disclosure. */
body.homepage-visible>header>.home-screen-button{margin-left:auto;min-height:44px;background:#edf7ff;border-color:#c9dfed;color:#183258}
body.homepage-visible>header>.home-screen-button small{display:none}
@media(max-width:699px){body.homepage-visible>header>.home-screen-button{order:3;margin:0;font-size:13px;padding:6px 9px}body.homepage-visible>header>.home-screen-button img{width:24px;height:24px}.home-parent-guide-link{order:4;margin-left:auto}.home-parent-controls{order:5}}
/* Guide belongs to the shelf, not to hidden activity/account screens. */
.home-parent-guide-link{display:none}
body.homepage-visible .home-parent-guide-link{display:inline-flex}
@media(max-width:699px){body.homepage-visible>header .brand{flex-basis:calc(100% - 82px)}body.homepage-visible>header>.home-parent-toggle{width:74px;max-width:74px;flex-shrink:0}}
@media(max-width:22.49em){body.homepage-visible>header .brand{flex-basis:100%}}
#home.bright-path .compact-hero-tiles[hidden]{display:none}

/* The guide is a modal, not a second homepage card. Native dialog handles Escape
   and focus containment; its original opener remains in the selected parent menu. */
.home-parent-guide{box-sizing:border-box;width:min(620px,calc(100% - 28px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.home-parent-guide::backdrop{background:#10272699}
.home-parent-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-parent-guide h2{font-size:clamp(26px,5vw,36px);line-height:1.15}
.home-parent-guide p{font-size:1rem;line-height:1.6}
.home-parent-guide :focus-visible{outline:3px solid #0879ce;outline-offset:3px}
.website-parent-menu{display:none;position:relative;margin-left:auto;flex:0 0 auto}
body.homepage-visible .website-parent-menu{display:block}
.website-parent-menu>summary{min-height:44px;display:flex;align-items:center;justify-content:center;padding:8px 10px;border-radius:13px;cursor:pointer;font-size:14px;font-weight:700;list-style:none}
.website-parent-menu>summary::-webkit-details-marker{display:none}
.website-parent-menu[open]>summary{background:#e5f0f6}
.website-parent-links{position:absolute;z-index:60;right:0;top:calc(100% + 8px);box-sizing:border-box;width:min(290px,calc(100vw - 32px));max-height:calc(100dvh - 100px);overflow:auto;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 16px 45px #13265026}
.website-parent-menu:not([open])>.website-parent-links{display:none}
.website-parent-links :is(button,a){display:flex;align-items:center;min-height:44px;box-sizing:border-box;width:100%;padding:10px;border:0;border-radius:10px;text-align:left;background:transparent;color:var(--ink);font:inherit;font-size:14px;font-weight:700;line-height:1.4;text-decoration:none;white-space:normal}
.website-parent-links :is(button,a):hover{background:#e8f4fd}
body.studio-app .website-parent-menu{display:none}
body.homepage-visible .account-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.homepage-visible #createParentAccount{min-height:44px;font-weight:700;text-decoration:underline;text-underline-offset:3px;background:transparent;border:0}
