/* R1187: homepage-only readability, classification hierarchy, and RTL authors rail. */
.dv-home-r1187 .dv-book-card{
  display:flex;flex-direction:column;align-items:stretch;
  min-width:0;overflow:hidden;text-align:center;
}
.dv-home-r1187 .dv-book-card>.dv-cover{width:100%;flex:none}
.dv-home-r1187 .dv-book-card>strong{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;
  overflow:hidden;text-overflow:ellipsis;white-space:normal;
  overflow-wrap:break-word;word-break:normal;
  line-height:1.62;min-height:6.48em;max-height:6.48em;
  font-size:13px;font-weight:800;text-align:center;
  color:#113c40;margin-top:10px;
}
.dv-home-r1187 .dv-book-card>small{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;white-space:normal;overflow-wrap:break-word;word-break:normal;
  line-height:1.5;min-height:3em;max-height:3em;
  margin-top:auto;padding-top:7px;
  color:#59746e;text-align:center;
}
.dv-home-r1187 .dv-book-card:focus-visible,
.dv-home-r1187 .dv-cat-card:focus-visible,
.dv-home-r1187 .dv-author-card:focus-visible{
  outline:3px solid #cc9b4d;outline-offset:3px;
}
.dv-home-r1187 .dv-cats{
  grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
}
.dv-home-r1187 .dv-cats a.dv-cat-card{
  min-width:0;min-height:96px;padding:13px;
  display:flex;flex-direction:row;align-items:center;
  justify-content:flex-start;gap:11px;text-align:start;
  background:linear-gradient(135deg,#114a4b,#075b5e);
  border:1px solid #277879;
}
.dv-home-r1187 .dv-cat-symbol{
  flex:0 0 43px;width:43px;height:43px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  border-radius:12px;color:#e5d2a4;
}
.dv-home-r1187 .dv-cat-symbol i{font-size:25px;line-height:1}
.dv-home-r1187 .dv-cat-content{
  min-width:0;flex:1;display:flex;flex-direction:column;
  align-items:flex-start;justify-content:center;gap:6px;
  text-align:start;
}
.dv-home-r1187 .dv-cat-content strong{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  overflow:hidden;white-space:normal;line-height:1.55;
  font-size:13px;font-weight:800;overflow-wrap:break-word;word-break:normal;
  text-align:start;
}
.dv-home-r1187 .dv-cat-content small{
  display:block;flex:none;font-size:11px;line-height:1.4;
  font-weight:500;color:#c9e4dc;
}
.dv-home-r1187 .dv-authors-grid{
  grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;
}
.dv-home-r1187 .dv-authors-grid>.dv-author-card:nth-child(n+7){display:none}
.dv-home-r1187 .dv-author-card{
  display:flex;flex-direction:column;align-items:center;
  justify-content:flex-start;min-width:0;
  padding:14px 8px 12px;
}
.dv-home-r1187 .dv-author-card .dv-portrait{
  width:96px;height:96px;flex:0 0 96px;
}
.dv-home-r1187 .dv-author-card>strong{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;white-space:normal;word-break:normal;overflow-wrap:break-word;
  line-height:1.55;min-height:3.1em;max-height:3.1em;
  text-align:center;margin-top:10px;font-size:13px;
}
.dv-home-r1187 .dv-author-swipe-hint{display:none}
@media(max-width:1000px){
  .dv-home-r1187 .dv-authors-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .dv-home-r1187 .dv-authors-grid>.dv-author-card:nth-child(n+5){display:none}
}
@media(max-width:980px){
  .dv-home-r1187 .dv-cats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
  .dv-home-r1187 .dv-books-grid{gap:10px}
  .dv-home-r1187 .dv-book-card{padding:9px}
  .dv-home-r1187 .dv-book-card>strong{font-size:12.5px;line-height:1.58;min-height:6.32em;max-height:6.32em}
  .dv-home-r1187 .dv-cats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .dv-home-r1187 .dv-cats a.dv-cat-card{min-height:108px;padding:10px;gap:8px}
  .dv-home-r1187 .dv-cat-symbol{width:34px;height:34px;flex-basis:34px;border-radius:9px}
  .dv-home-r1187 .dv-cat-symbol i{font-size:21px}
  .dv-home-r1187 .dv-cat-content strong{font-size:12px;-webkit-line-clamp:4;line-height:1.48}
  .dv-home-r1187 .dv-cat-content small{font-size:10.5px}
  .dv-home-r1187 .dv-authors-section{overflow:hidden}
  .dv-home-r1187 .dv-authors-grid{
    display:flex;flex-wrap:nowrap;gap:12px;min-width:0;
    overflow-x:auto;overflow-y:hidden;direction:rtl;
    scroll-snap-type:x mandatory;scroll-padding-inline:3px;
    overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
    scrollbar-width:thin;padding:3px 2px 13px;
  }
  .dv-home-r1187 .dv-authors-grid>.dv-author-card:nth-child(n){display:flex}
  .dv-home-r1187 .dv-authors-grid>.dv-author-card{
    flex:0 0 clamp(143px,43vw,171px);scroll-snap-align:start;
    scroll-snap-stop:normal;
  }
  .dv-home-r1187 .dv-author-swipe-hint{
    display:flex;align-items:center;justify-content:flex-start;gap:6px;
    margin:0 0 10px;color:#446d64;font-size:11px;
  }
  .dv-home-r1187 .dv-author-swipe-hint i{font-size:17px;color:#16796e}
}
@media(max-width:380px){
  .dv-home-r1187 .dv-cats a.dv-cat-card{
    flex-direction:column;align-items:flex-start;
    justify-content:center;gap:7px;
  }
  .dv-home-r1187 .dv-cat-content{width:100%;gap:4px}
  .dv-home-r1187 .dv-cats a.dv-cat-card{min-height:136px}
}
@media(prefers-reduced-motion:reduce){
  .dv-home-r1187 .dv-authors-grid{scroll-behavior:auto}
}
