/* MTB Links — YJC-style board layout. Scoped to the links page only. */
.mtb-links-page{direction:rtl;background:#fff;color:#111;padding:0 0 40px;margin:0;box-sizing:border-box}
.mtb-links-page>.npt-container{width:840px !important;max-width:calc(100vw - 30px) !important;margin:0 auto !important;padding:0 !important;box-sizing:border-box}
.mtb-links-page .mtb-links-title-wrap{height:87px;margin:0;position:relative;border-bottom:1px solid #ddd;box-sizing:border-box}
.mtb-links-page .mtb-links-title{position:absolute;right:0;bottom:0;width:138px;height:50px;margin:0;padding:0 18px 0 10px;line-height:50px;box-sizing:border-box;background:#e60000;color:#fff;text-align:right;font-size:16px;font-weight:700;clip-path:polygon(30% 0,100% 0,100% 100%,0 100%)}
.mtb-links-page .mtb-links-list{width:100%;margin:0;padding:0}
.mtb-links-page .mtb-links-board{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-flow:row;gap:0;width:100%;border-left:1px solid #ddd;border-top:0;box-sizing:border-box}
.mtb-links-page .mtb-links-card{min-width:0;height:448px;margin:0;padding:0;border-right:1px solid #ddd;border-bottom:1px solid #ddd;box-sizing:border-box;overflow:hidden;background:#fff}
.mtb-links-page .mtb-links-card:nth-child(odd){background:#ededed}
.mtb-links-page .mtb-links-card-head{height:36px;line-height:36px;margin:0;padding:0 10px;background:#e60000;color:#fff;text-align:right;font-size:13px;font-weight:700;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mtb-links-page .mtb-links-card-body{position:relative;height:412px;margin:0;padding:10px 18px 8px 14px;box-sizing:border-box;overflow:hidden}
.mtb-links-page .mtb-links-card-body:after{content:"";position:absolute;top:8px;right:4px;width:16px;height:16px;border:1px solid #999;border-radius:50%;background:#fff;box-sizing:border-box}
.mtb-links-page .mtb-links-card-body:before{content:"›";position:absolute;top:3px;right:8px;color:#777;font-size:16px;line-height:16px;z-index:2}
.mtb-links-page .mtb-link-item{display:block;height:24px;line-height:24px;margin:0;padding:0;text-align:right;color:#111;background:transparent;text-decoration:none;font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
.mtb-links-page .mtb-link-item:hover{color:#000;text-decoration:none;background:transparent}
@media(max-width:900px){
 .mtb-links-page>.npt-container{width:100% !important;max-width:100% !important;margin:0 !important;padding:0 12px !important}
 .mtb-links-page .mtb-links-title-wrap{height:70px}
 .mtb-links-page .mtb-links-title{width:118px;height:44px;line-height:44px;padding-right:12px;font-size:15px}
 .mtb-links-page .mtb-links-board{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mtb-links-page .mtb-links-card{height:390px}
 .mtb-links-page .mtb-links-card-body{height:354px}
}
@media(max-width:520px){
 .mtb-links-page>.npt-container{width:100% !important;max-width:100% !important;padding:0 8px !important}
 .mtb-links-page .mtb-links-board{grid-template-columns:1fr}
 .mtb-links-page .mtb-links-card{height:auto;min-height:330px}
 .mtb-links-page .mtb-links-card-body{height:auto;min-height:294px}
}

/* MTB Newsroom full available width */
.mtb-newsroom,.mtb-newsroom-wrap,.mtb-editor,.mtb-newsroom-page{width:100% !important;max-width:none !important;box-sizing:border-box !important;margin-left:0 !important;margin-right:0 !important}
.mtb-newsroom *,.mtb-newsroom-wrap *,.mtb-editor *,.mtb-newsroom-page *{box-sizing:border-box}
@media(max-width:782px){.mtb-newsroom,.mtb-newsroom-wrap,.mtb-editor,.mtb-newsroom-page{width:100% !important;max-width:100% !important}}


/* MTB Newsroom v154 - remove width restriction from right newsroom column */
.mtb-newsroom .mtb-newsroom-sidebar,
.mtb-newsroom-wrap .mtb-newsroom-sidebar,
.mtb-editor .mtb-newsroom-sidebar,
.mtb-newsroom-page .mtb-newsroom-sidebar {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    flex: 0 0 320px !important;
    box-sizing: border-box !important;
}

/* The newsroom shell itself must not constrain the sidebar */
.mtb-newsroom .mtb-newsroom-grid,
.mtb-newsroom-wrap .mtb-newsroom-grid,
.mtb-editor .mtb-newsroom-grid,
.mtb-newsroom-page .mtb-newsroom-grid {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Let the main newsroom column consume all remaining space */
.mtb-newsroom .mtb-newsroom-main,
.mtb-newsroom-wrap .mtb-newsroom-main,
.mtb-editor .mtb-newsroom-main,
.mtb-newsroom-page .mtb-newsroom-main {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

/* On narrow screens, return to a single full-width column */
@media (max-width: 900px) {
    .mtb-newsroom .mtb-newsroom-sidebar,
    .mtb-newsroom-wrap .mtb-newsroom-sidebar,
    .mtb-editor .mtb-newsroom-sidebar,
    .mtb-newsroom-page .mtb-newsroom-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 0 0 100% !important;
    }
}


/* MTB Newsroom v155 - eliminate the empty middle column */
.mtb-newsroom .mtb-newsroom-grid,
.mtb-newsroom-wrap .mtb-newsroom-grid,
.mtb-editor .mtb-newsroom-grid,
.mtb-newsroom-page .mtb-newsroom-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
}

/* Main content must occupy the complete first grid track */
.mtb-newsroom .mtb-newsroom-main,
.mtb-newsroom-wrap .mtb-newsroom-main,
.mtb-editor .mtb-newsroom-main,
.mtb-newsroom-page .mtb-newsroom-main {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Sidebar occupies only the second track */
.mtb-newsroom .mtb-newsroom-sidebar,
.mtb-newsroom-wrap .mtb-newsroom-sidebar,
.mtb-editor .mtb-newsroom-sidebar,
.mtb-newsroom-page .mtb-newsroom-sidebar {
    grid-column: 2 !important;
    width: 320px !important;
    max-width: 320px !important;
    min-width: 320px !important;
    margin: 0 !important;
}

/* If an accidental third grid child exists, don't let it create a visible blank column */
.mtb-newsroom .mtb-newsroom-grid > :not(.mtb-newsroom-main):not(.mtb-newsroom-sidebar),
.mtb-newsroom-wrap .mtb-newsroom-grid > :not(.mtb-newsroom-main):not(.mtb-newsroom-sidebar),
.mtb-editor .mtb-newsroom-grid > :not(.mtb-newsroom-main):not(.mtb-newsroom-sidebar),
.mtb-newsroom-page .mtb-newsroom-grid > :not(.mtb-newsroom-main):not(.mtb-newsroom-sidebar) {
    display: none !important;
}

@media (max-width: 900px) {
    .mtb-newsroom .mtb-newsroom-grid,
    .mtb-newsroom-wrap .mtb-newsroom-grid,
    .mtb-editor .mtb-newsroom-grid,
    .mtb-newsroom-page .mtb-newsroom-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .mtb-newsroom .mtb-newsroom-main,
    .mtb-newsroom .mtb-newsroom-sidebar,
    .mtb-newsroom-wrap .mtb-newsroom-main,
    .mtb-newsroom-wrap .mtb-newsroom-sidebar,
    .mtb-editor .mtb-newsroom-main,
    .mtb-editor .mtb-newsroom-sidebar,
    .mtb-newsroom-page .mtb-newsroom-main,
    .mtb-newsroom-page .mtb-newsroom-sidebar {
        grid-column: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}
