/* Livro de papel escuro, costura central e capa em couro verde. */
.journal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.journal-heading h2{font-family:Georgia,serif;font-size:26px;margin:6px 0 0;color:#eee2c4}
.journal-heading .eyebrow{color:#b9a374;font-size:10px}
#notas .journal-book{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;padding:10px 12px 14px;background:#14231b url('assets/papel-carvao.webp') center/500px;background-blend-mode:soft-light;border:1px solid #8e774b;border-radius:5px 10px 10px 5px;box-shadow:0 12px 22px #0007,inset 0 0 0 4px #1b2a20;isolation:isolate}
.journal-book:after{content:'';position:absolute;left:50%;top:10px;bottom:14px;width:28px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#0009 48%,#ab916140 50%,#0008 54%,transparent);pointer-events:none;z-index:1}
#notas .journal-page{min-width:0;min-height:320px;height:clamp(320px,calc(100dvh - 460px),640px);display:flex;flex-direction:column;padding:24px 30px 18px;color:#e4d5b4;background:#302c23 url('assets/papel-carvao.webp') center/420px;background-blend-mode:screen;border-top:1px solid #8e7952;border-bottom:3px double #8e7952;box-shadow:0 3px 0 #62563d,0 5px 0 #211f18,inset 0 0 30px #0006}
.journal-page:first-child{border-left:1px solid #8e7952;border-radius:3px 0 0 7px;background-image:linear-gradient(90deg,transparent 85%,#0005),url('assets/papel-carvao.webp');background-blend-mode:multiply,screen}
.journal-page:last-child{border-right:1px solid #8e7952;border-radius:0 3px 7px 0;background-image:linear-gradient(90deg,#0005,transparent 15%),url('assets/papel-carvao.webp');background-blend-mode:multiply,screen}
.journal-page-heading{font:italic 13px Georgia,serif;color:#bbab86;border-bottom:1px solid #a089514d;padding-bottom:10px;margin-bottom:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#notas .journal-writing{display:block;flex:1;min-height:0;width:100%;border:0;border-radius:0;margin:0;padding:0 4px;background:transparent;box-shadow:none;resize:none;font:17px/1.9 Georgia,serif;color:#eee0c0;white-space:pre-wrap;overflow:auto;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:#786441 transparent;letter-spacing:.15px}
#notas textarea.journal-writing{background:repeating-linear-gradient(transparent,transparent calc(1.9em - 1px),#ab976519 calc(1.9em - 1px),#ab976519 1.9em)}
#notas .journal-writing:focus-visible{outline:1px solid #cdb27b;outline-offset:5px}
#notas .journal-blank{font-style:italic;color:#ad9c77;text-align:center;padding-top:30px}
.journal-page-number{font:13px Georgia,serif;text-align:center;color:#bdab82;padding-top:14px}
.journal-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:22px}
#journal-position{font:14px Georgia,serif;color:#cbb98c;min-width:120px;text-align:center}
.journal-controls button:disabled{opacity:.35;cursor:default}
.journal-hint{font:13px/1.6 Georgia,serif;text-align:center;color:#bbae8b;margin:12px 0 0}
.journal-print{display:none}
@media(max-width:700px){#notas .journal-book{grid-template-columns:1fr;padding:8px 9px 12px}.journal-book:after{display:none}#notas .journal-page{padding:20px 20px 16px;height:clamp(400px,60vh,640px);border:1px solid #8e7952;border-bottom:3px double #8e7952;border-radius:3px}.journal-heading h2{font-size:22px}.journal-heading{gap:8px}.journal-controls{gap:8px}#journal-add{flex-basis:100%}#notas .journal-writing{font-size:16px}}
@media print{.journal-heading button,.journal-book,.journal-controls,.journal-hint{display:none!important}.journal-print{display:block!important}.journal-print article{break-inside:avoid;border:1px solid #aaa;padding:20px;margin:16px 0;color:#222;background:white}.journal-print article>div{white-space:pre-wrap;overflow-wrap:anywhere;font:12pt/1.6 Georgia,serif}.journal-heading h2{color:#222}}
/* Folhas antigas em bege; a capa e a interface continuam escuras. */
#notas .journal-page{color:#35291c;background-color:#e6d2a8;border-color:#a18550;box-shadow:0 3px 0 #a28b5e,0 5px 0 #4b3b26,inset 0 0 25px #75521d26}
#notas .journal-page:first-child{background-image:linear-gradient(90deg,#d2b786ed,#eddbb4ed 9%,#e8d3aaed 86%,#bda174f5),url('assets/papel-carvao.webp');background-blend-mode:normal}
#notas .journal-page:last-child{background-image:linear-gradient(90deg,#bda174f5,#e8d3aaed 14%,#eddbb4ed 91%,#d2b786ed),url('assets/papel-carvao.webp');background-blend-mode:normal}
#notas .journal-page-heading{color:#705634;border-color:#8b683b55}
#notas .journal-writing{color:#35291c;font-weight:400}
#notas textarea.journal-writing{background:repeating-linear-gradient(transparent,transparent calc(1.9em - 1px),#8b683b26 calc(1.9em - 1px),#8b683b26 1.9em)}
#notas .journal-writing::placeholder{color:#796342;opacity:1}
#notas .journal-blank,#notas .journal-page-number{color:#79603b}
#notas .journal-writing:focus-visible{outline-color:#725426}
@media(max-width:700px){#notas .journal-page:first-child,#notas .journal-page:last-child{background-image:linear-gradient(90deg,#d2b786ed,#eddbb4ed 10%,#e8d3aaed 90%,#d2b786ed),url('assets/papel-carvao.webp')}}
/* Papel uniforme: sem degradês repetidos nem faixa artificial na lombada. */
#notas .journal-book:after{display:none}
#notas .journal-page:first-child,#notas .journal-page:last-child{background-image:linear-gradient(#ead7b2ed,#e4cda3ed),url('assets/papel-carvao.webp');background-size:100% 100%,420px 420px;background-repeat:no-repeat,repeat;box-shadow:0 3px 0 #a28b5e,0 5px 0 #4b3b26,inset 0 0 16px #75521d16}
#notas .journal-page:first-child{border-right:1px solid #a68b5d66}
#notas .journal-writing{overflow:hidden;scrollbar-width:none}
/* Tamanho de livro: folhas em pé com proporção fixa, sem preencher o monitor. */
#notas .journal-book{width:min(100%,1240px);max-width:1240px;margin-inline:auto;box-sizing:border-box;align-items:start}
#notas .journal-page{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:12 / 17;box-sizing:border-box}
@media(max-width:700px){#notas .journal-book{width:min(100%,520px);max-width:520px}#notas .journal-page{height:auto;min-height:0;aspect-ratio:12 / 17}}

/* O diário recebe a área de leitura; não reserva uma faixa para ornamentos. */
.sheet-main:has(#notas:not([hidden])) #tab-content{margin-bottom:12px}
.sheet-main:has(#notas:not([hidden])) .sheet-ornament{display:none}
#notas .journal-heading{margin-bottom:14px}
#notas .journal-controls{margin-top:16px}
#notas .journal-hint{margin-top:8px}

#notas .journal-heading{min-height:36px;margin-bottom:12px}
#notas .journal-heading .eyebrow{display:none}
#notas .journal-heading h2{font-size:24px;margin:0}
