/* Version 183. Child pages (Reading, Stories, Routine, Rewards, Word Practice, Journey)
   sit straight on the night sky, edge to edge, like the Games page. No outer card.
   Loaded last so it wins over the older framed-page rules. */

body[data-child-page=open] :is(main.home,main.admin,main.stories-page){background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;max-width:1100px!important;width:100%;margin:0 auto!important;padding:clamp(6px,2vw,22px) clamp(0px,1.5vw,16px) 48px!important;overflow:visible}
body[data-child-page=open] main.home:before,body[data-child-page=open] main.home:after{display:none}

/* One heading style everywhere: gold eyebrow, big cream title, soft lilac line. */
body[data-child-page=open] :is(.quest-heading,.child-heading,.ra-shelf-head){color:#fff8e5}
body[data-child-page=open] :is(.quest-heading .quest-eyebrow,.child-heading .tiny){display:flex;align-items:center;gap:9px;margin:0;color:#ffe0a3;font:800 11px/1.3 ui-rounded,'Trebuchet MS',system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase}
body[data-child-page=open] :is(.quest-heading .quest-eyebrow,.child-heading .tiny):before{content:'';width:22px;height:2px;border-radius:2px;background:#ffe0a3}
body[data-child-page=open] :is(.quest-heading h1,.child-heading h1,.ra-shelf-head h1,main.journey>h1){margin:10px 0 6px;color:#fff9e7;font:800 clamp(32px,4.6vw,50px)/1.04 ui-rounded,'Trebuchet MS',system-ui,sans-serif;letter-spacing:-.04em;text-shadow:0 3px 0 #44214b55}
body[data-child-page=open] :is(.quest-heading p,.child-heading p:not(.tiny),.ra-shelf-head p){margin:0;color:#f3e6ff;font-size:16px}
body[data-child-page=open] .quest-page .quest-heading{min-height:0;margin-bottom:26px;padding:0;background:none;border:0;box-shadow:none}
body[data-child-page=open] .quest-heading-aside,body[data-child-page=open] .quest-page .quest-heading .quest-goal,body[data-child-page=open] .quest-page .quest-heading .quest-goal :is(strong,span){color:#fff3d0}
body[data-child-page=open] main>:is(p.note,.note),body[data-child-page=open] main.journey>p.note,body[data-child-page=open] main.journey>h2{color:#eadcf5}
body[data-child-page=open] main.journey>h2,body[data-child-page=open] main.journey .milestone-heading{color:#fff9e7}

/* Reading (home): the "Choose an adventure" hero keeps its own card. */
body[data-child-page=open] .home .home-hero{background:linear-gradient(140deg,#795196,#b881c2);border:4px solid #f8d9a0;border-radius:30px;box-shadow:0 18px 40px #12081f66;overflow:hidden}
body[data-child-page=open] .home .adventures{margin-top:clamp(18px,3vw,30px)}
body[data-child-page=open] .home .tilegrid{gap:clamp(16px,2.4vw,26px)}

/* Stories page: the shelf is the page. */
body[data-child-page=open] .stories-page .ra-shelf{margin:0}
body[data-child-page=open] .stories-page .ra-shelf-head{margin-bottom:24px}
body[data-child-page=open] .stories-page .ra-shelf-row{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:24px}

/* Journey */
body[data-child-page=open] main.journey>.back#back{display:none}
body[data-child-page=open] main.journey>h1{margin-top:4px}

/* Word Practice keeps the main navigation now, and the practice set is a row of chips
   above the card instead of a dropdown inside it. */
body[data-child-page=open][data-view=wordPractice] .frame>.reader-top{display:flex!important;margin-inline:0!important;border-radius:0!important;padding-left:max(16px,env(safe-area-inset-left))!important;padding-right:max(16px,env(safe-area-inset-right))!important}
body[data-child-page=open][data-view=wordPractice] .shell{min-height:100vh;padding:0 0 36px!important}
body[data-child-page=open][data-view=wordPractice] .frame{max-width:none;padding:0}
body[data-child-page=open][data-view=wordPractice] .word-practice{padding-inline:clamp(16px,3vw,36px)!important}
body[data-child-page=open][data-view=wordPractice] .word-practice{display:flex;flex-direction:column;gap:16px;height:auto!important;min-height:0!important;max-width:920px!important}
body[data-child-page=open] .practice-heading{display:block;margin:0;padding:0;border:0;background:none}
body[data-child-page=open] .word-practice-source{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 0;padding:0;background:none;border:0}
body[data-child-page=open] .practice-chip{min-height:44px;padding:9px 18px;border:2px solid #e7cdf855;border-radius:999px;background:#2a1a3d66;color:#f6e9ff;font-weight:700;font-size:15px;line-height:1.2;transition:background .2s,border-color .2s,transform .15s}
body[data-child-page=open] .practice-chip:hover{border-color:#f3dcffaa;transform:translateY(-1px)}
body[data-child-page=open] .practice-chip[aria-pressed=true]{background:linear-gradient(145deg,#fff0c6,#e8c68c);border-color:#fff1c5;color:#4d2e65}
body[data-child-page=open] .practice-chip:disabled{opacity:.6}
body[data-child-page=open] .word-practice>.practice-summary{color:#f3e6ff}
body[data-child-page=open] .word-practice-card{min-height:clamp(300px,46vh,460px)}
body[data-child-page=open] #word-practice-status,body[data-child-page=open] .word-practice>.note{color:#eadcf5}

/* Phones: the name header goes; the navigation bar stays. More room for the page. */
@media(max-width:600px){
 body[data-reader] .frame>.reader-top .reader-wordmark{display:none!important}
 body[data-reader] .frame>.top.reader-top{padding-top:calc(8px + env(safe-area-inset-top))!important;margin-bottom:12px!important}
 body[data-child-page=open] :is(main.home,main.admin,main.stories-page){padding:4px 0 36px!important}
 body[data-child-page=open][data-view=wordPractice] .word-practice{padding-left:max(16px,env(safe-area-inset-left))!important;padding-right:max(16px,env(safe-area-inset-right))!important}
 body[data-child-page=open] .home .home-hero{border-width:3px;border-radius:24px;padding:22px 20px}
 body[data-child-page=open] :is(.quest-heading h1,.child-heading h1,.ra-shelf-head h1,main.journey>h1){font-size:32px}
 body[data-child-page=open] .practice-chip{font-size:14px;padding:8px 14px}
 body[data-child-page=open] .stories-page .ra-shelf-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
}

/* Lines that used to sit on the cream card and now sit on the night sky. */
body[data-child-page=open] :is(.routine-daily-progress>strong,p[data-reading-status],main.journey .milestone-section>h2){color:#f6ecff}
body[data-child-page=open] main.journey .milestone-section>h2{font:800 clamp(22px,3vw,30px)/1.1 ui-rounded,'Trebuchet MS',system-ui,sans-serif;letter-spacing:-.02em}
body[data-child-page=open] main.journey>.journey-eyebrow{display:flex;align-items:center;gap:9px;margin:0;color:#ffe0a3;font:800 11px/1.3 ui-rounded,'Trebuchet MS',system-ui,sans-serif;letter-spacing:.2em}
body[data-child-page=open] main.journey>.journey-eyebrow:before{content:'';width:22px;height:2px;border-radius:2px;background:#ffe0a3}

/* The week strips were see-through over the cream card; give them their own solid fill. */
body[data-child-page=open] .quest-page :is(.routine-calendar,.reward-week){background:#f4ebfb!important;border-color:#fff0c9!important;box-shadow:0 8px 22px #1d0f2a40}

/* Games uses the same heading as the other child pages. */
body[data-reader] .games-hub header .tiny{display:flex;align-items:center;gap:9px;margin:0;color:#ffe0a3;font:800 11px/1.3 ui-rounded,'Trebuchet MS',system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase}
body[data-reader] .games-hub header .tiny:before{content:'';width:22px;height:2px;border-radius:2px;background:#ffe0a3}
body[data-reader] .games-hub header h1{margin:10px 0 6px;color:#fff9e7;font:800 clamp(32px,4.6vw,50px)/1.04 ui-rounded,'Trebuchet MS',system-ui,sans-serif;letter-spacing:-.04em;text-shadow:0 3px 0 #44214b55}
body[data-reader] .games-hub header>p:last-child{margin:0;color:#f3e6ff;font-size:16px}
@media(max-width:600px){body[data-reader] .games-hub header h1{font-size:32px}}
body[data-reader] main.games-hub{padding:clamp(6px,2vw,22px) clamp(0px,1.5vw,16px) 48px}
@media(max-width:600px){body[data-reader] main.games-hub{padding:4px 0 36px}}

/* Toddler & Pre-K card: a deep card like the "Choose an adventure" hero, so the text reads easily. */
body[data-child-page=open] .home .prek-notice{background:linear-gradient(140deg,#4f2d72,#7a4f9e);border:4px solid #f8d9a0;border-radius:30px;box-shadow:0 18px 40px #12081f66;padding:clamp(22px,3.4vw,34px)}
body[data-child-page=open] .home .prek-notice p{margin:0 0 10px;color:#fbf3ff;line-height:1.45}
body[data-child-page=open] .home .prek-notice h2{margin:8px 0 10px}
body[data-child-page=open] .home .prek-notice p strong{color:#ffe0a3}
body[data-child-page=open] .home .prek-notice .prek-notice-hint{color:#e6d6f5}
body[data-child-page=open] .home .prek-notice .ra-welcome-open{margin:6px 0 0}
body[data-child-page=open] .home .prek-notice .ra-welcome-grow{margin:20px 0 0;padding-top:18px;border-top:1px solid #f8d9a04d}
@media(max-width:600px){body[data-child-page=open] .home .prek-notice{border-width:3px;border-radius:24px;padding:22px 20px}}
/* Word Practice's menu bar matches every other child page (same color, border, shadow, and pinned when navigation is pinned). */
body[data-child-page=open][data-view=wordPractice] .frame>.reader-top{background:#58366deb!important;border:1px solid #cba7d44d!important;box-shadow:0 4px 16px #25123620!important;padding:calc(12px + env(safe-area-inset-top)) max(clamp(16px,3vw,36px),env(safe-area-inset-right)) 12px max(clamp(16px,3vw,36px),env(safe-area-inset-left))!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
body[data-child-page=open][data-view=wordPractice][data-sticky-navigation="true"] .frame>.reader-top{position:sticky!important;top:0!important;z-index:50}
