/* SaintMU Forum Mobile v2 - GuildWarsAlliance tables/images replaced ONLY on small screens.
   PHP 5.2 compatible; no image substitutions or server logic changes. */
.sm2-top{display:none}
@media screen and (max-width:900px){
:root{color-scheme:dark}
html{width:100%;min-width:0;overflow-x:clip;-webkit-text-size-adjust:100%}
body.saint-forum-body{opacity:1!important;transform:none!important;transition:none!important;margin:0!important;padding:0!important;width:100%!important;min-width:0!important;background:#0e1415!important;background-image:none!important;color:#e8dfcd;font-size:14px;font-family:Arial,Verdana,sans-serif}
body.saint-forum-body *,body.saint-forum-body *::before,body.saint-forum-body *::after{box-sizing:border-box}
body.saint-forum-body .center{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;text-align:left!important}
body.saint-forum-body table.content,body.saint-forum-body table.border{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;background:#111819!important;background-image:none!important;border:0!important;border-collapse:separate!important;border-spacing:0!important}
body.saint-forum-body table.content>tbody>tr>td,body.saint-forum-body table.border>tbody>tr>td{width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important}
body.saint-forum-body table.sm2-desktop-banner,body.saint-forum-body table.sm2-desktop-nav{display:none!important}
/* Never scale the 760px art: the real mobile header is plain HTML+CSS. */
.sm2-top{display:block;position:relative;z-index:1005;width:100%;background:#181c1c;border-bottom:2px solid #926837;box-shadow:0 3px 14px #0009}
.sm2-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:69px;padding:10px 12px;background:linear-gradient(115deg,#181c1b,#34251b 65%,#1c1f1d)}
.sm2-logo{display:flex;flex-direction:column;gap:2px;min-width:0;text-decoration:none!important;letter-spacing:.3px;line-height:1.05}
.sm2-logo strong{font-family:Georgia,serif;font-size:26px;color:#f5daab;text-shadow:0 2px 3px #000}
.sm2-logo strong span{color:#e7a64c}
.sm2-logo small{font:700 9px Arial,sans-serif;letter-spacing:2px;color:#bbaa88}
.sm2-actions{display:flex;align-items:center;gap:7px;min-width:0}
#sm2-notices{display:flex;gap:5px;align-items:center;min-width:0}
#sm2-notices .saint-notification-shell,#sm2-notices .saint-mod-root{margin:0!important}
#sm2-notices .saint-bell,#sm2-notices .saint-mod-toggle{min-height:39px;padding:7px 9px;font-size:13px}
#sm2-notices .saint-mod-toggle{font-size:0}
#sm2-notices .saint-mod-toggle::before{content:'⚑';font-size:19px}
#sm2-notices .saint-mod-toggle b{font-size:10px}
#sm2-toggle{display:inline-flex;align-items:center;gap:5px;min-height:41px;min-width:76px;justify-content:center;padding:8px 10px;border:1px solid #986d3e;border-radius:8px;color:#fff0cc;background:#39281b;font:700 13px Arial,sans-serif;cursor:pointer}
#sm2-toggle:focus-visible,.sm2-nav a:focus-visible{outline:2px solid #ecc47d;outline-offset:2px}
.sm2-hamburger{font-size:17px;line-height:1}
.sm2-nav[hidden]{display:none!important}
.sm2-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px 11px 13px;background:#151918;border-top:1px solid #4b3928}
.sm2-nav a{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:42px;overflow-wrap:anywhere;color:#f0d4a8!important;text-decoration:none!important;font-size:13px;font-weight:bold;padding:8px 5px;background:#292a24;border:1px solid #59472f;border-radius:7px}
.sm2-nav a:active{background:#51402b}
.saint-notification-dropdown{position:fixed!important;top:67px!important;left:8px!important;right:8px!important;width:auto!important;max-width:none!important;max-height:75vh!important;overflow:auto}
#saint-mod-panel{position:fixed!important;top:67px!important;left:8px!important;right:8px!important;width:auto!important;max-width:none!important}
/* Old image-based menu and stats area */
body.saint-forum-body td.bg2{height:auto!important;min-height:0!important;background:#25231e!important;background-image:none!important;padding:8px 10px!important;border-bottom:1px solid #665031}
body.saint-forum-body td.bg2>table{max-width:100%!important;width:100%!important}
body.saint-forum-body td.bg2>table td{display:block;width:100%!important;text-align:left!important;padding:2px 0}
body.saint-forum-body #web-button,body.saint-forum-body #shop-button{display:none!important}
body.saint-forum-body .sm2-main{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:10px 10px 4px;margin:0 auto!important;overflow:visible}
.sm2-main>table,.sm2-main>form,.sm2-main>div,.sm2-main>section{max-width:100%!important}
.sm2-main table{max-width:100%;border-spacing:0}
.sm2-main table.forumline{width:100%!important;max-width:100%!important;min-width:0!important;border:1px solid #664d32!important;border-radius:7px;background:#161d1b!important;overflow-wrap:anywhere}
.sm2-main table.forumline th{background:#312a22!important;background-image:none!important;color:#efd0a0!important;height:auto;min-height:31px;padding:9px 7px!important;border:0!important;font-size:12px}
.sm2-main table.forumline td.cat,.sm2-main table.forumline td.catHead,.sm2-main table.forumline td.catSides,.sm2-main table.forumline td.catBottom,.sm2-main table.forumline td.catLeft,.sm2-main table.forumline td.catRight{background:#30291f!important;background-image:none!important;color:#f0d19d}
.sm2-main td.rowpic,.sm2-main td.row4,.sm2-main td.bar{background:#28302b!important;background-image:none!important}
.sm2-main .row1,.sm2-main .row2,.sm2-main .row3,.sm2-main .row4{color:#e8e1d4}
.sm2-main a:not(.saint-react):not(.saint-chat-action){overflow-wrap:anywhere}
.sm2-main .maintitle,.sm2-main h1{font-size:20px!important;line-height:1.32;color:#f3cd93!important;overflow-wrap:anywhere}
.sm2-main .gen,.sm2-main .genmed,.sm2-main .gensmall,.sm2-main .nav,.sm2-main .name,.sm2-main .postdetails{line-height:1.5;overflow-wrap:anywhere}
.sm2-main .gen,.sm2-main .nav,.sm2-main .postbody{font-size:13px!important}
.sm2-main .gensmall,.sm2-main .postdetails{font-size:11px!important}
.sm2-main img:not(.saint-emoji-classic img){max-width:100%;height:auto}
.sm2-main .postbody img,.sm2-main .saint-signature img,.sm2-main .signature img,.sm2-main .saint-profile-signature img{max-width:100%!important;height:auto!important;object-fit:contain}
.sm2-main .postbody,.sm2-main .saint-post-message,.sm2-main .saint-signature,.sm2-main .saint-profile-signature-body{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal;line-height:1.65!important}
.sm2-main pre,.sm2-main code,.sm2-main blockquote{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.sm2-main iframe,.sm2-main video,.sm2-main embed,.sm2-main object{max-width:100%!important}
.sm2-main :is(input,select,textarea,button){max-width:100%;font-size:16px}
.sm2-main input[type="text"],.sm2-main input[type="password"],.sm2-main input[type="email"],.sm2-main input[type="search"],.sm2-main textarea{max-width:100%!important;min-width:0}
.sm2-main textarea{width:100%!important;resize:vertical}
.sm2-main input[type="submit"],.sm2-main input[type="button"],.sm2-main button{touch-action:manipulation}
/* Forum index -> cards; all data kept, no image-based frames. */
.sm2-forum-index,.sm2-topic-list{display:block!important;width:100%!important;border:0!important;background:transparent!important}
.sm2-forum-index>tbody,.sm2-topic-list>tbody{display:block;width:100%}
.sm2-forum-index>tbody>tr,.sm2-topic-list>tbody>tr{display:block;width:100%}
.sm2-forum-index>tbody>tr>th,.sm2-topic-list>tbody>tr>th{display:none!important}
.sm2-forum-index>tbody>tr:has(.catLeft)>td.catLeft{display:block!important;width:100%!important;padding:11px!important;margin:12px 0 6px;background:#393024!important;border-radius:7px}
.sm2-forum-index .cattitle,.sm2-forum-index .cattitle a{color:#f3d49d!important;font-size:14px!important}
.sm2-forum-index>tbody>tr.sm2-forum-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) minmax(0,1fr);gap:0 7px;width:100%;margin:8px 0;background:#1d2522;border:1px solid #5c4832;border-radius:9px;overflow:hidden}
.sm2-forum-index .sm2-forum-row>td{display:block!important;min-width:0!important;width:auto!important;height:auto!important;border:0!important;white-space:normal!important;background:transparent!important;padding:10px 7px!important;text-align:left!important}
.sm2-forum-index .sm2-forum-row>td:nth-child(1){grid-column:1;grid-row:1;display:flex!important;align-items:center;justify-content:center;padding:10px 0 7px 8px!important}
.sm2-forum-index .sm2-forum-row>td:nth-child(1) img{max-width:34px!important;max-height:40px!important}
.sm2-forum-index .sm2-forum-row>td:nth-child(2){grid-column:2 / 4;grid-row:1;padding:10px 8px 6px 0!important}
.sm2-forum-index .forumlink a{color:#f3d499!important;font-size:15px!important;font-weight:700;line-height:1.35}
.sm2-forum-index .sm2-forum-row>td:nth-child(3),.sm2-forum-index .sm2-forum-row>td:nth-child(4){grid-row:2;padding:7px 10px!important;border-top:1px solid #394038!important;color:#b4bfb9}
.sm2-forum-index .sm2-forum-row>td:nth-child(3){grid-column:2}
.sm2-forum-index .sm2-forum-row>td:nth-child(4){grid-column:3}
.sm2-forum-index .sm2-forum-row>td:nth-child(3):before{content:'Temas  ';color:#d8b67b}
.sm2-forum-index .sm2-forum-row>td:nth-child(4):before{content:'Mensajes  ';color:#d8b67b}
.sm2-forum-index .sm2-forum-row>td:nth-child(5){grid-column:1/4;grid-row:3;padding:8px 12px!important;border-top:1px solid #394038!important;background:#141b1b!important;color:#bbb}
.sm2-forum-index .sm2-forum-row>td:nth-child(5):before{content:'Última publicación · ';color:#cba66e}
.sm2-forum-index tr>td.bar{display:none!important}
/* Topic lists -> cards */
.sm2-topic-list .sm2-topic-row{display:grid!important;grid-template-columns:38px minmax(0,1fr) minmax(0,1fr);margin:8px 0;gap:0 7px;border:1px solid #5b4731;border-radius:9px;background:#1b2321;overflow:hidden}
.sm2-topic-list .sm2-topic-row>td{display:block!important;min-width:0!important;width:auto!important;height:auto!important;padding:9px 7px!important;border:0!important;white-space:normal!important;background:transparent!important;text-align:left!important}
.sm2-topic-list .sm2-topic-row>td:nth-child(1){grid-column:1;grid-row:1;display:flex!important;align-items:center;justify-content:center;padding:9px 0 6px 6px!important}
.sm2-topic-list .sm2-topic-row>td:nth-child(2){grid-column:2/4;grid-row:1;padding:11px 9px 8px 0!important}
.sm2-topic-list .topictitle a{font-size:14px!important;color:#efca91!important;line-height:1.4}
.sm2-topic-list .sm2-topic-row>td:nth-child(3){grid-column:2;grid-row:2;border-top:1px solid #36423a!important}
.sm2-topic-list .sm2-topic-row>td:nth-child(4){grid-column:3;grid-row:2;border-top:1px solid #36423a!important}
.sm2-topic-list .sm2-topic-row>td:nth-child(5){grid-column:2;grid-row:3}
.sm2-topic-list .sm2-topic-row>td:nth-child(6){grid-column:1/4;grid-row:4;background:#141c1b!important;border-top:1px solid #36423a!important;padding:8px 11px!important}
.sm2-topic-list .sm2-topic-row>td:nth-child(3):before{content:'Respuestas · ';color:#d7b37d}
.sm2-topic-list .sm2-topic-row>td:nth-child(4):before{content:'Autor · ';color:#d7b37d}
.sm2-topic-list .sm2-topic-row>td:nth-child(5):before{content:'Vistas · ';color:#d7b37d}
.sm2-topic-list .sm2-topic-row>td:nth-child(6):before{content:'Último mensaje · ';color:#d7b37d}
.sm2-topic-list .catBottom{display:block!important;padding:9px!important}
/* Posts: author appears above message, full width, no cramped 150px left column. */
.sm2-post-list{display:block!important;width:100%!important;background:transparent!important;border:0!important}
.sm2-post-list>tbody{display:block;width:100%}
.sm2-post-list>tbody>tr{display:block;width:100%}
.sm2-post-list>tbody>tr>td[colspan="2"]{display:block;width:100%!important;padding:8px!important}
.sm2-post-list>tbody>tr>th{display:none!important}
.sm2-post-list>tbody>tr.sm2-post-main{display:flex!important;flex-direction:column;gap:0;margin:10px 0 0;border:1px solid #614b32;border-radius:9px 9px 0 0;overflow:hidden;background:#1a2220}
.sm2-post-list tr.sm2-post-main>td{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:10px!important;border:0!important;background:transparent!important;white-space:normal!important}
.sm2-post-list tr.sm2-post-main>.sm2-post-author{background:#2c2821!important;border-bottom:1px solid #645039!important;min-height:68px}
.sm2-post-list tr.sm2-post-main>.sm2-post-author .name{display:block;margin-bottom:4px}
.sm2-post-list tr.sm2-post-main>.sm2-post-author .name a{color:#f6d69b!important;font-size:15px}
.sm2-post-list .sm2-post-author .postdetails{display:block;max-height:120px;overflow:auto}
.sm2-post-list .sm2-post-author .postdetails img{vertical-align:middle;max-width:66px!important;max-height:60px!important;height:auto!important;margin:2px}
.sm2-post-list .sm2-post-author .saint-mu-card{max-width:100%!important}
.sm2-post-list .sm2-post-content>table{width:100%!important;max-width:100%!important;table-layout:fixed}
.sm2-post-list .sm2-post-content>table>tbody>tr:first-child>td:first-child{width:100%!important;max-width:100%!important;white-space:normal!important}
.sm2-post-list .sm2-post-content>table>tbody>tr:first-child>td:last-child{white-space:normal!important;text-align:right;max-width:145px}
.sm2-post-list .sm2-post-content>table>tbody>tr:first-child>td:last-child img{max-height:26px!important}
.sm2-post-list .sm2-post-content .postbody{font-size:14px!important;line-height:1.65!important;min-height:36px}
.sm2-post-list .sm2-post-content .saint-post-reactions{max-width:100%;overflow-wrap:anywhere}
.sm2-post-list tr.sm2-post-main+tr{display:flex!important;width:100%;align-items:center;flex-wrap:wrap;background:#242820;border:1px solid #614b32;border-top:0;border-radius:0 0 9px 9px;margin-bottom:6px;padding:6px}
.sm2-post-list tr.sm2-post-main+tr>td{display:block!important;width:auto!important;min-width:0!important;max-width:100%!important;padding:4px!important;background:transparent!important;white-space:normal!important}
.sm2-post-list tr.sm2-post-main+tr>td:nth-child(2){flex:1;overflow-x:auto}
.sm2-post-list tr.sm2-post-main+tr table{width:auto!important;max-width:100%!important;height:auto!important}
.sm2-post-list .spaceRow{display:none!important}
/* Login, composer, profile, search and modules. */
.sm2-main .sm2-profile-main{width:100%!important}
.sm2-profile-main>tbody>tr>td{min-width:0;overflow-wrap:anywhere}
.sm2-main .saint-profile-avatar img{max-width:100px!important;height:auto!important}
.sm2-main .saint-profile-activity,.sm2-main .saint-activity-page,.sm2-main .saint-cover,.sm2-main .saint-mu-card{max-width:100%!important;min-width:0!important}
.sm2-main .saint-activity-columns{display:flex!important;flex-direction:column!important;gap:9px}
.sm2-main .saint-profile-reaction-details{max-width:100%}
.sm2-main .saint-cover{background-size:cover!important}
.sm2-main .saint-compose-form{width:100%!important;max-width:100%!important;padding:5px!important;margin:8px 0!important}
.sm2-main #saint-post-editor-table,.sm2-main .saint-compose-form table{max-width:100%!important;min-width:0!important}
.sm2-main .saint-editor-toolbar,.sm2-main .saint-editor,.sm2-main .saint-compose-toolbar{max-width:100%;flex-wrap:wrap}
.sm2-main .saint-emoji-panel{max-width:calc(100vw - 35px)!important}
.sm2-main .saint-pm-list,.sm2-main .saint-pm-read{max-width:100%!important;margin:8px 0;padding:5px;overflow:visible!important}
.sm2-main .saint-mu-select{max-width:100%}
.sm2-main .saint-mu-select select{max-width:100%}
.sm2-main .sm2-form-table>tbody>tr{display:flex!important;flex-direction:column;align-items:stretch}
.sm2-main .sm2-form-table>tbody>tr>td:not([colspan]),.sm2-main .sm2-form-table>tbody>tr>td[colspan]{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:7px 9px!important}
.sm2-main .sm2-form-table>tbody>tr>td input[type=text],.sm2-main .sm2-form-table>tbody>tr>td input[type=password],.sm2-main .sm2-form-table>tbody>tr>td select{width:auto;max-width:100%!important}
/* Keep high-density admin/member/PM data accessible with a local horizontal scroll, not page overflow */
.sm2-scroll{max-width:100%!important;width:100%;overflow-x:auto!important;overflow-y:visible;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:4px}
.sm2-scroll>table{max-width:none!important;min-width:600px!important;width:max-content!important}
.sm2-scroll>table.sm2-pm-list-table{min-width:610px!important}
.sm2-scroll>table.sm2-members-table{min-width:690px!important}
.sm2-scroll>table th,.sm2-scroll>table td{white-space:normal!important}
.sm2-scroll-hint{display:block;color:#bca77f;font-size:11px;margin:3px 0 6px}
/* Chat header and interaction: remove absolute positioning of desktop-only art. */
.sm2-main .sm2-chat-table{width:100%!important;table-layout:fixed}
.sm2-chat-heading{position:static!important;text-align:center!important;white-space:normal!important;padding:9px 6px!important}
.sm2-chat-heading>span{position:static!important;display:inline-block!important;vertical-align:middle;margin:4px 5px!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;max-width:100%}
.sm2-chat-heading>span[style*="50%"]{display:block!important;font-size:15px!important;margin:3px 0 7px!important}
#saint-chat,.saint-chat-messages{max-width:100%!important;min-width:0!important;overflow-x:hidden!important;overflow-wrap:anywhere}
#saint-chat img,.saint-chat-messages img{max-width:100%!important;height:auto!important}
#chat-form{display:flex!important;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;max-width:100%!important;width:100%!important}
#chat-form #chat-input{display:block!important;width:100%!important;flex:1 1 100%;max-width:100%!important;min-width:0!important;margin:0!important;min-height:41px;padding:9px!important}
#chat-form input[type="submit"],#chat-form input[type="button"],#chat-form button{flex:1 1 auto;min-height:39px!important;margin:0!important}
#saint-chat .chat-giphy-embed,#saint-chat iframe{max-width:100%!important}
.saint-rules-modal,.saint-chat-report-picker,.chat-gif-picker{max-width:calc(100vw - 24px)!important}
/* Footer: remove desktop floats and let the two blocks flow naturally */
.sm2-footer{max-width:100%!important;padding:12px 5px 22px;border-top:1px solid #57432d;margin-top:16px}
.sm2-footer>div>div[style*="overflow:hidden"]{display:flex;flex-direction:column;gap:9px}
.sm2-footer>div>div[style*="overflow:hidden"]>div{float:none!important;width:100%!important;text-align:center!important}
.sm2-footer .footer-divider{max-width:90%!important;width:90%!important}
/* Additional sensitive modules */
.sm2-main .saint-signature,.sm2-main .saint-profile-signature-body{max-width:100%!important;overflow-x:auto}
.sm2-main .saint-notifications-page,.sm2-main .saint-activity-page,.sm2-main .saint-search-results{max-width:100%!important}
.sm2-main .saint-rankings,.sm2-main .saint-ranking,.sm2-main .saint-stats,.sm2-main .saint-top-stats{max-width:100%;overflow-x:auto}
.sm2-main .flegend,.sm2-main .ilegend{max-width:100%;display:block;overflow-x:auto}
.sm2-main .flegend>tbody,.sm2-main .ilegend>tbody{display:table;width:max-content;min-width:100%}
.sm2-main .sm2-online-stat{width:100%!important;max-width:100%!important;background:#1d2421!important;border:1px solid #635031;border-radius:8px;overflow:hidden;margin-top:13px}
.sm2-main .sm2-online-stat td.stats1,.sm2-main .sm2-online-stat td.stats3,.sm2-main .sm2-online-stat td.stats5{display:none!important}
.sm2-main .sm2-online-stat td.stats2,.sm2-main .sm2-online-stat td.stats4{height:auto!important;min-width:0!important;width:100%!important;background:#1b2421!important;background-image:none!important;padding:9px!important}
.sm2-main .sm2-online-stat td.stats4>table{width:100%!important;max-width:100%!important}
.sm2-main .sm2-online-stat td.stats4>table td{width:auto!important;max-width:100%!important;overflow-wrap:anywhere}
.sm2-main .sm2-online-stat td.stats4>table td:first-child img{max-width:45px!important}
.sm2-main .sm2-online-stat .cattitle,.sm2-main .sm2-online-stat .cattitle a{color:#f1cf93!important}
/* The content is always usable from 320px; no blanket display:none on functional elements. */
}
@media screen and (max-width:390px){
.sm2-bar{padding:8px}
.sm2-logo strong{font-size:22px}
.sm2-logo small{letter-spacing:1.2px;font-size:8px}
#sm2-toggle{min-width:67px;padding:7px}
#sm2-toggle span:last-child{font-size:12px}
.sm2-main{padding-left:7px!important;padding-right:7px!important}
}
@media screen and (max-width:900px){
/* HTML height=28 on the old message column must not clip the nested message table. */
.sm2-post-list tr.sm2-post-main>.sm2-post-content{height:auto!important;min-height:120px!important;overflow:visible!important}
.sm2-post-list tr.sm2-post-main>.sm2-post-content>table{height:auto!important}
}
@media screen and (max-width:900px){
/* Profile: avoid the legacy 3-row table with rowspan and fixed avatar column. */
.sm2-main table.sm2-profile-main,.sm2-main table.sm2-profile-main>tbody,.sm2-main table.sm2-profile-main>tbody>tr{display:block!important;width:100%!important;max-width:100%!important;height:auto!important}
.sm2-main table.sm2-profile-main>tbody>tr>td{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;padding:9px!important}
.sm2-main table.sm2-profile-main>tbody>tr>td[align="center"]{text-align:center!important;background:#272920!important}
.sm2-main table.sm2-profile-main>tbody>tr>td>table{width:100%!important;max-width:100%!important}
/* Search result posts: author and message vertically, no 150px sidebar. */
.sm2-main table.sm2-search-post-results,.sm2-main table.sm2-search-post-results>tbody{display:block!important;width:100%!important}
.sm2-main table.sm2-search-post-results>tbody>tr{display:flex!important;flex-wrap:wrap!important;width:100%!important}
.sm2-main table.sm2-search-post-results>tbody>tr>td{display:block!important;width:100%!important;min-width:0!important;height:auto!important;padding:9px!important}
.sm2-main table.sm2-search-post-results>tbody>tr>th{display:none!important}
.sm2-main table.sm2-search-post-results>tbody>tr>td.catHead{border-top:1px solid #886039!important}
}
