/* Narrow-screen layout for the original subSilver theme. */
body { margin: 4px; }
body > table, .bodyline > table, .bodyline > form > table { width: 100%; table-layout: fixed; }
.bodyline { padding: 5px; }
.bodyline td, .bodyline th { overflow-wrap: anywhere; }
.bodyline [nowrap] { white-space: normal; }
.bodyline img, .bodyline textarea, .bodyline select, .bodyline input { max-width: 100%; box-sizing: border-box; }
.forum-banner > tbody > tr, .forum-banner > tbody > tr > td { display: block; width: auto; text-align: center; }
.forum-banner > tbody > tr > td > a > img { width: auto; max-width: min(100%, 240px); height: auto; }
.forum-banner table { width: 100%; table-layout: fixed; }
.forum-banner span.mainmenu { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 0; }
.forum-banner a.mainmenu { display: inline-block; padding: 4px 0; font-size: 12px; }
.forum-list, .forum-list > tbody, .forum-list > tbody > tr, .forum-list > tbody > tr > td { display: block; box-sizing: border-box; }
.forum-list > tbody > tr { margin: 1px; }
.forum-list > tbody > tr > td { width: auto; height: auto; }
.forum-list > tbody > .forum-columns { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.forum-list > tbody > .forum-entry { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr); gap: 1px; margin-bottom: 6px; }
.forum-entry > td { padding: 5px; }
.forum-entry > td:nth-child(2) { grid-column: 2 / -1; }
.forum-entry > td[data-label] { grid-column: 1 / -1; text-align: left; display: flex; gap: 6px; align-items: baseline; }
.forum-entry > td[data-label]::before { content: attr(data-label); font-size: 11px; color: #554a39; font-weight: bold; }
.forum-list .rowpic { display: none; }
.forum-posts > tbody > .forum-post, .forum-posts > tbody > .forum-post > td { display: block; width: auto; height: auto; }
.forum-posts > tbody > .forum-post > td > table { width: 100%; table-layout: fixed; }
.forum-posts .postbody img { height: auto; }
.bodyline pre { white-space: pre-wrap; }
.forum-posts, .forum-posts > tbody, .forum-posts > tbody > tr, .forum-posts > tbody > tr > td { display: block; box-sizing: border-box; width: 100%; }
.forum-posts > tbody > tr:has(> th.thLeft) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
