/* A compact, illustrated shelf and a readable two-page story companion. */
.studio-page.children-view .hero-copy,.studio-page.children-view .hero-book-layer{display:none}
.studio-page.children-view .studio-workspace{display:block;max-width:1260px}
.children-shelf{--child-ink:#344e4a;--child-muted:#687b74;--child-line:#dce4dc;color:var(--child-ink);padding:6px 0 18px}
.children-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:12px 0 18px;border-bottom:1px solid var(--child-line)}
.children-eyebrow{font-size:11px;letter-spacing:2px;color:#7b8a77}
.studio-page .children-heading h1{font-family:'Songti SC','Noto Serif SC',STSong,'SimSun',serif;font-size:32px;letter-spacing:1px;margin:8px 0 8px;line-height:1.5}
.children-heading h1>span{display:inline-block;font-family:inherit;font-size:12px;letter-spacing:0;border-left:1px solid #bdcabc;padding-left:16px;margin-left:18px;vertical-align:middle;color:#74856d}
.children-heading p{font-size:13px;line-height:1.8;margin:0;color:var(--child-muted)}
.children-heading-note{display:flex;align-items:center;gap:14px;flex-shrink:0;font-size:12px;line-height:1.8}
.children-heading-note>span{font-family:Georgia,serif;font-size:58px;line-height:1;font-style:italic;color:#a8b79a}
.children-heading-note small{font-size:10px;color:var(--child-muted)}
.children-feature{display:flex;align-items:center;gap:16px;padding:15px 20px;margin:16px 0 20px;background:#edf0e5;border:1px solid #dfe6d6;border-radius:5px}
.children-feature-mark{font-size:29px;color:#a38b49}.children-feature p{flex:1;margin:0;font-size:12px;line-height:1.9}.children-feature b,.children-feature p>span{display:block}.children-feature p>span{color:#6d7e6f}.children-feature>button{display:flex;align-items:center;gap:12px;font-size:12px;color:#526b48;white-space:nowrap;padding:9px 0 9px 12px}.children-feature .icon{width:17px;height:17px}
.children-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.children-filters{display:flex;gap:4px;flex-wrap:wrap}.children-filters button{padding:7px 12px;border-radius:3px;font-size:12px;color:#728176;border:1px solid transparent;min-height:36px}.children-filters button.active{background:#dfe8dc;color:#3c6048;border-color:#d2dfcd}.children-search{display:flex;align-items:center;gap:8px;border:1px solid var(--child-line);border-radius:4px;padding:8px 10px;max-width:180px;background:var(--paper)}.children-search .icon{width:15px;height:15px;flex-shrink:0;color:#90a08e}.children-search input{width:100%;min-width:0;background:none;border:0;outline:none;font-size:12px;color:var(--child-ink)}
.children-book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px}
.child-book{min-width:0}.child-cover{position:relative;display:block;width:100%;aspect-ratio:2/3;overflow:hidden;text-align:left;border-radius:3px 5px 5px 3px;box-shadow:3px 5px 13px #32473519;border:1px solid #71856530;background:var(--child-cover);transition:transform .2s,box-shadow .2s}
.child-cover:hover{transform:translateY(-4px);box-shadow:4px 9px 18px #32473529}.child-cover:after{content:'';position:absolute;inset:0;box-shadow:inset 6px 0 7px #3446341d;pointer-events:none}.child-cover img{width:100%;height:100%;object-fit:cover;display:block}.child-cover-copy{position:absolute;inset:0 0 auto;display:flex;flex-direction:column;align-items:center;padding:17px 7px 45px;background:linear-gradient(#fffbeded,#fffbedc4 58%,#fffbed00);color:#344c42;text-align:center}.child-cover-copy small{font-size:9px;letter-spacing:2px}.child-cover-copy strong{font-family:'Songti SC','Noto Serif SC',STSong,'SimSun',serif;font-size:clamp(23px,2.6vw,36px);font-weight:700;letter-spacing:5px;margin:9px 0 5px}.child-cover-copy em{font-size:10px;font-style:normal;letter-spacing:1px}.child-cover-foot{position:absolute;bottom:13px;left:0;right:0;text-align:center;letter-spacing:3px;font-family:Georgia,serif;font-size:8px;color:#3d5846;background:#fff9e3ad;padding:5px 0}
.child-book-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:14px;font-size:10px;color:#718575}.child-book-meta>span{color:#58714f;border-left:2px solid #9caa7b;padding-left:7px}.child-book-meta small{font-size:10px}.child-book h3{font-size:18px;font-family:'Songti SC','Noto Serif SC',STSong,'SimSun',serif;margin:9px 0 7px}.child-book h3 button{text-align:left}.child-book>p{font-size:12px;line-height:1.9;color:#718173;margin:0;min-height:46px}.child-book-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:11px;padding-top:10px;border-top:1px solid var(--child-line)}.child-read-link{display:flex;align-items:center;gap:10px;font-size:12px;color:#44664b;min-height:36px}.child-read-link .icon{width:15px;height:15px}.child-save-book{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--child-line);border-radius:3px;color:#67816a}.child-save-book[aria-pressed=true]{color:#3b6750;background:#e4ecdf}.child-save-book .icon{width:16px;height:16px}.children-empty{grid-column:1/-1;padding:42px 0;text-align:center;color:var(--child-muted);font-size:13px}.children-shelf-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--child-line);margin-top:24px;padding-top:15px;color:#8c998b;font-size:10px}.children-shelf-footer p{margin:0;font-family:'Songti SC','Noto Serif SC',STSong,'SimSun',serif;font-size:12px;color:#6d806b}
dialog.child-reader{width:min(1020px,calc(100vw - 32px));max-height:92vh;max-height:92dvh;padding:0;border:1px solid #d8dfcf;border-radius:6px;background:#fffdf7;color:#34483c;overflow-y:auto;overscroll-behavior:contain}.child-reader::backdrop{background:#172b32a8;backdrop-filter:blur(6px)}.child-reader-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e6d9;padding:10px 18px;background:#fffdf7;font-size:11px;letter-spacing:1px}.child-reader-top>button{width:36px;height:36px;display:grid;place-items:center;border-radius:3px}.child-reader-top .icon{width:19px;height:19px}.child-reader-layout{display:grid;grid-template-columns:38% minmax(0,1fr);align-items:start}.child-reader-art{position:sticky;top:57px;margin:0;background:#e3e7d9}.child-reader-art img{width:100%;height:auto;display:block;object-fit:contain}.child-reader-art figcaption{font-size:10px;text-align:center;letter-spacing:1px;padding:12px;color:#6a7a60;background:#eff1e5}.child-reader-content{min-width:0;padding:20px 28px 18px}.child-reader-bookline{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#809173;margin-bottom:14px}.child-reader-bookline button{min-height:32px;border:1px solid #dbe3cf;border-radius:3px;padding:5px 10px;color:#637c53}.child-chapters{display:flex;gap:7px;padding-bottom:13px;border-bottom:1px solid #e2e7d8;margin-bottom:20px}.child-chapters button{font-size:12px;padding:7px 10px;border-radius:3px;color:#7a8d72;min-height:34px}.child-chapters [aria-current=step]{background:#e4ebdc;color:#425f3b}.child-reader-kicker{font-size:10px;letter-spacing:2px;color:#92a07e}.child-reader #child-reader-title{font-family:'Songti SC','Noto Serif SC',STSong,'SimSun',serif;font-size:25px;line-height:1.6;margin:9px 0 16px;color:#344f3e;outline:0}.child-story-text p{font-family:'Songti SC','Noto Serif SC',STSong,'SimSun',serif;font-size:17px;line-height:2.15;margin:0 0 16px;color:#4d5949}.child-page-question{border-left:2px solid #acb784;background:#f0f3e8;padding:13px 17px;margin-top:18px}.child-page-question>span{font-size:10px;letter-spacing:2px;color:#8a9673}.child-page-question h3{font-size:14px;line-height:1.9;font-weight:500;margin:6px 0}.child-page-question summary,.child-thinking-help summary{font-size:11px;line-height:2;color:#718059;cursor:pointer;padding:4px 0}.child-page-question details p,.child-thinking-help p{font-size:12px;line-height:1.9;color:#64745a;margin:6px 0}.child-reader-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:18px;margin-top:20px;border-top:1px solid #dfe5d6}.child-reader-bottom>span{font-size:10px;color:#98a08e}.child-reader-bottom button{font-size:12px;min-height:36px;padding:8px 12px;border-radius:3px;color:#63765c;display:flex;align-items:center;gap:8px}.child-reader-bottom .icon{width:14px;height:14px}.child-reader .primary{background:#5e775a;color:#fff;box-shadow:none;border:1px solid #5e775a}.child-reader-bottom button:disabled{opacity:.38;cursor:default}.child-source{margin-top:18px;font-size:10px;color:#96a18a;line-height:1.9}.child-source summary{cursor:pointer;padding:4px 0}.child-source p{font-size:11px;margin:6px 0}.child-source a{color:#6e855e}.child-discussion-lead{font-size:12px;line-height:1.9;color:#7f8b74}.child-question-list{display:flex;flex-direction:column;gap:7px;margin:16px 0 10px}.child-question-list>button{text-align:left;display:flex;gap:10px;align-items:center;border:1px solid #e0e6d6;border-radius:4px;min-height:44px;padding:9px 12px;font-size:13px;line-height:1.7;color:#68795f}.child-question-list>button.active{background:#ecf0e3;border-color:#a8ba92;color:#405c38}.child-question-list small{font-family:Georgia,serif;font-size:12px;color:#97a280}.child-question-list .icon{width:14px;height:14px;margin-left:auto;flex-shrink:0}.child-thinking-help{margin:8px 0 16px}#child-reflection-form>label{display:block;font-size:13px;margin:14px 0 8px}#child-reflection-form label small{display:block;font-size:10px;color:#8b967f;font-weight:400;margin-top:4px}#child-reflection{display:block;width:100%;resize:vertical;min-height:100px;border:1px solid #dce4d0;border-radius:4px;background:#fffefb;color:#41533e;padding:12px;font-family:inherit;font-size:14px;line-height:1.8}#child-reflection:focus{outline:2px solid #b7c9a5;outline-offset:2px}.child-reflection-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.child-reflection-actions>span{font-size:10px;line-height:1.7;color:#839373}.child-reflection-actions button{padding:9px 12px;white-space:nowrap;font-size:12px;border-radius:3px;display:flex;align-items:center;gap:7px;min-height:36px}.child-reflection-actions .icon{width:14px;height:14px}.child-life-activity{margin-top:18px;padding:13px;background:#f3efdf;border-radius:3px}.child-life-activity b{font-size:12px;color:#8b7855}.child-life-activity p{font-size:12px;line-height:1.9;color:#8b8066;margin:6px 0 0}
.children-shelf button:focus-visible,.child-reader button:focus-visible,.child-reader summary:focus-visible{outline:2px solid #75945f;outline-offset:3px}
.studio-page.dark .children-shelf{--child-ink:#dce8d4;--child-muted:#a7b6a2;--child-line:#364b46}.dark .children-feature{background:#243d36;border-color:#385047}.dark .children-feature p>span,.dark .children-feature>button,.dark .child-book>p,.dark .child-read-link,.dark .child-book-meta,.dark .children-shelf-footer p{color:#b1c6ac}.dark .children-filters button{color:#a9bea3}.dark .children-filters button.active,.dark .child-save-book[aria-pressed=true]{background:#344d3a;color:#d6e7cc;border-color:#4f6752}.dark .child-book-meta>span{color:#b7caa8}.dark .children-heading h1>span{color:#b8cba9}.dark .children-search{background:#1b2e2b}.dark .children-heading-note>span{color:#a1b98c}
@media(max-width:1100px){.children-book-grid{gap:18px}.children-filters button{padding:7px 9px}.children-tools{align-items:flex-start}.children-search{max-width:150px}.child-cover-copy em{font-size:9px;letter-spacing:0}.child-reader-content{padding:18px 22px}}
@media(max-width:850px){.children-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.child-cover-copy strong{font-size:34px}.child-cover-copy small{font-size:10px}.child-cover-copy em{font-size:11px}.children-heading-note{display:none}.children-tools{flex-wrap:wrap}.children-search{max-width:none;width:100%}.child-book>p{min-height:0}.children-shelf-footer{align-items:flex-start;flex-direction:column}.child-reader-layout{grid-template-columns:32% minmax(0,1fr)}.child-reader-content{padding:17px 20px}.child-story-text p{font-size:16px}.child-reader #child-reader-title{font-size:23px}}
@media(max-width:560px){.studio-page .children-heading h1{font-size:27px}.children-heading h1>span{font-size:10px;padding-left:10px;margin-left:10px}.children-eyebrow{font-size:9px;letter-spacing:1px}.children-heading p{font-size:12px}.children-feature{gap:10px;padding:12px;margin:12px 0 15px;flex-wrap:wrap}.children-feature p{font-size:11px;flex-basis:75%}.children-feature>button{padding:4px 0 2px 36px;font-size:11px}.children-feature-mark{font-size:24px}.children-book-grid{gap:22px 15px}.children-filters{gap:2px}.children-filters button{font-size:11px;padding:7px 9px;min-height:36px}.child-cover-copy{padding-top:13px}.child-cover-copy strong{font-size:25px;letter-spacing:3px;margin:7px 0 4px}.child-cover-copy small{font-size:7px;letter-spacing:1px}.child-cover-copy em{font-size:8px;letter-spacing:0}.child-cover-foot{font-size:7px;letter-spacing:2px;bottom:9px}.child-book-meta{align-items:flex-start;flex-direction:column;gap:5px;margin-top:10px}.child-book-meta small{font-size:9px}.child-book h3{font-size:17px}.child-book>p{font-size:11px;line-height:1.8}.child-read-link{font-size:10px;gap:4px}.child-book-bottom{gap:4px}.child-save-book{width:32px;height:36px;flex-shrink:0}.children-shelf-footer{font-size:9px;line-height:1.8}dialog.child-reader{width:calc(100vw - 16px);max-height:95dvh}.child-reader-layout{grid-template-columns:1fr}.child-reader-art{position:relative;top:auto;display:flex;align-items:center;justify-content:center;background:#e5e8dc;overflow:hidden;height:210px}.child-reader-art img{width:100%;height:100%;object-fit:cover;object-position:center 57%}.child-reader-art figcaption{position:absolute;bottom:0;right:0;padding:4px 9px;background:#f9fbefd9;font-size:8px}.child-reader-content{padding:17px 18px}.child-reader #child-reader-title{font-size:24px}.child-story-text p{font-size:17px;line-height:2.15}.child-chapters{margin-bottom:17px;gap:8px}.child-chapters button{font-size:12px;flex:1;padding:7px 3px;min-height:38px}.child-reader-bookline{font-size:10px}.child-reader-top{padding:7px 12px}.child-question-list>button{font-size:13px}.child-reflection-actions{align-items:flex-start;flex-direction:column}.child-reflection-actions button{align-self:flex-end}.child-reader-bottom button{min-height:40px;font-size:12px}.child-page-question{padding:12px 14px}}
/* Adding a fifth navigation destination must still fit a small phone. */
@media(max-width:560px){.studio-page .hero header #nav{width:100%;max-width:100%;min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.studio-page .hero header #nav button{min-width:0;padding:0 2px;justify-content:center;gap:4px;font-size:11px}.studio-page .hero header #nav .nav-label{font-size:11px;white-space:nowrap}.studio-page .hero header #nav .icon{width:14px;height:14px}.studio-page .hero header #nav .nav-icon{width:14px;flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.child-cover{transition:none}.child-cover:hover{transform:none}}
