/* Scope the legacy template adaptation to forum and membership pages only. */
@media (max-width: 760px) {
    body.mmb-responsive { min-width: 0; }
    body.mmb-responsive .wp,
    body.mmb-responsive #wp,
    body.mmb-responsive #ct,
    body.mmb-responsive #toptb,
    body.mmb-responsive #hd,
    body.mmb-responsive #ft { width: auto !important; min-width: 0 !important; max-width: 100%; }
    body.mmb-responsive #wp { margin: 0 10px; }
    body.mmb-responsive #toptb .wp { display: flex; flex-wrap: wrap; padding: 0 8px; }
    body.mmb-responsive #switchwidth { display: none; }
    body.mmb-responsive #hd .wp { padding: 0 10px; }
    body.mmb-responsive .hdc { min-height: 0; padding: 12px 0; }
    body.mmb-responsive .hdc h2 { float: none; padding: 0 0 10px; }
    body.mmb-responsive .hdc h2 img { max-width: 180px; height: auto; }
    body.mmb-responsive #um,
    body.mmb-responsive .fastlg { float: none; width: auto; padding: 0; }
    body.mmb-responsive #um p { white-space: normal; line-height: 2; }
    body.mmb-responsive #um .avt { float: none; display: none; margin: 0; }
    body.mmb-responsive #lsform table { width: 100%; table-layout: fixed; }
    body.mmb-responsive #lsform input[type="text"],
    body.mmb-responsive #lsform input[type="password"] { width: 100%; box-sizing: border-box; }
    body.mmb-responsive #nv { height: auto; min-height: 34px; }
    body.mmb-responsive #nv ul { display: flex; flex-wrap: wrap; padding: 0; }
    body.mmb-responsive #nv li { float: none; flex: 0 0 auto; }
    body.mmb-responsive #nv li a { padding: 0 12px; }
    body.mmb-responsive #qmenu { float: right; margin-right: 0; }
    body.mmb-responsive #scbar { width: auto; }
    body.mmb-responsive #scbar table { width: 100%; table-layout: fixed; }
    body.mmb-responsive #scbar .scbar_icon_td,
    body.mmb-responsive #scbar .scbar_hot_td { display: none; }
    body.mmb-responsive #scbar_txt { width: 100%; min-width: 0; box-sizing: border-box; }
    body.mmb-responsive #scbar .scbar_type_td { width: 45px; }
    body.mmb-responsive #scbar .scbar_btn_td { width: 58px; }
    body.mmb-responsive #pt { height: auto; line-height: 1.8; padding: 8px 0; }
    body.mmb-responsive #pt .z { float: none; display: flex; flex-wrap: wrap; gap: 0 5px; }
    body.mmb-responsive #pt .z a { float: none; height: auto; max-width: 100%; overflow-wrap: anywhere; }
    body.mmb-responsive #pt .z em { float: none; }
    body.mmb-responsive #pt .z .nvhm { flex: 0 0 20px; width: 20px; height: 24px; font-size: 0; white-space: nowrap; overflow: hidden; }
    body.mmb-responsive #pt .z .nvhm::after { content: '\2302'; font-size: 18px; }
    body.mmb-responsive #postlist,
    body.mmb-responsive #postlistreply { width: 100%; min-width: 0; }
    body.mmb-responsive #postlist > table,
    body.mmb-responsive table.plhin,
    body.mmb-responsive table.plhin > tbody,
    body.mmb-responsive table.plhin > tbody > tr,
    body.mmb-responsive #postlist > table > tbody,
    body.mmb-responsive #postlist > table > tbody > tr { display: block; width: 100%; }
    body.mmb-responsive #postlist .pls,
    body.mmb-responsive #postlist .plc,
    body.mmb-responsive #postlistreply .pls,
    body.mmb-responsive #postlistreply .plc { display: block; width: auto !important; min-width: 0; box-sizing: border-box; }
    body.mmb-responsive #postlist .plc,
    body.mmb-responsive #postlistreply .plc { padding: 10px 12px; }
    body.mmb-responsive #postlist td.pls,
    body.mmb-responsive #postlistreply td.pls { border: 0; padding: 0 12px; }
    body.mmb-responsive td.pls > :not(.favatar),
    body.mmb-responsive .favatar > :not(.pi) { display: none; }
    body.mmb-responsive .favatar { position: static !important; width: auto !important; height: auto !important; }
    body.mmb-responsive .favatar .pi { margin: 0; padding: 8px 0; border: 0; height: auto; }
    body.mmb-responsive .plc .pi { height: auto; min-height: 24px; margin: 0 0 10px; overflow-wrap: anywhere; }
    body.mmb-responsive #fj,
    body.mmb-responsive .ad,
    body.mmb-responsive #p_btn .pipe { display: none; }
    body.mmb-responsive #thread_subject { font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
    body.mmb-responsive .ts { white-space: normal; }
    body.mmb-responsive .t_fsz { min-height: 0; }
    body.mmb-responsive .t_fsz > table { width: 100%; table-layout: fixed; }
    body.mmb-responsive .t_f { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
    body.mmb-responsive .t_f img { max-width: 100% !important; height: auto !important; }
    body.mmb-responsive .pcb { margin-right: 0 !important; }
    body.mmb-responsive .pob,
    body.mmb-responsive .pob .pob_l { line-height: 2; height: auto; }
    body.mmb-responsive .pgs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    body.mmb-responsive .pgs:after { display: none; }
    body.mmb-responsive .pgs > * { float: none; margin: 0; }
    body.mmb-responsive .pgs .pg { margin-left: auto; }
    body.mmb-responsive.pg_forumdisplay .bm_h { height: auto; line-height: 2; }
    body.mmb-responsive #threadlist .th { height: auto; }
    body.mmb-responsive #threadlist .th table,
    body.mmb-responsive #threadlist .th tbody,
    body.mmb-responsive #threadlist .th tr,
    body.mmb-responsive #threadlist .th th { display: block; width: auto; height: auto; }
    body.mmb-responsive #threadlist .th td { display: none; }
    body.mmb-responsive #threadlist .tf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
    body.mmb-responsive #threadlist .tf > a,
    body.mmb-responsive #threadlist .tf > span { white-space: nowrap; float: none; }
    body.mmb-responsive #threadlisttableid,
    body.mmb-responsive #threadlisttableid > tbody { display: block; width: 100%; }
    body.mmb-responsive #threadlisttableid > tbody > tr { display: grid; grid-template-columns: minmax(0,1fr) 50px minmax(0,1fr); gap: 3px 8px; padding: 10px 0; border-bottom: 1px solid #ddd; }
    body.mmb-responsive #threadlisttableid th { display: block; grid-column: 1 / -1; width: auto; padding: 0 0 4px; border: 0; font-size: 14px; overflow-wrap: anywhere; }
    body.mmb-responsive #threadlisttableid td { display: block; width: auto; padding: 0; border: 0; min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
    body.mmb-responsive #threadlisttableid .icn,
    body.mmb-responsive #threadlisttableid .emptb { display: none; }
    body.mmb-responsive #threadlisttableid .by cite { white-space: normal; }
    body.mmb-responsive #f_pst table,
    body.mmb-responsive #f_pst tbody,
    body.mmb-responsive #f_pst tr,
    body.mmb-responsive #f_pst .plc { display: block; width: auto; min-width: 0; }
    body.mmb-responsive #f_pst .pls,
    body.mmb-responsive #fastsmiliesdiv { display: none; }
    body.mmb-responsive #f_pst .plc { padding: 12px; }
    body.mmb-responsive #fastposteditor { margin: 0; }
    body.mmb-responsive #fastpostmessage { min-height: 140px; width: 100%; box-sizing: border-box; }
    body.mmb-responsive .tedt { width: 100%; box-sizing: border-box; }
    body.mmb-responsive .webuploader-container { overflow: hidden; }
    body.mmb-responsive .mmb-panel { min-width: 0; max-width: 100%; }
    body.mmb-responsive .mmb-title { min-width: 0; overflow-wrap: anywhere; }
    body.mmb-responsive .mmb-btn { white-space: normal; overflow-wrap: anywhere; }
    body.mmb-responsive .mmbc { min-width: 0; }
    body.mmb-responsive .mmbc-grid > span { min-width: 0; overflow-wrap: anywhere; }
    body.mmb-responsive .mmbc-tabs a { padding: 6px 10px; }
    body.mmb-responsive .mmbc-form input[type="text"] { flex: 0 0 auto; height: 40px; }
    body.mmb-responsive #ft { margin: 16px 10px; padding: 12px 0; }
    body.mmb-responsive #ft .y { float: none; text-align: left; }
    body.mmb-responsive #ft p { overflow-wrap: anywhere; }
}
