/* subSilver-style theme for PieBB (original CSS, no phpBB assets) */
body { background: #E5E5E5; color: #000; margin: 0; padding: 8px;
  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;
  scrollbar-face-color: #DEE3E7; }
a { color: #006699; text-decoration: none; }
a:hover { color: #DD6900; text-decoration: underline; }
img { border: 0; }
.wrap { max-width: 1100px; margin: 0 auto; background: #FFF; border: 2px solid #FFF; padding: 10px; }

/* header */
.bodyline { background: #FFF; border: 1px solid #98AAB1; }
.header { display: flex; align-items: center; gap: 14px; padding: 6px 8px 10px; }
.header .logo { width: 72px; height: 72px; flex: none; border: 1px solid #98AAB1; background: #DEE3E7 center/cover; }
.maintitle { font: bold 26px "Trebuchet MS", Verdana, sans-serif; color: #000; text-decoration: none; letter-spacing: -1px; }
.maintitle:hover { color: #000; text-decoration: none; }
.gen { font-size: 12px; } .genmed { font-size: 11px; } .gensmall { font-size: 10px; }
.nav { font-weight: bold; font-size: 11px; color: #000; }
.mainmenu { text-align: center; padding: 6px 0 2px; }
.mainmenu a { margin: 0 6px; font-size: 11px; }
.mainmenu a::before { content: "\25AA\00a0"; color: #98AAB1; }
.mainmenu form { display: inline; }

/* tables */
table.forumline { background: #FFF; border: 1px solid #006699; border-collapse: separate; border-spacing: 1px; width: 100%; }
th { color: #FFA34F; font-size: 11px; font-weight: bold; height: 25px; white-space: nowrap; padding: 0 6px;
  background: linear-gradient(#2A6D9C, #006699 55%, #00557F); }
td.row1 { background: #EFEFEF; } td.row2 { background: #DEE3E7; } td.row3 { background: #D1D7DC; }
td { padding: 4px; vertical-align: middle; }
td.catHead, td.catLeft, td.catBottom { height: 28px; padding: 0 8px; border: 1px solid #FFF;
  background: linear-gradient(#E1E6EA, #D1D7DC 50%, #C8CFD5); }
.cattitle { font-weight: bold; font-size: 12px; letter-spacing: 1px; color: #006699; }
td.spaceRow { background: #D1D7DC; height: 1px; padding: 0; }
.forumlink { font-weight: bold; font-size: 12px; }
.topictitle { font-weight: bold; font-size: 11px; }
.postdetails { font-size: 10px; color: #000; }
.name { font-weight: bold; font-size: 11px; }
.postbody { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.postbody p { margin: 0 0 .7em; }
.postbody img { max-width: 100%; height: auto; }
.postbody blockquote { margin: 6px 0 6px 12px; padding: 6px; background: #FAFAFA; border: 1px solid #C2CFDF; font-size: 11px; }
.postbody pre, .postbody code { font: 11px Courier, "Courier New", monospace; color: #060; background: #FAFAFA; }
.postbody pre { border: 1px solid #D1D7DC; padding: 6px; overflow-x: auto; }
.postbody table { border-collapse: collapse; } .postbody td, .postbody th { border: 1px solid #98AAB1; padding: 2px 4px; color: #000; background: none; height: auto; }
.signature { border-top: 1px dashed #98AAB1; margin-top: 6px; padding-top: 4px; color: #444; }
hr { border: 0; border-top: 1px solid #D1D7DC; }

/* folder icons (pure CSS) */
.folder { display: inline-block; width: 19px; height: 15px; border: 1px solid #6E8AA0; border-radius: 2px;
  background: linear-gradient(#FFF, #DEE3E7); position: relative; }
.folder::after { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 1px; background: #98AAB1; box-shadow: 0 3px 0 #98AAB1; }
.folder.new { border-color: #DD6900; background: linear-gradient(#FFF6EC, #FFD9A8); }
.folder.hot { border-color: #C00; }
.folder.locked { background: repeating-linear-gradient(45deg, #DEE3E7 0 3px, #C8CFD5 3px 6px); }
.folder.sticky { border-color: #006699; background: linear-gradient(#E9F3FA, #B7D3E8); }
.forumicon { width: 32px; height: 32px; display: inline-block; border: 1px solid #98AAB1; background: #DEE3E7 center/cover; }

/* buttons */
.btn, input[type=submit], button { font: bold 11px Verdana, Arial, sans-serif; color: #000; cursor: pointer;
  background: linear-gradient(#FAFAFA, #D1D7DC); border: 1px solid #6E8AA0; padding: 2px 8px; }
.btn:hover, input[type=submit]:hover, button:hover { color: #DD6900; text-decoration: none; }
.btn.main { font-size: 11px; padding: 3px 10px; display: inline-block; }
.btnlink { background: none; border: 0; padding: 0; color: #006699; font: inherit; cursor: pointer; }
.btnlink:hover { color: #DD6900; text-decoration: underline; }
.btnlink.on { color: #DD6900; font-weight: bold; }
input[type=text], input[type=password], input[type=url], input[type=search], textarea, select {
  font: 11px Verdana, Arial, sans-serif; color: #000; background: #FAFAFA; border: 1px solid #98AAB1; padding: 2px; }
textarea { font-size: 12px; width: 100%; box-sizing: border-box; }
input[type=text], input[type=url] { width: 100%; box-sizing: border-box; }
form.inline { display: inline; }

/* thread postbit */
.postbit { width: 150px; vertical-align: top; }
.avatar { max-width: 100px; max-height: 100px; margin: 4px 0; }
.rank { font-size: 10px; color: #333; }
.votes { white-space: nowrap; }
.score { font-weight: bold; padding: 0 3px; }
.quotehead { font-size: 11px; font-weight: bold; margin: 0 0 2px 12px; }
.quote { font-size: 11px; line-height: 1.4; color: #333; background: #FAFAFA; border: 1px solid #C2CFDF;
  margin: 0 0 8px 12px; padding: 6px; overflow-wrap: anywhere; }
.replyto { font-size: 10px; color: #444; margin-bottom: 6px; }
.thumb { max-width: 240px; max-height: 180px; border: 1px solid #98AAB1; margin: 4px 0; }
.linkbox { background: #FAFAFA; border: 1px solid #C2CFDF; padding: 4px 6px; margin-bottom: 8px; font-size: 11px; }

.pagination { font-size: 11px; font-weight: bold; }
.flash { background: #FFF6CF; border: 1px solid #DD6900; padding: 6px; margin: 6px 0; font-size: 11px; }
.copyright { text-align: center; color: #444; font-size: 10px; padding-top: 8px; }
.tabs a { margin-right: 8px; } .tabs a.on { color: #DD6900; font-weight: bold; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.muted { color: #555; }

/* moderation */
.modbar { color: #8A1F11; } .modbar .btnlink, .modbar a { color: #8A1F11; }
.modbar input.reason { width: 110px; font-size: 10px; padding: 1px 2px; }
.removed { opacity: .55; border-left: 3px solid #C00; padding-left: 6px; }
.adminnav a { margin-right: 10px; font-weight: bold; }
.adminnav a.on { color: #DD6900; }

/* layout + sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 10px; align-items: start; }
.sidebar .postbody { font-size: 11px; }
.sidebar .postbody h1, .sidebar .postbody h2, .sidebar .postbody h3 { font-size: 12px; margin: 6px 0 4px; }
.sidebar-top { display: none; margin-bottom: 8px; }
.sidebar-top summary { cursor: pointer; font-weight: bold; font-size: 11px; color: #006699; padding: 6px 8px;
  border: 1px solid #006699; background: linear-gradient(#E1E6EA, #D1D7DC 50%, #C8CFD5); }
.sidebar-top[open] summary { border-bottom: 0; }

/* small screens */
@media (max-width: 900px) {
  .layout { display: block; }
  .sidebar-side { display: none; }
  .sidebar-top { display: block; }
}
@media (max-width: 700px) {
  body { padding: 0; } .wrap { padding: 4px; border: 0; }
  .hide-sm { display: none; }
  .postbit { width: auto; display: block; }
  tr.post > td { display: block; width: auto; }
  tr.posthead { display: none; }
  .postbit { border-bottom: 1px solid #D1D7DC; }
  .header .logo { width: 48px; height: 48px; } .maintitle { font-size: 20px; }
}
