.library{background:#eae9df;color:#263c2f;padding:5.5rem 1.25rem 3rem;min-height:70vh}.library *{box-sizing:border-box}.library-inner{max-width:1100px;margin:auto}.library-hero{display:flex;justify-content:space-between;align-items:center;gap:3rem;padding-bottom:4rem}.library-kicker{display:block;font-size:.75rem;font-weight:800;color:#9a6d50;letter-spacing:.03em}.library-hero h1{color:#1d392b;font-size:clamp(2.8rem,5vw,4.8rem);letter-spacing:-.055em;line-height:1.42;margin:1rem 0}.library-hero h1 em{font-style:normal;color:#82917d}.library-hero p{max-width:33rem;color:#6c7b6e;line-height:2.1;margin:0}.library-hero-mark{width:180px;height:180px;flex:0 0 180px;border:1px solid #a8b2a3;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#768875;text-align:center}.library-hero-mark span,.library-hero-mark small{font:9px/1.7 Arial,sans-serif;letter-spacing:.16em}.library-hero-mark strong{font:50px Georgia,serif;line-height:1.1;margin:.3rem 0}.library-toolbar{border-top:1px solid #bcc4b6;border-bottom:1px solid #bcc4b6;padding:1.5rem 0}.library-search{background:#f9f8f2;border:1px solid #cdd3c8;display:flex;align-items:center;padding:.5rem;min-height:70px}.library-search>span{font:2.2rem Georgia,serif;margin:0 .9rem;color:#6c8070;transform:rotate(-35deg)}.library-search input{font:inherit;flex:1;min-width:0;border:0;background:transparent;padding:.75rem 1rem;color:#253e2e;outline:0}.library-search:focus-within{outline:2px solid #9d805e;outline-offset:2px}.library-search input::placeholder{color:#8c998c}.library-search button{border:0;background:#244a36;color:#fff;font:inherit;font-weight:800;padding:.85rem 1.25rem;cursor:pointer}.library-search button span{margin-right:1.5rem}.library-search-note{font-size:.78rem;color:#748275;margin:.8rem .2rem 0;min-height:1.5em}.library-shelf-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;padding:4.5rem 0 2rem}.library-shelf-heading h2{font-size:clamp(1.6rem,2.7vw,2.4rem);color:#263e30;margin:.5rem 0 0}.library-sort{font-size:.8rem;color:#697b6c;display:flex;align-items:center;gap:.7rem}.library-sort[hidden]{display:none}.library-sort select{font:inherit;color:#294333;border:1px solid #bdc9ba;background:transparent;padding:.65rem 1rem}.library-grid,.library .ab-books{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3rem 1.5rem}.library-book{text-align:center;min-width:0}.library-book-art{display:flex;align-items:flex-end;justify-content:center;height:245px;padding:0 1rem;position:relative}.library-book-art:after{content:'';position:absolute;bottom:-9px;right:0;left:0;height:10px;background:linear-gradient(#ae9876,#80664b 45%,#5d4836);box-shadow:0 9px 12px #26342726;pointer-events:none}.library-cover{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;text-align:left;direction:ltr;width:150px;max-width:100%;height:220px;padding:1rem;background:#526c59;color:#f7eedb;border-right:4px solid #0002;box-shadow:-7px 7px 13px #26342833,inset 3px 0 4px #fff2;transform-origin:bottom;transition:transform .35s,box-shadow .35s;overflow:hidden}.library-book:nth-child(3n+2) .library-cover{height:233px}.library-book:nth-child(4n) .library-cover{height:208px}.library-book-art:hover .library-cover,.library-book-art:focus-visible .library-cover{transform:translateY(-12px) rotate(2deg);box-shadow:-10px 15px 15px #26342835}.library-cover>span{font:8px Arial,sans-serif;letter-spacing:.12em;border-bottom:1px solid #ffffff77;padding-bottom:.6rem}.library-cover strong{font:700 1.02rem/1.35 Georgia,serif;overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow-wrap:anywhere}.library-cover small{border-top:1px solid #ffffff77;padding-top:.4rem;font-size:1.2rem}.library-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#eae9df;opacity:0;transition:opacity .25s}.library-cover img.is-loaded{opacity:1}.library-tone-1 .library-cover{background:#a16e55}.library-tone-2 .library-cover{background:#435e5e}.library-tone-3 .library-cover{background:#b09970;color:#223d2c}.library-tone-4 .library-cover{background:#765c55}.library-tone-5 .library-cover{background:#788672}.library-book-info{padding:1.6rem .2rem 0}.library-book-info h3{font-size:.95rem;line-height:1.65;margin:0 0 .25rem;overflow-wrap:anywhere}.library-book-info h3 a{color:#263d30}.library-book-info p{font-size:.8rem;color:#738174;margin:0 0 .3rem;overflow-wrap:anywhere}.library-book-info small{font-size:.73rem;color:#899489}.library-pagination,.library .ab-pagination{display:flex;justify-content:center;align-items:center;gap:1.5rem;margin:4rem 0 0;color:#68796b;font-size:.85rem}.library-pagination button{font:inherit;color:#284c35;background:transparent;border:1px solid #afbdad;padding:.7rem 1.1rem;cursor:pointer}.library-pagination button:disabled{opacity:.4;cursor:default}.library-empty{padding:3rem 0;border-top:1px solid #c5cec2;color:#68796b}.library-bottom{display:flex;justify-content:space-between;gap:1rem;margin-top:4rem;border-top:1px solid #bac4b7;padding-top:1.5rem;color:#849183;font-size:.75rem}.library-bottom span:last-child{direction:ltr;font:9px Arial,sans-serif;letter-spacing:.12em}.library a:focus-visible,.library button:focus-visible,.library select:focus-visible{outline:3px solid #b38a5f;outline-offset:3px}
.library-modal[hidden]{display:none}.library-modal-open{overflow:hidden}.library-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:#142019bc;padding:1.25rem}.library-modal-card{position:relative;display:grid;grid-template-columns:40% 60%;width:min(850px,100%);max-height:calc(100vh - 2.5rem);overflow:auto;background:#f6f4ec;box-shadow:0 25px 70px #1117;animation:library-appear .3s ease both}.library-modal-art{display:flex;align-items:center;justify-content:center;background:#b9c2b0;min-height:430px;padding:3rem}.library-modal-art .library-cover{width:190px;height:270px;box-shadow:-12px 16px 25px #27372844}.library-modal-copy{padding:4.5rem 3rem 3rem}.library-modal-copy h2{font-size:clamp(1.6rem,3vw,2.6rem);color:#243d2e;line-height:1.5;margin:1rem 0}.library-modal-copy p{color:#69786c;line-height:2;white-space:pre-line}.library-modal-author{font-weight:bold}.library-modal-pages{border-top:1px solid #d0d7cb;padding-top:1rem;font-size:.85rem}.library-modal-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:2rem}.library-modal-actions a{font-size:.85rem;font-weight:bold;color:#34553d}.library-modal-actions .library-modal-order{background:#294d37;color:white;padding:.9rem 1.2rem}.library-modal-close{position:absolute;left:1rem;top:1rem;z-index:1;border:0;background:transparent;font-size:2rem;line-height:1;color:#43584a;padding:.5rem;cursor:pointer}@keyframes library-appear{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:800px){.library-grid,.library .ab-books{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.library{padding:3.5rem 1.25rem 2.5rem}.library-hero{padding-bottom:2.5rem}.library-hero h1{font-size:2.7rem}.library-hero-mark{display:none}.library-search>span{margin:0 .5rem}.library-search input{font-size:.85rem}.library-search button{font-size:.8rem;padding:.8rem}.library-search button span{margin-right:.4rem}.library-shelf-heading{padding:3rem 0 1.5rem;align-items:flex-start;flex-direction:column}.library-grid{display:block}.library-book{display:flex;text-align:right;align-items:center;gap:1.4rem;padding:1.35rem 0;border-top:1px solid #c6cec1}.library-book-art{flex:0 0 112px;height:158px;padding:0 4px}.library-book-art:after{height:7px;bottom:-6px}.library-book .library-cover,.library-book:nth-child(3n+2) .library-cover,.library-book:nth-child(4n) .library-cover{width:102px;height:150px;padding:.65rem .55rem}.library-book .library-cover strong{font-size:.75rem;-webkit-line-clamp:4}.library-book .library-cover>span{font-size:6px}.library-book-info{padding:0;min-width:0}.library .ab-books{grid-template-columns:1fr}.library-pagination{gap:.8rem}.library-pagination button{padding:.6rem}.library-bottom{margin-top:2.5rem}.library-modal-card{display:block}.library-modal-art{min-height:210px;padding:1.5rem}.library-modal-art .library-cover{height:180px;width:125px}.library-modal-copy{padding:2rem 1.5rem}.library-modal-copy h2{font-size:1.5rem}.library-modal-copy p{margin:.6rem 0}.library-modal-actions{margin-top:1rem}}@media(prefers-reduced-motion:reduce){.library-cover{transition:none}.library-modal-card{animation:none}}

.library-category{display:flex;align-items:center;gap:.55rem;order:-1;white-space:nowrap;color:#526758;font-size:.8rem;font-weight:700;margin:0 .65rem 0 1rem}.library-category select{max-width:14rem;min-height:2.8rem;font:inherit;color:#294333;background:#f9f8f2;border:1px solid #c4cec1;padding:.55rem .65rem;cursor:pointer}.library-category select:focus-visible{outline:3px solid #b38a5f;outline-offset:3px}@media(max-width:700px){.library-search{flex-wrap:wrap}.library-category{order:3;flex-basis:100%;margin:.6rem 0 0;padding:.6rem .5rem 0;border-top:1px solid #d9ded5}.library-category select{max-width:none;flex:1}}

.library-pagination a{font:inherit;color:#284c35;background:transparent;border:1px solid #afbdad;padding:.7rem 1.1rem;text-decoration:none}.library-pagination a:hover{background:#f6f4ec}
.library-cover.has-cover{padding:0;border:0;background:transparent}
.ab-preview-cover{display:block;max-width:140px;max-height:190px;width:auto;height:auto;margin:0 auto 1rem;object-fit:contain}
.library-category select,.library-sort select {
  appearance: none;
  direction: rtl;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526758' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 2.75rem;
}
.library-book-info small{display:inline-block;margin-top:.35rem;color:#244a36;font-size:.95rem;font-weight:800}
.library-book{cursor:pointer}
