/* Mobile thread layout: author above content, full-width reading area. */
@media (max-width:700px) {
  body.pg_viewthread.mfcn-thread-page #postlist { min-width:0; overflow:hidden; }
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child,
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child > tbody,
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child > tbody > tr,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr { display:block!important; box-sizing:border-box; width:100%!important; min-width:0!important; }
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child > tbody > tr > td.pls,
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child > tbody > tr > td.plc,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr > td.pls,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr > td.plc { display:block!important; float:none!important; box-sizing:border-box; width:100%!important; min-width:0!important; max-width:100%!important; height:auto!important; overflow:visible!important; }
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child > tbody > tr > td.pls { padding:9px 15px!important; border:0!important; background:var(--mf-soft)!important; text-align:left!important; }
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child .pls .hm { display:flex; flex-wrap:wrap; align-items:center; gap:4px 7px; font-size:11px!important; line-height:1.4; text-align:left; }
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child .pls .xi1 { display:inline!important; font-size:12px!important; }
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child .pls .pipe { display:inline!important; }
  body.pg_viewthread.mfcn-thread-page #postlist > table:first-child > tbody > tr > td.vwthd { padding:15px!important; }
  body.pg_viewthread.mfcn-thread-page #postlist .vwthd h1,
  body.pg_viewthread.mfcn-thread-page #postlist .vwthd #thread_subject { max-width:100%!important; font-size:clamp(18px,5vw,21px)!important; line-height:1.45!important; overflow-wrap:anywhere; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr:first-child > td.pls { padding:12px 15px!important; border-right:0!important; border-bottom:1px solid var(--mf-line)!important; background:var(--mf-soft)!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr:first-child > td.pls .favatar { display:flex!important; align-items:center!important; flex-wrap:wrap; gap:4px 10px; width:100%!important; min-width:0!important; max-width:100%!important; padding:0!important; overflow:visible!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar > div:has(> .avatar) { flex:0 0 48px; width:48px; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar .avatar,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar .avatar .avtm { display:block!important; float:none!important; width:48px!important; height:48px!important; margin:0!important; padding:0!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar .avatar img { display:block!important; box-sizing:border-box; width:48px!important; min-width:48px!important; max-width:48px!important; height:48px!important; object-fit:cover; border:2px solid var(--mf-paper); border-radius:50%; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar > p { width:auto!important; max-width:calc(100% - 58px); height:auto!important; margin:0!important; font-size:11px!important; line-height:1.5; text-align:left!important; overflow-wrap:anywhere; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar > p:not(:first-of-type),
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar > .tns,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar > .pil,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar > .xl,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .favatar > .cp_pls { display:none!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr > td.plc { padding:0 15px!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr > td.plc.plm { padding:8px 15px!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr > td.pls:empty,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr.ad:has(> td.plc:empty) { display:none!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .pi { display:flex; flex-wrap:wrap; align-items:flex-start; gap:4px 8px; padding:10px 0!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .pi > .pti { flex:1 1 180px; min-width:0; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .pi .authi { display:flex; flex-wrap:wrap; align-items:center; gap:3px 6px; min-width:0; line-height:1.55; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .pi #fj { display:none!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .pcb { min-width:0; padding:12px 0 17px!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_fsz,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_fsz > table,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_fsz > table > tbody,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_fsz > table > tbody > tr,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_fsz td.t_f { display:block!important; box-sizing:border-box; width:100%!important; min-width:0!important; max-width:100%!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f { font-size:15px!important; line-height:1.8!important; overflow-wrap:anywhere; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f img,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f video,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f iframe { box-sizing:border-box; max-width:100%!important; height:auto; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .pob { gap:7px; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .pob a { min-height:34px; }
}
@media (max-width:380px) {
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr > td.plc { padding:0 12px!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin > tbody > tr:first-child > td.pls { padding:10px 12px!important; }
}

/* User-authored rich text can contain fixed-width font and image markup. */
@media (max-width:700px) {
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_fsz > table,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f > div,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f ignore_js_op,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .guestviewthumb,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .attach_nopermission { box-sizing:border-box; min-width:0!important; max-width:100%!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f div,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f font,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .t_f strong { white-space:normal!important; overflow-wrap:anywhere!important; word-break:break-word; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .guestviewthumb > div,
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .guestviewthumb img { box-sizing:border-box; max-width:100%!important; height:auto!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .attach_nopermission { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px!important; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .attach_nopermission > div { flex:1 1 180px; min-width:0; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .attach_nopermission h3 { margin:0 0 5px; font-size:13px!important; line-height:1.5; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .attach_nopermission p { margin:0!important; font-size:12px!important; line-height:1.6; }
  body.pg_viewthread.mfcn-thread-page #postlist table.plhin .attach_nopermission .atips_close { margin-left:auto; }
}
