/* Native MyBB phone layouts. Desktop templates retain all original behavior. */
@media (max-width:650px) {
 .greemong-live .gm-thread-list { min-width:0; max-width:100%; }
 .greemong-live .gm-thread-list>.float_left,
 .greemong-live .gm-thread-list>.float_right { float:none; width:100%; max-width:100%; margin:0 0 12px!important; text-align:left!important; }
 .greemong-live .gm-thread-list>.float_right:empty,
 .greemong-live .gm-thread-list>.float_left:empty { display:none; }
 .greemong-live .gm-thread-list .pagination { display:flex; flex-wrap:wrap; align-items:center; gap:4px; max-width:100%; }
 .greemong-live .gm-thread-list .pagination>* { margin:0; }
 .greemong-live .gm-thread-table,
 .greemong-live .gm-thread-table>tbody { display:block; width:100%; max-width:100%; min-width:0; }
 .greemong-live .gm-thread-title-row,
 .greemong-live .gm-thread-wide-row,
 .greemong-live .gm-thread-sort-row { display:block; width:100%; max-width:100%; }
 .greemong-live .gm-thread-title,
 .greemong-live .gm-thread-wide,
 .greemong-live .gm-thread-sort { display:block; width:100%; max-width:100%; min-width:0; }
 .greemong-live .gm-thread-title>.float_right { float:none; margin:0 0 8px; font-weight:normal; }
 .greemong-live .gm-thread-title>.float_right .smalltext { display:block; font-size:11px; line-height:1.7; }
 .greemong-live .gm-thread-title>div:last-child { font-size:14px; line-height:1.5; }
 .greemong-live .gm-thread-columns { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; }
 .greemong-live .gm-thread-subject-head { display:block; grid-column:1; width:auto; min-width:0; }
 .greemong-live .gm-thread-mod-head { display:flex; grid-column:2; align-items:center; justify-content:center; width:38px; }
 .greemong-live .gm-thread-row { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; max-width:100%; border-bottom:1px solid #e1e7df; }
 .greemong-live .gm-thread-row>td { border:0; min-width:0; max-width:100%; }
 .greemong-live .gm-thread-subject { display:block; grid-column:1; grid-row:1; width:auto!important; padding:12px 12px 4px; overflow-wrap:anywhere; }
 .greemong-live .gm-thread-subject>div { min-width:0; max-width:100%; }
 .greemong-live .gm-thread-subject :is(.subject_new,.subject_old) { font-size:14px; line-height:1.5; }
 .greemong-live .gm-thread-subject span:has(>[id^="tid_"]) { display:flex; flex-wrap:wrap; align-items:center; column-gap:4px; }
 .greemong-live .gm-thread-subject [id^="tid_"] { flex:1 1 150px; min-width:0; }
 .greemong-live .gm-thread-subject :is(a[id^="tid_"],[id^="tid_"]>a,a[href*="action=newpost"]) { display:flex; align-items:center; min-height:32px; }
 .greemong-live .gm-thread-subject a[href*="action=newpost"] { justify-content:center; min-width:24px; }
 .greemong-live .gm-thread-subject .smalltext { font-size:11px; line-height:1.65; }
 .greemong-live .gm-thread-subject .thread_start_datetime { white-space:normal; }
 .greemong-live .gm-thread-subject .float_right { float:none; display:inline; margin-right:5px; }
 .greemong-live .gm-thread-last { display:block; grid-column:1; grid-row:2; width:auto!important; padding:2px 12px 12px; white-space:normal!important; text-align:left!important; }
 .greemong-live .gm-thread-last .smalltext { font-size:11px; line-height:1.65; }
 .greemong-live .gm-thread-last br { display:none; }
 .greemong-live .gm-thread-last a { margin-left:4px; }
 .greemong-live .gm-thread-mod { display:flex; grid-column:2; grid-row:1/3; align-items:flex-start; justify-content:center; width:38px; padding:14px 8px; }
 .greemong-live .gm-thread-mod input[type="checkbox"],
 .greemong-live .gm-thread-mod-head input[type="checkbox"] { width:17px; height:17px; margin:0; }
 .greemong-live :is(.gm-thread-status,.gm-thread-icon,.gm-thread-replies,.gm-thread-views,.gm-thread-rating,
   .gm-thread-replies-head,.gm-thread-views-head,.gm-thread-rating-head,.gm-thread-last-head,
   .gm-thread-forum-head,.gm-thread-mod-empty) { display:none!important; }
 .greemong-live .gm-thread-selection { white-space:normal; max-width:100%; font-size:12px; }
 .greemong-live .gm-thread-sort { padding:12px; text-align:left; }
 .greemong-live .gm-thread-sort form { display:flex; flex-wrap:wrap; gap:8px; max-width:100%; margin:0; }
 .greemong-live .gm-thread-sort form select { display:block; flex:1 1 100%; width:100%; min-width:0; max-width:100%; margin:0; }
 .greemong-live .gm-thread-list>.float_right form { display:flex; flex-wrap:wrap; gap:8px; min-width:0; max-width:100%; }
 .greemong-live .gm-thread-list>.float_right form>.smalltext { flex-basis:100%; }
 .greemong-live .gm-thread-list>.float_right form>select { width:100%; min-width:0; max-width:100%; flex:1 1 100%; }
 .greemong-live .gm-thread-list>.float_right form>input.textbox { width:auto; min-width:0; flex:1 1 150px; }
 .greemong-live .gm-thread-list>.float_right form>input.button { flex:0 0 auto; }
 .greemong-live .gm-thread-list .thread_legend { margin:0; padding:0; }
 .greemong-live .gm-thread-list .thread_legend dd { float:none; margin:3px 12px 3px 0; }
 .greemong-live .gm-thread-list>.float_left>.float_left { float:none; }
 .greemong-live .gm-live-thread { min-width:0; max-width:100%; }
 .greemong-live .gm-live-thread>.float_left,
 .greemong-live .gm-live-thread>.float_right { float:none; max-width:100%; width:100%; margin:8px 0; text-align:left!important; }
 .greemong-live .gm-live-thread>.float_left:empty,
 .greemong-live .gm-live-thread>.float_right:empty { display:none; }
 .greemong-live .gm-post-table { table-layout:fixed!important; width:100%; max-width:100%; }
 .greemong-live .gm-post-table>tbody>tr>.thead>.float_right { float:none; margin:0 0 7px; }
 .greemong-live .gm-post-table #posts_container { padding:0; min-width:0; }
 .greemong-live .gm-post-table .tfoot .float_right { float:none; margin-bottom:10px; }
 .greemong-live .gm-live-thread form { max-width:100%; }
 .greemong-live .gm-live-thread>div>form { display:flex; flex-wrap:wrap; gap:8px; }
 .greemong-live .gm-live-thread>div>form>.smalltext { flex-basis:100%; }
 .greemong-live .gm-live-thread>div>form>select { min-width:0; max-width:100%; width:100%; }
 .greemong-live .gm-live-thread .thread_tools { margin:0; padding-left:0; display:flex; flex-wrap:wrap; gap:8px 14px; }
 .greemong-live .gm-quick-reply-table,
 .greemong-live .gm-quick-reply-table>thead,
 .greemong-live .gm-quick-reply-table>tbody { display:block; width:100%; max-width:100%; }
 .greemong-live .gm-quick-reply-table tr { display:block; width:100%; }
 .greemong-live .gm-quick-reply-table td { display:block; width:100%; max-width:100%; min-width:0; }
 .greemong-live .gm-quick-reply-table textarea { width:100%; min-width:0; max-width:100%; font-size:16px; }
 .greemong-live .gm-quick-reply-table :is(.button,button) { min-height:44px; }
 .greemong-live .gm-quick-reply-table .tfoot { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; }
 .greemong-live .gm-compose { max-width:100%; min-width:0; }
 .greemong-live .gm-compose form[name="input"] { max-width:100%; min-width:0; }
 .greemong-live .gm-editor-table,
 .greemong-live .gm-editor-table>tbody,
 .greemong-live .gm-editor-table>tbody>tr,
 .greemong-live .gm-editor-table>tbody>tr>td { display:block; width:100%!important; min-width:0; max-width:100%; }
 .greemong-live .gm-editor-table>tbody>tr>td:first-child:not([colspan]) { padding-bottom:5px; }
 .greemong-live .gm-editor-table>tbody>tr>td+td { padding-top:6px; }
 .greemong-live .gm-editor-smilies { display:none; }
 .greemong-live .gm-compose input[name="subject"] { width:100%!important; min-width:0; margin-top:5px; }
 .greemong-live .gm-compose select[name="threadprefix"] { width:100%; }
 .greemong-live .gm-compose textarea#message { box-sizing:border-box; width:100%; min-width:0; max-width:100%; }
 .greemong-live .gm-compose .sceditor-container { box-sizing:border-box!important; width:100%!important; min-width:0; max-width:100%; }
 .greemong-live .gm-compose .sceditor-toolbar { display:flex; flex-wrap:wrap; box-sizing:border-box!important; width:100%; max-width:100%; }
 .greemong-live .gm-compose .sceditor-group { float:none; flex:0 0 auto; }
 .greemong-live .gm-compose .sceditor-container iframe,
 .greemong-live .gm-compose .sceditor-container textarea { box-sizing:border-box!important; width:100%!important; min-width:0; max-width:100%; }
 .greemong-live .gm-compose form[name="input"]>div[align="center"],
 .greemong-live .gm-compose form[name="input"]>div[style*="text-align"] { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; }
 .greemong-live .gm-compose form[name="input"]>.tborder:not(.gm-editor-table),
 .greemong-live .gm-compose form[name="input"]>.tborder:not(.gm-editor-table)>tbody,
 .greemong-live .gm-compose form[name="input"]>.tborder:not(.gm-editor-table)>tbody>tr,
 .greemong-live .gm-compose form[name="input"]>.tborder:not(.gm-editor-table)>tbody>tr>td { display:block; width:100%!important; min-width:0; max-width:100%; }
 .greemong-live .gm-compose input[type="file"] { width:100%; min-width:0; max-width:100%; font-size:12px; }
 .greemong-live .gm-search-results .gm-thread-forum { display:block; grid-column:1; grid-row:2; width:auto; padding:2px 12px; font-size:11px; }
 .greemong-live .gm-search-results .gm-thread-last { grid-row:3; }
 .greemong-live .gm-search-results .gm-thread-mod { grid-row:1/4; }
 .greemong-live .gm-search-results>table:not(.gm-thread-table),
 .greemong-live .gm-search-results>table:not(.gm-thread-table)>tbody,
 .greemong-live .gm-search-results>table:not(.gm-thread-table)>tbody>tr,
 .greemong-live .gm-search-results>table:not(.gm-thread-table)>tbody>tr>td { display:block; width:100%; min-width:0; max-width:100%; text-align:left; }
 .greemong-live .gm-search-results>table form { display:flex; flex-wrap:wrap; gap:8px; width:100%; max-width:100%; }
 .greemong-live .gm-search-results>table form>.smalltext { flex-basis:100%; }
 .greemong-live .gm-search-results>table form>select { width:100%; min-width:0; max-width:100%; }
}
/* The marketplace is available through More on narrow screens. */
.greemong-live .gm-nav-more.on>summary { background:#e7d7ac; color:#394f4e; }

/* Keep native account and search forms inside the page frame. */
.greemong-live .gm-account-menu>summary { display:none; }
@media (max-width:600px) {
    .greemong-live .gm-registration fieldset:has(#captcha_img) :is(table,tbody,tr,td) { display:block; width:100%; }
    .greemong-live .gm-registration fieldset:has(#captcha_img) td { padding:6px 0; }
    .greemong-live .gm-registration #captcha_img { max-width:100%; height:auto; }
}
.greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder { table-layout:fixed; }
.greemong-live .live-content>form:has(>input[name=action][value=do_search]) :is(input[name=keywords], .select2-container, select[name="forums[]"]) {
    width:100%!important; min-width:0; max-width:100%;
}
.greemong-live .live-content>form:has(>input[name=action][value=do_search]) :is(table,select,.textbox) { max-width:100%; }
.greemong-live .live-content>form:has(>input[name=action][value=do_search]) td>table { width:100%; table-layout:fixed; }
.greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr > td { vertical-align:top; }

@media (max-width:850px) {
    .greemong-live table:has(>tbody>tr>.gm-account-menu-cell),
    .greemong-live table:has(>tbody>tr>.gm-account-menu-cell)>tbody,
    .greemong-live table:has(>tbody>tr>.gm-account-menu-cell)>tbody>tr,
    .greemong-live .gm-account-menu-cell,
    .greemong-live .gm-account-menu-cell+td { display:block; width:100%; min-width:0; max-width:100%; }
    .greemong-live .gm-account-menu-cell { margin-bottom:12px; }
    .greemong-live .gm-account-menu>summary {
        display:list-item; min-height:42px; padding:10px 12px; border:1px solid #c5d1c2;
        border-radius:3px; background:#edf2e7; color:#345761; font-weight:700; cursor:pointer;
    }
    .greemong-live .gm-account-menu>table { margin-top:4px; }
    .greemong-live .gm-account-menu>table>tbody:first-child>tr:first-child>.thead { display:none; }
    .greemong-live .gm-account-menu-cell+td { overflow-wrap:anywhere; }
    .greemong-live .gm-account-menu-cell+td :is(.textbox,select,textarea,fieldset) { min-width:0; max-width:100%; }
    .greemong-live .live-content>form .gm-account-menu-cell+td > .tborder,
    .greemong-live .live-content>form .gm-account-menu-cell+td > .tborder > tbody,
    .greemong-live .live-content>form .gm-account-menu-cell+td > .tborder > tbody > tr,
    .greemong-live .live-content>form .gm-account-menu-cell+td > .tborder > tbody > tr > td {
        display:block; width:100%; min-width:0; max-width:100%;
    }
    .greemong-live .gm-account-menu-cell+td fieldset, .greemong-live .gm-account-menu-cell+td fieldset>table { max-width:100%; }
    .greemong-live .gm-account-menu-cell+td textarea { width:100%; box-sizing:border-box; }
    .greemong-live .gm-account-menu-cell+td .select2-container { max-width:100%; }
    .greemong-live .gm-account-menu-cell+td .sceditor-container,
    .greemong-live .gm-account-menu-cell+td .sceditor-container :is(iframe,textarea) { width:100%!important; max-width:100%; box-sizing:border-box; }
    .greemong-live .gm-account-menu-cell+td .sceditor-toolbar { display:flex; flex-wrap:wrap; }
    .greemong-live .gm-account-menu-cell+td .sceditor-group { float:none; }
    .greemong-live .gm-account-menu-cell+td td>div:has(>table>tbody>tr>td>#clickable_smilies) { display:none; }
    .greemong-live .gm-account-menu-cell+td .pmspace {
        display:flex; float:none; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:0 0 6px;
    }
    .greemong-live .gm-account-menu-cell+td form[name=pmForm] .thead>.float_right {
        float:none; margin-bottom:6px;
    }
    .greemong-live .gm-account-menu-cell+td form[name=pmForm] .thead .textbox { display:block; width:100%; margin:0 0 5px; }
    .greemong-live .gm-account-menu-cell+td form[name=pmForm] .tcat { white-space:normal!important; }
    .greemong-live .gm-account-menu-cell+td form[name=pmForm] .tcat:has(a[href*="sortby=dateline"]) {
        width:26%; padding-inline:4px; overflow-wrap:normal;
    }
}

@media (max-width:650px) {
    .greemong-live .gm-forum-auth label:has(>input[name="remember"]) { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) :is(input[name="keywords"],input[name="author"]) { font-size:16px; }
    .greemong-live .gm-forum-auth > .tborder,
    .greemong-live .gm-forum-auth > .tborder > tbody,
    .greemong-live .gm-forum-auth > .tborder > tbody > tr,
    .greemong-live .gm-forum-auth > .tborder > tbody > tr > td {
        display:block; width:100%; min-width:0; max-width:100%;
    }
    .greemong-live .gm-forum-auth #captcha_trow table { max-width:100%; }
    .greemong-live .gm-account-menu-cell+td table:has(>tbody>tr>td>select:is([name=bday1],[name=awayday])),
    .greemong-live .gm-account-menu-cell+td table:has(>tbody>tr>td>select:is([name=bday1],[name=awayday]))>tbody {
        display:block; width:100%;
    }
    .greemong-live .gm-account-menu-cell+td tr:has(>td>select:is([name=bday1],[name=awayday])) {
        display:flex; flex-wrap:wrap; gap:4px;
    }
    .greemong-live .gm-account-menu-cell+td tr:has(>td>select:is([name=bday1],[name=awayday]))>td { flex:1 1 48px; min-width:0; }
    .greemong-live .gm-account-menu-cell+td tr:has(>td>select:is([name=bday1],[name=awayday]))>td:has(>select:is([name=bday2],[name=awaymonth])) {
        flex:2 1 84px;
    }
    .greemong-live .gm-account-menu-cell+td tr:has(>td>select:is([name=bday1],[name=awayday])) :is(select,.textbox) { width:100%; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder { display:block; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody { display:flex; flex-direction:column; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr { display:contents; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr > td { display:block; width:100%; }
    /* Pair each of the native search headings with its fields in the stacked form. */
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr:nth-child(3) > td:first-child { order:1; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr:nth-child(2) > td:nth-child(2) { order:2; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr:nth-child(3) > td:nth-child(2) { order:3; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr:nth-child(4) > td:first-child { order:4; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr:nth-child(5) > td:first-child { order:5; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr:nth-child(4) > td:nth-child(2) { order:6; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr:nth-child(5) > td:nth-child(2) { order:7; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) > .tborder > tbody > tr:nth-child(n+6) > td { order:8; }
    .greemong-live .live-content>form:has(>input[name=action][value=do_search]) select[name="forums[]"] { height:180px; }
}
