.book-feature,.book-reader{--ink:#183e35;--gold:#b59a61;--paper:#faf7ef;color:#263a34;font-family:system-ui,-apple-system,Segoe UI,sans-serif}
.book-feature{display:grid;grid-template-columns:220px 1fr;align-items:center;gap:42px;padding:36px 48px;margin:24px 0;background:var(--paper);border:1px solid #d9cba9;border-radius:16px;overflow:hidden}
.book-feature-cover{display:block;max-width:185px;margin:auto;box-shadow:8px 12px 24px #243c3526;transform:rotate(-3deg);border:1px solid #ded8ca}
.book-feature .book-eyebrow,.book-reader .book-eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:#655737}
.book-feature h2,.book-reader h1{font-family:Georgia,serif;font-weight:400;color:var(--ink);line-height:1.1;margin:12px 0;font-size:clamp(32px,4vw,48px)}
.book-feature p{max-width:620px;line-height:1.7}.book-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:24px}
.book-link,.book-reader button,.book-reader select,.book-reader input{font:inherit;border:1px solid #b8c4bc;border-radius:7px;padding:10px 14px;color:var(--ink);background:#fff;min-height:44px}
.book-link{display:inline-block;text-decoration:none;font-weight:600}.book-link.primary,.book-reader button.primary{background:var(--ink);color:#fff;border-color:var(--ink)}
.book-link:hover,.book-reader button:hover{filter:brightness(.95)}.book-reader button{cursor:pointer}.book-reader button:disabled{opacity:.4;cursor:default}
.book-feature a:focus-visible,.book-reader :focus-visible{outline:3px solid #a5781d;outline-offset:3px}
.book-reader{max-width:1280px;margin:0 auto;padding:28px 24px 48px}.book-reader a{color:var(--ink)}.book-reader .book-back{font-size:14px;display:inline-block;margin-bottom:22px}.book-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.book-heading p{margin:8px 0 26px;color:#56675f}
.book-workspace{border:1px solid #d7dcd5;border-radius:12px;overflow:hidden;background:var(--paper)}.book-toolbar{display:flex;align-items:center;gap:8px;padding:12px;flex-wrap:wrap;background:#fff;border-bottom:1px solid #d7dcd5}.book-toolbar label{font-size:13px;font-weight:600}.book-toolbar select{max-width:200px}.book-toolbar .book-spacer{flex:1}.book-zoom{min-width:48px;text-align:center;font-size:13px}.book-status{font-size:13px;color:#56675f;padding:8px 16px;margin:0;background:#fff;border-bottom:1px solid #e1e5df}
.book-layout{display:flex;min-height:620px}.book-sidebar{width:250px;flex-shrink:0;padding:16px;background:#fff;border-right:1px solid #d7dcd5;max-height:780px;overflow:auto}.book-sidebar[hidden]{display:none}.book-sidebar h2{font:600 17px system-ui;margin:0 0 12px}.book-search-form{display:flex;gap:6px;flex-wrap:wrap}.book-search-form input{width:100%;min-width:0}.book-search-note{font-size:12px;color:#57655e}.book-results button{display:block;width:100%;text-align:left;font-size:13px;margin:8px 0}.book-results span{display:block;color:#52665b;margin-top:5px;font-size:12px}.book-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.book-thumbs button{padding:5px;font-size:11px}.book-thumbs button[aria-current=true]{border:2px solid var(--ink);background:#edf4ee}.book-thumbs img{width:100%;height:125px;object-fit:contain}.book-canvas{flex:1;min-width:0;overflow:auto;padding:24px;background:#e9e7df;max-height:780px}.book-sheets{display:flex;align-items:flex-start;justify-content:center;gap:6px;margin:auto;width:100%;min-height:460px}.book-sheets figure{margin:0;flex:1;min-width:0;max-width:620px}.book-sheets img{display:block;width:100%;height:auto;background:#fff;box-shadow:0 4px 15px #283c3529}.book-sheets figcaption{text-align:center;font-size:12px;margin:10px 0;color:#4b5f53}.book-bottom{justify-content:center;border-top:1px solid #d7dcd5;border-bottom:0}.book-bottom output{min-width:140px;text-align:center;font-size:14px}.book-reader details{margin-top:20px;padding:18px;background:#fff;border:1px solid #d7dcd5;border-radius:8px}.book-reader summary{cursor:pointer;font-weight:600}.book-text{white-space:pre-wrap;font:16px/1.7 Georgia,serif;max-width:850px}.book-related{margin-top:30px;border-top:1px solid #d7dcd5;padding-top:20px}.book-related h2{font:24px Georgia,serif}.book-related a{margin-right:20px;display:inline-block;margin-bottom:12px}.book-workspace:fullscreen{overflow:auto;width:100%;height:100%;border-radius:0}.book-workspace:fullscreen .book-canvas{max-height:calc(100vh - 160px)}.book-reader .book-error{color:#923519;font-weight:600}.book-reader [hidden]{display:none!important}
@media(max-width:760px){.book-feature{grid-template-columns:120px 1fr;gap:22px;padding:24px}.book-feature h2{font-size:30px}.book-feature-cover{width:100%}.book-reader{padding:20px 12px}.book-heading{display:block}.book-heading .book-link{margin-bottom:20px}.book-layout{display:block;min-height:0}.book-sidebar{width:100%;max-height:320px;border-right:0;border-bottom:1px solid #ddd}.book-thumbs{grid-template-columns:repeat(4,1fr)}.book-canvas{padding:12px;max-height:75vh}.book-sheets{min-height:300px}.book-toolbar{gap:6px}.book-toolbar select{max-width:150px}.book-spacer{display:none}.book-mode{display:none}}
@media(max-width:480px){.book-feature{grid-template-columns:1fr;text-align:center}.book-feature-cover{width:140px}.book-feature .book-actions{justify-content:center}.book-thumbs{grid-template-columns:repeat(3,1fr)}}

.book-image-frame{position:relative;width:100%;aspect-ratio:0.77;background:#fff}.book-sheets .book-image-frame img{position:absolute;top:50%;left:50%;max-width:none;transform:translate(-50%,-50%)}
.book-feature-cover{height:auto}
