/* A single journal surface; only its paper content scrolls. */
dialog.wood-sheet.adv-sheet.journal-sheet{width:min(1180px,calc(100vw - 24px));height:min(930px,calc(100dvh - 24px));max-height:none;overflow:hidden;box-sizing:border-box;border:5px solid #714426;border-left:12px solid #704329;border-radius:18px;background:linear-gradient(95deg,#e6c28b 0,#fff5d6 3%,#fff5d6 49.8%,#f6e5ba 50%,#fff3d0 52%,#f7e5bc 100%);box-shadow:inset 0 0 0 3px #d5a263,0 12px 45px #25160b80}
.journal-sheet>.sheet-inner{height:100%;box-sizing:border-box;display:flex;flex-direction:column;min-height:0;padding:16px 24px 12px;position:relative;overflow:hidden}
.journal-sheet>.sheet-inner>.eyebrow{font-size:12px;margin:0 50px 4px 0;color:#7b5937;letter-spacing:.1em}
.journal-sheet>.sheet-inner>h2{flex:none;font-size:clamp(25px,3vw,38px);margin:0 48px 8px 0;line-height:1.1}
.journal-sheet>.sheet-inner>.close{position:absolute;right:15px;top:13px;float:none;margin:0}
.agent-notebook{flex:1;min-height:0;display:flex;flex-direction:column;color:#51351f;font-family:var(--body,'Quicksand',sans-serif)}
.notebook-crumbs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex:none;border-bottom:2px solid #c49b66;padding:0 0 9px;font-size:14px}
.notebook-crumbs .adv-button{font:800 14px/1.2 var(--body);min-height:30px;padding:5px 10px}
.notebook-crumbs span{font-weight:800;min-width:0;overflow-wrap:anywhere}
.notebook-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 9px 14px 2px;scrollbar-color:#ae7b42 #f1ddb0;scrollbar-width:thin;outline-offset:-2px}
.notebook-heading{margin-bottom:14px;position:relative}
.notebook-heading:after{content:'✦';position:absolute;right:5px;top:2px;color:#b68a40;font-size:24px}
.notebook-heading h3{font:800 clamp(22px,2.5vw,30px)/1.12 var(--display,'Baloo 2',cursive);color:#643819;margin:0 28px 5px 0}
.journal-sheet .notebook-heading p{font-size:16px;line-height:1.4;margin:0;font-weight:600}
.notebook-main-grid,.notebook-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.notebook-category{display:flex;align-items:center;position:relative;gap:12px;border:2px solid #a47540;border-bottom:5px solid #825431;border-radius:12px;background:linear-gradient(140deg,#fff9e4,#f4dfaa);padding:12px;color:#5d381d;text-align:left;min-width:0;min-height:134px;box-shadow:inset 0 0 0 2px #ffeec8,0 3px 5px #77532420}
.notebook-category img{width:35%;max-width:112px;height:95px;object-fit:contain;flex:none;border-radius:6px}
.notebook-category>span{display:flex;flex-direction:column;gap:8px;min-width:0}
.notebook-category strong{font:800 clamp(18px,1.7vw,23px)/1.12 var(--display);overflow-wrap:anywhere}
.notebook-category small{font:700 14px/1.4 var(--body)}
.notebook-category>b{position:absolute;right:8px;top:6px;color:#5a7c3d;font-size:15px}
.notebook-category:hover{background:#ffefbc;transform:translateY(-1px)}
.notebook-category:focus-visible,.notebook-element:focus-visible,.notebook-entry>summary:focus-visible,.notebook-lesson>summary:focus-visible{outline:3px solid #347c79;outline-offset:2px}
.notebook-section{margin:16px 0 24px;clear:both}
.notebook-section h4{margin:0 0 9px;padding-bottom:5px;border-bottom:1px dashed #b68a54;font:800 22px/1.2 var(--display);color:#6b401e}
.notebook-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.notebook-entry,.notebook-locked{min-width:0;border:1.5px solid #bb955c;border-radius:10px;background:#fff9e8;overflow:hidden;box-shadow:0 2px 3px #79542d12}
.notebook-entry>summary{display:flex;align-items:center;gap:12px;padding:12px;cursor:pointer;list-style:none;min-height:90px}
.notebook-entry>summary::-webkit-details-marker{display:none}
.notebook-entry>summary:after{content:'+';margin-left:auto;font-size:23px;font-weight:800;color:#906136}
.notebook-entry[open]>summary:after{content:'−'}
.notebook-entry>summary>img,.notebook-entry>summary>svg,.notebook-image-pair{width:90px;height:105px;object-fit:contain;flex:none;border-radius:6px}
.notebook-entry>summary>span{display:flex;flex-direction:column;gap:7px;min-width:0}
.notebook-entry strong{font:800 19px/1.15 var(--display)}
.notebook-entry small{font:700 13px/1.35 var(--body);color:#567041}
.notebook-entry-text{padding:0 14px 12px;border-top:1px dashed #d8b884}
.journal-sheet .notebook-entry-text p,.journal-sheet .notebook-locked p{font-size:16px;line-height:1.55;font-weight:600;margin:.6em 0}
.notebook-clothing>summary{position:relative;flex-direction:column;align-items:center;min-height:215px;text-align:center}
.notebook-clothing>summary>svg{width:100%;height:195px}
.notebook-clothing>summary:after{position:absolute;align-self:flex-end}
.notebook-clothing>summary>span{gap:3px}
.notebook-clothing strong{font-size:23px}
.notebook-image-pair{display:flex;gap:3px;align-items:center}
.notebook-image-pair img{min-width:0;width:50%;height:100%;object-fit:contain}
.notebook-image-pair img:only-child{width:100%}
.notebook-locked{padding:13px;background:repeating-linear-gradient(135deg,#fff6dc,#fff6dc 10px,#f9edce 10px,#f9edce 20px)}
.notebook-locked h5{font:800 18px/1.2 var(--display);margin:0}
.journal-sheet .notebook-empty{font:600 16px/1.45 var(--body);padding:10px 12px;border-left:4px solid #bc904d;background:#fff3cc;border-radius:5px;margin:8px 0 15px}
.notebook-locked .notebook-empty{padding:0;border:0;background:none;margin:8px 0 0}
.notebook-footer{flex:none;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;border-top:2px solid #c49b66;padding-top:10px}
.notebook-footer .adv-button{font-size:clamp(14px,1.5vw,18px);min-height:39px}
.notebook-paper-mark{font:700 14px var(--body);color:#a17b48}
.notebook-belief-banner{height:135px;margin:0 0 16px;display:flex;justify-content:center;border-radius:12px;background:#f4dfb1}
.notebook-belief-banner img{height:100%;max-width:100%;object-fit:contain}
.notebook-topic-art{margin:0 auto 14px;display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap}
.notebook-topic-art img{max-width:45%;height:170px;object-fit:contain}
.notebook-topic-art figcaption{font:800 22px var(--display)}
.notebook-colors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.notebook-colors article{padding:10px;border:1.5px solid #ae8047;border-radius:10px;background:#fff9e8;text-align:center}
.notebook-colors i{display:block;height:49px;background:var(--flag-color);border:2px solid #493424;border-radius:6px;margin-bottom:9px}
.notebook-colors h5{font:800 21px var(--display);margin:0}
.journal-sheet .notebook-colors p{font-size:16px;line-height:1.35;font-weight:700}
.notebook-principles{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.notebook-principles li{display:flex;align-items:center;gap:14px;background:#fff9e8;border:1.5px solid #b48c50;padding:12px;border-radius:10px}
.notebook-principle-icon{display:grid;place-items:center;width:47px;height:47px;flex:none;border-radius:50%;border:2px solid #9a7138;color:#6f4a1c;background:#f8df96;font-size:27px}
.notebook-principles h5{font:800 22px/1.2 var(--display);margin:0 0 5px}
.journal-sheet .notebook-principles p{font-size:16px;line-height:1.4;font-weight:600;margin:0}
.notebook-lesson{border:1px solid #c39b60;border-radius:8px;background:#fff9e7;margin:9px 0;overflow:hidden}
.notebook-lesson>summary{font:800 18px/1.3 var(--body);cursor:pointer;padding:12px}
.notebook-lesson-body{padding:0 16px 12px;border-top:1px dashed #d9b97f}
.journal-sheet .notebook-lesson-body p,.journal-sheet .notebook-lesson-body dd,.journal-sheet .notebook-lesson-body li{font-size:16px;line-height:1.55;font-weight:600}
.notebook-lesson-body .museum-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:10px 0}
.notebook-lesson-images{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:14px 0}
.notebook-lesson-images img{max-width:43%;height:155px;object-fit:contain}
.notebook-key-message,.notebook-record-summary{padding:12px;background:#fae8b3;border-radius:8px;border-left:4px solid #b58c39;font-size:16px!important;line-height:1.5}
.journal-sheet .notebook-discovery,.journal-sheet .notebook-instruction{font-size:15px;line-height:1.4;font-weight:700}
.notebook-crest-layout{display:grid;grid-template-columns:minmax(160px,32%) minmax(0,1fr);align-items:start;gap:16px}
.notebook-crest-large{position:sticky;top:0;margin:0;padding:12px;background:#fffbeb;border:1px solid #c49d61;border-radius:12px;text-align:center}
.notebook-crest-large>svg{display:block;width:100%;height:auto}
.notebook-crest-large figcaption{font:700 15px/1.4 var(--body);margin-top:12px}
.notebook-highlight{opacity:0;pointer-events:none}
.notebook-highlight.is-shown{opacity:1}
.notebook-highlight rect{fill:#ffcc001a;stroke:#267c77;stroke-width:6px;stroke-dasharray:13 7}
.notebook-elements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.notebook-element{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px;border:1.5px solid #b68a50;border-radius:10px;background:#fffae9;color:#4e351f;text-align:center}
.notebook-element[aria-pressed=true]{background:#eaf2d8;border-color:#347c79;box-shadow:inset 0 0 0 2px #347c79}
.notebook-crops{height:87px;display:flex;justify-content:center;width:100%;gap:5px}
.notebook-crops svg{max-width:100%;height:100%;min-width:0}
.notebook-element strong{font:800 19px/1.2 var(--display)}
.notebook-element>span:last-child{font:600 15px/1.4 var(--body)}
@media(max-width:780px){.notebook-main-grid,.notebook-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.notebook-category{padding:10px;gap:9px;min-height:118px}.notebook-category img{height:80px}.notebook-colors{grid-template-columns:repeat(2,minmax(0,1fr))}.notebook-crest-layout{grid-template-columns:1fr}.notebook-crest-large{position:static}.notebook-crest-large>svg{height:210px}.journal-sheet>.sheet-inner{padding:13px 15px 10px}}
@media(max-width:480px){dialog.wood-sheet.adv-sheet.journal-sheet{width:calc(100vw - 10px);height:calc(100dvh - 10px);border-width:3px;border-left-width:7px;border-radius:12px}.notebook-category{flex-direction:column;gap:7px;text-align:center;min-height:150px;padding:10px 8px}.notebook-category img{width:80%;height:73px}.notebook-category>span{gap:5px}.notebook-category strong{font-size:18px}.notebook-category small{font-size:13px}.notebook-items{grid-template-columns:1fr}.notebook-elements{gap:8px}.notebook-element{padding:8px}.notebook-element strong{font-size:17px}.notebook-footer{gap:6px}.notebook-footer .adv-button{font-size:13px;padding:7px 9px;min-height:36px}.notebook-crumbs{gap:4px;font-size:12px}.notebook-crumbs .adv-button{font-size:12px;padding:5px 7px}.notebook-heading h3{font-size:23px}.notebook-principles h5{font-size:19px}.notebook-principle-icon{width:36px;height:36px;font-size:23px}.notebook-topic-art img{height:130px;max-width:90%}.notebook-topic-art figcaption{font-size:20px}.notebook-clothing>summary>svg{height:190px}}
@media(max-height:500px){.journal-sheet>.sheet-inner{padding:8px 14px}.journal-sheet>.sheet-inner>.eyebrow{display:none}.journal-sheet>.sheet-inner>h2{font-size:23px;margin-bottom:4px}.journal-sheet>.sheet-inner>.close{width:31px;height:31px;top:6px;right:8px}.notebook-footer{padding-top:5px}.notebook-footer .adv-button{min-height:31px;font-size:13px}.notebook-crumbs{padding-bottom:5px}.notebook-scroll{padding-top:9px}}
