/* Topic recommendations: desktop sidebar, inline card on narrow screens. */
.ez-topic-with-related .fixed-size { width:calc(100% - 48px); max-width:1280px; }
.ez-topic-with-related #content.content-full-width { width:100%; margin:0; float:none; }
.ez-topic-with-related #wrapper { overflow:visible; }
.ez-topic-layout { display:grid; grid-template-columns:minmax(0,1fr) 400px; grid-template-areas:"article related" "comments related"; column-gap:44px; align-items:start; }
.ez-topic-main { grid-area:article; min-width:0; }
.ez-topic-comments { grid-area:comments; min-width:0; }
.ez-related { grid-area:related; box-sizing:border-box; min-width:0; padding:20px; margin:0 0 28px; border:1px solid #e6ebf0; border-radius:12px; background:linear-gradient(145deg,#fff,#fbfcfe); box-shadow:0 5px 22px rgba(34,55,77,.055); }
.ez-related-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:17px; border-bottom:1px solid #e9edf2; }
.ez-related-heading h2 { font-size:17px; line-height:1.35; font-weight:500; margin:0; color:#374151; }
.ez-related-all { white-space:nowrap; font-size:13px; color:#6e6bd4; text-decoration:none; }
.ez-related-all span { margin-left:4px; }
.ez-related-list { list-style:none; padding:0; margin:0; }
.ez-related-item { display:grid; grid-template-columns:72px minmax(0,1fr) 10px; align-items:center; column-gap:15px; padding:20px 0; margin:0; border-bottom:1px solid #e9edf2; }
.ez-related-item:last-child { border-bottom:0; padding-bottom:0; }
.ez-related-image { display:block; width:72px; height:78px; overflow:hidden; border-radius:8px; background:#eef1f7; }
.ez-related-image img { display:block; width:100%; height:100%; object-fit:cover; }
.ez-related-placeholder { display:flex; align-items:center; justify-content:center; height:100%; font-weight:bold; font-size:22px; color:#7a83a0; }
.ez-related-info { min-width:0; }
.ez-related-title { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; font-size:16px; line-height:1.45; color:#6863d6; text-decoration:none; overflow-wrap:anywhere; }
.ez-related-meta { display:flex; flex-wrap:wrap; gap:6px 13px; margin-top:12px; color:#8b9bb4; font-size:11px; line-height:1.45; }
.ez-related-meta a { color:inherit; text-decoration:none; }
.ez-related-meta i { margin-right:6px; }
.ez-related-date { white-space:nowrap; }
.ez-related-arrow { font-size:25px; color:#97a6bc; transition:transform .16s ease,color .16s ease; }
.ez-related-title:hover,.ez-related-all:hover,.ez-related-meta a:hover { color:#4d45b8; text-decoration:underline; }
.ez-related-item:hover .ez-related-arrow { color:#6863d6; transform:translateX(2px); }
.ez-related a:focus-visible { outline:2px solid #7770dd; outline-offset:4px; border-radius:2px; }
@media(max-width:1150px) {
 .ez-topic-layout { grid-template-columns:minmax(0,1fr) 330px; column-gap:28px; }
 .ez-related { padding:17px; }
 .ez-related-item { grid-template-columns:60px minmax(0,1fr) 8px; column-gap:12px; }
 .ez-related-image { width:60px; height:68px; }
 .ez-related-title { font-size:15px; }
 .ez-related-heading h2 { font-size:16px; }
 .ez-related-all { font-size:12px; }
}
@media(max-width:960px) {
 .ez-topic-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"article" "related" "comments"; }
 .ez-related { margin-top:8px; }
 .ez-related-item { grid-template-columns:72px minmax(0,1fr) 10px; }
 .ez-related-image { width:72px; height:72px; }
 .ez-related-title { font-size:16px; }
}
@media(max-width:600px) {
 .ez-topic-with-related .fixed-size { width:calc(100% - 20px); }
 .ez-related { padding:16px; }
 .ez-related-item { padding:16px 0; }
 .ez-related-meta { gap:5px 10px; margin-top:9px; }
}
@media(prefers-reduced-motion:reduce) { .ez-related-arrow { transition:none; } }
@media print { .ez-related { display:none; } .ez-topic-layout { display:block; } }
