/* Scoped shared layout corrections. Legacy skin and media behaviour stay independent. */
body.rd-site .pd-hot-posts{margin:28px 0;padding:20px;background:#19171e;border-radius:12px}
body.rd-site .pd-hot-posts h2{font-size:21px;margin:0 0 14px;color:#f2edf7}
body.rd-site .article-hot-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;padding:0;list-style:none}
body.rd-site #post .article-hot-list a{display:flex;align-items:flex-start;gap:10px;padding:8px 0;color:#ddd;border:0}
body.rd-site .article-hot-list span{flex:none;min-width:24px;text-align:center;border-radius:5px;background:#392b48;color:#f3c4ff;font-size:13px}
body.rd-site .article-hot-list strong{min-width:0;font-size:14px;font-weight:500;overflow-wrap:anywhere}
@media(max-width:600px){body.rd-site .article-hot-list{grid-template-columns:1fr}body.rd-site .pd-hot-posts{padding:16px}}
body.rd-site #footer{width:100%!important;max-width:100%}
body.rd-site .original-header .rd-bar.site-bar{width:calc(100% - 48px)!important;max-width:1440px!important;min-height:84px;gap:24px;box-sizing:border-box;overflow:visible}
body.rd-site .original-header .rd-brand{flex:0 0 auto}
body.rd-site .original-header .rd-brand img{display:block;width:180px!important;height:68px!important;max-height:68px;object-fit:contain}
body.rd-site .original-header .rd-more{flex-shrink:0}
body.rd-site .original-header .rd-more .nav-more-menu{left:auto;right:0;width:340px;max-width:calc(100vw - 32px);max-height:calc(100vh - 116px);max-height:calc(100dvh - 116px);overflow-y:auto;box-sizing:border-box}
body.rd-site .original-header .rd-menu-divider{grid-column:1/-1;height:1px;margin:8px 4px;background:#ffffff1a}
body.rd-site .original-header .nav-more-menu a.nav-svc{font-size:13px!important;color:#a5a4a9!important}
body.rd-site #post .fix_faq-answer[hidden]{display:none!important}
body.rd-site #post .fix_faq-question-text,body.rd-site #post .fix_faq-answer p{min-width:0;overflow-wrap:anywhere;word-break:normal}
body.rd-site #post .fix_faq-toggle{width:100%;text-align:left}
body.rd-site #post .fix_tags-section{border:0!important;box-shadow:none;background:transparent!important;padding-inline:0}
body.rd-site #post .fix_tags-section::before{content:none!important}
body.rd-site #post .fix_tags-section .fix_tags-title{background:none!important;-webkit-text-fill-color:currentColor;color:#c9c8cc!important}
body.rd-site #post .fix_tags{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
body.rd-site #post .fix_tags>a{height:auto!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;overflow:visible!important;text-overflow:clip}
body.rd-site #post .pd-addr,body.rd-site #post .fix_address-section{border:0!important;box-shadow:none}
body.rd-site:has(.fix_flink) #foot-menu{margin-top:24px;padding-top:32px!important}
body.rd-site .svc-text{min-width:0}
body.rd-site .svc-text strong,body.rd-site .svc-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.rd-site .svc-text strong{font-size:15px;color:#eee}
body.rd-site .svc-text small{margin-top:4px;font-size:12px;color:#aaa}
body.rd-site .channel-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}
body.rd-site .channel-prev{grid-column:1;grid-row:1;justify-self:start}
body.rd-site .channel-next{grid-column:3;grid-row:1;justify-self:end}
body.rd-site .channel-jump{grid-column:2;grid-row:1;display:flex;align-items:center;gap:8px;margin:0;min-width:0}
body.rd-site .channel-jump input[type=number]{width:58px;min-width:0;height:36px;padding:4px 6px;border:1px solid #b9b8bd;border-radius:5px;background:transparent;color:#eee;box-sizing:border-box}
body.rd-site .channel-jump button{height:36px;padding:0 12px;border:1px solid #b9b8bd;border-radius:5px;background:transparent;color:#eee;white-space:nowrap;cursor:pointer}
@media(max-width:480px){body.rd-site .channel-pagination{gap:6px;font-size:12px}body.rd-site .channel-pagination>a{padding:8px 6px}body.rd-site .channel-jump{gap:5px}body.rd-site .channel-jump input[type=number]{width:44px}body.rd-site .channel-jump button{padding:0 6px}}
@media(min-width:1024px){
 body.rd-site .original-header .rd-brand{position:static;transform:none}
 body.rd-site .original-header .rd-nav{display:flex;flex:0 1 auto;min-width:0;flex-wrap:wrap;justify-content:flex-start;gap:4px 8px}
 body.rd-site .original-header .rd-nav>a{white-space:nowrap}
 body.rd-site .original-header .rd-search{margin-left:auto}
}
@media(max-width:1023px){
 body.rd-site .original-header .rd-bar.site-bar{width:calc(100% - 24px)!important;min-height:72px;gap:12px}
 body.rd-site .original-header .rd-menu-divider{display:none}
 body.rd-site .original-header .rd-brand img{width:140px!important;height:53px!important;max-height:53px}
 body.rd-site .original-header .rd-more[open] .nav-more-menu{position:fixed;left:16px;right:16px;top:80px;width:auto;max-width:none;max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px)}
}
@media(max-width:767px){
 body.rd-site #index .original-post-copy h2,body.rd-site #archive .original-post-copy h2{font-size:clamp(16px,4.4vw,18px)!important;line-height:1.5!important;max-height:none!important;display:block!important;overflow:visible!important;-webkit-line-clamp:unset}
 body.rd-site .original-post-copy h2 a,body.rd-site .original-post-copy .pt-l1,body.rd-site .original-post-copy .pt-l2{display:inline!important;white-space:normal!important;overflow:visible!important;text-overflow:clip;-webkit-line-clamp:unset;overflow-wrap:anywhere;word-break:break-word}
 body.rd-site #post .pd-title{font-size:clamp(20px,5.5vw,26px)!important;line-height:1.5!important;overflow-wrap:anywhere}
}

body.rd-site .original-post-visual>.post-hot-badge{position:absolute;top:10px;right:10px;z-index:3;pointer-events:none;padding:4px 9px;border-radius:6px;background:#e95d38;color:#fff;font-size:12px;font-weight:700;line-height:1.3;box-shadow:0 2px 8px #0004}
