:root{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif;color:#20382f;background:#f7f7f1;line-height:1.65;--teal:#155a50;--deep:#103f37;--line:#d5ded2;--gold:#e3c78d}
*{box-sizing:border-box}
body{margin:0}
a{color:var(--teal);text-underline-offset:.2em}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid #aa711a;outline-offset:3px}
[hidden]{display:none!important}
.book-wrap{width:min(1160px,calc(100% - 36px));margin-inline:auto}
.book-skip{position:absolute;inset-inline-start:1rem;top:-5rem;background:#fff;padding:.75rem;z-index:3}
.book-skip:focus{top:1rem}
.book-header{background:#fff;border-bottom:1px solid var(--line)}
.book-header .book-wrap,.book-header nav,.book-brand,.book-footer{display:flex;align-items:center;gap:12px 22px;flex-wrap:wrap}
.book-header .book-wrap{justify-content:space-between;padding-block:12px}
.book-header nav a,.book-brand{text-decoration:none;font-weight:700}
.book-brand{gap:9px;color:var(--deep)}
.books-hero{margin-block:28px 20px;padding:clamp(22px,5vw,58px);border-radius:24px;background:radial-gradient(ellipse at 6% 0%,#327362,transparent 70%),linear-gradient(110deg,#0d3f36,#164f44);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.books-hero h1{font-family:"Noto Naskh Arabic",Georgia,serif;font-size:clamp(31px,5vw,58px);line-height:1.18;margin:0 0 10px}
.books-hero p{font-size:clamp(15px,2vw,18px);color:#e2ede4;margin:0;max-width:590px}
.book-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:1px solid transparent;border-radius:9px;padding:7px 15px;background:var(--teal);color:#fff;text-decoration:none;font-weight:700;text-align:center}
.book-button:hover{background:var(--deep)}
.book-button:disabled{opacity:.65;cursor:default}
.book-light,.book-light:hover{color:#153a2f;background:var(--gold)}
.book-secondary{border-color:var(--line);color:var(--deep);background:white}
.book-secondary:hover{color:var(--deep);background:#e9f0e9}
.book-search,.book-contribution,.book-review{background:#fff;border:1px solid var(--line);border-radius:16px;padding:clamp(14px,3vw,25px)}
.book-search label,.book-form label{display:grid;gap:5px;font-weight:700}
.book-search-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:8px}
.book-search input{flex:1 1 245px}
.book-search input,.book-form input,.book-form select,.book-form textarea{width:100%;min-width:0;padding:9px 11px;border:1px solid #aebeb1;border-radius:8px;color:#20382f;background:#fff}
.book-topics{display:flex;flex-wrap:wrap;gap:7px;margin-block:14px 23px}
.book-topics a{padding:5px 12px;border:1px solid var(--line);border-radius:999px;text-decoration:none;background:white;font-size:.92rem}
.book-topics [aria-current]{background:var(--teal);color:white;border-color:var(--teal)}
.book-section-head{display:flex;align-items:center;gap:10px 17px;justify-content:space-between;flex-wrap:wrap}
.book-section-head h2{margin:0;margin-inline-end:auto}
#book-status:empty{display:none}
.book-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:15px;margin-block:16px;align-items:stretch}
.book-card{min-width:0;display:grid;grid-template-rows:177px 1fr;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.book-art{display:grid;place-items:center;position:relative;background:#e9eee5;overflow:hidden}
.book-art img{position:absolute;width:100%;height:100%;object-fit:contain;background:#e9eee5}
.book-jacket{display:grid;place-content:center;text-align:center;width:111px;height:145px;overflow:hidden;padding:12px;border-inline-start:5px solid #a98c59;border-radius:3px 8px 8px 3px;background:#255b4d;color:#fff1cf;font-family:Georgia,serif;font-weight:700;font-size:13px;overflow-wrap:anywhere;box-shadow:0 6px 15px #193e3855}
.book-card-body{padding:13px;display:flex;flex-direction:column;gap:5px;min-width:0}
.book-card h3,.book-card p{margin:0;overflow-wrap:anywhere}
.book-card h3{line-height:1.45;font-size:1.06rem}
.book-provider{font-size:.78rem;color:#385e51}
.book-author,.book-description{font-size:.9rem;color:#486359}
.book-card-actions,.book-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.book-card-actions{margin-top:auto;padding-top:10px}
.book-card-actions .book-button,.book-save{font-size:.88rem}
.book-save{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--teal);padding:8px 10px;min-height:42px}
.book-save[aria-pressed=true]{background:#e9f0e9;font-weight:700}
.book-contribution{margin-block:29px}
.book-contribution h2,.book-review h2{margin:0}
.book-contribution p{margin:6px 0 15px}
.book-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 17px}
.book-wide{grid-column:1/-1}
.book-form button{justify-self:start}
.book-trap{position:absolute;inline-size:1px!important;block-size:1px;overflow:hidden;clip-path:inset(50%)}
.book-footer{padding-block:18px;border-top:1px solid var(--line)}
.book-review{margin-block:12px}
.book-review form{margin-top:12px}
.book-feedback{padding:10px 14px;background:#e5f1e7;border-radius:9px}
.book-error{background:#f9eae3;color:#782f22}
#book-dialog{border:1px solid var(--line);border-radius:16px;padding:16px;width:min(900px,calc(100% - 22px));max-height:91dvh;color:inherit}
#book-dialog::backdrop{background:#102c26b9}
#book-dialog>form{display:flex;justify-content:flex-end}
#book-dialog h2{margin:5px 0}
.book-reader{width:100%;height:62dvh;min-height:325px;border:1px solid var(--line);margin-top:12px;border-radius:8px}
@media(max-width:590px){.book-wrap{width:calc(100% - 24px)}.books-hero{margin-top:17px;border-radius:16px}.book-form{grid-template-columns:1fr}.book-search-row .book-button{width:100%}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.book-card{grid-template-rows:137px 1fr}.book-card-body{padding:9px}.book-card-actions>*{width:100%}.book-jacket{width:87px;height:112px}.book-card h3{font-size:.94rem}.book-header nav{gap:12px;font-size:.9rem}}
