/* R1016 — clickable canonical author names and calm cover-led related cards. */
.dv-book-author-links{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;min-width:0}
.dv-book-author-links .dv-author-profile-link{display:inline-flex;align-items:center;color:#315a50;font-size:.96rem;font-weight:650;text-decoration:none;border-radius:6px;padding:1px 3px;overflow-wrap:anywhere}
.dv-book-author-links .dv-author-profile-link:hover{text-decoration:underline;text-underline-offset:3px;color:#164b3c}
.dv-book-author-links .dv-author-profile-link:focus-visible,.dv-related-book-card:focus-visible{outline:2px solid #315a50;outline-offset:3px}
/* R1027: Book detail parent is a two-column CSS grid (cover 180px + body).
    Related books are a separate grid CHILD, so force full row; otherwise
    2 tiny columns are squeezed inside the 180px cover column. */
.dv-related-books{grid-column:1 / -1;min-width:0;width:100%;margin-top:18px}
.dv-book-detail > details[aria-label="كتب أخرى من التصنيف نفسه"]{grid-column:1 / -1;min-width:0;width:100%}
.dv-related-books-heading{font-size:.92rem;font-weight:700;color:#27463b;cursor:pointer;line-height:1.7;margin-bottom:10px}
.dv-related-books-heading .text-secondary{font-weight:400;font-size:.8rem}
.dv-related-book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;list-style:none;margin:12px 0 0;padding:0}
.dv-related-book-grid li{min-width:0}
.dv-related-book-card{display:flex;align-items:center;min-width:0;min-height:106px;gap:10px;padding:10px;overflow:hidden;background:#fbfcfb;border:1px solid #e3eae6;border-radius:12px;text-decoration:none!important;color:#27453a!important;transition:border-color .15s,background-color .15s}
.dv-related-book-card:hover{background:#f1f7f3;border-color:#b9d1c3}
.dv-related-book-thumb{width:58px;height:84px;flex:0 0 58px;border-radius:7px;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid #e4e9e4;background:#edf2ed;position:relative}
.dv-related-book-cover{display:block;width:100%;height:100%;object-fit:cover}
.dv-related-book-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#6b8675}
.dv-related-book-fallback i{font-size:1.65rem}
.dv-related-book-fallback[hidden]{display:none!important}
.dv-related-book-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}
.dv-related-book-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;line-height:1.7;font-size:.87rem;font-weight:680;color:#29483d}
.dv-related-book-sub{color:#6a8576;font-size:.75rem}
@media(max-width:1020px){.dv-related-book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.dv-related-book-grid{grid-template-columns:minmax(0,1fr);gap:9px}.dv-related-book-card{min-height:94px;padding:8px}.dv-related-book-thumb{width:51px;height:73px;flex-basis:51px}.dv-related-book-title{font-size:.86rem}}
@media(prefers-reduced-motion:reduce){.dv-related-book-card{transition:none}}


/* R1083: every book author is consistently bold; source-only names use a local profile. */
.dv-book-detail-author,.dv-book-detail-author strong,.dv-book-detail-author a,.dv-book-author-links .dv-author-profile-link{font-weight:700!important}
