/* Touch controls and viewport-bounded menus, without changing desktop layout. */
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 .forum-frame:has(.auth-page) .community-banner{display:none}
 .forum-frame input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]),
 .forum-frame textarea,.forum-frame select{font-size:16px;min-height:44px}
 .forum-frame #compose-content,.forum-frame #insert-code{font-size:16px}
 .forum-frame button,.forum-frame .button{min-width:44px;min-height:44px;box-sizing:border-box}
 .forum-frame .menu-toggle,.forum-frame .theme-toggle,.member-account-menu summary{min-width:44px;min-height:44px;box-sizing:border-box}
 .auth-remember{min-height:44px;gap:10px;align-items:center}
 .auth-remember input[type=checkbox]{width:18px;height:18px;flex:0 0 18px}
 .compose-toolbar button,.compose-toolbar select{min-width:44px;min-height:44px}
 .compose-toolbar select{font-size:16px;max-width:112px}
 .compose-toolbar>div{flex-wrap:wrap;max-width:100%;padding:0 4px}
 .compose-file-list button,.compose-dialog header button{min-width:44px}
 .site-footer nav a{display:inline-flex;align-items:center;min-height:44px}
 .post-attachments a{min-height:44px;overflow-wrap:anywhere}
 .listing-resources .button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .member-account-dropdown{position:fixed;right:12px;top:var(--account-menu-top,72px);max-height:var(--account-menu-height,calc(100dvh - 84px));box-sizing:border-box;overscroll-behavior:contain;z-index:120}
 .member-account-dropdown nav a{min-height:44px;box-sizing:border-box}
 .primary-nav.is-open{position:fixed;top:var(--mobile-nav-top,72px);left:12px;right:12px;max-height:var(--mobile-nav-height,calc(100dvh - 84px));overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
 .primary-nav.is-open>a{min-height:44px;box-sizing:border-box}
 .download-result-page{padding:24px 16px}
 .download-result-page .auth-card{margin:0 auto}
}
