/* Shared navigation, spacing and return paths across the Roostlings world. */
@view-transition{navigation:auto}
::view-transition-old(root){animation:roost-out .12s ease-out both}::view-transition-new(root){animation:roost-in .16s ease-out both}
@keyframes roost-out{to{opacity:0}}@keyframes roost-in{from{opacity:0}}
.site-shell{--shell-bg:#fffcf0;--shell-ink:#245747;--shell-muted:#5b7468;--shell-line:#24574726;--shell-accent:#f1ce81;position:sticky;top:0;z-index:70;width:100%;margin:0;background:var(--shell-bg);color:var(--shell-ink);border-bottom:1px solid var(--shell-line);font-family:Nunito,'Trebuchet MS',sans-serif}
.site-shell[data-tone=night]{--shell-bg:#142833;--shell-ink:#f4f0df;--shell-muted:#b5c7ca;--shell-line:#92b7bd29;--shell-accent:#e9c789}
.site-shell-inner{max-width:1280px;margin:auto;min-height:80px;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.site-logo{font:600 25px/1 Fredoka,'Trebuchet MS',sans-serif;letter-spacing:-.035em;white-space:nowrap;text-decoration:none!important;color:var(--shell-ink)!important}.site-logo span{color:#dc7438}.site-shell[data-tone=night] .site-logo span{color:var(--shell-accent)}
.site-nav{display:flex;align-items:center;gap:18px;margin:0;padding:0}.site-nav a{display:block;color:var(--shell-ink);font-size:14px;font-weight:800;white-space:nowrap;text-decoration:none;padding:10px 0;min-height:44px;border-bottom:2px solid transparent}.site-nav a:hover,.site-nav a[aria-current]{border-color:currentColor;color:var(--shell-ink)}
.site-play-link{display:flex;align-items:center;gap:9px;justify-content:center;background:var(--shell-accent);color:#254b3f!important;text-decoration:none!important;border-radius:26px;padding:11px 17px;min-height:44px;font-size:14px;font-weight:800;white-space:nowrap}
.site-menu{display:none;position:relative;padding:0;border:0;font-size:14px;z-index:80}.site-menu summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer;min-height:44px;border:1px solid var(--shell-line);border-radius:25px;padding:9px 15px;font-weight:800;font-size:14px;color:var(--shell-ink)}.site-menu summary::-webkit-details-marker{display:none}.site-menu-lines{font-size:18px;line-height:1}.site-menu nav{position:absolute;right:0;top:calc(100% + 12px);width:330px;max-width:calc(100vw - 32px);display:grid;grid-template-columns:1fr 1fr;gap:5px;background:var(--shell-bg);border:1px solid var(--shell-line);border-radius:19px;padding:13px;box-shadow:0 15px 35px #061c2726}.site-menu nav a{display:flex;align-items:center;min-height:48px;padding:11px 12px;border-radius:10px;text-decoration:none;color:var(--shell-ink);font-size:14px;line-height:1.35;font-weight:800}.site-menu nav a:hover,.site-menu nav a[aria-current]{background:var(--shell-line)}.site-shell a:focus-visible,.site-shell summary:focus-visible,.site-shell button:focus-visible{outline:3px solid currentColor;outline-offset:4px}
.site-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1220px;margin:auto;padding:0 32px 13px;font-size:14px;color:var(--shell-muted)}.site-tools>a{color:inherit;text-underline-offset:4px}.site-tools .header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.site-tools button{font:800 14px Nunito,sans-serif;min-height:42px;padding:8px 14px;border:1px solid var(--shell-line);border-radius:13px;color:var(--shell-ink);background:transparent;cursor:pointer}
html{scroll-padding-top:85px}#stories,#friends,#grown-ups{scroll-margin-top:15px}
body[data-site-page=learn] main{max-width:1180px;padding-top:38px}body[data-site-page=learn] .menu-heading h1{font-size:clamp(2.5rem,4.5vw,3.65rem)}body[data-site-page=learn] .menu-heading .eyebrow{font-size:.8rem}body[data-site-page=news] .editorial-main,body[data-site-page=stories] .editorial-main,body[data-site-page=about] .editorial-main{max-width:1180px;padding-top:38px}body[data-site-page=news] .editorial-intro h1{font-size:clamp(2.5rem,4.5vw,3.65rem)}body[data-site-page=news] .breadcrumbs{margin-bottom:30px}body[data-site-page=news] .article-aside{top:105px}
body[data-site-page]>footer{font-family:Nunito,sans-serif}body.dimmed .site-shell{display:none}
.site-shell-game{position:absolute;background:transparent;border:0;pointer-events:none;padding:0;max-width:none}.site-shell-game .site-shell-inner{max-width:none;min-height:70px;padding:16px 24px;justify-content:flex-start;gap:15px}.site-shell-game .site-logo,.site-shell-game .site-menu,.site-shell-game .top-actions{pointer-events:auto}.site-shell-game .site-nav{display:none}.site-shell-game .site-menu{display:block}.site-shell-game .site-menu summary{background:#fffcefef}.site-shell-game .site-menu nav{left:0;right:auto}.site-shell-game .top-actions{margin-left:auto}.site-shell-game .back-books,.site-shell-game .game-learning-link{display:none!important}
.shelf-toolbar{align-items:center;gap:18px}.story-jump{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:800}.story-jump select,.reader-book-select{max-width:100%;min-height:44px;border:1px solid #9aad9580;background:#fffdf3;color:#245747;border-radius:12px;padding:9px 12px;font:700 14px Nunito,sans-serif;cursor:pointer}.story-jump select{max-width:300px}.reader-book-picker{display:flex;align-items:center;gap:10px;border-top:1px solid #d7decf;border-bottom:1px solid #d7decf;padding:9px 24px;background:#f8f7e9;color:#245747;font:700 13px Nunito,sans-serif}.reader-book-picker>label{white-space:nowrap}.reader-book-select{width:100%;min-height:38px;padding:7px 11px}.reader-dialog .reader-layout{min-height:0}.reader-book-select:focus-visible,.story-jump select:focus-visible{outline:3px solid #245747;outline-offset:3px}
@media(max-width:1150px){.site-nav{display:none}.site-menu{display:block;margin-left:auto}.site-shell-inner{min-height:76px}.site-shell-game .site-menu{margin-left:0}}
@media(max-width:700px){.site-shell-inner{padding:14px 20px;gap:12px;min-height:70px}.site-logo{font-size:23px}.site-play-link{font-size:13px;padding:10px 13px}.site-tools{padding:0 20px 12px;gap:10px}.site-tools>a{font-size:13px}.site-tools button{padding:8px 10px;font-size:13px}.site-menu nav{right:0;width:330px}.site-shell-game .site-shell-inner{padding:12px 16px;min-height:66px}.site-shell-game .site-menu summary{font-size:0;gap:0;padding:10px;width:42px;justify-content:center}.site-shell-game .site-menu-lines{font-size:18px}.site-shell-game .site-menu nav{left:-130px}.site-shell-game .site-logo{font-size:21px}.shelf-toolbar{flex-wrap:wrap}.story-jump{width:100%;justify-content:space-between;flex-wrap:wrap}.story-jump select{max-width:100%;flex:1}.reader-book-picker{padding:7px 15px;gap:8px;font-size:12px}.reader-book-picker select{font-size:13px}body[data-site-page=learn] main{padding-top:26px}}
@media(max-width:470px){.site-play-link{display:none}.site-logo{font-size:23px}.site-menu nav{width:calc(100vw - 40px);max-width:355px}.site-menu summary{padding:9px 13px}.site-tools{flex-wrap:wrap}.site-tools>a{font-size:13px}.site-tools .header-actions{margin-left:auto}.site-tools button{font-size:12px;padding:7px 9px}.reader-book-picker>label{font-size:0}.reader-book-picker>label:after{content:'Story';font-size:13px}.reader-book-picker{padding:7px 15px}.reader-book-select{font-size:12px}.story-jump{gap:6px}.story-jump label{font-size:13px}}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none!important}html{scroll-behavior:auto}}
.reader-book-picker{flex:none}
.site-shell-game{display:block;left:0;right:0;top:0}.site-shell-game .site-shell-inner{width:100%}

/* One familiar Roost, including the listening room and the news pages. */
:root{--site-width:1280px;--site-gutter:clamp(20px,4vw,48px)}
.site-shell{--shell-bg:#fffcf1;--shell-ink:#235846;--shell-muted:#687467;--shell-line:#cbd7bd;--shell-accent:#f9ce58}
.site-shell:not(.site-shell-game) .site-shell-inner{max-width:var(--site-width);padding-inline:var(--site-gutter)}
.site-nav a[aria-current]{border-color:#e26e3b}
body[data-site-page=bedtime]:not(.dimmed) main,body[data-site-page=news] .editorial-main,body[data-site-page=learn] main{max-width:var(--site-width);padding:32px var(--site-gutter) 64px}
.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font:700 .875rem/1.5 Nunito,sans-serif;color:#687467;margin:0 0 24px}
.breadcrumbs a{text-decoration:none;color:#235846}.breadcrumbs a:hover{text-decoration:underline;text-underline-offset:4px}
body[data-site-page=news] .breadcrumbs{margin-bottom:24px}
body[data-site-page=bedtime] .bedtime-intro{margin-bottom:28px}
body[data-site-page=bedtime] .bedtime-intro h1,body[data-site-page=news] .editorial-intro h1,body[data-site-page=learn] .menu-heading h1{font:500 clamp(2.5rem,4.5vw,3.65rem)/1.08 Fredoka,'Trebuchet MS',sans-serif;letter-spacing:-.025em;margin:10px 0 16px}
body[data-site-page=bedtime] .bedtime-intro h1 span,body[data-site-page=news] .editorial-intro h1 span{color:#e26e3b}
body[data-site-page=bedtime] .bedtime-intro p:last-child{font-size:1rem}
body[data-site-page=bedtime]:not(.dimmed) .listening-room{border-color:#cbd7bd;box-shadow:0 5px 0 #d6dfc9}
body[data-site-page=bedtime] .week-shelf{padding:18px;border-radius:22px;background:#e7efda}
body[data-site-page=bedtime] .shelf-heading{padding-inline:8px}
body[data-site-page=bedtime] .day-picker button[aria-pressed=true]{background:#fffef8;border-color:#235846;box-shadow:0 3px 0 #cbd7bd}
body[data-site-page=bedtime] .shelf-note{padding-bottom:2px}
body[data-site-page=bedtime] .take-home>a{background:#e7efda;border-color:#cbd7bd;font-weight:800;color:#235846;border-radius:26px}
body[data-site-page=bedtime] .story-details{border-radius:22px}
body.dimmed .breadcrumbs{display:none}
body.dimmed .site-footer-shared{display:none}
.site-footer.site-footer-shared{--shell-ink:#fffcf1;display:block;width:100%;max-width:none;margin:0;padding:0;border:0;background:#235846;color:#fffcf1;text-align:left}
.site-footer-shared .site-footer-inner{max-width:var(--site-width);margin:auto;padding:38px var(--site-gutter) 28px;display:grid;grid-template-columns:1fr 1fr;gap:26px 48px;font-size:.875rem}
.site-footer-shared .site-footer-brand p{font:500 1.25rem/1.4 Fredoka,sans-serif;color:#fffcf1;margin:14px 0 0}
.site-footer-shared .site-logo span{color:#f9ce58}
.site-footer-shared nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 16px;align-content:start}
.site-footer-shared nav a{padding:8px 0;min-height:40px;display:flex;align-items:center;font-size:.875rem;font-weight:700;line-height:1.4}
.site-footer-shared a{color:inherit;text-decoration:none}.site-footer-shared a:hover{color:#f9ce58;text-decoration:underline;text-underline-offset:4px}
.site-footer-shared .site-footer-bottom{grid-column:1/-1;border-top:1px solid #ffffff30;padding-top:20px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.875rem}
.site-footer-shared .site-footer-note{grid-column:1/-1;color:#dbe6d5;max-width:750px;font:.8rem/1.6 Nunito,sans-serif;margin:0}
@media(max-width:1000px){.site-footer-shared .site-footer-inner{grid-template-columns:1fr 1.3fr;gap:26px}.site-footer-shared nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){body[data-site-page=bedtime] .week-shelf{padding:14px}.site-footer-shared .site-footer-inner{grid-template-columns:1fr}.site-footer-shared nav{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-site-page=bedtime] .day-picker button{background:#fffef8}body[data-site-page=bedtime] .day-picker button[aria-pressed=true]{background:#235846;color:#fffcf1}body[data-site-page=bedtime] .day-picker button[aria-pressed=true]:after{background:#fffcf1}}
@media(max-width:600px){body[data-site-page=bedtime]:not(.dimmed) main,body[data-site-page=news] .editorial-main,body[data-site-page=learn] main{padding-top:22px;padding-bottom:42px}.breadcrumbs,body[data-site-page=news] .breadcrumbs{margin-bottom:20px;font-size:.8125rem}.site-footer-shared .site-footer-inner{padding-top:32px}.site-footer-shared nav{grid-template-columns:repeat(2,minmax(0,1fr))}.site-footer-shared .site-footer-bottom{flex-direction:column;gap:8px}body[data-site-page=bedtime] .bedtime-intro h1{font-size:2.1rem;margin-top:8px;margin-bottom:12px}body[data-site-page=bedtime] .bedtime-intro p:last-child{font-size:.9375rem}body[data-site-page=bedtime] .week-shelf{padding:12px}body[data-site-page=bedtime] .shelf-heading{padding-inline:0}}
