/* Local fixes for static mirror mode (no external JS bundles). */

.bnr-top-wide,
.b-top-menu,
.adfox-banner-background,
[id^="adfox_"],
.footer-style,
.b-footer-style,
.b-smart-banner,
.smartbanner {
  display: none !important;
}

.layout-container {
  top: 0 !important;
  min-height: 100% !important;
}

.onliner-outer {
  padding-top: 0 !important;
}

.forum-local-nav {
  margin: 0 0 10px;
  padding: 10px 0;
}

.forum-local-nav a {
  font-size: 18px;
  font-weight: 700;
  color: #1b67b0;
  text-decoration: none;
}

.forum-local-nav a:hover {
  text-decoration: underline;
}

.forum-embed-removed {
  display: inline-block;
  margin: 8px 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: #f2f4f7;
  color: #6b7280;
  font-size: 12px;
}

.forum-external-media {
  display: inline-block;
  margin: 6px 0;
  color: #1b67b0;
  font-size: 12px;
}

.forum-external-media-img,
.msgpost-img {
  max-width: 100%;
  height: auto;
}

/* Keep forum content centered even without external layout scripts. */
#minWidth {
  min-width: 1150px;
  margin: 0 auto;
}

/* Rich-text output for posts edited in the local admin. */
.msgpost-txt-i .content {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.msgpost-txt-i .content > :last-child {
  margin-bottom: 0;
}

.msgpost-txt-i .content p {
  margin: 0 0 16px;
  padding-bottom: 0;
  overflow: visible;
}

.msgpost-txt-i .content ul,
.msgpost-txt-i .content ol {
  margin: 0 0 16px 22px;
  padding: 0;
}

.msgpost-txt-i .content li + li {
  margin-top: 4px;
}

.msgpost-txt-i .content blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid #1b67b0;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
  color: #243447;
}

.msgpost-txt-i .content blockquote > :last-child {
  margin-bottom: 0;
}

.msgpost-txt-i .content a {
  color: #0f62c9;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 98, 201, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  background: rgba(15, 98, 201, 0.08);
  border-radius: 4px;
  padding: 0 2px;
}

.msgpost-txt-i .content a:hover {
  color: #084f9e;
  text-decoration-color: currentColor;
  background: rgba(15, 98, 201, 0.14);
}

.msgpost-txt-i .content a:visited {
  color: #6b4fc9;
  text-decoration-color: rgba(107, 79, 201, 0.35);
}

.msgpost-txt-i .content a:focus-visible {
  outline: 2px solid rgba(15, 98, 201, 0.35);
  outline-offset: 2px;
}

.msgpost-txt-i .content pre,
.msgpost-txt-i .content code {
  font-family: Consolas, "Courier New", monospace;
}

.msgpost-txt-i .content code {
  background: #eef2f7;
  border-radius: 4px;
  padding: 0 4px;
}

.msgpost-txt-i .content pre code {
  background: none;
  padding: 0;
}

.msgpost-txt-i .content pre {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  overflow-x: auto;
  background: #17212b;
  color: #e8eef6;
}

.msgpost-txt-i .content del {
  color: #7b8794;
}

.msgpost-txt-i .content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

:root {
  --forum-bg: #f4f6f9;
  --forum-panel: #ffffff;
  --forum-panel-alt: #f8fafc;
  --forum-border: #e2e8f0;
  --forum-muted: #6b7280;
  --forum-link: #1b67d0;
  --forum-link-hover: #0f4ea8;
  --forum-link-visited: #6b4fc9;
  --forum-shadow: 0 1px 2px rgba(16, 24, 40, 0.06),
    0 4px 12px rgba(16, 24, 40, 0.06);
}

body {
  background: var(--forum-bg);
}

.msgpost {
  background: var(--forum-panel);
  border: 1px solid var(--forum-border);
  border-radius: 12px;
  box-shadow: var(--forum-shadow);
  margin: 0 0 12px;
  overflow: hidden;
}

.msgpost-odd {
  background: var(--forum-panel-alt);
}

.b-mtauthor,
.b-msgpost-txt {
  background: transparent;
}

.msgpost-txt-i {
  color: #1f2937;
  font: 15px/22px "Open Sans", Arial, Helvetica, sans-serif;
}

.msgpost-date {
  color: var(--forum-muted);
}

.msgpost-txt-i .content a {
  color: var(--forum-link);
  text-decoration-color: rgba(27, 103, 208, 0.35);
  background: rgba(27, 103, 208, 0.08);
}

.msgpost-txt-i .content a:hover {
  color: var(--forum-link-hover);
  text-decoration-color: currentColor;
  background: rgba(27, 103, 208, 0.14);
}

.msgpost-txt-i .content a:visited {
  color: var(--forum-link-visited);
  text-decoration-color: rgba(107, 79, 201, 0.35);
}

.b-list-topics > li {
  background: var(--forum-panel);
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  box-shadow: var(--forum-shadow);
  margin-bottom: 10px;
  padding: 12px 14px;
}

.b-list-topics .topictitle {
  color: #1f2937;
  font-weight: 700;
}

.b-list-topics .topictitle:hover {
  color: var(--forum-link-hover);
}

.b-list-topics a {
  color: var(--forum-link);
}

.b-list-topics a:visited {
  color: var(--forum-link-visited);
}

/* Visual refresh without changing structure. */
body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: radial-gradient(
      1200px 400px at 50% -200px,
      #e7f0ff 0%,
      rgba(231, 240, 255, 0) 60%
    ),
    var(--forum-bg);
}

#minWidth {
  max-width: 1200px;
  width: 100%;
  padding: 0 16px;
}

.project-navigation,
.b-mnforum-header,
.b-hdtopic,
.b-hdtopic.h-btmtopic {
  background: var(--forum-panel);
  border: 1px solid var(--forum-border);
  border-radius: 12px;
  box-shadow: var(--forum-shadow);
}

.project-navigation {
  margin-bottom: 12px;
}

.b-mnforum-header {
  padding: 16px 18px;
  margin-bottom: 12px;
}

.b-mnforum-header .m-title {
  font-size: 26px;
  line-height: 1.25;
}

.b-path {
  color: var(--forum-muted);
}

.b-path a {
  color: #475569;
}

.b-path a:hover {
  color: var(--forum-link-hover);
}

.b-hdtopic {
  padding: 12px 14px;
  margin-bottom: 12px;
}

.pages-fastnav a {
  color: #334155;
}

.pages-fastnav a:hover {
  color: var(--forum-link-hover);
}

.b-messages-thread {
  display: grid;
  gap: 12px;
}

.msgpost {
  margin: 0;
}

.msgpost-date a {
  color: var(--forum-muted);
}

.msgpost-date a:hover {
  color: var(--forum-link-hover);
}

.msgpost-signature {
  color: #6b7280;
}

.b-list-topics > li {
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.b-list-topics > li:hover {
  transform: translateY(-1px);
  border-color: #cbd5f5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08),
    0 10px 20px rgba(15, 23, 42, 0.06);
}

.b-list-topics .topictitle {
  font-size: 16px;
}

.b-list-topics .gray,
.b-list-topics .gray-link,
.b-list-topics .dark-gray {
  color: #64748b;
}

.msgpost-txt-i .content blockquote {
  border-left-color: #2563eb;
  background: linear-gradient(180deg, #f3f7ff 0%, #e9f1ff 100%);
}

.msgpost-txt-i .content pre {
  border: 1px solid #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.msgpost-txt-i .content img,
.forum-external-media-img {
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.forum-local-nav a {
  color: #1d4ed8;
}

.forum-local-nav a:hover {
  color: #0f4ea8;
}

.b-top-menu,
.footer-style,
.b-footer-style {
  display: block !important;
}

@media (max-width: 1200px) {
  #minWidth {
    min-width: 0;
  }
}
