/* ForumAtik: same two-row header and inline navigation at every size. */
html body .p-nav.fm-classic-header {
  --fa-bar-start: #162d4b;
  --fa-bar: #10233d;
  --fa-line: #314660;
  --fa-ink: #f4f7ff;
  --fa-hover: #2a4563;
  --fa-hover-border: #69819d;
  --fa-focus: #ffc4e0;
  --fa-wheel-bg: #942052;
  --fa-wheel-hover: #b72862;
  box-sizing: border-box;
  display: block !important;
  position: relative !important;
  z-index: 2;
  width: 88% !important;
  max-width: 1600px !important;
  min-width: 0 !important;
  margin: 7px auto 5px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: clamp(5px, 1.05vw, 13px) !important;
}
html[data-theme="dark"] body .p-nav.fm-classic-header {
  --fa-bar-start: #142239;
  --fa-bar: #0b1425;
  --fa-line: #394b65;
  --fa-hover: #2b3b57;
  --fa-hover-border: #788caa;
  --fa-wheel-bg: #82284f;
  --fa-wheel-hover: #a43769;
}
html body .fm-classic-header > .p-nav-inner {
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .65em !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 3.25em !important;
  margin: 0 !important;
  padding: .38em .55em !important;
  overflow: visible !important;
  border: 1px solid var(--fa-line) !important;
  border-radius: .8em !important;
  background: linear-gradient(105deg, var(--fa-bar-start), var(--fa-bar) 68%) !important;
  box-shadow: 0 4px 10px #10233d20 !important;
  font-size: inherit !important;
}
html body .fm-classic-header .p-nav-scroller {
  display: block !important;
  flex: 1 1 auto !important;
  order: 0 !important;
  min-width: 0 !important;
  overflow: visible !important;
}
html body .fm-classic-header .fm-classic-nav-track { overflow: visible; }
html body .fm-classic-header .p-nav-list {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: .3em !important;
  font-size: inherit !important;
}
html body .p-nav.fm-classic-header .p-nav-list > li {
  display: block !important;
  flex: 0 0 auto;
  float: none !important;
  font-size: inherit !important;
}
html body .fm-classic-header .p-nav-list::before,
html body .fm-classic-header .p-nav-list::after { display: none !important; }
html body .p-nav.fm-classic-header .p-nav-list .p-navEl {
  display: flex !important;
  align-items: center !important;
  background: #fff0 !important;
  border-radius: .52em !important;
  box-shadow: none !important;
  font-size: inherit !important;
}
html body .fm-classic-header .p-nav-list .p-navEl.is-selected {
  background: linear-gradient(110deg, #e82067, #b91661) !important;
}
html body .p-nav.fm-classic-header .p-nav-list .p-navEl > .p-navEl-link,
html body .p-nav.fm-classic-header .p-nav-list .p-navEl > .p-navEl-splitTrigger,
html body .p-nav.fm-classic-header .p-nav-list .faWheel-nav,
html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup > .p-navgroup-link {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 2.45em !important;
  margin: 0 !important;
  padding: 0 .65em !important;
  color: var(--fa-ink) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: .52em !important;
  box-shadow: none !important;
  font-size: inherit !important;
  font-weight: 650;
  line-height: 1.15 !important;
  white-space: nowrap;
}
html body .p-nav.fm-classic-header .p-nav-list .p-navEl > .p-navEl-splitTrigger {
  padding-inline: .4em !important;
  margin-inline-start: -.35em !important;
}
html body .p-nav.fm-classic-header .p-nav-list .p-navEl:not(.is-selected):is(:hover, :focus-within, .is-menuOpen),
html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup-link:is(:hover, :focus-visible) {
  background: var(--fa-hover) !important;
  border-color: var(--fa-hover-border) !important;
}
html body .p-nav.fm-classic-header .p-nav-list .p-navEl > :is(.p-navEl-link, .p-navEl-splitTrigger):is(:hover, :focus-visible) {
  background: transparent !important;
  border-color: transparent !important;
  color: #fff !important;
}
html body .p-nav.fm-classic-header .p-nav-list .p-navEl.is-selected:is(:hover, :focus-within, .is-menuOpen) {
  background: #b51c59 !important;
}
html body .p-nav.fm-classic-header > .p-nav-inner :is(a, button):focus-visible {
  outline: 2px solid var(--fa-focus);
  outline-offset: 1px;
}
html body .fm-classic-header .p-nav-list .menu-linkRow[data-nav-id="newPosts"],
html body .fm-classic-header .p-nav-list .menu-linkRow[data-nav-id="searchForums"] { display: block !important; }
html body .fm-classic-header .p-nav-opposite {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  order: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  gap: .25em !important;
  font-size: inherit !important;
}
html body .fm-classic-header .p-nav-opposite .p-navgroup {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  gap: .25em !important;
}
html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup > .p-navgroup-link {
  border-color: #ffffff25 !important;
  background: #ffffff0a !important;
}
html body .fm-classic-header .p-nav-opposite .p-navgroup-link--whatsnew { display: none !important; }
html body .fm-classic-header .p-nav-opposite .p-navgroup-link--search .p-navgroup-linkText,
html body .fm-classic-header .p-nav-opposite .p-navgroup-link--user .p-navgroup-linkText { display: none !important; }
html body .fm-classic-header .p-nav-opposite .p-navgroup-link i,
html body .fm-classic-header .p-nav-opposite .p-navgroup-link i::after,
html body .fm-classic-header .p-nav-opposite .p-navgroup-link i::before,
html body .fm-classic-header .p-navEl-splitTrigger::before { font-size: 1em !important; }
html body .fm-classic-header .p-nav-opposite .p-navgroup-link .avatar {
  width: 1.65em !important;
  height: 1.65em !important;
  font-size: inherit !important;
}
html body .fm-classic-header .p-nav-opposite .p-navgroup-linkText { font-size: inherit !important; }
html body .p-nav.fm-classic-header :is(.p-nav-list, .p-nav-opposite) .faWheel-nav {
  width: auto !important;
  min-width: max-content !important;
  padding-inline: .8em !important;
  background: var(--fa-wheel-bg) !important;
  border: 1px solid #d66e9a !important;
  color: #fff !important;
  font-weight: 750 !important;
  white-space: nowrap;
}
html body .p-nav.fm-classic-header :is(.p-nav-list, .p-nav-opposite) .faWheel-nav:is(:hover, :focus-visible) {
  background: var(--fa-wheel-hover) !important;
  border-color: #f3a4c8 !important;
}
html body .p-nav.fm-classic-header .faWheel-nav .faWheel-navLabel {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
}
html body .p-nav.fm-classic-header .faWheel-nav .faWheel-navIcon { display: none !important; }
html body .fm-classic-header .fm-classic-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  direction: ltr;
  align-items: center;
  min-height: 5.9em;
  padding: .2em .6em;
  gap: 1em;
}
html body .fm-classic-header .fm-classic-logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
}
html body .fm-classic-header .fm-classic-logo a { display: block; max-width: 100%; }
html body .fm-classic-header .fm-classic-logo img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: 5.45em !important;
  max-height: none !important;
  object-fit: contain;
}
.fm-classic-brand-panel {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(72%, 420px);
  min-width: 0;
  min-height: 3.5em;
  padding: .55em 1em;
  border: 1px solid #4a2d5b;
  border-radius: .65em;
  background: linear-gradient(104deg,#152641 0%,#261c3a 53%,#662349 100%);
  color: #fff0f6;
  font-weight: 750;
  text-align: center;
}
.fm-classic-brand-panel span { font-size: 1.35em; }
html body .p-pageWrapper:has(.fm-classic-header) .p-sectionLinks {
  display: block !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .p-pageWrapper:has(.fm-classic-header) .p-sectionLinks > .p-sectionLinks-inner { display: none !important; }
html body .fm-classic-header:has(.faWheel-nav--desktop) .faWheel-nav--mobile { display: none !important; }

/* Follow the forum's gutters without changing the menu order or swapping layouts. */
@media (hover: hover) and (pointer: fine) and (min-width: 1200px) {
  html body .p-nav.fm-classic-header { width: calc(100% - clamp(168px, 9vw, 184px)) !important; }
}
@media (hover: none) and (pointer: coarse) and (min-width: 1025px) {
  html body .p-nav.fm-classic-header {
    width: calc(100% - 60px) !important;
    margin-inline: 12px 48px !important;
  }
}
@media (max-width: 760px) {
  html body .p-nav.fm-classic-header { width: calc(100% - 16px) !important; }
  html body .p-nav.fm-classic-header .p-nav-list .p-navEl > .p-navEl-link,
  html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup > .p-navgroup-link {
    padding-inline: .42em !important;
  }
}

/* Prevent the legacy single-row heights from clipping the two-row header. */
html body .p-nav.fm-classic-header {
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}
html body .p-nav.fm-classic-header > .p-nav-inner {
  height: auto !important;
  min-height: 3.25em !important;
  max-height: none !important;
}
html body .p-nav.fm-classic-header .p-nav-scroller,
html body .p-nav.fm-classic-header .p-nav-list,
html body .p-nav.fm-classic-header .p-nav-list > li,
html body .p-nav.fm-classic-header .p-nav-list .p-navEl,
html body .p-nav.fm-classic-header .p-nav-opposite,
html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
html body .p-nav.fm-classic-header .p-nav-opposite {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}
html body .p-nav.fm-classic-header > .fm-classic-brand {
  box-sizing: border-box;
  position: static !important;
  width: 100%;
  min-height: 6.15em;
  padding-block: .35em;
}
html body .p-nav.fm-classic-header .p-nav-list .p-navEl > .p-navEl-link,
html body .p-nav.fm-classic-header .p-nav-list .p-navEl > .p-navEl-splitTrigger,
html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup-link,
html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup-link .p-navgroup-linkText {
  color: #f3f7ff !important;
}
html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup-link i,
html body .p-nav.fm-classic-header .p-nav-list .p-navEl-splitTrigger::after,
html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup-link i::after,
html body .p-nav.fm-classic-header .p-nav-opposite .p-navgroup-link i::before {
  color: inherit !important;
}

