/* Classic mid-2000s phpBB ("prosilver"-style) look */
* { box-sizing: border-box; }
html { background: #f5f7fa; }
body {
  margin: 0; padding: 12px;
  font: 13px/1.45 Verdana, Helvetica, Arial, sans-serif;
  color: #536482; background: #f5f7fa;
}
a { color: #105289; text-decoration: none; }
a:hover { color: #d31141; text-decoration: underline; }

#wrap {
  max-width: 1000px; margin: 0 auto; padding: 15px;
  background: #fff; border: 1px solid #e6e9ed; border-radius: 8px;
}

/* Header */
.headerbar {
  background: linear-gradient(to bottom, #6aceff 0%, #0076b1 2px, #12a3eb 92px, #12a3eb 100%);
  color: #fff; border-radius: 7px; padding: 14px 16px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 14px;
}
.logo {
  width: 58px; height: 58px; flex: none; border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #fff 0, #bfe6fb 35%, #3b9fd8 100%);
  border: 2px solid rgba(255,255,255,.7);
  display: grid; place-items: center;
  font: bold 26px Georgia, serif; color: #0a5c8f; text-shadow: 0 1px 0 #fff;
}
.headerbar h1 { margin: 0; font: bold 26px "Trebuchet MS", Arial, sans-serif; letter-spacing: -.5px; }
.headerbar p { margin: 2px 0 0; font-size: 12px; opacity: .95; }

.navbar {
  background: #cadceb; border-radius: 7px; padding: 6px 10px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  font-size: 11px; margin-bottom: 10px;
}
.navbar strong { color: #105289; }
.crumbs a { font-weight: bold; }

/* Notice */
.rules {
  background: #ecd5d8; color: #bc2a4d; border-radius: 7px; padding: 8px 12px;
  margin-bottom: 12px; font-size: 12px;
}
.rules strong { color: #bc2a4d; }

/* Forum list tables */
.forabg {
  background: linear-gradient(to bottom, #6a9fce 0, #0076b1 28px, #0076b1 28px);
  background-color: #0076b1;
  border-radius: 7px; padding: 0 5px 5px; margin-bottom: 14px;
}
.forabg .cat {
  display: flex; justify-content: space-between; color: #fff;
  font: bold 11px Arial, sans-serif; text-transform: uppercase; padding: 7px 6px;
}
.forabg .cat .cols { display: flex; }
.forabg .cat .cols span { width: 80px; text-align: center; }
.forum {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  background: #ecf3f7; border-bottom: 1px solid #fff;
}
.forum:nth-child(odd) { background: #e1ebf2; }
.forum:last-child { border-radius: 0 0 5px 5px; }
.forum .ico { width: 30px; height: 30px; flex: none; }
.forum .info { flex: 1; min-width: 0; }
.forum .info a, .forum .info b { font-size: 14px; font-weight: bold; }
.forum .info b { color: #8f8f8f; }
.forum .info small { display: block; font-size: 11px; color: #4c5d77; }
.forum .stat { width: 80px; text-align: center; font-size: 11px; color: #4c5d77; }
.forum .stat b { display: block; font-size: 13px; color: #333; }
.locked { color: #bc2a4d; font-size: 10px; font-weight: bold; text-transform: uppercase; margin-left: 6px; }

/* Topic view */
h2.topic-title { margin: 6px 0 4px; font: normal 22px "Trebuchet MS", Arial, sans-serif; color: #105289; }
.action-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; font-size: 11px;
}
.button {
  display: inline-block; cursor: pointer;
  font: bold 12px Verdana, Arial, sans-serif; color: #d31141;
  background: linear-gradient(to bottom, #fff 0%, #e9e9e9 100%);
  border: 1px solid #c7c3bf; border-radius: 4px; padding: 3px 10px;
  box-shadow: 0 0 0 1px #fff inset;
}
.button:hover { color: #105289; border-color: #0a8ed0; text-decoration: none; }
.button:disabled { opacity: .55; cursor: default; }
.pagination { display: flex; gap: 3px; align-items: center; }
.pagination a, .pagination span {
  border: 1px solid #b4bac0; border-radius: 2px; padding: 0 5px; font-weight: bold;
  background: #ecedee; color: #5c758c;
}
.pagination span.active { background: #4692bf; border-color: #4692bf; color: #fff; }

.post {
  display: flex; gap: 0; border-radius: 7px; padding: 8px 10px; margin-bottom: 4px;
}
.post.bg1 { background: #ecf3f7; }
.post.bg2 { background: #e1ebf2; }
.post.sticky { background: #fef7e0; border: 1px solid #f0d58a; }
.postbody { flex: 1; min-width: 0; padding-right: 12px; }
.postbody h3 { margin: 2px 0 2px; font: bold 13px "Trebuchet MS", Verdana, sans-serif; }
.postbody h3 a { color: #105289; }
.author { font-size: 11px; color: #4c5d77; padding-bottom: 4px; margin-bottom: 6px; border-bottom: 1px solid #ccc; }
.content {
  color: #333; font: 13px/1.5 "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.modnote {
  margin-top: 10px; padding: 6px 8px; background: #f2f2f2; border: 1px solid #c9c9c9;
  border-left: 4px solid #aa0000; font-size: 12px; color: #333; border-radius: 3px;
  white-space: pre-wrap;
}
.modnote b { color: #aa0000; }
.signature { margin-top: 10px; padding-top: 4px; border-top: 1px solid #ccc; font-size: 11px; color: #777; }

.postprofile {
  width: 180px; flex: none; border-left: 1px solid #fff; padding-left: 10px;
  font-size: 11px; color: #666;
}
.postprofile .avatar {
  width: 64px; height: 64px; border-radius: 4px; display: grid; place-items: center;
  font: bold 24px Georgia, serif; color: #fff; margin-bottom: 4px;
  text-shadow: 0 1px 1px rgba(0,0,0,.35); border: 1px solid rgba(0,0,0,.15);
}
.postprofile .uname { font-weight: bold; font-size: 13px; color: #105289; overflow-wrap: anywhere; }
.postprofile .uname.admin { color: #aa0000; }
.postprofile .rank { margin-bottom: 4px; }
.postprofile dd { margin: 0; }

/* Reply form */
.panel { background: #ecf1f3; border-radius: 7px; padding: 12px; margin: 12px 0; color: #28313f; }
.panel h3 { margin: 0 0 8px; font: bold 13px "Trebuchet MS", sans-serif; color: #115098; border-bottom: 1px solid #ccc; padding-bottom: 4px; }
.field { display: grid; grid-template-columns: 170px 1fr; gap: 8px; align-items: start; margin-bottom: 8px; }
.field label { font-weight: bold; font-size: 12px; padding-top: 4px; text-align: right; }
.field label small { display: block; font-weight: normal; font-size: 10px; color: #666; }
input[type=text], input[type=password], textarea {
  width: 100%; font: 13px Verdana, sans-serif; padding: 3px 5px;
  border: 1px solid #b4bac0; background: #fff; color: #333;
}
input:focus, textarea:focus { border-color: #11a3ea; outline: none; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 8px; font-weight: bold; font-size: 12px; }
.msg.ok { color: #228822; }
.msg.err { color: #bc2a4d; }

/* Stats footer */
.stats { background: #ecf3f7; border-radius: 7px; padding: 8px 12px; margin-top: 14px; font-size: 11px; }
.stats h3 { margin: 0 0 4px; font: bold 12px "Trebuchet MS", sans-serif; color: #115098; text-transform: uppercase; border-bottom: 1px solid #fff; padding-bottom: 3px; }
.stats p { margin: 3px 0; }
.copyright { text-align: center; font-size: 10px; color: #555; padding: 12px 0 2px; }

.empty { padding: 14px; text-align: center; font-style: italic; }

@media (max-width: 640px) {
  body { padding: 0; }
  #wrap { border-radius: 0; border: 0; padding: 8px; }
  .headerbar h1 { font-size: 20px; }
  .forum .stat, .forabg .cat .cols { display: none; }
  .post { flex-direction: column-reverse; }
  .postbody { padding-right: 0; }
  .postprofile {
    width: auto; border-left: 0; border-bottom: 1px solid #fff; padding: 0 0 6px; margin-bottom: 6px;
    display: flex; gap: 8px; align-items: center;
  }
  .postprofile .avatar { width: 36px; height: 36px; font-size: 15px; margin: 0; }
  .postprofile dl { margin: 0; }
  .field { grid-template-columns: 1fr; gap: 2px; }
  .field label { text-align: left; }
}
