/* DotNetCS homepage and forum polish; load after dotnetcs.css. */
body { font-family: Arial, sans-serif; }
.wrap { max-width: 1280px; border-radius: 16px; padding: 22px; }
.headerbar {
  position: relative;
  padding: 28px;
  border: 1px solid #55313e;
  border-radius: 12px;
  background: radial-gradient(ellipse at top left, #4b2331, transparent 65%), #171d27;
}
#site-description { max-width: 100%; }
#site-description h1 {
  width: 420px;
  max-width: 100%;
  height: 125px;
  margin: 0;
  background: url('./images/dotnetcs-logo.png') left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}
#site-description p { font: 14px/1.6 Arial, sans-serif; color: #cbd5e5; }
.search-header { margin-top: 50px; box-shadow: none; }
.navbar { margin-top: 12px; padding: 12px; border: 1px solid #343e50; }
.dotnetcs-nav { gap: 6px; padding: 8px; }
.dotnetcs-nav a { transition: background-color .15s ease; }
.dotnetcs-card {
  padding: 25px;
  border-radius: 12px;
  background: linear-gradient(145deg, #202632, #151c26 75%);
}
.dotnetcs-card h2 { font: 700 24px/1.3 Arial, sans-serif; }
.dotnetcs-card p { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
#server-state { font-weight: 700; }
#server-details { padding: 12px 0; border-top: 1px solid #343e50; }
#server-checked { display: block; color: #aab7ca; margin-bottom: 14px; }
.forabg, .forumbg {
  padding: 5px;
  border: 1px solid #59303e;
  border-radius: 10px;
  background: #682739;
}
li.header dt, li.header dd { padding-top: 8px; padding-bottom: 8px; }
ul.topiclist li.row { padding-top: 7px; padding-bottom: 7px; }
a.forumtitle, a.topictitle { font-family: Arial, sans-serif; }
ul.topiclist li.row dt, ul.topiclist li.row dd { line-height: 1.55; }
.mchat-wrapper { margin-top: 22px; }
#mchat-messages { height: 220px !important; }
#mchat-input { line-height: 1.5; }
.stat-block { margin-top: 24px; color: #b8c4d6; }
.stat-block h3 { border-color: #343e50; color: #e4e8ef; }
.copyright { color: #aab7ca; }
@media (max-width: 900px) {
  .headerbar { padding: 20px; }
  #site-description h1 { width: 360px; height: 110px; }
  .search-header { float: none; clear: both; margin: 18px 0 0; }
}
@media (max-width: 700px) {
  .wrap { padding: 10px; margin: 10px auto; border-radius: 10px; }
  #site-description { float: none; width: 100%; }
  #site-description h1 { width: 100%; max-width: 340px; height: 105px; }
  .dotnetcs-panels { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dotnetcs-card { padding: 20px; }
  .dotnetcs-nav a { padding: 10px 12px; }
  .dotnetcs-card a.button { max-width: 100%; white-space: normal; }
}
