/* Detail middle only. Sidebar height follows the chapter column, not its contents. */
.hd-middle{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:stretch;margin-bottom:20px}
.hd-middle-main{min-width:0}.hd-middle-main>.hd-panel:last-child{margin-bottom:0}
.hd-middle .hd-intro{min-height:0}.hd-middle .hd-heading{flex-wrap:wrap;gap:12px}
.hd-middle .hd-chapter-controls{width:100%;gap:12px;margin-left:0;flex-wrap:wrap}
.hd-middle .hd-search{flex:1;min-width:120px;width:auto}
.hailang-detail .hd-middle .hd-chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}
.hd-side-related{position:relative;min-height:0;padding:0;margin:0;min-width:0}
.hd-side-inner{position:absolute;inset:0;padding:20px 18px;overflow:hidden}
.hd-side-book{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;box-sizing:border-box;height:112px;padding:10px 0;border-bottom:1px solid #edf1f6}
.hd-side-book[hidden]{display:none}.hd-side-cover img{display:block;width:64px;height:90px;object-fit:cover;border-radius:3px}
.hd-side-book h3{font-size:16px;line-height:22px;margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hd-side-book p{font-size:12px;line-height:18px;color:#738197;margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.hd-side-book .hd-side-intro{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px}
@media(max-width:1100px) and (min-width:901px){.hd-middle{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.hailang-detail .hd-middle .hd-chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.hd-middle{display:block}.hd-side-related{margin-top:20px}.hd-side-inner{position:static;padding:18px}.hd-side-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.hailang-detail .hd-middle .hd-chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.hd-side-list{display:block}.hailang-detail .hd-middle .hd-chapter-grid{grid-template-columns:1fr}.hd-middle .hd-chapter-controls{gap:8px}}

.hd-side-book>div{min-width:0;overflow:hidden}.hd-side-book .hd-side-intro{-webkit-line-clamp:1}


.hd-side-inner>.hd-heading{background:#edf4fa;padding:16px 18px;margin:-20px -18px 20px;border-radius:4px 4px 0 0}
@media(max-width:900px){.hd-side-inner>.hd-heading{margin-top:-18px}}

/* Keep the primary book title dominant; secondary titles stay quiet and readable. */
.hailang-detail .hd-latest-title{font-size:16px;font-weight:400;line-height:1.65;color:#536b85}
.hailang-detail .hd-side-book h3{font-size:15px;font-weight:400;line-height:22px;color:#354a63}
.hailang-detail .hd-side-book h3 a{color:inherit}
.hailang-detail .hd-latest-title:hover,.hailang-detail .hd-side-book h3 a:hover{color:#087df0}

/* Softer chapter links for dense directories, including the latest chapters. */
.hailang-detail .hd-middle .hd-chapter-grid a{color:#596f84;font-weight:400}
.hailang-detail .hd-middle .hd-chapter-grid a:hover,.hailang-detail .hd-middle .hd-chapter-grid a:focus-visible{color:#1f5887;background:#f5f8fb}
