@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');
:root{--blue:#123d81;--ink:#152e4b;--muted:#53657a;--line:#d8e2ec;--paper:#f4f8fc;--yellow:#ffce44}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;font-size:16px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:.65rem 1rem;background:white;color:var(--blue);font-weight:600}button:hover{background:#eaf1fb}button:disabled{opacity:.5;cursor:default}a{color:var(--blue)}:focus-visible{outline:3px solid #dc9600;outline-offset:3px}header{background:white;border-bottom:1px solid var(--line);padding:1.15rem max(5vw,calc((100vw - 1200px)/2));display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{display:flex;gap:.75rem;align-items:center;text-decoration:none;font-weight:700;font-size:.85rem;letter-spacing:.05em;line-height:1.3}.brand small{display:block;font-family:Outfit,sans-serif;font-size:1.3rem;letter-spacing:0;font-weight:500}.brand-mark{background:var(--blue);color:white;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;font-size:1.8rem;font-family:Outfit,sans-serif}nav{display:flex;gap:1.5rem;align-items:center}nav a{font-size:.9rem;text-decoration:none;font-weight:600}.text-button{border:0;background:transparent;padding:.25rem;font-size:.9rem}main{max-width:1200px;margin:auto;padding:2.3rem 2rem}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.6rem;gap:1rem}.eyebrow{font-size:.8rem;letter-spacing:.14em;font-weight:700;color:var(--blue);margin:0 0 .5rem}h1,h2,h3{font-family:Outfit,system-ui,sans-serif;line-height:1.2}h1{font-size:clamp(2rem,4vw,3rem);margin:0}p{margin:.65rem 0}.intro p:not(.eyebrow){color:var(--muted)}.collection{display:flex;flex-direction:column;border-left:4px solid var(--yellow);padding-left:1.2rem}.collection strong{font-family:Outfit,sans-serif;font-size:2.4rem;line-height:1.1}.collection span{font-size:.85rem;color:var(--muted)}.search-panel{background:var(--blue);color:white;border-radius:18px;padding:1.6rem;box-shadow:0 8px 24px #123d8110}.search-label{display:block;font-weight:600;margin-bottom:.5rem}.search-row{display:flex;gap:.8rem}.search-row input{flex:1;min-width:0;padding:.85rem 1rem;border:0;border-radius:9px;background:white;color:var(--ink);font-size:1.05rem}.search-row button{background:#ffffff15;color:white;border-color:#ffffff55}.types{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.types button{background:transparent;border-color:#ffffff55;color:white;border-radius:30px;font-size:.9rem;padding:.4rem .85rem}.types button[aria-pressed=true]{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}.filters{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:1rem}.filters label{font-size:.85rem}.filters select{display:block;width:100%;padding:.65rem;border:1px solid #ffffff60;border-radius:8px;color:white;background:#204c8d;margin-top:.35rem}.filters option{color:var(--ink);background:white}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:2rem 0 .5rem}.results-heading h2{font-size:1.4rem;margin:0}.results-heading p,.notice{color:var(--muted);font-size:.9rem}.notice{margin:0 0 1.4rem;max-width:850px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:1.25rem;display:flex;flex-direction:column;min-height:265px;box-shadow:0 3px 12px #123d8104}.card:hover{border-color:#96b0d4;box-shadow:0 6px 18px #123d810c}.card-top{display:flex;justify-content:space-between;gap:1rem;align-items:center}.badge{padding:.2rem .6rem;border-radius:5px;font-size:.8rem;font-weight:600;background:#eaf1fd;color:var(--blue)}.badge.Book{background:#fff1c8;color:#735208}.badge.Video{background:#ffe9e6;color:#a33b2d}.badge.Encyclopedia{background:#e3f5ee;color:#236b51}.card-topic{font-size:.85rem;color:var(--muted)}.card h3{font-size:1.2rem;margin:.9rem 0 .4rem;overflow-wrap:anywhere}.publisher{font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}.card .description{font-size:.9rem}.card-bottom{margin-top:auto;padding-top:1rem}.meta{font-size:.8rem;color:var(--muted);margin-bottom:.8rem}.card-actions{display:flex;justify-content:space-between;gap:.5rem;align-items:center}.visit{display:inline-block;text-decoration:none;border-radius:8px;background:var(--blue);color:white;padding:.55rem .8rem;font-size:.85rem;font-weight:600}.detail-button{font-size:.85rem;padding:.4rem .6rem}.affiliate{font-size:.75rem;color:var(--muted);margin-top:.4rem}.pagination{display:flex;align-items:center;justify-content:center;gap:1.2rem;margin:1.6rem 0}.pagination span{font-size:.9rem;color:var(--muted)}.contribute{display:flex;justify-content:space-between;gap:2rem;align-items:center;border-top:1px solid var(--line);padding-top:2rem;margin-top:2rem}.contribute h2{font-size:1.4rem;margin:0}.contribute p{max-width:720px;color:var(--muted);font-size:.9rem}.contribute button{white-space:nowrap}footer{max-width:1200px;padding:1rem 2rem 2rem;margin:auto;color:var(--muted);font-size:.8rem}footer p{max-width:900px}dialog{border:0;border-radius:16px;padding:1.5rem;width:min(680px,calc(100vw - 2rem));max-height:90vh;box-shadow:0 24px 80px #0a244555;color:var(--ink)}dialog::backdrop{background:#0a244580}.dialog-header{display:flex;justify-content:space-between;align-items:start;gap:1rem}.dialog-header h2{margin:0 0 1rem;font-size:1.6rem}.dialog-header button{padding:.25rem .6rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}form label{display:block;font-size:.9rem;margin-bottom:.8rem}form input,form select,form textarea{display:block;width:100%;padding:.65rem;border:1px solid #9aaec2;border-radius:7px;margin-top:.25rem;background:white;color:var(--ink)}form textarea{min-height:100px;resize:vertical}.primary{background:var(--blue);color:white}.primary:hover{background:#245797}.form-note{font-size:.85rem;color:var(--muted)}.full{grid-column:1/-1}.error{color:#a21e28}.empty{grid-column:1/-1;padding:2rem;text-align:center;background:white;border:1px dashed var(--line);border-radius:14px}.review{padding:1rem 0;border-top:1px solid var(--line)}.review p{white-space:pre-wrap;overflow-wrap:anywhere}.admin-item{padding:1rem 0;border-top:1px solid var(--line)}.admin-item button{margin:.4rem .4rem 0 0}.admin-item p{overflow-wrap:anywhere}.admin-tools{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}#toast{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);max-width:90vw;background:var(--ink);color:white;padding:.8rem 1.2rem;border-radius:9px;display:none;z-index:5}.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media(max-width:850px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:1fr 1fr}header{padding:1rem 1.5rem}nav{gap:1rem}.collection{display:none}}@media(max-width:560px){header{align-items:start;padding:1rem}.brand small{font-size:1.1rem}nav{flex-direction:column;gap:.3rem;align-items:end}nav a,.text-button{font-size:.8rem}main{padding:1.5rem 1rem}.search-panel{padding:1rem;border-radius:13px}.search-row{flex-direction:column}.search-row button{align-self:start}.cards{grid-template-columns:1fr}.card{min-height:240px}.filters{gap:.7rem}.results-heading{align-items:start}.results-heading h2{font-size:1.25rem}.results-heading p{margin:0;text-align:right}.contribute{flex-direction:column;align-items:start;gap:.8rem}footer{padding:1rem}.form-grid{grid-template-columns:1fr}.types{gap:.4rem}.types button{font-size:.85rem}.intro{margin-bottom:1.2rem}}

/* Detective Booksy library identity */
:root{--blue:#173952;--ink:#19354b;--muted:#626459;--line:#dfd6c5;--paper:#faf7ef;--yellow:#e6b44d}
header{background:#173952;border-bottom:3px solid var(--yellow);color:#fff6e5}header a,header button{color:#fff6e5}.brand-emblem{width:48px;height:54px;object-fit:contain}.brand small{font-family:Georgia,serif;font-weight:700;font-size:1.4rem}h1,h2,h3{font-family:Georgia,'Times New Roman',serif}main{padding-top:1.5rem}.intro{position:relative;min-height:330px;border-radius:15px;background:url('assets/library-room.png') center 50%/cover;display:flex;justify-content:center;padding:35px 190px 70px 80px;overflow:hidden;border:1px solid #b99150;box-shadow:0 7px 20px #47351b15}.library-plaque{position:relative;z-index:1;text-align:center;width:100%;max-width:770px;min-height:230px;background:url('assets/library-sign.png') center/100% 100% no-repeat;display:flex;flex-direction:column;justify-content:center;padding:35px 35px 48px}.library-plaque h1{font-size:clamp(2rem,3.5vw,3rem)}.library-plaque .eyebrow{letter-spacing:.18em;font-size:.85rem;margin-bottom:.5rem}.intro .library-plaque p:not(.eyebrow){color:var(--ink);font-size:1.05rem;margin:.7rem 0 0}.booksy-guide{position:absolute;right:20px;bottom:0;width:190px;height:230px;object-fit:contain;z-index:2}.welcome{display:flex;justify-content:space-between;align-items:center;margin:1.8rem 0 1rem;gap:1rem}.welcome h2{margin:0;font-size:1.65rem}.welcome p{color:var(--muted);margin:.35rem 0}.search-panel{border:2px solid #bb8d39;box-shadow:0 5px 15px #47351b15}.search-label{font-size:1.15rem}.filters{grid-template-columns:1.4fr 1fr 1fr}.filters select{background:#244b63}.card{border-radius:9px;border-top:4px solid #c49c54;box-shadow:0 3px 12px #47351b08}.card:hover{border-color:#b28d4a}.badge{background:#e6f0f1}.visit:hover,.primary:hover{background:#28556c}.types button[aria-pressed=true]{background:#f1cb75;border-color:#f1cb75}button:hover{background:#f5edda}.contribute{border-top:2px solid #c49c54}.collection strong{font-family:Georgia,serif}.brand{letter-spacing:.08em}
@media(max-width:850px){.intro{padding:25px 145px 55px 25px;min-height:280px}.library-plaque{min-height:200px;padding:30px 25px 40px}.booksy-guide{width:150px;height:190px;right:5px}.intro .library-plaque p:not(.eyebrow){font-size:.95rem}.filters{grid-template-columns:1fr 1fr}.filters label:last-child{grid-column:1/-1}}
@media(max-width:560px){.brand small{font-size:1.05rem}.brand-emblem{width:35px;height:42px}.brand{gap:.4rem;font-size:.7rem}.intro{min-height:300px;padding:20px 12px 95px;align-items:flex-start;background-position:center}.library-plaque{min-height:180px;padding:24px 22px 35px}.library-plaque h1{font-size:1.85rem}.library-plaque .eyebrow{font-size:.68rem}.intro .library-plaque p:not(.eyebrow){font-size:.85rem;max-width:230px;margin:.5rem auto 0}.booksy-guide{width:95px;height:115px;right:18px}.welcome{margin-top:1.3rem}.welcome h2{font-size:1.4rem}.welcome p{font-size:.9rem}}
