/* The recommendations add a third column without changing the existing page content. */
html body .legacy-wrap.content-layout.recommendation-layout{width:calc(100% - 112px);max-width:1440px;display:grid;grid-template-columns:190px minmax(0,1fr) 282px;gap:28px;align-items:start;margin-inline:auto}
body[data-related-articles] .breadcrumb>.legacy-wrap{width:calc(100% - 112px);max-width:1440px;margin-inline:auto}
.recommendation-layout>.page-sidebar,.recommendation-layout>.page-content,.recommendation-layout>.article-detail{min-width:0}
.recommendation-layout>.related-rail{min-width:0;position:sticky;top:24px;align-self:start}
.related-panel{padding:21px 20px 0;border:1px solid #e9e9e9;border-radius:19px;background:#fff;color:#202020;box-shadow:0 5px 24px #00000002;overflow:hidden;max-height:calc(100dvh - 48px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ddd transparent}
.related-heading-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
html body .related-heading-row h2{display:flex;align-items:center;gap:8px;margin:0;border:0;padding:0;color:#171717;font-size:19px;font-weight:650;line-height:1.5;letter-spacing:-.6px}
.related-dot{width:5px;height:5px;border-radius:50%;background:#1a1a1a}
.related-refresh{display:flex;align-items:center;gap:4px;flex-shrink:0;border:0;background:none;padding:6px 0 6px 6px;color:#858585;font:inherit;font-size:11px;cursor:pointer;border-radius:5px}
.related-refresh svg{width:13px;height:13px;transition:transform .3s}
.related-refresh:hover{color:#111}.related-refresh:hover svg{transform:rotate(45deg)}
.related-refresh:disabled{opacity:.4;cursor:default}
.related-refresh:focus-visible,.related-card:focus-visible,.related-more:focus-visible{outline:2px solid #424242;outline-offset:4px}
.related-intro{margin:5px 0 16px;color:#999;font-size:11px;line-height:1.7}
.related-topic{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:16px}
.related-topic[hidden]{display:none}.related-topic span{padding:4px 8px;border-radius:5px;background:#f5f5f5;color:#666;font-size:10px;line-height:1.4}
.related-list{min-height:310px}.related-card{display:block;color:inherit;text-decoration:none;padding:15px 0;border-top:1px solid #ededed;transition:color .2s}
.related-card:first-child{border-top:0;padding-top:0}.related-card:hover{color:#000}
.related-card-image{display:block;overflow:hidden;background:#f3f4f4;border-radius:10px}
.related-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.related-card:hover img{transform:scale(1.045)}
.related-card:first-child .related-card-image{aspect-ratio:1.85;margin-bottom:12px}
html body .related-card h3{margin:0 0 7px;font-size:13px;line-height:1.7;font-weight:550;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:inherit;letter-spacing:0}
html body .related-card:first-child h3{font-size:15px;line-height:1.65;font-weight:600}
.related-card:not(:first-child){display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:12px;align-items:center}
.related-card:not(:first-child) .related-card-image{grid-column:2;grid-row:1;width:64px;height:64px;border-radius:8px}
.related-card-copy{min-width:0}.related-card:not(:first-child) .related-card-copy{grid-column:1;grid-row:1}
.related-card-meta{display:flex;align-items:center;gap:6px;color:#999;font-size:10px;line-height:1.5}
.related-card-meta i{font-style:normal;color:#c8c8c8}.related-card-reason{max-width:115px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.related-more{display:flex;align-items:center;justify-content:space-between;margin:1px -20px 0;padding:15px 20px;background:#fafafa;border-top:1px solid #ededed;text-decoration:none;color:#666;font-size:11px;transition:background .2s,color .2s}
.related-more:hover{background:#f3f3f3;color:#111}.related-more span{font-size:17px}
.related-skeleton{height:120px;margin-bottom:15px;border-radius:9px;background:linear-gradient(105deg,#f6f6f6 25%,#eee 40%,#f6f6f6 65%);background-size:200% 100%;animation:related-loading 1.4s ease infinite}
@keyframes related-loading{to{background-position:-200% 0}}
.related-empty{padding:20px 0 30px;font-size:12px;color:#888;line-height:1.8}.related-retry{margin-top:10px;border:1px solid #ddd;border-radius:6px;background:#fff;padding:6px 12px;font:inherit;cursor:pointer}
@media(min-width:1600px){html body .legacy-wrap.content-layout.recommendation-layout{grid-template-columns:208px minmax(0,1fr) 294px;gap:32px}}
@media(min-width:1050px) and (max-width:1250px){html body .legacy-wrap.content-layout.recommendation-layout{width:calc(100% - 80px);grid-template-columns:156px minmax(0,1fr) 252px;gap:20px}.related-panel{padding-inline:16px}.related-more{margin-inline:-16px;padding-inline:16px}}
@media(max-width:1049px){html body .legacy-wrap.content-layout.recommendation-layout{width:calc(100% - 48px);grid-template-columns:180px minmax(0,1fr);gap:24px}.recommendation-layout>.related-rail{grid-column:2;position:static}.related-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.related-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:center}.related-card:first-child .related-card-image{margin:0}.related-card:first-child h3{font-size:14px}}
@media(max-width:760px){html body .legacy-wrap.content-layout.recommendation-layout{width:calc(100% - 32px);grid-template-columns:minmax(0,1fr);gap:24px}.recommendation-layout>.related-rail{grid-column:1}.related-list{display:block}.related-card:first-child{display:block}.related-card:first-child .related-card-image{aspect-ratio:2.1;margin-bottom:12px}.related-panel{max-width:580px;margin-inline:auto}}
@media(prefers-reduced-motion:reduce){.related-skeleton{animation:none}.related-card-image img,.related-refresh svg{transition:none}}
@media(max-width:1049px){body[data-related-articles] .breadcrumb>.legacy-wrap{width:calc(100% - 48px)}.related-panel{max-height:none}}
@media(max-width:760px){body[data-related-articles] .breadcrumb>.legacy-wrap{width:calc(100% - 32px)}}
