*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-padding-top:115px}body{margin:0;background:#f9f5e8;color:#244f43;font:19px/1.75 -apple-system,BlinkMacSystemFont,Arial,sans-serif}a{color:inherit;text-underline-offset:4px}button,select{font:inherit;color:inherit}button{cursor:pointer}header.workbar{padding:10px 24px;border-bottom:1px solid #c8b79c;display:flex;gap:16px;flex-wrap:wrap;font-size:14px;align-items:center}header.workbar a[aria-current=true]{font-weight:700;text-decoration-thickness:3px}.reader-nav{position:sticky;top:0;z-index:20;background:#fbf8ed;display:flex;align-items:center;gap:20px;padding:13px max(22px,5vw);border-bottom:1px solid #bba78f;min-height:84px}.reader-home{font-weight:700;white-space:nowrap;padding:9px 22px 9px 0;border-right:1px solid #bba78f;text-decoration:none}.reader-current{flex:1;min-width:0}.reader-number{display:block;font-size:12px;letter-spacing:1px}.reader-title{display:block;font-size:19px;line-height:1.3}.reader-picker select{max-width:320px;background:#f5f4e5;border:1px solid #aebf9b;border-radius:6px;padding:5px;font-size:15px}.reader-prev,.reader-next{border:1px solid #b68b73;border-radius:10px;width:46px;height:46px;text-align:center;text-decoration:none;font-size:27px;line-height:42px}main{max-width:1120px;margin:auto;padding:30px 28px 80px}.modern-contents h1{font-size:clamp(44px,6vw,78px);line-height:1.1;margin:20px 0}.contents-intro{max-width:780px}.contents-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;margin:32px 0}.contents-link{display:grid;grid-template-columns:38px 1fr 22px;gap:8px;align-items:center;min-height:82px;padding:13px 10px;border-bottom:1px solid #c9b99b;text-decoration:none}.contents-link span{font-size:14px;color:#94632e}.contents-link strong{font-size:20px;line-height:1.35}.contents-link:hover,.contents-link:focus-visible{background:#eee9d5}.chapter{padding-top:12px}.chapter>.number{font-size:14px;letter-spacing:1px}.chapter>h2{font-size:clamp(32px,4vw,48px);line-height:1.15;margin:15px 0 30px}.bridge{font:italic 22px/1.6 Georgia;color:#506558}.topic{margin:24px 0 38px;display:flow-root}.topic h3{font-size:27px;line-height:1.3;margin:20px 0 16px}.topic h4{font-size:22px}.topic p{margin:13px 0}.topic .question{font-weight:700}.topic-art{float:right;width:115px;height:115px;object-fit:contain;border-radius:12px;margin:12px 0 18px 26px}.root-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.root-grid>.topic{padding:20px;border:1px solid #d5bc8e;border-radius:18px;background:#f7f0dc;margin:0}.root-grid .topic-art{width:85px;height:85px;margin-left:12px}.root-grid h3{margin-top:0;font-size:24px}.endlink{border-top:1px solid #ceb68e;padding-top:22px;margin-top:40px}.cover{text-align:center}.cover h1{font:700 46px/1.1 Arial;margin:20px}.cover .subtitle{font:28px Georgia}.cover img{display:block;max-height:68vh;max-width:100%;margin:24px auto}.cover .motto{font:25px/1.5 Georgia}.cover a.start{display:inline-block;background:#244f43;color:#fff9e8;padding:12px 28px;border-radius:7px;margin:20px}.story-frame{display:block;width:100%;height:520px;border:0;margin:25px 0;background:#faf4e8}.tree-panel{margin:36px 0;padding:24px;border-top:1px solid #bba78f}.tree-panel iframe{display:block;width:100%;height:420px;max-width:600px;margin:24px auto;border:0}.tree-controls{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.tree-controls button{border:1px solid #bba78f;padding:9px 16px;background:#fff9e8;border-radius:8px}.clean-tree{border:0;padding:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;background:#153e37;overflow:hidden}.clean-tree::backdrop{background:#153e37}.clean-tree iframe{width:100%;height:100%;border:0;display:block;pointer-events:none}.scores{display:flex;gap:9px;margin:10px 0 24px}.scores button{width:44px;height:44px;border:1px solid #a88d60;border-radius:7px;background:#fffaf0}.scores button[aria-pressed=true]{background:#244f43;color:white}.quiz-result{padding:20px;border:1px solid #b99f70;background:#f2ecd9;border-radius:12px}.quiz-result p{margin:8px 0}.band-active{background:#e2ead3;border-left:4px solid #244f43;padding:12px}.preview-panel{color:#244f43!important;background:#f7f0dc!important}.preview-panel :is(h2,h3,p,label){color:#244f43!important}.preview-panel input,.preview-panel select,.preview-panel textarea{max-width:100%}.age-only[data-age]{display:block}.figure-tree{max-width:600px;max-height:650px;display:block;margin:25px auto}.langnav{margin-left:auto;display:flex;gap:14px;flex-wrap:wrap;font-size:14px}.private-note{font-size:14px;color:#6b6b57}@media(max-width:700px){body{font-size:17px}.reader-nav{padding:10px 14px;gap:10px;flex-wrap:wrap}.reader-current{min-width:55%}.reader-title{font-size:16px}.reader-picker{flex:1 1 calc(100% - 112px)}.reader-picker select{width:100%;max-width:none}.reader-home{padding-right:10px}main{padding:22px 18px 60px}.contents-grid{grid-template-columns:1fr;gap:0}.contents-link{min-height:70px}.contents-link strong{font-size:18px}.root-grid{grid-template-columns:1fr}.topic h3{font-size:24px}.topic-art{width:90px;height:90px;margin-left:15px}.story-frame{height:390px}.cover h1{font-size:38px}.langnav{margin-left:0}.figure-tree{max-width:100%}}
.story-shortcuts{margin:28px 0;padding:22px;border:1px solid #c8b598;border-radius:14px;background:#f8f0dc}.story-shortcuts h2{margin:0 0 16px;font-size:26px}.story-shortcuts nav{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.story-shortcuts nav a{display:flex;flex-direction:column;gap:8px;padding:17px;border:1px solid #bca989;border-radius:9px;text-decoration:none;background:#fffaf0}.story-shortcuts strong{font-size:21px;line-height:1.35}.story-shortcuts small{font-size:13px}.story-shortcuts span{font-size:15px}.story-shortcuts>a{display:inline-block;margin-top:16px}.chapter{border-top:1px solid #bea782;margin-top:55px;padding-top:30px}@media(max-width:700px){.story-shortcuts nav{grid-template-columns:1fr}}
/* Long translated headings must wrap on narrow mobile screens. */
.chapter h2,.chapter h3,.chapter h4{overflow-wrap:anywhere;hyphens:auto}

/* Keep the existing opening tree, introduction and contents in the reading flow. */
main>.tree-panel{margin:0 0 24px;padding:0;border-top:0}main>.tree-panel iframe{margin:0 auto 24px}main>.cover{margin:30px 0 65px}
