/* DiMA shared chrome — used by DB new skin + VB "DiMA New Skin" (style 73)
   Keep in sync with db/styles/dima-skin-new.css header/footer rules. */
:root {
  --dima-ink: #0a1730;
  --dima-muted: #44566e;
  --dima-sky: #0070c4;
  --dima-sky-deep: #014a9e;
  --dima-navy: #003c94;
  --dima-accent: #3aa81a;
  --dima-green: #3aa81a;
  --dima-green-deep: #2f9014;
  --dima-panel: #e8eef6;
  --dima-line: #b8c7d9;
  --dima-page: #e4eaf2;
  --dima-card: #ffffff;
  --dima-sticky: #e4f0d8;
  --dima-radius: 10px;
  --dima-font: "Nunito", "Segoe UI", sans-serif;
  --dima-display: "Outfit", "Nunito", sans-serif;
  --dima-shell: min(90vw, 1760px);
}

body.dima-forum-new {
  background: var(--dima-page) !important;
  background-image: none !important;
  color: var(--dima-ink) !important;
  font-family: var(--dima-font) !important;
}

/* Hide legacy VB chrome when modern header is present */
/* Hide legacy top user bar — login now lives in .dima-header-login */
body.dima-forum-new .b-top-menu__background.js-top-menu-user {
  display: none !important;
}
body.dima-forum-new .js-top-menu-user .js-login-menu {
  display: none !important;
}
body.dima-forum-new .main-navbar-bottom-line,
body.dima-forum-new #channel-tabbar,
body.dima-forum-new #channel-subtabbar,
body.dima-forum-new #header,
body.dima-forum-new .b-top-background__header-mainnav,
body.dima-forum-new .b-top-background__header-mainnav-subnav,
body.dima-forum-new #header-axd {
  display: none !important;
}

/* ===== One continuous forum shell =====
   Header + content + footer live inside #outer-wrapper. */
body.dima-forum-new #outer-wrapper {
  max-width: var(--dima-shell) !important;
  width: 100% !important;
  margin: 12px auto 28px !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid var(--dima-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(11, 31, 69, 0.05) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
body.dima-forum-new #wrapper {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Header — flush top of shell (not a floating island) */
body.dima-forum-new .dima-site-header,
.dima-site-header {
  position: relative;
  z-index: 10040;
  max-width: none;
  width: 100%;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border: 0;
  border-bottom: 1px solid var(--dima-line);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  box-sizing: border-box;
}
.dima-site-header__inner {
  max-width: none;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
}
.dima-site-header__desktop {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 10px 0;
  box-sizing: border-box;
}
.dima-site-header__brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.dima-site-header__brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  background: transparent !important;
}
.dima-site-header__nav {
  flex: 1 1 auto;
  min-width: 0;
}
.dima-site-header__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dima-site-header__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--dima-radius);
  font-family: var(--dima-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--dima-navy);
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.dima-site-header__link:hover {
  background: transparent;
  color: var(--dima-sky-deep);
  box-shadow: inset 0 -3px 0 rgba(0, 112, 196, 0.55);
}
.dima-site-header__item.is-current .dima-site-header__link {
  background: transparent !important;
  color: var(--dima-navy);
  box-shadow: inset 0 -3px 0 var(--dima-accent);
}
.dima-site-header__aside {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.dima-site-header__login,
.dima-site-header__register {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--dima-radius);
  font-family: var(--dima-display);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  line-height: 1;
}
.dima-site-header__login {
  color: var(--dima-sky-deep);
  border: 1px solid var(--dima-line);
  cursor: pointer;
}
.dima-site-header__register {
  color: #fff;
  background: var(--dima-green);
  border: 1px solid #3a9a1c;
}

/* Header login dropdown (VB login_main) */
.dima-header-login {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.dima-header-login__panel {
  min-width: 280px;
  z-index: 10050;
}
.dima-header-login .login-form-main-container {
  padding: 12px 10px 8px;
  box-sizing: border-box;
}
.dima-userbar__logout {
  color: var(--dima-sky-deep) !important;
}

.dima-userbar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.dima-userbar__link,
.dima-userbar__user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: var(--dima-radius);
  font-family: var(--dima-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--dima-ink);
  text-decoration: none;
  white-space: nowrap;
}
.dima-userbar__link:hover,
.dima-userbar__user:hover {
  color: var(--dima-sky-deep);
}
.dima-userbar__sep {
  width: 1px;
  height: 16px;
  background: var(--dima-line);
  margin: 0 2px;
}
.dima-userbar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d62828;
  color: #fff;
  font: 800 10px/1 var(--dima-display);
}

body.dima-forum-new .breadcrumbs-wrapper {
  margin: 0 !important;
  padding: 8px 16px 0 !important;
  background: transparent !important;
  border: 0 !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Content — transparent inside shell (kill VB 1500px island) */
body.dima-forum-new #content,
body.dima-forum-new main#content {
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px 16px 16px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* Forum modules / middle boxes — cards inside the shell */
body.dima-forum-new .b-module__header,
body.dima-forum-new .widget-header,
body.dima-forum-new .module-header {
  background: #fff !important;
  color: var(--dima-navy) !important;
  border-bottom: 3px solid var(--dima-accent) !important;
  font-family: var(--dima-display) !important;
  border-radius: 12px 12px 0 0 !important;
}
body.dima-forum-new .b-button,
body.dima-forum-new .b-button--primary,
body.dima-forum-new button.b-button--primary,
body.dima-forum-new .button {
  border-radius: var(--dima-radius) !important;
}
body.dima-forum-new .b-button--primary,
body.dima-forum-new button.b-button--primary,
body.dima-forum-new .b-button--primary:visited,
body.dima-forum-new a.b-button--primary {
  background: var(--dima-green) !important;
  background-image: none !important;
  border: 1px solid var(--dima-green-deep) !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
body.dima-forum-new .b-button--primary:hover,
body.dima-forum-new button.b-button--primary:hover,
body.dima-forum-new a.b-button--primary:hover {
  background: var(--dima-green-deep) !important;
  background-image: none !important;
  border-color: #26750f !important;
  color: #fff !important;
}

body.dima-forum-new .topic-list-container .topic-list .topic-item.sticky,
body.dima-forum-new .topic-item.sticky,
body.dima-forum-new tr.topic-item.sticky td {
  background: var(--dima-sticky) !important;
}

/* Message Center: unread was neon #A7D755 — use soft sticky mint */
body.dima-forum-new .private-message-widget .main-pane .message-list .message-item.message-unread,
body.dima-forum-new .private-message-widget .last-msg-unread,
body.dima-forum-new .message-item.message-unread,
body.dima-forum-new .last-msg-unread {
  background: var(--dima-sticky) !important;
}
body.dima-forum-new .private-message-widget .main-pane .message-list.pm-notification-list .message-item.notification-unread,
body.dima-forum-new .private-message-widget .last-notification-unread {
  background: #f5faf0 !important;
}

/* First post / thread starter was neon #A7D755 — soft mint like sticky */
body.dima-forum-new .b-post--first:not(.b-post--unapproved) .b-post__body,
body.dima-forum-new .conversation-starter .list-item-body-wrapper,
body.dima-forum-new .conversation-content-widget .conversation-starter .list-item-body-wrapper {
  background: var(--dima-sticky) !important;
}
body.dima-forum-new .b-post--first:not(.b-post--unapproved) .b-post__arrow {
  border-left-color: var(--dima-sticky) !important;
}
body.dima-forum-new .l-small .b-post--first:not(.b-post--unapproved) .b-post__arrow {
  border-bottom-color: var(--dima-sticky) !important;
}
body.dima-forum-new .conversation-content-widget .list-item-body-wrapper .pointer-left,
body.dima-forum-new .conversation-starter .list-item-body-wrapper .pointer-left {
  border-left-color: var(--dima-sticky) !important;
}
body.dima-forum-new .b-comp-menu-dropdown__content-item--unread {
  background: var(--dima-sticky) !important;
}
body.dima-forum-new .faqs .faq-search,
body.dima-forum-new .faqs .rx-help-menu {
  background: var(--dima-sticky) !important;
}

body.dima-forum-new .b-module,
body.dima-forum-new .canvas-widget,
body.dima-forum-new .module,
body.dima-forum-new .widget,
body.dima-forum-new .canvas-layout-container .canvas-widget,
body.dima-forum-new .canvas-layout-container .b-module,
body.dima-forum-new .notice,
body.dima-forum-new .widget-content,
body.dima-forum-new .b-grid-module,
body.dima-forum-new .channel-list,
body.dima-forum-new .forum-list-container,
body.dima-forum-new .topic-list-container {
  border-radius: 12px !important;
}
body.dima-forum-new .b-module,
body.dima-forum-new .canvas-widget,
body.dima-forum-new .module,
body.dima-forum-new .widget,
body.dima-forum-new .b-grid-module,
body.dima-forum-new .channel-list,
body.dima-forum-new .forum-list-container,
body.dima-forum-new .topic-list-container,
body.dima-forum-new .b-module:not(.widget-no-border),
body.dima-forum-new .canvas-widget:not(.widget-no-border) {
  overflow: hidden !important;
}
body.dima-forum-new a,
body.dima-forum-new .b-link,
body.dima-forum-new .ui-widget-content a {
  color: var(--dima-sky-deep);
}
body.dima-forum-new a:hover,
body.dima-forum-new .b-link:hover {
  color: var(--dima-sky);
}

body.dima-forum-new .b-module__header,
body.dima-forum-new .widget-header,
body.dima-forum-new .module-header,
body.dima-forum-new .module-title {
  border-bottom-color: var(--dima-accent) !important;
}

body.dima-forum-new .adv-search-btn,
body.dima-forum-new #btnAdvSearch {
  display: none !important;
}

/* ===== Footer — flush bottom of forum shell only =====
   Database pages style .dima-site-footer in dima-skin-new.css
   (bottom radius on the footer itself). Do not zero radius here. */
body.dima-forum-new #footer:not(.dima-site-footer),
body.dima-forum-new #footer-tabbar,
body.dima-forum-new #footer-copyright,
body.dima-forum-new #footer-user-copyright,
body.dima-forum-new #footer-vb-copyright,
body.dima-forum-new #footer-current-datetime {
  display: none !important;
}
body.dima-forum-new .dima-site-footer {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff !important;
  border: 0 !important;
  border-top: 1px solid var(--dima-line) !important;
  border-radius: 0 !important; /* forum #outer-wrapper owns the curve */
  box-shadow: none;
  overflow: hidden;
  color: var(--dima-ink);
  font-family: var(--dima-font);
  box-sizing: border-box;
}
.dima-site-footer__admin,
.dima-site-footer .js-stylechooser,
body.dima-forum-new .dima-site-footer__admin,
body.dima-forum-new .js-stylechooser,
body.dima-forum-new .b-comp-menu-dropdown.js-stylechooser {
  display: none !important;
}
body.dima-forum-new .sb-dialog,
body.dima-forum-new #confirm-dialog,
body.dima-forum-new #alert-dialog,
body.dima-forum-new #prompt-dialog,
body.dima-forum-new #slideshow-dialog {
  display: none;
}
body.dima-forum-new .h-hide,
body.dima-forum-new #loading-indicator.h-hide,
body.dima-forum-new .js-loading-indicator.h-hide,
body.dima-forum-new .js-flash-message.h-hide {
  display: none !important;
}
.dima-site-footer__inner {
  max-width: none;
  margin: 0;
  padding: 16px 18px 14px;
  box-sizing: border-box;
}
.dima-site-footer__top {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2fr);
  gap: 16px 32px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dima-line);
}
.dima-site-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.dima-site-footer__logo img {
  display: block;
  height: 32px;
  width: auto;
}
.dima-site-footer__tagline {
  margin: 8px 0 0;
  max-width: 38ch;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dima-muted);
}
.dima-site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
}
.dima-site-footer__heading {
  margin: 0 0 8px;
  font-family: var(--dima-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dima-navy);
}
.dima-site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dima-site-footer__list li {
  margin: 0 0 5px;
}
.dima-site-footer__list a {
  color: var(--dima-sky-deep);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.dima-site-footer__list a:hover {
  color: var(--dima-accent);
}
.dima-site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 0 2px;
}
.dima-site-footer__copy,
.dima-site-footer__license,
.dima-site-footer__credit,
.dima-site-footer__time {
  margin: 0;
  max-width: 72ch;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--dima-muted);
}
.dima-site-footer__copy {
  font-size: 11px;
  line-height: 1.6;
}
.dima-site-footer__credit {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--dima-line);
  width: 100%;
  max-width: none;
}
.dima-site-footer__credit a {
  color: var(--dima-sky-deep);
  text-decoration: none;
}
.dima-site-footer__credit a:hover {
  color: var(--dima-accent);
}
.dima-site-footer__time {
  font-size: 11px;
  font-weight: 500;
}
.dima-site-footer__top-link {
  cursor: pointer;
}

@media screen and (max-width: 900px) {
  .dima-site-header__desktop {
    flex-wrap: wrap;
    gap: 8px;
  }
  .dima-site-header__nav {
    order: 3;
    width: 100%;
  }
  body.dima-forum-new #outer-wrapper {
    margin: 8px 10px 24px !important;
    max-width: none !important;
    width: auto !important;
    border-radius: 10px !important;
  }
  body.dima-forum-new .dima-site-header,
  .dima-site-header {
    margin: 0;
    border-radius: 0;
    width: 100%;
  }
  .dima-site-footer__top {
    grid-template-columns: 1fr;
  }
  .dima-site-footer__nav {
    grid-template-columns: 1fr 1fr;
  }
  body.dima-forum-new .dima-site-footer {
    margin: 0;
    border-radius: 0 !important;
    width: 100%;
  }
}
@media screen and (max-width: 560px) {
  .dima-site-footer__nav {
    grid-template-columns: 1fr;
  }
}
