*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;direction:rtl;font-family:Tahoma,Arial,sans-serif;background:#fafaf8;color:#153b3c}a{color:inherit;text-decoration:none}.dv-container{width:min(1200px,calc(100% - 36px));margin-inline:auto}.dv-top{background:#002c37;color:white;border-bottom:2px solid #0d8586}.dv-top-inner{min-height:70px;display:flex;align-items:center;gap:22px}.dv-brand{display:flex;align-items:center;gap:10px;flex-shrink:0}.dv-brand img{object-fit:contain}.dv-brand span{display:flex;flex-direction:column;gap:3px}.dv-brand small{font-size:10px;letter-spacing:.18em}.dv-brand strong{font-size:13px}.dv-nav{display:flex;align-items:center;gap:6px;margin-inline-start:auto}.dv-nav a{padding:10px 13px;border-radius:7px;font-size:13px;white-space:nowrap}.dv-nav a:hover,.dv-nav .current{background:#087f81}.dv-search-icon{font-size:23px;margin-inline-start:8px}.dv-hero{min-height:265px;background:#003c46 url('/ebook/assets/brand/Antique%20Books%20and%20Quill%20by%20Turquoise%20Light.webp') center 52%/cover no-repeat;color:#fff}.dv-hero-content{display:flex;align-items:center;min-height:265px}.dv-hero-copy{width:min(560px,60%);padding:25px 0;text-shadow:0 2px 8px #001b25}.dv-hero h1{font-size:clamp(27px,4vw,44px);margin:0 0 12px;font-weight:800}.dv-hero p{font-size:15px;line-height:1.9;max-width:540px}.dv-pill-row{display:flex;flex-wrap:wrap;gap:13px;font-size:12px;margin-top:18px}.dv-pill-row span{display:flex;gap:7px;align-items:center}.dv-pill-row i{font-size:19px;color:#9ff8eb}.dv-stats,.dv-search-panel{background:#fff;border:1px solid #e0e6e3;border-radius:12px;box-shadow:0 3px 18px #143a3610;margin-top:18px}.dv-stats summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:15px 20px;list-style:none}.dv-stats summary i{color:#008a87}.dv-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:12px;border-top:1px solid #e9eeee}.dv-stat-grid>div{text-align:center;border-inline-end:1px solid #edf0ef;padding:8px}.dv-stat-grid strong{display:block;font-size:22px;color:#006d71}.dv-stat-grid span{font-size:12px}.dv-search-panel{padding:23px;background:#f6f8f7}.dv-search-panel h2{text-align:center;font-size:22px;margin:0 0 18px}.dv-search-panel h2 i{color:#008f8b}.dv-search-form{display:flex;gap:9px}.dv-search-form input,.dv-filter-grid input,.dv-filter-grid select{border:1px solid #bfcfce;border-radius:7px;background:white;padding:11px;font:inherit;min-width:0}.dv-search-form input{flex:1}.dv-search-form button,.dv-filter-grid button{background:#087d7b;border:0;border-radius:7px;padding:10px 24px;color:#fff;font:inherit;cursor:pointer}.dv-advanced{margin-top:13px}.dv-advanced summary{cursor:pointer;color:#096f6e;font-size:13px;font-weight:700}.dv-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.dv-filter-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px}.dv-section{margin:29px 0}.dv-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.dv-section-title h2{font-size:20px;margin:0}.dv-section-title h2 i{color:#007f80}.dv-section-title>a{color:#007d79;font-size:13px}.dv-books-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.dv-book-card,.dv-author-card{min-width:0;border:1px solid #e1e7e4;border-radius:11px;background:#fff;text-align:center;padding:11px;box-shadow:0 2px 9px #053d2f0b}.dv-book-card strong,.dv-author-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;margin-top:8px}.dv-book-card small{color:#617773;font-size:11px;display:block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dv-cover{height:160px;display:flex;align-items:center;justify-content:center}.dv-cover img{max-width:100%;max-height:155px;object-fit:contain;border-radius:4px}.dv-cover-fallback{width:95px;height:140px;background:linear-gradient(135deg,#e6e1d3,#f9f5e9);border:1px solid #d6ccbc;border-radius:5px;display:grid;place-items:center;color:#507770;font-size:36px}.dv-cover-fallback[hidden]{display:none}.dv-authors-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.dv-portrait{width:90px;height:90px;margin:auto;background:#e5efeb;border-radius:50%;display:grid;place-items:center;color:#44877e;font-size:38px;overflow:hidden}.dv-portrait img{height:100%;width:100%;object-fit:cover}.dv-sources-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dv-source{border:1px solid #e5e0d3;border-radius:10px;background:#f4f2e8;min-height:85px;display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;text-align:center}.dv-source i{font-size:30px;color:#28786b}.dv-source strong{font-size:14px}.dv-cats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.dv-cats a{background:linear-gradient(145deg,#174a45,#00626a);color:white;min-height:75px;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:7px;text-align:center;padding:7px;font-size:12px}.dv-cats i{font-size:19px}.dv-home-footer{background:#003440 url('/ebook/assets/brand/Antique%20Books%20and%20Quill%20by%20Turquoise%20Light.webp') center 75%/cover no-repeat;color:#fff;min-height:190px;margin-top:35px;border-top:3px solid #00a09c}.dv-footer-flex{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:45px;text-shadow:0 2px 6px #001b21}.dv-footer-id{display:flex;align-items:center;gap:13px}.dv-footer-id p{font-size:12px}.dv-home-footer nav{display:flex;flex-wrap:wrap;gap:18px}.dv-home-footer nav a{font-size:13px}.dv-home-footer a:hover{text-decoration:underline}@media(max-width:1024px){.dv-nav{gap:0}.dv-nav a{padding:8px;font-size:12px}.dv-books-grid,.dv-authors-grid,.dv-cats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.dv-top-inner{flex-wrap:wrap;padding-block:9px;gap:8px}.dv-nav{order:3;width:100%;overflow-x:auto;scrollbar-width:thin}.dv-nav a{padding:9px}.dv-search-icon{margin-inline-start:auto}.dv-hero,.dv-hero-content{min-height:220px}.dv-hero{background-position:32% center}.dv-hero-copy{width:100%;padding:20px 8px;background:#00343f8c}.dv-hero p{font-size:13px}.dv-pill-row{gap:8px}.dv-stat-grid,.dv-sources-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dv-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dv-books-grid,.dv-authors-grid,.dv-cats{grid-template-columns:repeat(2,minmax(0,1fr))}.dv-search-panel{padding:15px}.dv-search-panel h2{font-size:19px}.dv-cover{height:130px}.dv-cover img{max-height:125px}.dv-footer-flex{flex-direction:column;align-items:flex-start}.dv-home-footer{background-position:35% center}}@media(max-width:360px){.dv-container{width:calc(100% - 22px)}.dv-search-form button{padding:9px 12px}.dv-brand strong{font-size:11px}.dv-pill-row span{font-size:10px}}

/* R563 resilient portraits: replace broken images, not author identity. */
.dv-portrait [hidden]{display:none!important}.dv-portrait-fallback{font-size:38px;color:#44877e}

/* R564: real book categories with useful counts. */
.dv-cats a{flex-direction:column;gap:5px}.dv-cats a small{font-size:11px;color:#d0f1e9}.dv-cats a span{font-weight:700}

/* R582 visual contrast and footer lower zone */
.dv-home-footer{background-image:linear-gradient(to bottom,rgba(0,32,39,.12) 0%,rgba(0,34,41,.35) 38%,#002b34 72%,#002b34 100%),url("/ebook/assets/brand/Antique%20Books%20and%20Quill%20by%20Turquoise%20Light.webp");background-position:center center;background-size:cover;min-height:265px;display:flex;align-items:flex-end}.dv-footer-flex{padding-top:145px;padding-bottom:26px;width:100%;align-items:center}.dv-footer-id,.dv-home-footer nav{background:rgba(0,36,44,.76);padding:10px 14px;border-radius:9px}.dv-footer-id strong,.dv-footer-id p,.dv-home-footer nav a{color:#fff!important;text-shadow:0 1px 4px #00171c}.dv-home-footer nav a{font-weight:700}.dv-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:700px){.dv-home-footer{min-height:310px}.dv-footer-flex{padding-top:155px;padding-bottom:20px}.dv-footer-id,.dv-home-footer nav{max-width:100%}}
.dv-pill-row span{background:rgba(0,28,35,.91);color:#fff;border:1px solid rgba(133,238,225,.65);border-radius:7px;padding:8px 11px;font-weight:700;text-shadow:0 1px 2px #001a20;box-shadow:0 2px 8px rgba(0,0,0,.18)}.dv-pill-row i{color:#baffed}.dv-pill-row{gap:8px}

/* R587 accessible sign-in */
.dv-reader-login{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #65c9c4;border-radius:9px;padding:8px 11px;color:#fff!important;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}.dv-reader-login:hover,.dv-reader-login:focus-visible{background:#126c70;color:#fff!important}.dv-reader-login i{font-size:21px}@media(max-width:580px){.dv-reader-login{padding:8px}.dv-reader-login span{display:none}}

/* R614 — distinct, calm author section while retaining the same card system. */
.dv-authors-section{background:#deeee8;border:1px solid #bdd8ce;border-inline-start:3px solid #69a99a;border-radius:18px;padding:23px 22px 25px;margin-block:35px;box-shadow:0 3px 16px rgba(22,79,67,.035)}
.dv-authors-section .dv-section-title h2{color:#165e59}
.dv-authors-section .dv-section-title>a{font-weight:700}
.dv-authors-section .dv-author-card{background:#fff;border-color:#cfe1da;box-shadow:0 3px 10px rgba(17,82,69,.045);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.dv-authors-section .dv-author-card:hover,.dv-authors-section .dv-author-card:focus-visible{border-color:#80b8a9;box-shadow:0 6px 18px rgba(12,74,60,.10);transform:translateY(-2px)}
.dv-authors-section .dv-portrait{background:#e4f1ec}
@media(max-width:700px){.dv-authors-section{padding:18px 13px 20px;margin-block:27px;border-radius:14px}}
@media(max-width:360px){.dv-authors-section{padding:15px 10px 17px}}
@media(prefers-reduced-motion:reduce){.dv-authors-section .dv-author-card{transition:none!important;transform:none!important}}

/* R615 — unobtrusive advanced search submit (not full grid-cell width). */
.dv-filter-grid{align-items:end}
.dv-filter-grid button[type="submit"]{justify-self:start;align-self:end;width:max-content;max-width:100%;min-width:126px;min-height:43px;padding:9px 16px;border-radius:8px;font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap}
.dv-filter-grid button[type="submit"]:hover,.dv-filter-grid button[type="submit"]:focus-visible{background:#056b6b}
.dv-filter-grid button[type="submit"]:focus-visible{outline:3px solid #46b6a9;outline-offset:2px}
@media(max-width:700px){.dv-filter-grid button[type="submit"]{width:max-content;min-width:126px;max-width:100%}}
@media(max-width:360px){.dv-filter-grid button[type="submit"]{min-width:0;padding:10px 13px}}
