html,body{min-height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1 0 auto;width:100%}
body>.community-ad,body>.site-header,body>.site-footer{flex:0 0 auto}

/* Article detail follows the reference site's wide reading canvas: a flexible
   content column and a quarter-width information rail, without a desktop cap. */
.route-article{background:#fff}
.route-article .v2-detail-layout{width:100%;max-width:none;margin-top:0;margin-bottom:0;border:0;grid-template-columns:minmax(0,3fr) minmax(320px,1fr)}
.route-article .v2-detail-main{border-right:1px solid #e8ebf0}
.route-article .v2-detail-article{padding:32px clamp(34px,3vw,62px) 28px}
.route-article .v2-detail-article h1{max-width:1260px;font-size:36px;line-height:1.42;margin:24px 0 27px}
.route-article .v2-detail-meta{padding-bottom:25px}
.route-article .v2-detail-summary{margin:22px 0 38px;padding:20px 26px;background:#f7f8fa}
.route-article .v2-rich-content{min-height:310px;font-size:17px;line-height:1.92}
.route-article .v2-rich-content>p,.route-article .v2-rich-content>h2,.route-article .v2-rich-content>h3,.route-article .v2-rich-content>blockquote,.route-article .v2-rich-content>pre,.route-article .v2-rich-content>table{max-width:100%}
.route-article .v2-detail-tags{margin-top:52px}
.route-article .v2-author-bar{padding:15px clamp(34px,3vw,62px)}
.route-article .v2-comments{padding:34px clamp(34px,3vw,62px) 55px}
.route-article .v2-detail-side{min-width:0;background:#fff}
.route-article .v2-detail-side .sidebar-card{padding:28px 30px;gap:0}
.route-article .v2-side-category{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}
.route-article .v2-side-category>div{min-width:0}
.route-article .v2-side-category h3{font-size:21px}
.route-article .v2-side-category p{margin:0}
.route-article .v2-side-category .secondary{white-space:nowrap}
.route-article .v2-side-tabs{display:flex;gap:36px;margin:-2px 0 16px;border-bottom:1px solid #e8ebf0}
.route-article .v2-side-tabs strong,.route-article .v2-side-tabs span{display:block;padding:0 0 15px}
.route-article .v2-side-tabs strong{border-bottom:2px solid #1c2738;color:#1c2738}
.route-article .v2-side-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 0}
.route-article .v2-side-item>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-article .v2-side-item small{color:#8c96a4;white-space:nowrap}
.route-article .v2-side-directory{position:sticky;top:0;display:flex;align-items:center;min-height:64px;padding-top:17px!important;padding-bottom:17px!important}
.route-article .v2-side-directory span{margin-left:14px;color:#8b95a4}
.route-article .v2-side-directory b{margin-left:auto;font-size:18px}

/* A full multi-column footer and a flex page shell keep short pages anchored
   to the viewport bottom instead of leaving a white strip below the footer. */
.site-footer{background:#f1f1f1;color:#727984;padding:46px 0 28px;border-top:1px solid #e4e4e4}
.site-footer .shell{width:calc(100% - 80px);max-width:none}
.site-footer .footer-grid{display:grid;grid-template-columns:repeat(5,minmax(125px,1fr)) minmax(250px,1.35fr);gap:34px 48px}
.site-footer .footer-grid section{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}
.site-footer .footer-grid h3{margin:0 0 4px;color:#111827;font-size:15px}
.site-footer .footer-grid a{font-size:14px;color:#747b86}
.site-footer .footer-grid a:hover{color:var(--blue)}
.site-footer .footer-brand{display:grid!important;grid-template-columns:52px minmax(0,1fr);align-content:start}
.site-footer .footer-brand img{width:48px;height:42px}
.site-footer .footer-brand p{margin:0 0 9px;line-height:1.7}
.site-footer .footer-brand strong{color:#384250;font-size:13px;font-weight:600}
.site-footer .footer-bottom{display:block;margin-top:34px;padding-top:24px;border-top:1px solid #d9dadd}
.site-footer .footer-bottom nav{display:flex;flex-wrap:wrap;gap:14px 34px;color:#2d3643;font-size:14px}
.site-footer .footer-bottom p{margin:19px 0 6px;color:#777f8b}
.site-footer .footer-bottom small{display:block;border:0;padding:0;margin:0;color:#868d97}
.site-footer-admin{padding-top:28px}
.site-footer-admin .footer-grid{display:none}
.site-footer-admin .footer-bottom{margin-top:0;padding-top:0;border-top:0}

@media(max-width:1200px){
  .site-footer .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .route-article .v2-detail-layout{grid-template-columns:minmax(0,1fr) 330px}
}

@media(max-width:780px){
  .route-article .v2-detail-layout{display:block;width:100%;margin:0}
  .route-article .v2-detail-article{padding:22px 16px}
  .route-article .v2-detail-article h1{font-size:25px;margin:18px 0}
  .route-article .v2-rich-content{min-height:180px;font-size:15px}
  .route-article .v2-author-bar,.route-article .v2-comments{padding-left:16px;padding-right:16px}
  .route-article .v2-detail-side{display:none}
  .site-footer{padding:30px 0 23px}
  .site-footer .shell{width:calc(100% - 32px)}
  .site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px}
  .site-footer .footer-grid section:nth-child(3),.site-footer .footer-grid section:nth-child(5){display:none}
  .site-footer .footer-brand{grid-column:1/-1}
  .site-footer .footer-bottom{margin-top:28px;padding-top:20px}
  .site-footer .footer-bottom nav{gap:9px 18px}
}

@media(max-width:430px){
  .site-footer .footer-grid{grid-template-columns:1fr 1fr}
}
